浏览代码

修改参培人员路由

lamphua 1 个月前
父节点
当前提交
0f3c238dcb

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

@@ -137,6 +137,14 @@ public class CmcCarApprovalController extends BaseController
137 137
     {
138 138
         JSONObject formDataJson = JSONObject.parse(formData);
139 139
         CmcCarApproval cmcCarApproval = cmcCarApprovalService.selectCmcCarApprovalByCarApplyId(formDataJson.getString("carApplyId"));
140
+        cmcCarApproval.setCarUsage(formDataJson.getString("carUsage"));
141
+        cmcCarApproval.setDays(formDataJson.getLong("days"));
142
+        cmcCarApproval.setEndDate(formDataJson.getDate("endDate"));
143
+        cmcCarApproval.setBeginDate(formDataJson.getDate("beginDate"));
144
+        cmcCarApproval.setProjectId(formDataJson.getString("projectId"));
145
+        cmcCarApproval.setApplyReason(formDataJson.getString("applyReason"));
146
+        cmcCarApproval.setApplyDate(formDataJson.getDate("applyDate"));
147
+        cmcCarApproval.setPassengers(formDataJson.getInteger("passengers"));
140 148
         if (formDataJson.getString("deptComment") != null && formDataJson.getString("managerComment") == null) {
141 149
             cmcCarApproval.setDeptUserId(getLoginUser().getUserId());
142 150
             cmcCarApproval.setDeptComment(formDataJson.getString("deptComment"));

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

@@ -22,12 +22,6 @@ public class CmcResource extends BaseEntity
22 22
     /** 资料id */
23 23
     private Integer resourceId;
24 24
 
25
-    /** 培训名称 */
26
-    private Integer trainId;
27
-    private CmcTrain train;
28
-    @Excel(name = "培训名称")
29
-    private String name;
30
-
31 25
     /** 上传人 */
32 26
     private Long uploader;
33 27
     @Excel(name = "上传人")
@@ -187,25 +181,6 @@ public class CmcResource extends BaseEntity
187 181
     {
188 182
         return resourceField;
189 183
     }
190
-    public void setTrainId(Integer trainId)
191
-    {
192
-        this.trainId = trainId;
193
-    }
194
-
195
-    public Integer getTrainId()
196
-    {
197
-        return trainId;
198
-    }
199
-    public void setTrain(CmcTrain train)
200
-    {
201
-        this.train = train;
202
-        this.name = train == null ? "" : train.getName();
203
-    }
204
-
205
-    public CmcTrain getTrain()
206
-    {
207
-        return train;
208
-    }
209 184
 
210 185
     @Override
211 186
     public String toString() {

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

@@ -18,7 +18,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
18 18
         <association property="uploadUser"    javaType="SysUser"         resultMap="UploadUserResult" />
19 19
         <association property="dept"    javaType="SysDept"         resultMap="SysDeptResult" />
20 20
         <association property="resourceField"    javaType="CmcResourceField"         resultMap="CmcResourceFieldResult" />
21
-        <association property="train"    javaType="CmcTrain"         resultMap="CmcTrainResult" />
22 21
     </resultMap>
23 22
 
24 23
     <resultMap type="SysUser" id="UploadUserResult">
@@ -36,23 +35,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
36 35
         <result property="field"    column="field"    />
37 36
     </resultMap>
38 37
 
39
-    <resultMap type="CmcTrain" id="CmcTrainResult">
40
-        <result property="trainId"    column="train_id"    />
41
-        <result property="name"    column="name"    />
42
-    </resultMap>
43
-
44 38
     <sql id="selectCmcResourceVo">
45
-        select r.resource_id, r.train_id, r.uploader, r.upload_dept, r.title, r.source_path, r.type, r.field_id, rf.field, r.upload_time, r.hours, t.name from cmc_resource as r
39
+        select r.resource_id, r.uploader, r.upload_dept, r.title, r.source_path, r.type, r.field_id, rf.field, r.upload_time, r.hours from cmc_resource as r
46 40
         left join sys_user as u on u.user_id = r.uploader
47 41
         left join sys_dept as d on d.dept_id = r.upload_dept
48 42
         left join cmc_resource_field as rf on rf.field_id = r.field_id
49
-        left join cmc_train as t on t.train_id = r.train_id
50 43
     </sql>
51 44
 
52 45
     <select id="selectCmcResourceList" parameterType="CmcResource" resultMap="CmcResourceResult">
53 46
         <include refid="selectCmcResourceVo"/>
54
-        <where>  
55
-            <if test="trainId != null "> and r.train_id = #{trainId}</if>
47
+        <where>
56 48
             <if test="uploader != null "> and r.uploader = #{uploader}</if>
57 49
             <if test="uploadDept != null "> and r.upload_dept = #{uploadDept}</if>
58 50
             <if test="title != null  and title != ''"> and r.title like concat('%', #{title}, '%')</if>

oa-ui/src/views/oa/train/participate.vue
文件差异内容过多而无法显示
查看文件


正在加载...
取消
保存