瀏覽代碼

设备数据迁移

lamphua 1 年之前
父節點
當前提交
94b2633d12

二進制
oa-back/null/avatar/2024/01/23/xk_20240123141413A001.jpeg 查看文件


二進制
oa-back/null/avatar/2024/01/23/xk_20240123141417A002.jpeg 查看文件


+ 1
- 0
oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/CmcDeviceApprovalController.java 查看文件

115
         CmcDeviceApproval cmcDeviceApproval = new CmcDeviceApproval();
115
         CmcDeviceApproval cmcDeviceApproval = new CmcDeviceApproval();
116
         cmcDeviceApproval.setDeviceApplyId(formDataJson.getString("formId"));
116
         cmcDeviceApproval.setDeviceApplyId(formDataJson.getString("formId"));
117
         cmcDeviceApproval.setApplier(getLoginUser().getUserId());
117
         cmcDeviceApproval.setApplier(getLoginUser().getUserId());
118
+        cmcDeviceApproval.setDept(getLoginUser().getDeptId());
118
         cmcDeviceApproval.setApplyDate(DateUtils.getNowDate());
119
         cmcDeviceApproval.setApplyDate(DateUtils.getNowDate());
119
         cmcDeviceApproval.setProjectId(formDataJson.getString("projectNumber"));
120
         cmcDeviceApproval.setProjectId(formDataJson.getString("projectNumber"));
120
         cmcDeviceApproval.setApplyReason(formDataJson.getString("applyReason"));
121
         cmcDeviceApproval.setApplyReason(formDataJson.getString("applyReason"));

+ 4
- 5
oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/CmcProjectController.java 查看文件

94
     @PostMapping
94
     @PostMapping
95
     public AjaxResult add(@RequestBody CmcProject cmcProject)
95
     public AjaxResult add(@RequestBody CmcProject cmcProject)
96
     {
96
     {
97
-        cmcProject.setProjectId(new SnowFlake().generateId());
98
         return toAjax(cmcProjectService.insertCmcProject(cmcProject));
97
         return toAjax(cmcProjectService.insertCmcProject(cmcProject));
99
     }
98
     }
100
 
99
 
107
     {
106
     {
108
         JSONObject formDataJson = JSONObject.parse(formData);
107
         JSONObject formDataJson = JSONObject.parse(formData);
109
         CmcProject cmcProject = new CmcProject();
108
         CmcProject cmcProject = new CmcProject();
110
-        cmcProject.setProjectId(new SnowFlake().generateId());
111
         cmcProject.setProjectName(formDataJson.getString("projectName"));
109
         cmcProject.setProjectName(formDataJson.getString("projectName"));
112
         cmcProject.setProjectNumber(formDataJson.getString("projectNumber"));
110
         cmcProject.setProjectNumber(formDataJson.getString("projectNumber"));
113
         cmcProject.setProjectLeader(formDataJson.getString("projectLeader"));
111
         cmcProject.setProjectLeader(formDataJson.getString("projectLeader"));
122
         cmcProject.setCreateTime(DateUtils.getNowDate());
120
         cmcProject.setCreateTime(DateUtils.getNowDate());
123
         cmcProject.setIsFinished("0");
121
         cmcProject.setIsFinished("0");
124
         cmcProject.setRemark(formDataJson.getString("remark"));
122
         cmcProject.setRemark(formDataJson.getString("remark"));
123
+        cmcProjectService.insertCmcProject(cmcProject);
125
         String workList = formDataJson.getString("workList");
124
         String workList = formDataJson.getString("workList");
126
         workList = workList.substring(1, workList.length() - 1);
125
         workList = workList.substring(1, workList.length() - 1);
127
         if (workList.split("}").length > 1) {
126
         if (workList.split("}").length > 1) {
155
             cmcProjectWork.setRemark(workArrObject.getString("remark"));
154
             cmcProjectWork.setRemark(workArrObject.getString("remark"));
156
             cmcProjectWorkService.insertCmcProjectWork(cmcProjectWork);
155
             cmcProjectWorkService.insertCmcProjectWork(cmcProjectWork);
157
         }
156
         }
158
-        return toAjax(cmcProjectService.insertCmcProject(cmcProject));
157
+        return success("新增成功");
159
     }
158
     }
160
 
159
 
161
     /**
160
     /**
202
                 JSONObject workArrObject = JSONObject.parse(workArri);
201
                 JSONObject workArrObject = JSONObject.parse(workArri);
203
                 CmcProjectWork cmcProjectWork = new CmcProjectWork();
202
                 CmcProjectWork cmcProjectWork = new CmcProjectWork();
204
                 cmcProjectWork.setWorkId(new SnowFlake().generateId());
203
                 cmcProjectWork.setWorkId(new SnowFlake().generateId());
205
-                cmcProjectWork.setProjectId(formDataJson.getString("projectId"));
204
+                cmcProjectWork.setProjectId(formDataJson.getInteger("projectId"));
206
                 cmcProjectWork.setContent(workArrObject.getString("content"));
205
                 cmcProjectWork.setContent(workArrObject.getString("content"));
207
                 cmcProjectWork.setScale(workArrObject.getString("scale"));
206
                 cmcProjectWork.setScale(workArrObject.getString("scale"));
208
                 cmcProjectWork.setUnit(workArrObject.getString("unit"));
207
                 cmcProjectWork.setUnit(workArrObject.getString("unit"));
217
             cmcProjectWorkService.deleteCmcProjectWorkByProjectId(formDataJson.getString("projectId"));
216
             cmcProjectWorkService.deleteCmcProjectWorkByProjectId(formDataJson.getString("projectId"));
218
             CmcProjectWork cmcProjectWork = new CmcProjectWork();
217
             CmcProjectWork cmcProjectWork = new CmcProjectWork();
219
             cmcProjectWork.setWorkId(new SnowFlake().generateId());
218
             cmcProjectWork.setWorkId(new SnowFlake().generateId());
220
-            cmcProjectWork.setProjectId(formDataJson.getString("projectId"));
219
+            cmcProjectWork.setProjectId(formDataJson.getInteger("projectId"));
221
             cmcProjectWork.setContent(workArrObject.getString("content"));
220
             cmcProjectWork.setContent(workArrObject.getString("content"));
222
             cmcProjectWork.setScale(workArrObject.getString("scale"));
221
             cmcProjectWork.setScale(workArrObject.getString("scale"));
223
             cmcProjectWork.setUnit(workArrObject.getString("unit"));
222
             cmcProjectWork.setUnit(workArrObject.getString("unit"));

+ 14
- 0
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcDevice.java 查看文件

21
     /** 设备id */
21
     /** 设备id */
22
     private Integer deviceId;
22
     private Integer deviceId;
23
 
23
 
24
+    /** 设备编码 */
25
+    @Excel(name = "设备编码")
26
+    private String deviceNumber;
27
+
24
     /** 出厂编号 */
28
     /** 出厂编号 */
25
     @Excel(name = "出厂编号")
29
     @Excel(name = "出厂编号")
26
     private String code;
30
     private String code;
88
     {
92
     {
89
         return deviceId;
93
         return deviceId;
90
     }
94
     }
95
+    public void setDeviceNumber(String deviceNumber)
96
+    {
97
+        this.deviceNumber = deviceNumber;
98
+    }
99
+
100
+    public String getDeviceNumber()
101
+    {
102
+        return deviceNumber;
103
+    }
91
     public void setCode(String code)
104
     public void setCode(String code)
92
     {
105
     {
93
         this.code = code;
106
         this.code = code;
219
     public String toString() {
232
     public String toString() {
220
         return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
233
         return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
221
                 .append("deviceId", getDeviceId())
234
                 .append("deviceId", getDeviceId())
235
+                .append("deviceNumber", getDeviceNumber())
222
                 .append("code", getCode())
236
                 .append("code", getCode())
223
                 .append("name", getName())
237
                 .append("name", getName())
224
                 .append("type", getType())
238
                 .append("type", getType())

+ 16
- 3
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcDeviceApproval.java 查看文件

25
     @Excel(name = "申请人")
25
     @Excel(name = "申请人")
26
     private Long applier;
26
     private Long applier;
27
 
27
 
28
+    /** 使用部门 */
29
+    @Excel(name = "使用部门")
30
+    private Long dept;
31
+
28
     /** 设备id */
32
     /** 设备id */
29
     @Excel(name = "设备id")
33
     @Excel(name = "设备id")
30
     private String devices;
34
     private String devices;
97
     @Excel(name = "归还日期", width = 30, dateFormat = "yyyy-MM-dd")
101
     @Excel(name = "归还日期", width = 30, dateFormat = "yyyy-MM-dd")
98
     private Date returnDate;
102
     private Date returnDate;
99
 
103
 
100
-    public void setDeviceApplyId(String deviceApplyId) 
104
+    public void setDeviceApplyId(String deviceApplyId)
101
     {
105
     {
102
         this.deviceApplyId = deviceApplyId;
106
         this.deviceApplyId = deviceApplyId;
103
     }
107
     }
104
 
108
 
105
-    public String getDeviceApplyId() 
109
+    public String getDeviceApplyId()
106
     {
110
     {
107
         return deviceApplyId;
111
         return deviceApplyId;
108
     }
112
     }
115
     {
119
     {
116
         return applier;
120
         return applier;
117
     }
121
     }
122
+    public void setDept(Long dept)
123
+    {
124
+        this.dept = dept;
125
+    }
126
+
127
+    public Long getDept()
128
+    {
129
+        return dept;
130
+    }
118
     public void setDevices(String devices)
131
     public void setDevices(String devices)
119
     {
132
     {
120
         this.devices = devices;
133
         this.devices = devices;
274
         return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
287
         return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
275
             .append("deviceApplyId", getDeviceApplyId())
288
             .append("deviceApplyId", getDeviceApplyId())
276
             .append("applier", getApplier())
289
             .append("applier", getApplier())
277
-            .append("deviceId", getDevices())
290
+            .append("devices", getDevices())
278
             .append("projectId", getProjectId())
291
             .append("projectId", getProjectId())
279
             .append("applyReason", getApplyReason())
292
             .append("applyReason", getApplyReason())
280
             .append("beginDate", getBeginDate())
293
             .append("beginDate", getBeginDate())

+ 3
- 3
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcProject.java 查看文件

16
     private static final long serialVersionUID = 1L;
16
     private static final long serialVersionUID = 1L;
17
 
17
 
18
     /** 项目id */
18
     /** 项目id */
19
-    private String projectId;
19
+    private Integer projectId;
20
 
20
 
21
     /** 项目编号 */
21
     /** 项目编号 */
22
     @Excel(name = "项目编号")
22
     @Excel(name = "项目编号")
74
     @Excel(name = "承担部门")
74
     @Excel(name = "承担部门")
75
     private String undertakingDept;
75
     private String undertakingDept;
76
 
76
 
77
-    public void setProjectId(String projectId)
77
+    public void setProjectId(Integer projectId)
78
     {
78
     {
79
         this.projectId = projectId;
79
         this.projectId = projectId;
80
     }
80
     }
81
 
81
 
82
-    public String getProjectId()
82
+    public Integer getProjectId()
83
     {
83
     {
84
         return projectId;
84
         return projectId;
85
     }
85
     }

+ 3
- 3
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcProjectWork.java 查看文件

21
     private String workId;
21
     private String workId;
22
 
22
 
23
     /** 项目id */
23
     /** 项目id */
24
-    private String projectId;
24
+    private Integer projectId;
25
 
25
 
26
     /** 工作内容 */
26
     /** 工作内容 */
27
     @Excel(name = "工作内容")
27
     @Excel(name = "工作内容")
53
     {
53
     {
54
         return workId;
54
         return workId;
55
     }
55
     }
56
-    public void setProjectId(String projectId)
56
+    public void setProjectId(Integer projectId)
57
     {
57
     {
58
         this.projectId = projectId;
58
         this.projectId = projectId;
59
     }
59
     }
60
 
60
 
61
-    public String getProjectId()
61
+    public Integer getProjectId()
62
     {
62
     {
63
         return projectId;
63
         return projectId;
64
     }
64
     }

+ 6
- 1
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcDeviceApprovalMapper.xml 查看文件

7
     <resultMap type="CmcDeviceApproval" id="CmcDeviceApprovalResult">
7
     <resultMap type="CmcDeviceApproval" id="CmcDeviceApprovalResult">
8
         <result property="deviceApplyId"    column="device_apply_id"    />
8
         <result property="deviceApplyId"    column="device_apply_id"    />
9
         <result property="applier"    column="applier"    />
9
         <result property="applier"    column="applier"    />
10
+        <result property="dept"    column="dept"    />
10
         <result property="devices"    column="devices"    />
11
         <result property="devices"    column="devices"    />
11
         <result property="projectId"    column="project_id"    />
12
         <result property="projectId"    column="project_id"    />
12
         <result property="applyReason"    column="apply_reason"    />
13
         <result property="applyReason"    column="apply_reason"    />
27
     </resultMap>
28
     </resultMap>
28
 
29
 
29
     <sql id="selectCmcDeviceApprovalVo">
30
     <sql id="selectCmcDeviceApprovalVo">
30
-        select device_apply_id, applier, devices, project_id, apply_reason, apply_date, return_date, begin_date, begin_halfday, end_date, end_halfday, days, dept_user_id, dept_comment, manager_user_id, manager_comment, dispatcher, dispatch_comment, estimate_cost from cmc_device_approval
31
+        select device_apply_id, applier, dept, devices, project_id, apply_reason, apply_date, return_date, begin_date, begin_halfday, end_date, end_halfday, days, dept_user_id, dept_comment, manager_user_id, manager_comment, dispatcher, dispatch_comment, estimate_cost from cmc_device_approval
31
     </sql>
32
     </sql>
32
 
33
 
33
     <select id="selectCmcDeviceApprovalList" parameterType="CmcDeviceApproval" resultMap="CmcDeviceApprovalResult">
34
     <select id="selectCmcDeviceApprovalList" parameterType="CmcDeviceApproval" resultMap="CmcDeviceApprovalResult">
34
         <include refid="selectCmcDeviceApprovalVo"/>
35
         <include refid="selectCmcDeviceApprovalVo"/>
35
         <where>  
36
         <where>  
36
             <if test="applier != null "> and applier = #{applier}</if>
37
             <if test="applier != null "> and applier = #{applier}</if>
38
+            <if test="dept != null "> and dept = #{dept}</if>
37
             <if test="devices != null  and devices != ''"> and devices = #{devices}</if>
39
             <if test="devices != null  and devices != ''"> and devices = #{devices}</if>
38
             <if test="projectId != null  and projectId != ''"> and project_id = #{projectId}</if>
40
             <if test="projectId != null  and projectId != ''"> and project_id = #{projectId}</if>
39
             <if test="applyReason != null  and applyReason != ''"> and apply_reason = #{applyReason}</if>
41
             <if test="applyReason != null  and applyReason != ''"> and apply_reason = #{applyReason}</if>
64
         <trim prefix="(" suffix=")" suffixOverrides=",">
66
         <trim prefix="(" suffix=")" suffixOverrides=",">
65
             <if test="deviceApplyId != null">device_apply_id,</if>
67
             <if test="deviceApplyId != null">device_apply_id,</if>
66
             <if test="applier != null">applier,</if>
68
             <if test="applier != null">applier,</if>
69
+            <if test="dept != null">dept,</if>
67
             <if test="devices != null">devices,</if>
70
             <if test="devices != null">devices,</if>
68
             <if test="projectId != null">project_id,</if>
71
             <if test="projectId != null">project_id,</if>
69
             <if test="applyReason != null">apply_reason,</if>
72
             <if test="applyReason != null">apply_reason,</if>
85
         <trim prefix="values (" suffix=")" suffixOverrides=",">
88
         <trim prefix="values (" suffix=")" suffixOverrides=",">
86
             <if test="deviceApplyId != null">#{deviceApplyId},</if>
89
             <if test="deviceApplyId != null">#{deviceApplyId},</if>
87
             <if test="applier != null">#{applier},</if>
90
             <if test="applier != null">#{applier},</if>
91
+            <if test="dept != null">#{dept},</if>
88
             <if test="devices != null">#{devices},</if>
92
             <if test="devices != null">#{devices},</if>
89
             <if test="projectId != null">#{projectId},</if>
93
             <if test="projectId != null">#{projectId},</if>
90
             <if test="applyReason != null">#{applyReason},</if>
94
             <if test="applyReason != null">#{applyReason},</if>
109
         update cmc_device_approval
113
         update cmc_device_approval
110
         <trim prefix="SET" suffixOverrides=",">
114
         <trim prefix="SET" suffixOverrides=",">
111
             <if test="applier != null">applier = #{applier},</if>
115
             <if test="applier != null">applier = #{applier},</if>
116
+            <if test="dept != null">dept = #{dept},</if>
112
             <if test="devices != null">devices = #{devices},</if>
117
             <if test="devices != null">devices = #{devices},</if>
113
             <if test="projectId != null">project_id = #{projectId},</if>
118
             <if test="projectId != null">project_id = #{projectId},</if>
114
             <if test="applyReason != null">apply_reason = #{applyReason},</if>
119
             <if test="applyReason != null">apply_reason = #{applyReason},</if>

+ 7
- 2
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcDeviceMapper.xml 查看文件

6
 
6
 
7
     <resultMap type="CmcDevice" id="CmcDeviceResult">
7
     <resultMap type="CmcDevice" id="CmcDeviceResult">
8
         <result property="deviceId"    column="device_id"    />
8
         <result property="deviceId"    column="device_id"    />
9
+        <result property="deviceNumber"    column="device_number"    />
9
         <result property="code"    column="code"    />
10
         <result property="code"    column="code"    />
10
         <result property="name"    column="name"    />
11
         <result property="name"    column="name"    />
11
         <result property="type"    column="type"    />
12
         <result property="type"    column="type"    />
24
     </resultMap>
25
     </resultMap>
25
 
26
 
26
     <sql id="selectCmcDeviceVo">
27
     <sql id="selectCmcDeviceVo">
27
-        select device_id, code, name, type, acquisition_time, cost, expect_life, series, brand, day_cost, place, remark, check_term, check_time, warranty, manage_dept from cmc_device
28
+        select device_id, device_number, code, name, type, acquisition_time, cost, expect_life, series, brand, day_cost, place, remark, check_term, check_time, warranty, manage_dept from cmc_device
28
     </sql>
29
     </sql>
29
 
30
 
30
     <select id="selectCmcDeviceList" parameterType="CmcDevice" resultMap="CmcDeviceResult">
31
     <select id="selectCmcDeviceList" parameterType="CmcDevice" resultMap="CmcDeviceResult">
31
         <include refid="selectCmcDeviceVo"/>
32
         <include refid="selectCmcDeviceVo"/>
32
         <where>
33
         <where>
33
-            <if test="code != null  and code != ''"> and code = #{code}</if>
34
+            <if test="deviceNumber != null  and deviceNumber != ''"> and device_number like concat('%', #{deviceNumber}, '%')</if>
35
+            <if test="code != null  and code != ''"> and code like concat('%', #{code}, '%')</if>
34
             <if test="name != null  and name != ''"> and name like concat('%', #{name}, '%')</if>
36
             <if test="name != null  and name != ''"> and name like concat('%', #{name}, '%')</if>
35
             <if test="type != null  and type != ''"> and type like concat('%', #{type}, '%')</if>
37
             <if test="type != null  and type != ''"> and type like concat('%', #{type}, '%')</if>
36
             <if test="acquisitionTime != null "> and acquisition_time = #{acquisitionTime}</if>
38
             <if test="acquisitionTime != null "> and acquisition_time = #{acquisitionTime}</if>
55
     <insert id="insertCmcDevice" parameterType="CmcDevice" useGeneratedKeys="true" keyProperty="deviceId">
57
     <insert id="insertCmcDevice" parameterType="CmcDevice" useGeneratedKeys="true" keyProperty="deviceId">
56
         insert into cmc_device
58
         insert into cmc_device
57
         <trim prefix="(" suffix=")" suffixOverrides=",">
59
         <trim prefix="(" suffix=")" suffixOverrides=",">
60
+            <if test="deviceNumber != null">device_number,</if>
58
             <if test="code != null">code,</if>
61
             <if test="code != null">code,</if>
59
             <if test="name != null">name,</if>
62
             <if test="name != null">name,</if>
60
             <if test="type != null">type,</if>
63
             <if test="type != null">type,</if>
72
             <if test="manageDept != null">manage_dept,</if>
75
             <if test="manageDept != null">manage_dept,</if>
73
         </trim>
76
         </trim>
74
         <trim prefix="values (" suffix=")" suffixOverrides=",">
77
         <trim prefix="values (" suffix=")" suffixOverrides=",">
78
+            <if test="deviceNumber != null">#{deviceNumber},</if>
75
             <if test="code != null">#{code},</if>
79
             <if test="code != null">#{code},</if>
76
             <if test="name != null">#{name},</if>
80
             <if test="name != null">#{name},</if>
77
             <if test="type != null">#{type},</if>
81
             <if test="type != null">#{type},</if>
93
     <update id="updateCmcDevice" parameterType="CmcDevice">
97
     <update id="updateCmcDevice" parameterType="CmcDevice">
94
         update cmc_device
98
         update cmc_device
95
         <trim prefix="SET" suffixOverrides=",">
99
         <trim prefix="SET" suffixOverrides=",">
100
+            <if test="deviceNumber != null">device_number = #{deviceNumber},</if>
96
             <if test="code != null">code = #{code},</if>
101
             <if test="code != null">code = #{code},</if>
97
             <if test="name != null">name = #{name},</if>
102
             <if test="name != null">name = #{name},</if>
98
             <if test="type != null">type = #{type},</if>
103
             <if test="type != null">type = #{type},</if>

+ 3
- 3
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcProjectMapper.xml 查看文件

43
         </where>
43
         </where>
44
     </select>
44
     </select>
45
 
45
 
46
-    <select id="selectCmcProjectByProjectId" parameterType="String" resultMap="CmcProjectResult">
46
+    <select id="selectCmcProjectByProjectId" parameterType="Integer" resultMap="CmcProjectResult">
47
         <include refid="selectCmcProjectVo"/>
47
         <include refid="selectCmcProjectVo"/>
48
         where project_id = #{projectId}
48
         where project_id = #{projectId}
49
     </select>
49
     </select>
110
         where project_id = #{projectId}
110
         where project_id = #{projectId}
111
     </update>
111
     </update>
112
 
112
 
113
-    <delete id="deleteCmcProjectByProjectId" parameterType="String">
113
+    <delete id="deleteCmcProjectByProjectId" parameterType="Integer">
114
         delete from cmc_project where project_id = #{projectId}
114
         delete from cmc_project where project_id = #{projectId}
115
     </delete>
115
     </delete>
116
 
116
 
117
-    <delete id="deleteCmcProjectByProjectIds" parameterType="String">
117
+    <delete id="deleteCmcProjectByProjectIds" parameterType="Integer">
118
         delete from cmc_project where project_id in
118
         delete from cmc_project where project_id in
119
         <foreach item="projectId" collection="array" open="(" separator="," close=")">
119
         <foreach item="projectId" collection="array" open="(" separator="," close=")">
120
             #{projectId}
120
             #{projectId}

+ 3
- 3
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcProjectWorkMapper.xml 查看文件

30
         </where>
30
         </where>
31
     </select>
31
     </select>
32
     
32
     
33
-    <select id="selectCmcProjectWorkListByProjectId" parameterType="String" resultMap="CmcProjectWorkResult">
33
+    <select id="selectCmcProjectWorkListByProjectId" parameterType="Integer" resultMap="CmcProjectWorkResult">
34
         <include refid="selectCmcProjectWorkVo"/>
34
         <include refid="selectCmcProjectWorkVo"/>
35
         where project_id = #{projectId}
35
         where project_id = #{projectId}
36
     </select>
36
     </select>
73
         where work_id = #{workId}
73
         where work_id = #{workId}
74
     </update>
74
     </update>
75
 
75
 
76
-    <delete id="deleteCmcProjectWorkByProjectId" parameterType="String">
76
+    <delete id="deleteCmcProjectWorkByProjectId" parameterType="Integer">
77
         delete from cmc_project_work where project_id = #{projectId}
77
         delete from cmc_project_work where project_id = #{projectId}
78
     </delete>
78
     </delete>
79
 
79
 
80
-    <delete id="deleteCmcProjectWorkByProjectIds" parameterType="String">
80
+    <delete id="deleteCmcProjectWorkByProjectIds" parameterType="Integer">
81
         delete from cmc_project_work where project_id in
81
         delete from cmc_project_work where project_id in
82
         <foreach item="projectId" collection="array" open="(" separator="," close=")">
82
         <foreach item="projectId" collection="array" open="(" separator="," close=")">
83
             #{projectId}
83
             #{projectId}

+ 1696
- 400
oa-back/sql/sql.sql
文件差異過大導致無法顯示
查看文件


Loading…
取消
儲存