Selaa lähdekoodia

Merge branch 'wq1' of SH-Arbitrate/Mediation-Backend into dev

wangqiong123 2 vuotta sitten
vanhempi
commit
4282dcb2de
38 muutettua tiedostoa jossa 199 lisäystä ja 161 poistoa
  1. 43
    0
      ruoyi-admin/src/main/java/com/ruoyi/web/controller/wisdomarbitrate/mscase/MsCaseApplicationController.java
  2. 6
    2
      ruoyi-admin/src/main/java/com/ruoyi/web/controller/wisdomarbitrate/mscase/MsCaseLogRecordController.java
  3. 1
    1
      ruoyi-admin/src/main/resources/application-druid.yml
  4. 1
    1
      ruoyi-admin/src/main/resources/application.yml
  5. 32
    19
      ruoyi-common/src/main/java/com/ruoyi/common/handler/ResponseBodyAdviceHandler.java
  6. 3
    3
      ruoyi-quartz/src/main/resources/mapper/quartz/SysJobLogMapper.xml
  7. 4
    4
      ruoyi-quartz/src/main/resources/mapper/quartz/SysJobMapper.xml
  8. 1
    0
      ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/mapper/miniprogress/IdentityAuthenticationMapper.java
  9. 2
    2
      ruoyi-system/src/main/resources/generator/config.properties
  10. 3
    3
      ruoyi-system/src/main/resources/generator/generatorConfig.xml
  11. 5
    5
      ruoyi-system/src/main/resources/mapper/system/SysConfigMapper.xml
  12. 4
    4
      ruoyi-system/src/main/resources/mapper/system/SysDeptMapper.xml
  13. 5
    5
      ruoyi-system/src/main/resources/mapper/system/SysDictDataMapper.xml
  14. 4
    4
      ruoyi-system/src/main/resources/mapper/system/SysDictTypeMapper.xml
  15. 3
    3
      ruoyi-system/src/main/resources/mapper/system/SysLogininforMapper.xml
  16. 6
    6
      ruoyi-system/src/main/resources/mapper/system/SysMenuMapper.xml
  17. 4
    4
      ruoyi-system/src/main/resources/mapper/system/SysNoticeMapper.xml
  18. 3
    3
      ruoyi-system/src/main/resources/mapper/system/SysOperLogMapper.xml
  19. 4
    4
      ruoyi-system/src/main/resources/mapper/system/SysPostMapper.xml
  20. 1
    1
      ruoyi-system/src/main/resources/mapper/system/SysRoleDeptMapper.xml
  21. 6
    6
      ruoyi-system/src/main/resources/mapper/system/SysRoleMapper.xml
  22. 1
    1
      ruoyi-system/src/main/resources/mapper/system/SysRoleMenuMapper.xml
  23. 11
    34
      ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml
  24. 1
    1
      ruoyi-system/src/main/resources/mapper/system/SysUserPostMapper.xml
  25. 2
    2
      ruoyi-system/src/main/resources/mapper/system/SysUserRoleMapper.xml
  26. 5
    5
      ruoyi-system/src/main/resources/mapper/wisdomarbitrate/casenumrule/CaseNumRuleMapper.xml
  27. 4
    4
      ruoyi-system/src/main/resources/mapper/wisdomarbitrate/dept/DeptIdentifyMapper.xml
  28. 4
    4
      ruoyi-system/src/main/resources/mapper/wisdomarbitrate/dept/SealManageMapper.xml
  29. 3
    3
      ruoyi-system/src/main/resources/mapper/wisdomarbitrate/miniprogress/IdentityAuthenticationMapper.xml
  30. 1
    1
      ruoyi-system/src/main/resources/mapper/wisdomarbitrate/mscase/MsCaseAffiliateLogMapper.xml
  31. 1
    1
      ruoyi-system/src/main/resources/mapper/wisdomarbitrate/mscase/MsCaseApplicationMapper.xml
  32. 3
    3
      ruoyi-system/src/main/resources/mapper/wisdomarbitrate/mscase/MsCaseAttachLogMapper.xml
  33. 3
    3
      ruoyi-system/src/main/resources/mapper/wisdomarbitrate/mscase/MsCaseAttachMapper.xml
  34. 2
    2
      ruoyi-system/src/main/resources/mapper/wisdomarbitrate/sendrecord/SendMailRecordMapper.xml
  35. 3
    3
      ruoyi-system/src/main/resources/mapper/wisdomarbitrate/sendrecord/SmsRecordMapper.xml
  36. 7
    7
      ruoyi-system/src/main/resources/mapper/wisdomarbitrate/template/FatchRuleMapper.xml
  37. 3
    3
      ruoyi-system/src/main/resources/mapper/wisdomarbitrate/template/TemplateFatchRuleMapper.xml
  38. 4
    4
      ruoyi-system/src/main/resources/mapper/wisdomarbitrate/template/TemplateManageMapper.xml

+ 43
- 0
ruoyi-admin/src/main/java/com/ruoyi/web/controller/wisdomarbitrate/mscase/MsCaseApplicationController.java Näytä tiedosto

1
+package com.ruoyi.web.controller.wisdomarbitrate.mscase;
2
+
3
+import com.ruoyi.common.core.controller.BaseController;
4
+import com.ruoyi.common.core.domain.AjaxResult;
5
+import com.ruoyi.wisdomarbitrate.domain.entity.mscase.MsCaseLogRecord;
6
+import com.ruoyi.wisdomarbitrate.service.mscase.MsCaseLogRecordService;
7
+import org.springframework.beans.factory.annotation.Autowired;
8
+import org.springframework.security.access.prepost.PreAuthorize;
9
+import org.springframework.web.bind.annotation.GetMapping;
10
+import org.springframework.web.bind.annotation.RequestMapping;
11
+import org.springframework.web.bind.annotation.RestController;
12
+
13
+import java.util.List;
14
+/**
15
+ * 案件列表控制层
16
+ * @Author wangqiong
17
+ * @Date 2024/01/8
18
+ * @Version V1.0
19
+ */
20
+@RestController
21
+@RequestMapping("/caseApplication")
22
+public class MsCaseApplicationController extends BaseController {
23
+    @Autowired
24
+    private MsCaseLogRecordService caseLogRecordService;
25
+
26
+    /**
27
+     * 查询案件日志列表
28
+     */
29
+    @PreAuthorize("@ss.hasPermi('caseLog:list')")
30
+    @GetMapping("/list")
31
+    public AjaxResult list(MsCaseLogRecord caseLogRecord)
32
+    {
33
+        List<MsCaseLogRecord> list = caseLogRecordService.selectCaseLogRecordList(caseLogRecord);
34
+        return AjaxResult.success(list);
35
+    }
36
+
37
+
38
+
39
+
40
+
41
+
42
+
43
+}

+ 6
- 2
ruoyi-admin/src/main/java/com/ruoyi/web/controller/wisdomarbitrate/mscase/MsCaseLogRecordController.java Näytä tiedosto

2
 
2
 
3
 import com.ruoyi.common.core.controller.BaseController;
3
 import com.ruoyi.common.core.controller.BaseController;
4
 import com.ruoyi.common.core.domain.AjaxResult;
4
 import com.ruoyi.common.core.domain.AjaxResult;
5
-import com.ruoyi.wisdomarbitrate.domain.dto.mscase.CaseLogRecord;
6
 import com.ruoyi.wisdomarbitrate.domain.entity.mscase.MsCaseLogRecord;
5
 import com.ruoyi.wisdomarbitrate.domain.entity.mscase.MsCaseLogRecord;
7
 import com.ruoyi.wisdomarbitrate.service.mscase.MsCaseLogRecordService;
6
 import com.ruoyi.wisdomarbitrate.service.mscase.MsCaseLogRecordService;
8
 import org.springframework.beans.factory.annotation.Autowired;
7
 import org.springframework.beans.factory.annotation.Autowired;
12
 import org.springframework.web.bind.annotation.RestController;
11
 import org.springframework.web.bind.annotation.RestController;
13
 
12
 
14
 import java.util.List;
13
 import java.util.List;
15
-
14
+/**
15
+ * 案件日志控制层
16
+ * @Author wangqiong
17
+ * @Date 2024/01/8
18
+ * @Version V1.0
19
+ */
16
 @RestController
20
 @RestController
17
 @RequestMapping("/caseLogRecord")
21
 @RequestMapping("/caseLogRecord")
18
 public class MsCaseLogRecordController extends BaseController {
22
 public class MsCaseLogRecordController extends BaseController {

+ 1
- 1
ruoyi-admin/src/main/resources/application-druid.yml Näytä tiedosto

6
         druid:
6
         druid:
7
             # 主库数据源
7
             # 主库数据源
8
             master:
8
             master:
9
-                url: jdbc:mysql://121.40.189.20:3306/mediation_system?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=Asia/Shanghai&useSSL=false
9
+                url: jdbc:mysql://121.40.189.20:3306/mediation_system?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true&useSSL=true&serverTimezone=Asia/Shanghai&useSSL=false
10
                 username: root
10
                 username: root
11
                 password: YMzc157#
11
                 password: YMzc157#
12
             # 从库数据源
12
             # 从库数据源

+ 1
- 1
ruoyi-admin/src/main/resources/application.yml Näytä tiedosto

18
 # 开发环境配置
18
 # 开发环境配置
19
 server:
19
 server:
20
   # 服务器的HTTP端口,默认为8080
20
   # 服务器的HTTP端口,默认为8080
21
-  port: 8001
21
+  port: 6001
22
   servlet:
22
   servlet:
23
     # 应用的访问路径
23
     # 应用的访问路径
24
     context-path: /
24
     context-path: /

+ 32
- 19
ruoyi-common/src/main/java/com/ruoyi/common/handler/ResponseBodyAdviceHandler.java Näytä tiedosto

1
 package com.ruoyi.common.handler;
1
 package com.ruoyi.common.handler;
2
 
2
 
3
+import cn.hutool.core.collection.CollectionUtil;
3
 import cn.hutool.core.util.ObjectUtil;
4
 import cn.hutool.core.util.ObjectUtil;
4
 import cn.hutool.core.util.StrUtil;
5
 import cn.hutool.core.util.StrUtil;
5
 import com.fasterxml.jackson.core.JsonProcessingException;
6
 import com.fasterxml.jackson.core.JsonProcessingException;
17
 import org.springframework.http.server.ServerHttpResponse;
18
 import org.springframework.http.server.ServerHttpResponse;
18
 import org.springframework.web.bind.annotation.RestControllerAdvice;
19
 import org.springframework.web.bind.annotation.RestControllerAdvice;
19
 import org.springframework.web.servlet.mvc.method.annotation.ResponseBodyAdvice;
20
 import org.springframework.web.servlet.mvc.method.annotation.ResponseBodyAdvice;
21
+
20
 import java.lang.reflect.Field;
22
 import java.lang.reflect.Field;
21
 import java.util.ArrayList;
23
 import java.util.ArrayList;
22
 import java.util.List;
24
 import java.util.List;
25
+import java.util.Optional;
23
 
26
 
24
 
27
 
25
 /**
28
 /**
39
 
42
 
40
     @Override
43
     @Override
41
     public Object beforeBodyWrite(Object body, MethodParameter methodParameter, MediaType mediaType, Class aClass, ServerHttpRequest request, ServerHttpResponse serverHttpResponse) {
44
     public Object beforeBodyWrite(Object body, MethodParameter methodParameter, MediaType mediaType, Class aClass, ServerHttpRequest request, ServerHttpResponse serverHttpResponse) {
42
-         if (body instanceof String) {
43
-            ObjectMapper om = new ObjectMapper();
44
-            try {
45
-                return om.writeValueAsString(AjaxResult.success(body));
46
-            } catch (JsonProcessingException e) {
47
-                log.error("JsonProcessingException e:{}", e);
45
+
46
+        if (body instanceof AjaxResult) {
47
+            AjaxResult result = (AjaxResult) body;
48
+            if (ObjectUtil.isNotEmpty(result.get("data"))) {
49
+                //判断类型,然后转换字典
50
+                turnType(body);
51
+                return body;
52
+            }
53
+        } else if (body instanceof TableDataInfo) {
54
+            TableDataInfo pageRes = (TableDataInfo) body;
55
+            List list = pageRes.getRows();
56
+            if (CollectionUtil.isNotEmpty(list)) {
57
+                //判断类型,然后转换字典
58
+                turnType(body);
59
+                return body;
48
             }
60
             }
49
         }
61
         }
50
-        //判断类型,然后转换字典
51
-        turnType(body);
52
-        AjaxResult result = AjaxResult.success(body);
53
-        return result;
62
+            return body;
63
+
64
+
65
+
54
     }
66
     }
55
 
67
 
56
     /**
68
     /**
61
     private void turnType(Object body) {
73
     private void turnType(Object body) {
62
         if (body instanceof AjaxResult) {
74
         if (body instanceof AjaxResult) {
63
             AjaxResult result = (AjaxResult) body;
75
             AjaxResult result = (AjaxResult) body;
64
-            if(result.isSuccess()){
76
+            if (result.isSuccess()) {
65
                 Object data = result.get("data");
77
                 Object data = result.get("data");
66
-                if(data!=null){
67
-                    if(data instanceof List){
78
+                if (data != null) {
79
+                    if (data instanceof List) {
68
                         List list = (List) data;
80
                         List list = (List) data;
69
                         convertList(list);
81
                         convertList(list);
70
-                    }else if(data instanceof TableDataInfo){
82
+                    } else if (data instanceof TableDataInfo) {
71
                         TableDataInfo pageRes = (TableDataInfo) data;
83
                         TableDataInfo pageRes = (TableDataInfo) data;
72
                         List list = pageRes.getRows();
84
                         List list = pageRes.getRows();
73
                         convertList(list);
85
                         convertList(list);
74
-                    }else{
86
+                    } else {
75
                         loopTurn(data);
87
                         loopTurn(data);
76
                     }
88
                     }
77
                 }
89
                 }
185
                     if (targetField != null) {
197
                     if (targetField != null) {
186
                         targetField.setAccessible(true);
198
                         targetField.setAccessible(true);
187
                         String dictType = dictConvert.dictType();
199
                         String dictType = dictConvert.dictType();
188
-                        if(StrUtil.isEmpty(dictType)){
200
+                        if (StrUtil.isEmpty(dictType)) {
189
                             return;
201
                             return;
190
                         }
202
                         }
191
                         //单个字典时直接设置值
203
                         //单个字典时直接设置值
192
                         if (!dictConvert.isMultiple()) {
204
                         if (!dictConvert.isMultiple()) {
193
 
205
 
194
-                            targetField.set(obj, ObjectUtil.isNotEmpty( DictUtils.getDictLabel(dictType,key)) ?  DictUtils.getDictLabel(dictType,key):null);
206
+                            targetField.set(obj, ObjectUtil.isNotEmpty(DictUtils.getDictLabel(dictType, key)) ? DictUtils.getDictLabel(dictType, key) : null);
195
                         } else {
207
                         } else {
196
                             //多个字典时,用逗号拼接值
208
                             //多个字典时,用逗号拼接值
197
                             List<String> textList = new ArrayList<>();
209
                             List<String> textList = new ArrayList<>();
198
                             String[] ids = key.split(dictConvert.separator());
210
                             String[] ids = key.split(dictConvert.separator());
199
                             for (String id : ids) {
211
                             for (String id : ids) {
200
-                                if (ObjectUtil.isNotEmpty(DictUtils.getDictLabel(dictType,id))&&StrUtil.isNotEmpty(DictUtils.getDictLabel(dictType,id))) {
201
-                                    textList.add(DictUtils.getDictLabel(dictType,id));
212
+                                if (ObjectUtil.isNotEmpty(DictUtils.getDictLabel(dictType, id)) && StrUtil.isNotEmpty(DictUtils.getDictLabel(dictType, id))) {
213
+                                    textList.add(DictUtils.getDictLabel(dictType, id));
202
                                 }
214
                                 }
203
                             }
215
                             }
204
                             targetField.set(obj, StrUtil.join(dictConvert.separator(), textList));
216
                             targetField.set(obj, StrUtil.join(dictConvert.separator(), textList));
210
             }
222
             }
211
         }
223
         }
212
     }
224
     }
225
+
213
     /**
226
     /**
214
      * 获取目标属性
227
      * 获取目标属性
215
      *
228
      *

+ 3
- 3
ruoyi-quartz/src/main/resources/mapper/quartz/SysJobLogMapper.xml Näytä tiedosto

4
 "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
4
 "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
5
 <mapper namespace="com.ruoyi.quartz.mapper.SysJobLogMapper">
5
 <mapper namespace="com.ruoyi.quartz.mapper.SysJobLogMapper">
6
 
6
 
7
-	<resultMap type="SysJobLog" id="SysJobLogResult">
7
+	<resultMap type="com.ruoyi.quartz.domain.SysJobLog" id="SysJobLogResult">
8
 		<id     property="jobLogId"       column="job_log_id"      />
8
 		<id     property="jobLogId"       column="job_log_id"      />
9
 		<result property="jobName"        column="job_name"        />
9
 		<result property="jobName"        column="job_name"        />
10
 		<result property="jobGroup"       column="job_group"       />
10
 		<result property="jobGroup"       column="job_group"       />
20
 		from ms_sys_job_log
20
 		from ms_sys_job_log
21
     </sql>
21
     </sql>
22
 	
22
 	
23
-	<select id="selectJobLogList" parameterType="SysJobLog" resultMap="SysJobLogResult">
23
+	<select id="selectJobLogList" parameterType="com.ruoyi.quartz.domain.SysJobLog" resultMap="SysJobLogResult">
24
 		<include refid="selectJobLogVo"/>
24
 		<include refid="selectJobLogVo"/>
25
 		<where>
25
 		<where>
26
 			<if test="jobName != null and jobName != ''">
26
 			<if test="jobName != null and jobName != ''">
68
         truncate table ms_sys_job_log
68
         truncate table ms_sys_job_log
69
     </update>
69
     </update>
70
  	
70
  	
71
- 	<insert id="insertJobLog" parameterType="SysJobLog">
71
+ 	<insert id="insertJobLog" parameterType="com.ruoyi.quartz.domain.SysJobLog">
72
  		insert into ms_sys_job_log(
72
  		insert into ms_sys_job_log(
73
  			<if test="jobLogId != null and jobLogId != 0">job_log_id,</if>
73
  			<if test="jobLogId != null and jobLogId != 0">job_log_id,</if>
74
  			<if test="jobName != null and jobName != ''">job_name,</if>
74
  			<if test="jobName != null and jobName != ''">job_name,</if>

+ 4
- 4
ruoyi-quartz/src/main/resources/mapper/quartz/SysJobMapper.xml Näytä tiedosto

4
 "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
4
 "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
5
 <mapper namespace="com.ruoyi.quartz.mapper.SysJobMapper">
5
 <mapper namespace="com.ruoyi.quartz.mapper.SysJobMapper">
6
 
6
 
7
-	<resultMap type="SysJob" id="SysJobResult">
7
+	<resultMap type="com.ruoyi.quartz.domain.SysJob" id="SysJobResult">
8
 		<id     property="jobId"          column="job_id"          />
8
 		<id     property="jobId"          column="job_id"          />
9
 		<result property="jobName"        column="job_name"        />
9
 		<result property="jobName"        column="job_name"        />
10
 		<result property="jobGroup"       column="job_group"       />
10
 		<result property="jobGroup"       column="job_group"       />
25
 		from ms_sys_job
25
 		from ms_sys_job
26
     </sql>
26
     </sql>
27
 	
27
 	
28
-	<select id="selectJobList" parameterType="SysJob" resultMap="SysJobResult">
28
+	<select id="selectJobList" parameterType="com.ruoyi.quartz.domain.SysJob" resultMap="SysJobResult">
29
 		<include refid="selectJobVo"/>
29
 		<include refid="selectJobVo"/>
30
 		<where>
30
 		<where>
31
 			<if test="jobName != null and jobName != ''">
31
 			<if test="jobName != null and jobName != ''">
63
         </foreach> 
63
         </foreach> 
64
  	</delete>
64
  	</delete>
65
  	
65
  	
66
- 	<update id="updateJob" parameterType="SysJob">
66
+ 	<update id="updateJob" parameterType="com.ruoyi.quartz.domain.SysJob">
67
  		update ms_sys_job
67
  		update ms_sys_job
68
  		<set>
68
  		<set>
69
  			<if test="jobName != null and jobName != ''">job_name = #{jobName},</if>
69
  			<if test="jobName != null and jobName != ''">job_name = #{jobName},</if>
80
  		where job_id = #{jobId}
80
  		where job_id = #{jobId}
81
 	</update>
81
 	</update>
82
  	
82
  	
83
- 	<insert id="insertJob" parameterType="SysJob" useGeneratedKeys="true" keyProperty="jobId">
83
+ 	<insert id="insertJob" parameterType="com.ruoyi.quartz.domain.SysJob" useGeneratedKeys="true" keyProperty="jobId">
84
  		insert into ms_sys_job(
84
  		insert into ms_sys_job(
85
  			<if test="jobId != null and jobId != 0">job_id,</if>
85
  			<if test="jobId != null and jobId != 0">job_id,</if>
86
  			<if test="jobName != null and jobName != ''">job_name,</if>
86
  			<if test="jobName != null and jobName != ''">job_name,</if>

+ 1
- 0
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/mapper/miniprogress/IdentityAuthenticationMapper.java Näytä tiedosto

5
 public interface IdentityAuthenticationMapper {
5
 public interface IdentityAuthenticationMapper {
6
     int insertIdentityAuthentication(IdentityAuthentication identityAuthentication);
6
     int insertIdentityAuthentication(IdentityAuthentication identityAuthentication);
7
     IdentityAuthentication  selectIdentityAuthentication(IdentityAuthentication identityAuthentication);
7
     IdentityAuthentication  selectIdentityAuthentication(IdentityAuthentication identityAuthentication);
8
+    Integer  selectCountIdentityAuthentication(IdentityAuthentication identityAuthentication);
8
 
9
 
9
 
10
 
10
     void updateIdentityAuthentication(IdentityAuthentication ientityAuthentication);
11
     void updateIdentityAuthentication(IdentityAuthentication ientityAuthentication);

+ 2
- 2
ruoyi-system/src/main/resources/generator/config.properties Näytä tiedosto

3
 jdbc.user=root
3
 jdbc.user=root
4
 jdbc.password=YMzc157#
4
 jdbc.password=YMzc157#
5
 #目标模块项目路径
5
 #目标模块项目路径
6
-targetprojectpath=D:/ymPro/Mediation-Backend/ruoyi-system
6
+targetprojectpath=D:/ymPro/Mediation-Backend/ruoyi-system/src/main/resources/mapper/wisdomarbitrate
7
 #模块名称
7
 #模块名称
8
 moduleName=mscase
8
 moduleName=mscase
9
 #表名
9
 #表名
10
-tableName=ms_case_application
10
+tableName=ms_case_affiliate
11
 #主键
11
 #主键
12
 premaryId=id
12
 premaryId=id

+ 3
- 3
ruoyi-system/src/main/resources/generator/generatorConfig.xml Näytä tiedosto

21
                         password="${jdbc.password}">
21
                         password="${jdbc.password}">
22
         </jdbcConnection>
22
         </jdbcConnection>
23
         <!--实体-->
23
         <!--实体-->
24
-        <javaModelGenerator targetPackage="com.ruoyi.system.domain.entity.${moduleName}"
24
+        <javaModelGenerator targetPackage="com.ruoyi.wisdomarbitrate.domain.entity.${moduleName}"
25
                             targetProject="src/main/java"/>
25
                             targetProject="src/main/java"/>
26
         <!--mapper.xml-->
26
         <!--mapper.xml-->
27
-        <sqlMapGenerator targetPackage="com.ruoyi.system.mapper.${moduleName}"
27
+        <sqlMapGenerator targetPackage="mapper.wisdomarbitrate.${moduleName}"
28
                          targetProject="src/main/resources"/>
28
                          targetProject="src/main/resources"/>
29
         <!--mapper接口-->
29
         <!--mapper接口-->
30
-        <javaClientGenerator targetPackage="com.ruoyi.system.mapper.${moduleName}"
30
+        <javaClientGenerator targetPackage="com.ruoyi.wisdomarbitrate.mapper.${moduleName}"
31
                              targetProject="src/main/java"
31
                              targetProject="src/main/java"
32
                              type="XMLMAPPER"/>
32
                              type="XMLMAPPER"/>
33
         <!--需要生成的数据库表-->
33
         <!--需要生成的数据库表-->

+ 5
- 5
ruoyi-system/src/main/resources/mapper/system/SysConfigMapper.xml Näytä tiedosto

4
 "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
4
 "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
5
 <mapper namespace="com.ruoyi.system.mapper.SysConfigMapper">
5
 <mapper namespace="com.ruoyi.system.mapper.SysConfigMapper">
6
     
6
     
7
-    <resultMap type="SysConfig" id="SysConfigResult">
7
+    <resultMap type="com.ruoyi.system.domain.SysConfig" id="SysConfigResult">
8
     	<id     property="configId"      column="config_id"      />
8
     	<id     property="configId"      column="config_id"      />
9
         <result property="configName"    column="config_name"    />
9
         <result property="configName"    column="config_name"    />
10
         <result property="configKey"     column="config_key"     />
10
         <result property="configKey"     column="config_key"     />
33
 		</where>
33
 		</where>
34
 	</sql>
34
 	</sql>
35
     
35
     
36
-    <select id="selectConfig" parameterType="SysConfig" resultMap="SysConfigResult">
36
+    <select id="selectConfig" parameterType="com.ruoyi.system.domain.SysConfig" resultMap="SysConfigResult">
37
         <include refid="selectConfigVo"/>
37
         <include refid="selectConfigVo"/>
38
         <include refid="sqlwhereSearch"/>
38
         <include refid="sqlwhereSearch"/>
39
     </select>
39
     </select>
40
     
40
     
41
-    <select id="selectConfigList" parameterType="SysConfig" resultMap="SysConfigResult">
41
+    <select id="selectConfigList" parameterType="com.ruoyi.system.domain.SysConfig" resultMap="SysConfigResult">
42
         <include refid="selectConfigVo"/>
42
         <include refid="selectConfigVo"/>
43
         <where>
43
         <where>
44
 			<if test="configName != null and configName != ''">
44
 			<if test="configName != null and configName != ''">
69
         where config_key = #{configKey} limit 1
69
         where config_key = #{configKey} limit 1
70
     </select>
70
     </select>
71
     
71
     
72
-    <insert id="insertConfig" parameterType="SysConfig">
72
+    <insert id="insertConfig" parameterType="com.ruoyi.system.domain.SysConfig">
73
         insert into ms_sys_config (
73
         insert into ms_sys_config (
74
 			<if test="configName != null and configName != '' ">config_name,</if>
74
 			<if test="configName != null and configName != '' ">config_name,</if>
75
 			<if test="configKey != null and configKey != '' ">config_key,</if>
75
 			<if test="configKey != null and configKey != '' ">config_key,</if>
89
 		)
89
 		)
90
     </insert>
90
     </insert>
91
 	 
91
 	 
92
-    <update id="updateConfig" parameterType="SysConfig">
92
+    <update id="updateConfig" parameterType="com.ruoyi.system.domain.SysConfig">
93
         update ms_sys_config 
93
         update ms_sys_config 
94
         <set>
94
         <set>
95
             <if test="configName != null and configName != ''">config_name = #{configName},</if>
95
             <if test="configName != null and configName != ''">config_name = #{configName},</if>

+ 4
- 4
ruoyi-system/src/main/resources/mapper/system/SysDeptMapper.xml Näytä tiedosto

4
 "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
4
 "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
5
 <mapper namespace="com.ruoyi.system.mapper.SysDeptMapper">
5
 <mapper namespace="com.ruoyi.system.mapper.SysDeptMapper">
6
 
6
 
7
-	<resultMap type="SysDept" id="SysDeptResult">
7
+	<resultMap type="com.ruoyi.common.core.domain.entity.SysDept" id="SysDeptResult">
8
 		<id     property="deptId"     column="dept_id"     />
8
 		<id     property="deptId"     column="dept_id"     />
9
 		<result property="parentId"   column="parent_id"   />
9
 		<result property="parentId"   column="parent_id"   />
10
 		<result property="ancestors"  column="ancestors"   />
10
 		<result property="ancestors"  column="ancestors"   />
28
         from ms_sys_dept d
28
         from ms_sys_dept d
29
     </sql>
29
     </sql>
30
     
30
     
31
-	<select id="selectDeptList" parameterType="SysDept" resultMap="SysDeptResult">
31
+	<select id="selectDeptList" parameterType="com.ruoyi.common.core.domain.entity.SysDept" resultMap="SysDeptResult">
32
         <include refid="selectDeptVo"/>
32
         <include refid="selectDeptVo"/>
33
         where d.del_flag = '0'
33
         where d.del_flag = '0'
34
 		<if test="deptId != null and deptId != 0">
34
 		<if test="deptId != null and deptId != 0">
92
 		join ms_sys_user u on r.role_id=#{roleId} and r.user_id=u.user_id
92
 		join ms_sys_user u on r.role_id=#{roleId} and r.user_id=u.user_id
93
 	</select>
93
 	</select>
94
 
94
 
95
-	<insert id="insertDept" parameterType="SysDept" useGeneratedKeys="true" keyColumn="dept_id" keyProperty="deptId">
95
+	<insert id="insertDept" parameterType="com.ruoyi.common.core.domain.entity.SysDept" useGeneratedKeys="true" keyColumn="dept_id" keyProperty="deptId">
96
  		insert into ms_sys_dept(
96
  		insert into ms_sys_dept(
97
  			<if test="deptId != null and deptId != 0">dept_id,</if>
97
  			<if test="deptId != null and deptId != 0">dept_id,</if>
98
  			<if test="parentId != null and parentId != 0">parent_id,</if>
98
  			<if test="parentId != null and parentId != 0">parent_id,</if>
155
 
155
 
156
 	</insert>
156
 	</insert>
157
 
157
 
158
-    <update id="updateDept" parameterType="SysDept">
158
+    <update id="updateDept" parameterType="com.ruoyi.common.core.domain.entity.SysDept">
159
  		update ms_sys_dept
159
  		update ms_sys_dept
160
  		<set>
160
  		<set>
161
  			<if test="parentId != null and parentId != 0">parent_id = #{parentId},</if>
161
  			<if test="parentId != null and parentId != 0">parent_id = #{parentId},</if>

+ 5
- 5
ruoyi-system/src/main/resources/mapper/system/SysDictDataMapper.xml Näytä tiedosto

4
 "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
4
 "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
5
 <mapper namespace="com.ruoyi.system.mapper.SysDictDataMapper">
5
 <mapper namespace="com.ruoyi.system.mapper.SysDictDataMapper">
6
 	
6
 	
7
-	<resultMap type="SysDictData" id="SysDictDataResult">
7
+	<resultMap type="com.ruoyi.common.core.domain.entity.SysDictData" id="SysDictDataResult">
8
 		<id     property="dictCode"   column="dict_code"   />
8
 		<id     property="dictCode"   column="dict_code"   />
9
 		<result property="dictSort"   column="dict_sort"   />
9
 		<result property="dictSort"   column="dict_sort"   />
10
 		<result property="dictLabel"  column="dict_label"  />
10
 		<result property="dictLabel"  column="dict_label"  />
25
 		from ms_sys_dict_data
25
 		from ms_sys_dict_data
26
     </sql>
26
     </sql>
27
 
27
 
28
-	<select id="selectDictDataList" parameterType="SysDictData" resultMap="SysDictDataResult">
28
+	<select id="selectDictDataList" parameterType="com.ruoyi.common.core.domain.entity.SysDictData" resultMap="SysDictDataResult">
29
 	    <include refid="selectDictDataVo"/>
29
 	    <include refid="selectDictDataVo"/>
30
 		<where>
30
 		<where>
31
 		    <if test="dictType != null and dictType != ''">
31
 		    <if test="dictType != null and dictType != ''">
41
 		order by dict_sort asc
41
 		order by dict_sort asc
42
 	</select>
42
 	</select>
43
 	
43
 	
44
-	<select id="selectDictDataByType" parameterType="SysDictData" resultMap="SysDictDataResult">
44
+	<select id="selectDictDataByType" parameterType="com.ruoyi.common.core.domain.entity.SysDictData" resultMap="SysDictDataResult">
45
 		<include refid="selectDictDataVo"/>
45
 		<include refid="selectDictDataVo"/>
46
 		where status = '0' and dict_type = #{dictType} order by dict_sort asc
46
 		where status = '0' and dict_type = #{dictType} order by dict_sort asc
47
 	</select>
47
 	</select>
71
         </foreach> 
71
         </foreach> 
72
  	</delete>
72
  	</delete>
73
 	
73
 	
74
-	<update id="updateDictData" parameterType="SysDictData">
74
+	<update id="updateDictData" parameterType="com.ruoyi.common.core.domain.entity.SysDictData">
75
  		update ms_sys_dict_data
75
  		update ms_sys_dict_data
76
  		<set>
76
  		<set>
77
  			<if test="dictSort != null">dict_sort = #{dictSort},</if>
77
  			<if test="dictSort != null">dict_sort = #{dictSort},</if>
93
  		update ms_sys_dict_data set dict_type = #{newDictType} where dict_type = #{oldDictType}
93
  		update ms_sys_dict_data set dict_type = #{newDictType} where dict_type = #{oldDictType}
94
 	</update>
94
 	</update>
95
  	
95
  	
96
- 	<insert id="insertDictData" parameterType="SysDictData">
96
+ 	<insert id="insertDictData" parameterType="com.ruoyi.common.core.domain.entity.SysDictData">
97
  		insert into ms_sys_dict_data(
97
  		insert into ms_sys_dict_data(
98
  			<if test="dictSort != null">dict_sort,</if>
98
  			<if test="dictSort != null">dict_sort,</if>
99
  			<if test="dictLabel != null and dictLabel != ''">dict_label,</if>
99
  			<if test="dictLabel != null and dictLabel != ''">dict_label,</if>

+ 4
- 4
ruoyi-system/src/main/resources/mapper/system/SysDictTypeMapper.xml Näytä tiedosto

4
 "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
4
 "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
5
 <mapper namespace="com.ruoyi.system.mapper.SysDictTypeMapper">
5
 <mapper namespace="com.ruoyi.system.mapper.SysDictTypeMapper">
6
 
6
 
7
-	<resultMap type="SysDictType" id="SysDictTypeResult">
7
+	<resultMap type="com.ruoyi.common.core.domain.entity.SysDictType" id="SysDictTypeResult">
8
 		<id     property="dictId"     column="dict_id"     />
8
 		<id     property="dictId"     column="dict_id"     />
9
 		<result property="dictName"   column="dict_name"   />
9
 		<result property="dictName"   column="dict_name"   />
10
 		<result property="dictType"   column="dict_type"   />
10
 		<result property="dictType"   column="dict_type"   />
20
 		from ms_sys_dict_type
20
 		from ms_sys_dict_type
21
     </sql>
21
     </sql>
22
 
22
 
23
-	<select id="selectDictTypeList" parameterType="SysDictType" resultMap="SysDictTypeResult">
23
+	<select id="selectDictTypeList" parameterType="com.ruoyi.common.core.domain.entity.SysDictType" resultMap="SysDictTypeResult">
24
 	    <include refid="selectDictTypeVo"/>
24
 	    <include refid="selectDictTypeVo"/>
25
 		<where>
25
 		<where>
26
 		    <if test="dictName != null and dictName != ''">
26
 		    <if test="dictName != null and dictName != ''">
71
         </foreach> 
71
         </foreach> 
72
  	</delete>
72
  	</delete>
73
 
73
 
74
- 	<update id="updateDictType" parameterType="SysDictType">
74
+ 	<update id="updateDictType" parameterType="com.ruoyi.common.core.domain.entity.SysDictType">
75
  		update ms_sys_dict_type
75
  		update ms_sys_dict_type
76
  		<set>
76
  		<set>
77
  			<if test="dictName != null and dictName != ''">dict_name = #{dictName},</if>
77
  			<if test="dictName != null and dictName != ''">dict_name = #{dictName},</if>
84
  		where dict_id = #{dictId}
84
  		where dict_id = #{dictId}
85
 	</update>
85
 	</update>
86
  	
86
  	
87
- 	<insert id="insertDictType" parameterType="SysDictType">
87
+ 	<insert id="insertDictType" parameterType="com.ruoyi.common.core.domain.entity.SysDictType">
88
  		insert into ms_sys_dict_type(
88
  		insert into ms_sys_dict_type(
89
  			<if test="dictName != null and dictName != ''">dict_name,</if>
89
  			<if test="dictName != null and dictName != ''">dict_name,</if>
90
  			<if test="dictType != null and dictType != ''">dict_type,</if>
90
  			<if test="dictType != null and dictType != ''">dict_type,</if>

+ 3
- 3
ruoyi-system/src/main/resources/mapper/system/SysLogininforMapper.xml Näytä tiedosto

4
 "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
4
 "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
5
 <mapper namespace="com.ruoyi.system.mapper.SysLogininforMapper">
5
 <mapper namespace="com.ruoyi.system.mapper.SysLogininforMapper">
6
 
6
 
7
-	<resultMap type="SysLogininfor" id="SysLogininforResult">
7
+	<resultMap type="com.ruoyi.system.domain.SysLogininfor" id="SysLogininforResult">
8
 		<id     property="infoId"        column="info_id"           />
8
 		<id     property="infoId"        column="info_id"           />
9
 		<result property="userName"      column="user_name"         />
9
 		<result property="userName"      column="user_name"         />
10
 		<result property="status"        column="status"            />
10
 		<result property="status"        column="status"            />
16
 		<result property="loginTime"     column="login_time"        />
16
 		<result property="loginTime"     column="login_time"        />
17
 	</resultMap>
17
 	</resultMap>
18
 
18
 
19
-	<insert id="insertLogininfor" parameterType="SysLogininfor">
19
+	<insert id="insertLogininfor" parameterType="com.ruoyi.system.domain.SysLogininfor">
20
 		insert into ms_sys_logininfor (user_name, status, ipaddr, login_location, browser, os, msg, login_time)
20
 		insert into ms_sys_logininfor (user_name, status, ipaddr, login_location, browser, os, msg, login_time)
21
 		values (#{userName}, #{status}, #{ipaddr}, #{loginLocation}, #{browser}, #{os}, #{msg}, sysdate())
21
 		values (#{userName}, #{status}, #{ipaddr}, #{loginLocation}, #{browser}, #{os}, #{msg}, sysdate())
22
 	</insert>
22
 	</insert>
23
 	
23
 	
24
-	<select id="selectLogininforList" parameterType="SysLogininfor" resultMap="SysLogininforResult">
24
+	<select id="selectLogininforList" parameterType="com.ruoyi.system.domain.SysLogininfor" resultMap="SysLogininforResult">
25
 		select info_id, user_name, ipaddr, login_location, browser, os, status, msg, login_time from ms_sys_logininfor
25
 		select info_id, user_name, ipaddr, login_location, browser, os, status, msg, login_time from ms_sys_logininfor
26
 		<where>
26
 		<where>
27
 			<if test="ipaddr != null and ipaddr != ''">
27
 			<if test="ipaddr != null and ipaddr != ''">

+ 6
- 6
ruoyi-system/src/main/resources/mapper/system/SysMenuMapper.xml Näytä tiedosto

4
 		"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
4
 		"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
5
 <mapper namespace="com.ruoyi.system.mapper.SysMenuMapper">
5
 <mapper namespace="com.ruoyi.system.mapper.SysMenuMapper">
6
 
6
 
7
-	<resultMap type="SysMenu" id="SysMenuResult">
7
+	<resultMap type="com.ruoyi.common.core.domain.entity.SysMenu" id="SysMenuResult">
8
 		<id     property="menuId"         column="menu_id"        />
8
 		<id     property="menuId"         column="menu_id"        />
9
 		<result property="menuName"       column="menu_name"      />
9
 		<result property="menuName"       column="menu_name"      />
10
 		<result property="parentName"     column="parent_name"    />
10
 		<result property="parentName"     column="parent_name"    />
32
 		from ms_sys_menu
32
 		from ms_sys_menu
33
     </sql>
33
     </sql>
34
     
34
     
35
-    <select id="selectMenuList" parameterType="SysMenu" resultMap="SysMenuResult">
35
+    <select id="selectMenuList" parameterType="com.ruoyi.common.core.domain.entity.SysMenu" resultMap="SysMenuResult">
36
 		<include refid="selectMenuVo"/>
36
 		<include refid="selectMenuVo"/>
37
 		<where>
37
 		<where>
38
 			<if test="menuName != null and menuName != ''">
38
 			<if test="menuName != null and menuName != ''">
54
 		order by m.parent_id, m.order_num
54
 		order by m.parent_id, m.order_num
55
 	</select>
55
 	</select>
56
 	
56
 	
57
-	<select id="selectMenuListByUserId" parameterType="SysMenu" resultMap="SysMenuResult">
57
+	<select id="selectMenuListByUserId" parameterType="com.ruoyi.common.core.domain.entity.SysMenu" resultMap="SysMenuResult">
58
 		select distinct m.menu_id, m.parent_id, m.menu_name, m.path, m.component, m.`query`, m.visible, m.status, ifnull(m.perms,'') as perms, m.is_frame, m.is_cache, m.menu_type, m.icon, m.order_num, m.create_time
58
 		select distinct m.menu_id, m.parent_id, m.menu_name, m.path, m.component, m.`query`, m.visible, m.status, ifnull(m.perms,'') as perms, m.is_frame, m.is_cache, m.menu_type, m.icon, m.order_num, m.create_time
59
 		from ms_sys_menu m
59
 		from ms_sys_menu m
60
 		left join ms_ms_sys_role_menu rm on m.menu_id = rm.menu_id
60
 		left join ms_ms_sys_role_menu rm on m.menu_id = rm.menu_id
127
 	    select count(1) from ms_sys_menu where parent_id = #{menuId}  
127
 	    select count(1) from ms_sys_menu where parent_id = #{menuId}  
128
 	</select>
128
 	</select>
129
 	
129
 	
130
-	<select id="checkMenuNameUnique" parameterType="SysMenu" resultMap="SysMenuResult">
130
+	<select id="checkMenuNameUnique" parameterType="com.ruoyi.common.core.domain.entity.SysMenu" resultMap="SysMenuResult">
131
 		<include refid="selectMenuVo"/>
131
 		<include refid="selectMenuVo"/>
132
 		where menu_name=#{menuName} and parent_id = #{parentId} limit 1
132
 		where menu_name=#{menuName} and parent_id = #{parentId} limit 1
133
 	</select>
133
 	</select>
134
 	
134
 	
135
-	<update id="updateMenu" parameterType="SysMenu">
135
+	<update id="updateMenu" parameterType="com.ruoyi.common.core.domain.entity.SysMenu">
136
 		update ms_sys_menu
136
 		update ms_sys_menu
137
 		<set>
137
 		<set>
138
 			<if test="menuName != null and menuName != ''">menu_name = #{menuName},</if>
138
 			<if test="menuName != null and menuName != ''">menu_name = #{menuName},</if>
155
 		where menu_id = #{menuId}
155
 		where menu_id = #{menuId}
156
 	</update>
156
 	</update>
157
 
157
 
158
-	<insert id="insertMenu" parameterType="SysMenu">
158
+	<insert id="insertMenu" parameterType="com.ruoyi.common.core.domain.entity.SysMenu">
159
 		insert into ms_sys_menu(
159
 		insert into ms_sys_menu(
160
 		<if test="menuId != null and menuId != 0">menu_id,</if>
160
 		<if test="menuId != null and menuId != 0">menu_id,</if>
161
 		<if test="parentId != null and parentId != 0">parent_id,</if>
161
 		<if test="parentId != null and parentId != 0">parent_id,</if>

+ 4
- 4
ruoyi-system/src/main/resources/mapper/system/SysNoticeMapper.xml Näytä tiedosto

4
 "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
4
 "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
5
 <mapper namespace="com.ruoyi.system.mapper.SysNoticeMapper">
5
 <mapper namespace="com.ruoyi.system.mapper.SysNoticeMapper">
6
     
6
     
7
-    <resultMap type="SysNotice" id="SysNoticeResult">
7
+    <resultMap type="com.ruoyi.system.domain.SysNotice" id="SysNoticeResult">
8
         <result property="noticeId"       column="notice_id"       />
8
         <result property="noticeId"       column="notice_id"       />
9
         <result property="noticeTitle"    column="notice_title"    />
9
         <result property="noticeTitle"    column="notice_title"    />
10
         <result property="noticeType"     column="notice_type"     />
10
         <result property="noticeType"     column="notice_type"     />
27
         where notice_id = #{noticeId}
27
         where notice_id = #{noticeId}
28
     </select>
28
     </select>
29
     
29
     
30
-    <select id="selectNoticeList" parameterType="SysNotice" resultMap="SysNoticeResult">
30
+    <select id="selectNoticeList" parameterType="com.ruoyi.system.domain.SysNotice" resultMap="SysNoticeResult">
31
         <include refid="selectNoticeVo"/>
31
         <include refid="selectNoticeVo"/>
32
         <where>
32
         <where>
33
 			<if test="noticeTitle != null and noticeTitle != ''">
33
 			<if test="noticeTitle != null and noticeTitle != ''">
42
 		</where>
42
 		</where>
43
     </select>
43
     </select>
44
     
44
     
45
-    <insert id="insertNotice" parameterType="SysNotice">
45
+    <insert id="insertNotice" parameterType="com.ruoyi.system.domain.SysNotice">
46
         insert into ms_sys_notice (
46
         insert into ms_sys_notice (
47
 			<if test="noticeTitle != null and noticeTitle != '' ">notice_title, </if>
47
 			<if test="noticeTitle != null and noticeTitle != '' ">notice_title, </if>
48
 			<if test="noticeType != null and noticeType != '' ">notice_type, </if>
48
 			<if test="noticeType != null and noticeType != '' ">notice_type, </if>
62
 		)
62
 		)
63
     </insert>
63
     </insert>
64
 	 
64
 	 
65
-    <update id="updateNotice" parameterType="SysNotice">
65
+    <update id="updateNotice" parameterType="com.ruoyi.system.domain.SysNotice">
66
         update ms_sys_notice 
66
         update ms_sys_notice 
67
         <set>
67
         <set>
68
             <if test="noticeTitle != null and noticeTitle != ''">notice_title = #{noticeTitle}, </if>
68
             <if test="noticeTitle != null and noticeTitle != ''">notice_title = #{noticeTitle}, </if>

+ 3
- 3
ruoyi-system/src/main/resources/mapper/system/SysOperLogMapper.xml Näytä tiedosto

4
 "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
4
 "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
5
 <mapper namespace="com.ruoyi.system.mapper.SysOperLogMapper">
5
 <mapper namespace="com.ruoyi.system.mapper.SysOperLogMapper">
6
 
6
 
7
-	<resultMap type="SysOperLog" id="SysOperLogResult">
7
+	<resultMap type="com.ruoyi.system.domain.SysOperLog" id="SysOperLogResult">
8
 		<id     property="operId"         column="oper_id"        />
8
 		<id     property="operId"         column="oper_id"        />
9
 		<result property="title"          column="title"          />
9
 		<result property="title"          column="title"          />
10
 		<result property="businessType"   column="business_type"  />
10
 		<result property="businessType"   column="business_type"  />
29
         from ms_sys_oper_log
29
         from ms_sys_oper_log
30
     </sql>
30
     </sql>
31
     
31
     
32
-	<insert id="insertOperlog" parameterType="SysOperLog">
32
+	<insert id="insertOperlog" parameterType="com.ruoyi.system.domain.SysOperLog">
33
 		insert into ms_sys_oper_log(title, business_type, method, request_method, operator_type, oper_name, dept_name, oper_url, oper_ip, oper_location, oper_param, json_result, status, error_msg, cost_time, oper_time)
33
 		insert into ms_sys_oper_log(title, business_type, method, request_method, operator_type, oper_name, dept_name, oper_url, oper_ip, oper_location, oper_param, json_result, status, error_msg, cost_time, oper_time)
34
         values (#{title}, #{businessType}, #{method}, #{requestMethod}, #{operatorType}, #{operName}, #{deptName}, #{operUrl}, #{operIp}, #{operLocation}, #{operParam}, #{jsonResult}, #{status}, #{errorMsg}, #{costTime}, sysdate())
34
         values (#{title}, #{businessType}, #{method}, #{requestMethod}, #{operatorType}, #{operName}, #{deptName}, #{operUrl}, #{operIp}, #{operLocation}, #{operParam}, #{jsonResult}, #{status}, #{errorMsg}, #{costTime}, sysdate())
35
 	</insert>
35
 	</insert>
36
 	
36
 	
37
-	<select id="selectOperLogList" parameterType="SysOperLog" resultMap="SysOperLogResult">
37
+	<select id="selectOperLogList" parameterType="com.ruoyi.system.domain.SysOperLog" resultMap="SysOperLogResult">
38
 		<include refid="selectOperLogVo"/>
38
 		<include refid="selectOperLogVo"/>
39
 		<where>
39
 		<where>
40
 			<if test="title != null and title != ''">
40
 			<if test="title != null and title != ''">

+ 4
- 4
ruoyi-system/src/main/resources/mapper/system/SysPostMapper.xml Näytä tiedosto

4
 "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
4
 "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
5
 <mapper namespace="com.ruoyi.system.mapper.SysPostMapper">
5
 <mapper namespace="com.ruoyi.system.mapper.SysPostMapper">
6
 
6
 
7
-	<resultMap type="SysPost" id="SysPostResult">
7
+	<resultMap type="com.ruoyi.system.domain.SysPost" id="SysPostResult">
8
 		<id     property="postId"        column="post_id"       />
8
 		<id     property="postId"        column="post_id"       />
9
 		<result property="postCode"      column="post_code"     />
9
 		<result property="postCode"      column="post_code"     />
10
 		<result property="postName"      column="post_name"     />
10
 		<result property="postName"      column="post_name"     />
22
 		from ms_sys_post
22
 		from ms_sys_post
23
     </sql>
23
     </sql>
24
 	
24
 	
25
-	<select id="selectPostList" parameterType="SysPost" resultMap="SysPostResult">
25
+	<select id="selectPostList" parameterType="com.ruoyi.system.domain.SysPost" resultMap="SysPostResult">
26
 	    <include refid="selectPostVo"/>
26
 	    <include refid="selectPostVo"/>
27
 		<where>
27
 		<where>
28
 			<if test="postCode != null and postCode != ''">
28
 			<if test="postCode != null and postCode != ''">
77
 		 where post_code=#{postCode} limit 1
77
 		 where post_code=#{postCode} limit 1
78
 	</select>
78
 	</select>
79
 	
79
 	
80
-	<update id="updatePost" parameterType="SysPost">
80
+	<update id="updatePost" parameterType="com.ruoyi.system.domain.SysPost">
81
  		update ms_sys_post
81
  		update ms_sys_post
82
  		<set>
82
  		<set>
83
  			<if test="postCode != null and postCode != ''">post_code = #{postCode},</if>
83
  			<if test="postCode != null and postCode != ''">post_code = #{postCode},</if>
91
  		where post_id = #{postId}
91
  		where post_id = #{postId}
92
 	</update>
92
 	</update>
93
  	
93
  	
94
- 	<insert id="insertPost" parameterType="SysPost" useGeneratedKeys="true" keyProperty="postId">
94
+ 	<insert id="insertPost" parameterType="com.ruoyi.system.domain.SysPost" useGeneratedKeys="true" keyProperty="postId">
95
  		insert into ms_sys_post(
95
  		insert into ms_sys_post(
96
  			<if test="postId != null and postId != 0">post_id,</if>
96
  			<if test="postId != null and postId != 0">post_id,</if>
97
  			<if test="postCode != null and postCode != ''">post_code,</if>
97
  			<if test="postCode != null and postCode != ''">post_code,</if>

+ 1
- 1
ruoyi-system/src/main/resources/mapper/system/SysRoleDeptMapper.xml Näytä tiedosto

4
 "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
4
 "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
5
 <mapper namespace="com.ruoyi.system.mapper.SysRoleDeptMapper">
5
 <mapper namespace="com.ruoyi.system.mapper.SysRoleDeptMapper">
6
 
6
 
7
-	<resultMap type="SysRoleDept" id="SysRoleDeptResult">
7
+	<resultMap type="com.ruoyi.system.domain.SysRoleDept" id="SysRoleDeptResult">
8
 		<result property="roleId"     column="role_id"      />
8
 		<result property="roleId"     column="role_id"      />
9
 		<result property="deptId"     column="dept_id"      />
9
 		<result property="deptId"     column="dept_id"      />
10
 	</resultMap>
10
 	</resultMap>

+ 6
- 6
ruoyi-system/src/main/resources/mapper/system/SysRoleMapper.xml Näytä tiedosto

4
 "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
4
 "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
5
 <mapper namespace="com.ruoyi.system.mapper.SysRoleMapper">
5
 <mapper namespace="com.ruoyi.system.mapper.SysRoleMapper">
6
 
6
 
7
-	<resultMap type="SysRole" id="SysRoleResult">
7
+	<resultMap type="com.ruoyi.common.core.domain.entity.SysRole" id="SysRoleResult">
8
 		<id     property="roleId"             column="role_id"               />
8
 		<id     property="roleId"             column="role_id"               />
9
 		<result property="roleName"           column="role_name"             />
9
 		<result property="roleName"           column="role_name"             />
10
 		<result property="roleKey"            column="role_key"              />
10
 		<result property="roleKey"            column="role_key"              />
25
 	    select distinct r.role_id, r.role_name, r.role_key, r.role_sort, r.data_scope, r.menu_check_strictly, r.dept_check_strictly,
25
 	    select distinct r.role_id, r.role_name, r.role_key, r.role_sort, r.data_scope, r.menu_check_strictly, r.dept_check_strictly,
26
             r.status, r.del_flag, r.create_time, r.remark 
26
             r.status, r.del_flag, r.create_time, r.remark 
27
         from ms_sys_role r
27
         from ms_sys_role r
28
-	        left join ms_ms_sys_user_role ur on ur.role_id = r.role_id
28
+	        left join ms_sys_user_role ur on ur.role_id = r.role_id
29
 	        left join ms_sys_user u on u.user_id = ur.user_id
29
 	        left join ms_sys_user u on u.user_id = ur.user_id
30
 	        left join ms_sys_dept d on u.dept_id = d.dept_id
30
 	        left join ms_sys_dept d on u.dept_id = d.dept_id
31
     </sql>
31
     </sql>
32
     
32
     
33
-    <select id="selectRoleList" parameterType="SysRole" resultMap="SysRoleResult">
33
+    <select id="selectRoleList" parameterType="com.ruoyi.common.core.domain.entity.SysRole" resultMap="SysRoleResult">
34
 		<include refid="selectRoleVo"/>
34
 		<include refid="selectRoleVo"/>
35
 		where r.del_flag = '0'
35
 		where r.del_flag = '0'
36
 		<if test="roleId != null and roleId != 0">
36
 		<if test="roleId != null and roleId != 0">
68
 	<select id="selectRoleListByUserId" parameterType="Long" resultType="Long">
68
 	<select id="selectRoleListByUserId" parameterType="Long" resultType="Long">
69
 		select r.role_id
69
 		select r.role_id
70
         from ms_sys_role r
70
         from ms_sys_role r
71
-	        left join ms_ms_sys_user_role ur on ur.role_id = r.role_id
71
+	        left join ms_sys_user_role ur on ur.role_id = r.role_id
72
 	        left join ms_sys_user u on u.user_id = ur.user_id
72
 	        left join ms_sys_user u on u.user_id = ur.user_id
73
 	    where u.user_id = #{userId}
73
 	    where u.user_id = #{userId}
74
 	</select>
74
 	</select>
96
 		select role_id from ms_sys_role where role_name=#{roleName}
96
 		select role_id from ms_sys_role where role_name=#{roleName}
97
 	</select>
97
 	</select>
98
 
98
 
99
-	<insert id="insertRole" parameterType="SysRole" useGeneratedKeys="true" keyProperty="roleId">
99
+	<insert id="insertRole" parameterType="com.ruoyi.common.core.domain.entity.SysRole" useGeneratedKeys="true" keyProperty="roleId">
100
  		insert into ms_sys_role(
100
  		insert into ms_sys_role(
101
  			<if test="roleId != null and roleId != 0">role_id,</if>
101
  			<if test="roleId != null and roleId != 0">role_id,</if>
102
  			<if test="roleName != null and roleName != ''">role_name,</if>
102
  			<if test="roleName != null and roleName != ''">role_name,</if>
124
  		)
124
  		)
125
 	</insert>
125
 	</insert>
126
 	
126
 	
127
-	<update id="updateRole" parameterType="SysRole">
127
+	<update id="updateRole" parameterType="com.ruoyi.common.core.domain.entity.SysRole">
128
  		update ms_sys_role
128
  		update ms_sys_role
129
  		<set>
129
  		<set>
130
  			<if test="roleName != null and roleName != ''">role_name = #{roleName},</if>
130
  			<if test="roleName != null and roleName != ''">role_name = #{roleName},</if>

+ 1
- 1
ruoyi-system/src/main/resources/mapper/system/SysRoleMenuMapper.xml Näytä tiedosto

4
 "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
4
 "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
5
 <mapper namespace="com.ruoyi.system.mapper.SysRoleMenuMapper">
5
 <mapper namespace="com.ruoyi.system.mapper.SysRoleMenuMapper">
6
 
6
 
7
-	<resultMap type="SysRoleMenu" id="SysRoleMenuResult">
7
+	<resultMap type="com.ruoyi.system.domain.SysRoleMenu" id="SysRoleMenuResult">
8
 		<result property="roleId"     column="role_id"      />
8
 		<result property="roleId"     column="role_id"      />
9
 		<result property="menuId"     column="menu_id"      />
9
 		<result property="menuId"     column="menu_id"      />
10
 	</resultMap>
10
 	</resultMap>

+ 11
- 34
ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml Näytä tiedosto

4
 "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
4
 "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
5
 <mapper namespace="com.ruoyi.system.mapper.SysUserMapper">
5
 <mapper namespace="com.ruoyi.system.mapper.SysUserMapper">
6
 
6
 
7
-    <resultMap type="SysUser" id="SysUserResult">
7
+    <resultMap type="com.ruoyi.common.core.domain.entity.SysUser" id="SysUserResult">
8
         <id     property="userId"       column="user_id"      />
8
         <id     property="userId"       column="user_id"      />
9
         <result property="deptId"       column="dept_id"      />
9
         <result property="deptId"       column="dept_id"      />
10
         <result property="userName"     column="user_name"    />
10
         <result property="userName"     column="user_name"    />
25
         <result property="updateTime"   column="update_time"  />
25
         <result property="updateTime"   column="update_time"  />
26
         <result property="remark"       column="remark"       />
26
         <result property="remark"       column="remark"       />
27
         <result property="specialty"       column="specialty"       />
27
         <result property="specialty"       column="specialty"       />
28
-        <association property="dept"    javaType="SysDept"         resultMap="deptResult" />
28
+        <association property="dept"    javaType="com.ruoyi.common.core.domain.entity.SysDept"         resultMap="deptResult" />
29
         <collection  property="roles"   javaType="java.util.List"  resultMap="RoleResult" />
29
         <collection  property="roles"   javaType="java.util.List"  resultMap="RoleResult" />
30
     </resultMap>
30
     </resultMap>
31
 	
31
 	
32
-    <resultMap id="deptResult" type="SysDept">
32
+    <resultMap id="deptResult" type="com.ruoyi.common.core.domain.entity.SysDept">
33
         <id     property="deptId"    column="dept_id"     />
33
         <id     property="deptId"    column="dept_id"     />
34
         <result property="parentId"  column="parent_id"   />
34
         <result property="parentId"  column="parent_id"   />
35
         <result property="deptName"  column="dept_name"   />
35
         <result property="deptName"  column="dept_name"   />
40
 
40
 
41
     </resultMap>
41
     </resultMap>
42
 	
42
 	
43
-    <resultMap id="RoleResult" type="SysRole">
43
+    <resultMap id="RoleResult" type="com.ruoyi.common.core.domain.entity.SysRole">
44
         <id     property="roleId"       column="role_id"        />
44
         <id     property="roleId"       column="role_id"        />
45
         <result property="roleName"     column="role_name"      />
45
         <result property="roleName"     column="role_name"      />
46
         <result property="roleKey"      column="role_key"       />
46
         <result property="roleKey"      column="role_key"       />
59
 		    left join ms_sys_role r on r.role_id = ur.role_id
59
 		    left join ms_sys_role r on r.role_id = ur.role_id
60
     </sql>
60
     </sql>
61
     
61
     
62
-    <select id="selectUserList" parameterType="SysUser" resultMap="SysUserResult">
62
+    <select id="selectUserList" parameterType="com.ruoyi.common.core.domain.entity.SysUser"resultMap="SysUserResult">
63
 		select u.user_id, u.dept_id, u.nick_name, u.user_name,u.specialty,u.id_card, u.email, u.avatar, u.phonenumber, u.sex, u.status, u.del_flag, u.login_ip, u.login_date, u.create_by, u.create_time, u.remark, d.dept_name,
63
 		select u.user_id, u.dept_id, u.nick_name, u.user_name,u.specialty,u.id_card, u.email, u.avatar, u.phonenumber, u.sex, u.status, u.del_flag, u.login_ip, u.login_date, u.create_by, u.create_time, u.remark, d.dept_name,
64
 		 d.leader , r.role_id, r.role_name, d.dept_id
64
 		 d.leader , r.role_id, r.role_name, d.dept_id
65
 		from ms_sys_user u
65
 		from ms_sys_user u
92
 		${params.dataScope}
92
 		${params.dataScope}
93
 	</select>
93
 	</select>
94
 	
94
 	
95
-	<select id="selectAllocatedList" parameterType="SysUser" resultMap="SysUserResult">
95
+	<select id="selectAllocatedList" parameterType="com.ruoyi.common.core.domain.entity.SysUser"resultMap="SysUserResult">
96
 	    select distinct u.user_id, u.dept_id, u.user_name, u.nick_name,u.specialty,u.id_card, u.email, u.phonenumber, u.status, u.create_time
96
 	    select distinct u.user_id, u.dept_id, u.user_name, u.nick_name,u.specialty,u.id_card, u.email, u.phonenumber, u.status, u.create_time
97
 	    from ms_sys_user u
97
 	    from ms_sys_user u
98
 			 left join ms_sys_dept d on u.dept_id = d.dept_id
98
 			 left join ms_sys_dept d on u.dept_id = d.dept_id
109
 		${params.dataScope}
109
 		${params.dataScope}
110
 	</select>
110
 	</select>
111
 	
111
 	
112
-	<select id="selectUnallocatedList" parameterType="SysUser" resultMap="SysUserResult">
112
+	<select id="selectUnallocatedList" parameterType="com.ruoyi.common.core.domain.entity.SysUser"resultMap="SysUserResult">
113
 	    select distinct u.user_id, u.dept_id, u.user_name, u.nick_name,u.specialty,u.id_card, u.email, u.phonenumber, u.status, u.create_time
113
 	    select distinct u.user_id, u.dept_id, u.user_name, u.nick_name,u.specialty,u.id_card, u.email, u.phonenumber, u.status, u.create_time
114
 	    from ms_sys_user u
114
 	    from ms_sys_user u
115
 			 left join ms_sys_dept d on u.dept_id = d.dept_id
115
 			 left join ms_sys_dept d on u.dept_id = d.dept_id
156
 	
156
 	
157
 	<select id="checkEmailUnique" parameterType="String" resultMap="SysUserResult">
157
 	<select id="checkEmailUnique" parameterType="String" resultMap="SysUserResult">
158
 		select user_id, email from ms_sys_user where email = #{email} and del_flag = '0' limit 1
158
 		select user_id, email from ms_sys_user where email = #{email} and del_flag = '0' limit 1
159
-	</select>
160
-	<select id="selectUserListByAdRole" resultMap="SysUserResult">
161
-		select u.user_id, u.dept_id, u.nick_name, u.user_name,u.specialty,u.id_card, u.email, u.avatar, u.phonenumber, u.sex, u.status, u.del_flag, u.login_ip, u.login_date, u.create_by, u.create_time, u.remark from ms_sys_user u
162
-		 join ms_sys_user_role ur on ur.user_id =u.user_id
163
-		    join ms_sys_role r on ur.role_id = r.role_id and r.role_name='仲裁员'
164
-		where r.del_flag = '0' and r.status='0'
165
-		and u.del_flag = '0' and u.status='0'
166
-			<if test="arbitratorName != null and arbitratorName != ''">
167
-				AND u.nick_name like concat('%', #{arbitratorName}, '%')
168
-			</if>
169
-
170
-			<if test="idList != null and idList.size() > 0">
171
-				AND u.user_id in
172
-				<foreach item="id" collection="idList" open="(" separator="," close=")">
173
-					#{id}
174
-				</foreach>
175
-			</if>
176
-
177
-
178
 	</select>
159
 	</select>
179
 	<select id="selectUserListByIds" resultMap="SysUserResult">
160
 	<select id="selectUserListByIds" resultMap="SysUserResult">
180
 		select u.user_id,  u.nick_name, u.user_name,u.id_card,u.specialty, u.phonenumber, u.remark from ms_sys_user u
161
 		select u.user_id,  u.nick_name, u.user_name,u.id_card,u.specialty, u.phonenumber, u.remark from ms_sys_user u
216
 	</select>
197
 	</select>
217
 
198
 
218
 
199
 
219
-    <insert id="insertUser" parameterType="SysUser" useGeneratedKeys="true" keyProperty="userId">
200
+    <insert id="insertUser" parameterType="com.ruoyi.common.core.domain.entity.SysUser"useGeneratedKeys="true" keyProperty="userId">
220
  		insert into ms_sys_user(
201
  		insert into ms_sys_user(
221
  			<if test="userId != null and userId != 0">user_id,</if>
202
  			<if test="userId != null and userId != 0">user_id,</if>
222
  			<if test="deptId != null and deptId != 0">dept_id,</if>
203
  			<if test="deptId != null and deptId != 0">dept_id,</if>
290
 		</foreach>;
271
 		</foreach>;
291
 	</insert>
272
 	</insert>
292
 
273
 
293
-    <update id="updateUser" parameterType="SysUser">
274
+    <update id="updateUser" parameterType="com.ruoyi.common.core.domain.entity.SysUser">
294
  		update ms_sys_user
275
  		update ms_sys_user
295
  		<set>
276
  		<set>
296
  			<if test="deptId != null and deptId != 0">dept_id = #{deptId},</if>
277
  			<if test="deptId != null and deptId != 0">dept_id = #{deptId},</if>
313
  		where user_id = #{userId}
294
  		where user_id = #{userId}
314
 	</update>
295
 	</update>
315
 	
296
 	
316
-	<update id="updateUserStatus" parameterType="SysUser">
317
- 		update ms_sys_user set status = #{status} where user_id = #{userId}
318
-	</update>
319
-	
320
-	<update id="updateUserAvatar" parameterType="SysUser">
297
+	<update id="updateUserAvatar" parameterType="com.ruoyi.common.core.domain.entity.SysUser">
321
  		update ms_sys_user set avatar = #{avatar} where user_name = #{userName}
298
  		update ms_sys_user set avatar = #{avatar} where user_name = #{userName}
322
 	</update>
299
 	</update>
323
 	
300
 	
324
-	<update id="resetUserPwd" parameterType="SysUser">
301
+	<update id="resetUserPwd" parameterType="com.ruoyi.common.core.domain.entity.SysUser">
325
  		update ms_sys_user set password = #{password} where user_name = #{userName}
302
  		update ms_sys_user set password = #{password} where user_name = #{userName}
326
 	</update>
303
 	</update>
327
 	
304
 	

+ 1
- 1
ruoyi-system/src/main/resources/mapper/system/SysUserPostMapper.xml Näytä tiedosto

4
 "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
4
 "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
5
 <mapper namespace="com.ruoyi.system.mapper.SysUserPostMapper">
5
 <mapper namespace="com.ruoyi.system.mapper.SysUserPostMapper">
6
 
6
 
7
-	<resultMap type="SysUserPost" id="SysUserPostResult">
7
+	<resultMap type="com.ruoyi.system.domain.SysUserPost" id="SysUserPostResult">
8
 		<result property="userId"     column="user_id"      />
8
 		<result property="userId"     column="user_id"      />
9
 		<result property="postId"     column="post_id"      />
9
 		<result property="postId"     column="post_id"      />
10
 	</resultMap>
10
 	</resultMap>

+ 2
- 2
ruoyi-system/src/main/resources/mapper/system/SysUserRoleMapper.xml Näytä tiedosto

4
 "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
4
 "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
5
 <mapper namespace="com.ruoyi.system.mapper.SysUserRoleMapper">
5
 <mapper namespace="com.ruoyi.system.mapper.SysUserRoleMapper">
6
 
6
 
7
-	<resultMap type="SysUserRole" id="SysUserRoleResult">
7
+	<resultMap type="com.ruoyi.system.domain.SysUserRole" id="SysUserRoleResult">
8
 		<result property="userId"     column="user_id"      />
8
 		<result property="userId"     column="user_id"      />
9
 		<result property="roleId"     column="role_id"      />
9
 		<result property="roleId"     column="role_id"      />
10
 	</resultMap>
10
 	</resultMap>
31
 		</foreach>
31
 		</foreach>
32
 	</insert>
32
 	</insert>
33
 	
33
 	
34
-	<delete id="deleteUserRoleInfo" parameterType="SysUserRole">
34
+	<delete id="deleteUserRoleInfo" parameterType="com.ruoyi.system.domain.SysUserRole">
35
 		delete from ms_sys_user_role where user_id=#{userId} and role_id=#{roleId}
35
 		delete from ms_sys_user_role where user_id=#{userId} and role_id=#{roleId}
36
 	</delete>
36
 	</delete>
37
 	
37
 	

+ 5
- 5
ruoyi-system/src/main/resources/mapper/wisdomarbitrate/casenumrule/CaseNumRuleMapper.xml Näytä tiedosto

13
         <result column="dept_name_firchar" property="deptNameFirchar" />
13
         <result column="dept_name_firchar" property="deptNameFirchar" />
14
     </resultMap>
14
     </resultMap>
15
 
15
 
16
-    <insert id="insertCaseNumRule" parameterType="CaseNumRule" useGeneratedKeys="true" keyProperty="id">
16
+    <insert id="insertCaseNumRule" parameterType="com.ruoyi.wisdomarbitrate.domain.dto.casenumrule.CaseNumRule" useGeneratedKeys="true" keyProperty="id">
17
         insert into ms_case_num_rule(
17
         insert into ms_case_num_rule(
18
         <if test="ruleType != null">rule_type,</if>
18
         <if test="ruleType != null">rule_type,</if>
19
         <if test="prefixstr != null and prefixstr != '' ">prefixstr,</if>
19
         <if test="prefixstr != null and prefixstr != '' ">prefixstr,</if>
35
         )
35
         )
36
     </insert>
36
     </insert>
37
 
37
 
38
-    <update id="updateCaseNumRule" parameterType="CaseNumRule">
38
+    <update id="updateCaseNumRule" parameterType="com.ruoyi.wisdomarbitrate.domain.dto.casenumrule.CaseNumRule">
39
         update ms_case_num_rule
39
         update ms_case_num_rule
40
         <set>
40
         <set>
41
             <if test="ruleType != null">rule_type = #{ruleType},</if>
41
             <if test="ruleType != null">rule_type = #{ruleType},</if>
51
             </if>
51
             </if>
52
         </where>
52
         </where>
53
     </update>
53
     </update>
54
-    <delete id="deleteCaseNumRule" parameterType="CaseNumRule">
54
+    <delete id="deleteCaseNumRule" parameterType="com.ruoyi.wisdomarbitrate.domain.dto.casenumrule.CaseNumRule">
55
         delete from ms_case_num_rule where id = #{id}
55
         delete from ms_case_num_rule where id = #{id}
56
     </delete>
56
     </delete>
57
 
57
 
58
-    <select id="selectCaseNumRules" parameterType="CaseNumRule" resultMap="BaseResultMap">
58
+    <select id="selectCaseNumRules" parameterType="com.ruoyi.wisdomarbitrate.domain.dto.casenumrule.CaseNumRule" resultMap="BaseResultMap">
59
         SELECT  id, rule_type ,prefixstr , date_format,dept_name,dept_name_firchar,current_num
59
         SELECT  id, rule_type ,prefixstr , date_format,dept_name,dept_name_firchar,current_num
60
         FROM  ms_case_num_rule
60
         FROM  ms_case_num_rule
61
         <where>
61
         <where>
90
         </where>
90
         </where>
91
     </select>
91
     </select>
92
 
92
 
93
-    <select id="selectCaseNumRule" parameterType="CaseNumRule" resultMap="BaseResultMap">
93
+    <select id="selectCaseNumRule" parameterType="com.ruoyi.wisdomarbitrate.domain.dto.casenumrule.CaseNumRule" resultMap="BaseResultMap">
94
         SELECT  id, rule_type ,prefixstr , date_format,dept_name,dept_name_firchar,current_num
94
         SELECT  id, rule_type ,prefixstr , date_format,dept_name,dept_name_firchar,current_num
95
         FROM  ms_case_num_rule
95
         FROM  ms_case_num_rule
96
         <where>
96
         <where>

+ 4
- 4
ruoyi-system/src/main/resources/mapper/wisdomarbitrate/dept/DeptIdentifyMapper.xml Näytä tiedosto

3
         PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
3
         PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
4
         "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
4
         "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
5
 <mapper namespace="com.ruoyi.wisdomarbitrate.mapper.dept.DeptIdentifyMapper">
5
 <mapper namespace="com.ruoyi.wisdomarbitrate.mapper.dept.DeptIdentifyMapper">
6
-    <resultMap type="DeptIdentify" id="DeptIdentifyResult">
6
+    <resultMap type="com.ruoyi.wisdomarbitrate.domain.dto.dept.DeptIdentify" id="DeptIdentifyResult">
7
         <id     property="id"       column="id"      />
7
         <id     property="id"       column="id"      />
8
         <result property="identifyStatus"     column="identify_status"    />
8
         <result property="identifyStatus"     column="identify_status"    />
9
         <result property="identifyDate"        column="identify_date"        />
9
         <result property="identifyDate"        column="identify_date"        />
25
     </resultMap>
25
     </resultMap>
26
 
26
 
27
 
27
 
28
-    <select id="selectDeptIdentify" parameterType="DeptIdentify" resultMap="DeptIdentifyResult">
28
+    <select id="selectDeptIdentify" parameterType="com.ruoyi.wisdomarbitrate.domain.dto.dept.DeptIdentify" resultMap="DeptIdentifyResult">
29
         SELECT  id, identify_name ,identify_status , identify_date,is_use,org_id,auth_flow_id,
29
         SELECT  id, identify_name ,identify_status , identify_date,is_use,org_id,auth_flow_id,
30
                 oper_name,oper_phone,identify_type,credit_code,legal_per_name,legal_per_phone
30
                 oper_name,oper_phone,identify_type,credit_code,legal_per_name,legal_per_phone
31
                ,identify_email,dept_id ,user_id
31
                ,identify_email,dept_id ,user_id
56
     </select>
56
     </select>
57
 
57
 
58
 
58
 
59
-    <insert id="insertDeptIdentify" parameterType="DeptIdentify" useGeneratedKeys="true" keyProperty="id">
59
+    <insert id="insertDeptIdentify" parameterType="com.ruoyi.wisdomarbitrate.domain.dto.dept.DeptIdentify" useGeneratedKeys="true" keyProperty="id">
60
         insert into ms_dept_identify(
60
         insert into ms_dept_identify(
61
         <if test="identifyName != null and identifyName != ''">identify_name,</if>
61
         <if test="identifyName != null and identifyName != ''">identify_name,</if>
62
         <if test="identifyStatus != null">identify_status,</if>
62
         <if test="identifyStatus != null">identify_status,</if>
99
 
99
 
100
 
100
 
101
 
101
 
102
-    <update id="updateDeptIdentify" parameterType="DeptIdentify">
102
+    <update id="updateDeptIdentify" parameterType="com.ruoyi.wisdomarbitrate.domain.dto.dept.DeptIdentify">
103
         update ms_dept_identify
103
         update ms_dept_identify
104
         <set>
104
         <set>
105
             <if test="identifyDate != null">identify_date = #{identifyDate},</if>
105
             <if test="identifyDate != null">identify_date = #{identifyDate},</if>

+ 4
- 4
ruoyi-system/src/main/resources/mapper/wisdomarbitrate/dept/SealManageMapper.xml Näytä tiedosto

3
         PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
3
         PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
4
         "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
4
         "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
5
 <mapper namespace="com.ruoyi.wisdomarbitrate.mapper.dept.SealManageMapper">
5
 <mapper namespace="com.ruoyi.wisdomarbitrate.mapper.dept.SealManageMapper">
6
-    <resultMap type="SealManage" id="SealManageResult">
6
+    <resultMap type="com.ruoyi.wisdomarbitrate.domain.dto.dept.SealManage" id="SealManageResult">
7
         <id     property="id"       column="id"      />
7
         <id     property="id"       column="id"      />
8
         <result property="identifyId"     column="identify_id"    />
8
         <result property="identifyId"     column="identify_id"    />
9
         <result property="sealName"        column="seal_name"        />
9
         <result property="sealName"        column="seal_name"        />
13
         <result property="isUse"     column="is_use"     />
13
         <result property="isUse"     column="is_use"     />
14
     </resultMap>
14
     </resultMap>
15
 
15
 
16
-    <select id="selectSealList" parameterType="SealManage" resultMap="SealManageResult">
16
+    <select id="selectSealList" parameterType="com.ruoyi.wisdomarbitrate.domain.dto.dept.SealManage" resultMap="SealManageResult">
17
         SELECT  id, identify_id ,seal_name , seal_id,annex_id,seal_status,is_use
17
         SELECT  id, identify_id ,seal_name , seal_id,annex_id,seal_status,is_use
18
         FROM  ms_seal_manage
18
         FROM  ms_seal_manage
19
         <where>
19
         <where>
27
     </select>
27
     </select>
28
 
28
 
29
 
29
 
30
-    <insert id="insertSealManage" parameterType="SealManage" useGeneratedKeys="true" keyProperty="id">
30
+    <insert id="insertSealManage" parameterType="com.ruoyi.wisdomarbitrate.domain.dto.dept.SealManage" useGeneratedKeys="true" keyProperty="id">
31
         insert into ms_seal_manage(
31
         insert into ms_seal_manage(
32
         <if test="identifyId != null">identify_id,</if>
32
         <if test="identifyId != null">identify_id,</if>
33
         <if test="sealName != null and sealName != ''">seal_name,</if>
33
         <if test="sealName != null and sealName != ''">seal_name,</if>
45
         )
45
         )
46
     </insert>
46
     </insert>
47
 
47
 
48
-    <update id="updateSealManage" parameterType="SealManage">
48
+    <update id="updateSealManage" parameterType="com.ruoyi.wisdomarbitrate.domain.dto.dept.SealManage">
49
         update ms_seal_manage
49
         update ms_seal_manage
50
         <set>
50
         <set>
51
             <if test="identifyId != null">identify_id = #{identifyId},</if>
51
             <if test="identifyId != null">identify_id = #{identifyId},</if>

+ 3
- 3
ruoyi-system/src/main/resources/mapper/wisdomarbitrate/miniprogress/IdentityAuthenticationMapper.xml Näytä tiedosto

3
         PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
3
         PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
4
         "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
4
         "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
5
 <mapper namespace="com.ruoyi.wisdomarbitrate.mapper.miniprogress.IdentityAuthenticationMapper">
5
 <mapper namespace="com.ruoyi.wisdomarbitrate.mapper.miniprogress.IdentityAuthenticationMapper">
6
-    <resultMap type="IdentityAuthentication" id="IdentityAuthenticationResult">
6
+    <resultMap type="com.ruoyi.wisdomarbitrate.domain.dto.miniprogress.IdentityAuthentication" id="IdentityAuthenticationResult">
7
         <id     property="id"       column="id"      />
7
         <id     property="id"       column="id"      />
8
         <result property="name"       column="name"      />
8
         <result property="name"       column="name"      />
9
         <result property="identityNo"     column="identity_no"    />
9
         <result property="identityNo"     column="identity_no"    />
15
 
15
 
16
     </resultMap>
16
     </resultMap>
17
 
17
 
18
-    <insert id="insertIdentityAuthentication" parameterType="IdentityAuthentication" useGeneratedKeys="true" keyProperty="id">
18
+    <insert id="insertIdentityAuthentication" parameterType="com.ruoyi.wisdomarbitrate.domain.dto.miniprogress.IdentityAuthentication" useGeneratedKeys="true" keyProperty="id">
19
         insert into ms_identi_authenti(
19
         insert into ms_identi_authenti(
20
         <if test="userId != null">user_id,</if>
20
         <if test="userId != null">user_id,</if>
21
         <if test="idAddress != null and idAddress != ''">id_address,</if>
21
         <if test="idAddress != null and idAddress != ''">id_address,</if>
50
         where id = #{id}
50
         where id = #{id}
51
     </update>
51
     </update>
52
 
52
 
53
-    <select id="selectIdentityAuthentication" parameterType="IdentityAuthentication" resultMap="IdentityAuthenticationResult">
53
+    <select id="selectIdentityAuthentication" parameterType="com.ruoyi.wisdomarbitrate.domain.dto.miniprogress.IdentityAuthentication" resultMap="IdentityAuthenticationResult">
54
         SELECT  i.id ,i.name ,i.identity_no ,i.certification_time ,i.certification_status ,i.user_id ,i.user_name
54
         SELECT  i.id ,i.name ,i.identity_no ,i.certification_time ,i.certification_status ,i.user_id ,i.user_name
55
         from ms_identi_authenti i
55
         from ms_identi_authenti i
56
         <where>
56
         <where>

+ 1
- 1
ruoyi-system/src/main/resources/mapper/wisdomarbitrate/mscase/MsCaseAffiliateLogMapper.xml Näytä tiedosto

1
 <?xml version="1.0" encoding="UTF-8"?>
1
 <?xml version="1.0" encoding="UTF-8"?>
2
 <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
2
 <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
3
-<mapper namespace="com.ruoyi.system.mapper.mscase.MsCaseAffiliateLogMapper">
3
+<mapper namespace="com.ruoyi.wisdomarbitrate.mapper.mscase.MsCaseAffiliateLogMapper">
4
   <resultMap id="BaseResultMap" type="com.ruoyi.wisdomarbitrate.domain.entity.mscase.MsCaseAffiliateLog">
4
   <resultMap id="BaseResultMap" type="com.ruoyi.wisdomarbitrate.domain.entity.mscase.MsCaseAffiliateLog">
5
     <!--
5
     <!--
6
       WARNING - @mbg.generated
6
       WARNING - @mbg.generated

+ 1
- 1
ruoyi-system/src/main/resources/mapper/wisdomarbitrate/mscase/MsCaseApplicationMapper.xml Näytä tiedosto

1
 <?xml version="1.0" encoding="UTF-8"?>
1
 <?xml version="1.0" encoding="UTF-8"?>
2
 <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
2
 <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
3
-<mapper namespace="com.ruoyi.system.mapper.mscase.MsCaseApplicationMapper">
3
+<mapper namespace="com.ruoyi.wisdomarbitrate.mapper.mscase.MsCaseApplicationMapper">
4
   <resultMap id="BaseResultMap" type="com.ruoyi.wisdomarbitrate.domain.entity.mscase.MsCaseApplication">
4
   <resultMap id="BaseResultMap" type="com.ruoyi.wisdomarbitrate.domain.entity.mscase.MsCaseApplication">
5
     <!--
5
     <!--
6
       WARNING - @mbg.generated
6
       WARNING - @mbg.generated

+ 3
- 3
ruoyi-system/src/main/resources/mapper/wisdomarbitrate/mscase/MsCaseAttachLogMapper.xml Näytä tiedosto

3
         PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
3
         PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
4
         "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
4
         "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
5
 <mapper namespace="com.ruoyi.wisdomarbitrate.mapper.mscase.MsCaseAttachLogMapper">
5
 <mapper namespace="com.ruoyi.wisdomarbitrate.mapper.mscase.MsCaseAttachLogMapper">
6
-    <resultMap type="CaseAttach" id="CaseAttachResult">
6
+    <resultMap type="com.ruoyi.wisdomarbitrate.domain.dto.mscase.CaseAttach" id="CaseAttachResult">
7
         <id     property="annexId"       column="annex_id"      />
7
         <id     property="annexId"       column="annex_id"      />
8
         <result property="caseAppliId"       column="case_appli_id"      />
8
         <result property="caseAppliId"       column="case_appli_id"      />
9
         <result property="annexName"     column="annex_name"    />
9
         <result property="annexName"     column="annex_name"    />
81
         </where>
81
         </where>
82
     </select>
82
     </select>
83
 
83
 
84
-    <update id="updateCaseAttach" parameterType="CaseAttach">
84
+    <update id="updateCaseAttach" parameterType="com.ruoyi.wisdomarbitrate.domain.dto.mscase.CaseAttach">
85
         update ms_case_attach_log
85
         update ms_case_attach_log
86
         set
86
         set
87
             case_appli_log_id= #{caseAppliLogId}
87
             case_appli_log_id= #{caseAppliLogId}
88
         where annex_id = #{annexId}
88
         where annex_id = #{annexId}
89
     </update>
89
     </update>
90
 
90
 
91
-    <update id="updateCaseAttachBycaseid" parameterType="CaseAttach" >
91
+    <update id="updateCaseAttachBycaseid" parameterType="com.ruoyi.wisdomarbitrate.domain.dto.mscase.CaseAttach" >
92
         update ms_case_attach_log
92
         update ms_case_attach_log
93
         <set>
93
         <set>
94
             <if test="annexName != null and annexName != ''">annex_name = #{annexName},</if>
94
             <if test="annexName != null and annexName != ''">annex_name = #{annexName},</if>

+ 3
- 3
ruoyi-system/src/main/resources/mapper/wisdomarbitrate/mscase/MsCaseAttachMapper.xml Näytä tiedosto

3
         PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
3
         PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
4
         "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
4
         "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
5
 <mapper namespace="com.ruoyi.wisdomarbitrate.mapper.mscase.MsCaseAttachMapper">
5
 <mapper namespace="com.ruoyi.wisdomarbitrate.mapper.mscase.MsCaseAttachMapper">
6
-    <resultMap type="CaseAttach" id="CaseAttachResult">
6
+    <resultMap type="com.ruoyi.wisdomarbitrate.domain.dto.mscase.CaseAttach" id="CaseAttachResult">
7
         <id     property="annexId"       column="annex_id"      />
7
         <id     property="annexId"       column="annex_id"      />
8
         <result property="caseAppliId"       column="case_appli_id"      />
8
         <result property="caseAppliId"       column="case_appli_id"      />
9
         <result property="annexName"     column="annex_name"    />
9
         <result property="annexName"     column="annex_name"    />
96
         </where>
96
         </where>
97
     </select>
97
     </select>
98
 
98
 
99
-    <update id="updateCaseAttach" parameterType="CaseAttach">
99
+    <update id="updateCaseAttach" parameterType="com.ruoyi.wisdomarbitrate.domain.dto.mscase.CaseAttach">
100
         update ms_case_attach
100
         update ms_case_attach
101
         set
101
         set
102
         case_appli_id= #{caseAppliId}
102
         case_appli_id= #{caseAppliId}
103
         where annex_id = #{annexId}
103
         where annex_id = #{annexId}
104
     </update>
104
     </update>
105
 
105
 
106
-    <update id="updateCaseAttachBycaseid" parameterType="CaseAttach" >
106
+    <update id="updateCaseAttachBycaseid" parameterType="com.ruoyi.wisdomarbitrate.domain.dto.mscase.CaseAttach" >
107
         update ms_case_attach
107
         update ms_case_attach
108
         <set>
108
         <set>
109
             <if test="annexName != null and annexName != ''">annex_name = #{annexName},</if>
109
             <if test="annexName != null and annexName != ''">annex_name = #{annexName},</if>

+ 2
- 2
ruoyi-system/src/main/resources/mapper/wisdomarbitrate/sendrecord/SendMailRecordMapper.xml Näytä tiedosto

4
         "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
4
         "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
5
 <mapper namespace="com.ruoyi.wisdomarbitrate.mapper.sendrecord.SendMailRecordMapper">
5
 <mapper namespace="com.ruoyi.wisdomarbitrate.mapper.sendrecord.SendMailRecordMapper">
6
 
6
 
7
-    <resultMap type="SendMailRecord" id="SendMailRecordResult">
7
+    <resultMap type="com.ruoyi.wisdomarbitrate.domain.dto.sendrecord.SendMailRecord" id="SendMailRecordResult">
8
         <id     property="id"       column="id"      />
8
         <id     property="id"       column="id"      />
9
         <result property="mailName"       column="mail_name"      />
9
         <result property="mailName"       column="mail_name"      />
10
         <result property="mailContent"     column="mail_content"    />
10
         <result property="mailContent"     column="mail_content"    />
16
 
16
 
17
     </resultMap>
17
     </resultMap>
18
 
18
 
19
-    <select id="selectSendMailRecord" parameterType="SendMailRecord" resultMap="SendMailRecordResult">
19
+    <select id="selectSendMailRecord" parameterType="com.ruoyi.wisdomarbitrate.domain.dto.sendrecord.SendMailRecord" resultMap="SendMailRecordResult">
20
         SELECT s.id ,s.mail_name ,s.mail_content ,s.mail_address ,s.send_time ,s.case_id ,s.create_time ,s.create_by ,
20
         SELECT s.id ,s.mail_name ,s.mail_content ,s.mail_address ,s.send_time ,s.case_id ,s.create_time ,s.create_by ,
21
         s.update_by ,s.update_time , s.send_status ,c.case_num
21
         s.update_by ,s.update_time , s.send_status ,c.case_num
22
         from send_mail_record s left join ms_case_application c
22
         from send_mail_record s left join ms_case_application c

+ 3
- 3
ruoyi-system/src/main/resources/mapper/wisdomarbitrate/sendrecord/SmsRecordMapper.xml Näytä tiedosto

4
         "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
4
         "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
5
 
5
 
6
 <mapper namespace="com.ruoyi.wisdomarbitrate.mapper.sendrecord.SmsRecordMapper">
6
 <mapper namespace="com.ruoyi.wisdomarbitrate.mapper.sendrecord.SmsRecordMapper">
7
-    <resultMap type="SmsSendRecord" id="SmsSendRecordResult">
7
+    <resultMap type="com.ruoyi.wisdomarbitrate.domain.dto.sendrecord.SmsSendRecord" id="SmsSendRecordResult">
8
         <id     property="id"       column="id"      />
8
         <id     property="id"       column="id"      />
9
         <result property="caseId"       column="case_appli_id"      />
9
         <result property="caseId"       column="case_appli_id"      />
10
         <result property="caseNum"       column="case_num"      />
10
         <result property="caseNum"       column="case_num"      />
17
         <result property="updateBy"   column="update_by"  />
17
         <result property="updateBy"   column="update_by"  />
18
         <result property="sendStatus"   column="send_status"  />
18
         <result property="sendStatus"   column="send_status"  />
19
     </resultMap>
19
     </resultMap>
20
-    <insert id="saveSmsSendRecord" parameterType="SmsSendRecord" useGeneratedKeys="true" keyProperty="id">
20
+    <insert id="saveSmsSendRecord" parameterType="com.ruoyi.wisdomarbitrate.domain.dto.sendrecord.SmsSendRecord" useGeneratedKeys="true" keyProperty="id">
21
 
21
 
22
         insert into sms_send_record(
22
         insert into sms_send_record(
23
         <if test="caseId != null ">case_appli_id,</if>
23
         <if test="caseId != null ">case_appli_id,</if>
65
         </foreach>
65
         </foreach>
66
     </insert>
66
     </insert>
67
 
67
 
68
-    <select id="getSmsSendRecord" parameterType="SmsSendRecord" resultMap="SmsSendRecordResult">
68
+    <select id="getSmsSendRecord" parameterType="com.ruoyi.wisdomarbitrate.domain.dto.sendrecord.SmsSendRecord" resultMap="SmsSendRecordResult">
69
 
69
 
70
         select id ,case_appli_id ,case_num ,phone ,send_time ,send_content,send_status
70
         select id ,case_appli_id ,case_num ,phone ,send_time ,send_content,send_status
71
         from sms_send_record
71
         from sms_send_record

+ 7
- 7
ruoyi-system/src/main/resources/mapper/wisdomarbitrate/template/FatchRuleMapper.xml Näytä tiedosto

19
     <select id="listByTemplateId" resultMap="BaseResultMap">
19
     <select id="listByTemplateId" resultMap="BaseResultMap">
20
         select f.id ,f.file_name ,f.start_content ,f.end_content ,
20
         select f.id ,f.file_name ,f.start_content ,f.end_content ,
21
         f.`column` , ifnull(f.is_default,0) is_default ,f.`column_name`,ifnull(f.start_content_repeat_order,1) start_content_repeat_order,ifnull(f.end_content_repeat_order,1) end_content_repeat_order,ifnull(f.fatch_order,0) fatch_order
21
         f.`column` , ifnull(f.is_default,0) is_default ,f.`column_name`,ifnull(f.start_content_repeat_order,1) start_content_repeat_order,ifnull(f.end_content_repeat_order,1) end_content_repeat_order,ifnull(f.fatch_order,0) fatch_order
22
-         from ms_fatch_rule f join ms_template_fatch_rule tfr on f.id=tfr.ms_fatch_rule_id
22
+         from ms_fatch_rule f join ms_template_fatch_rule tfr on f.id=tfr.fatch_rule_id
23
         where tfr.template_id=#{templateId}
23
         where tfr.template_id=#{templateId}
24
     </select>
24
     </select>
25
 
25
 
26
-    <select id="selectFatchRuleList" parameterType="FatchRule" resultMap="BaseResultMap">
26
+    <select id="selectFatchRuleList" parameterType="com.ruoyi.wisdomarbitrate.domain.dto.template.FatchRule" resultMap="BaseResultMap">
27
         SELECT f.id ,f.file_name ,f.start_content ,f.end_content ,
27
         SELECT f.id ,f.file_name ,f.start_content ,f.end_content ,
28
         f.`column` ,f.is_default ,f.`column_name`,f.start_content_repeat_order,f.end_content_repeat_order,f.fatch_order
28
         f.`column` ,f.is_default ,f.`column_name`,f.start_content_repeat_order,f.end_content_repeat_order,f.fatch_order
29
         FROM ms_template_fatch_rule tf
29
         FROM ms_template_fatch_rule tf
30
         left join ms_template_manage t on tf.template_id  = t.id
30
         left join ms_template_manage t on tf.template_id  = t.id
31
-        LEFT JOIN ms_fatch_rule f on tf.ms_fatch_rule_id  = f.id
31
+        LEFT JOIN ms_fatch_rule f on tf.fatch_rule_id  = f.id
32
         <where>
32
         <where>
33
             <if test="templateId != null">
33
             <if test="templateId != null">
34
                 AND tf.template_id  = #{templateId}
34
                 AND tf.template_id  = #{templateId}
36
         </where>
36
         </where>
37
     </select>
37
     </select>
38
 
38
 
39
-    <select id="selectColumnandComment"  parameterType="FatchRule"  resultMap="BaseResultMap">
39
+    <select id="selectColumnandComment"  parameterType="com.ruoyi.wisdomarbitrate.domain.dto.template.FatchRule"  resultMap="BaseResultMap">
40
         select
40
         select
41
             a.COLUMN_name as `column`,
41
             a.COLUMN_name as `column`,
42
             a.COLumn_comment as column_name
42
             a.COLumn_comment as column_name
56
 
56
 
57
     </select>
57
     </select>
58
 
58
 
59
-    <select id="selectColumnbycomment"  parameterType="FatchRule"  resultMap="BaseResultMap">
59
+    <select id="selectColumnbycomment"  parameterType="com.ruoyi.wisdomarbitrate.domain.dto.template.FatchRule"  resultMap="BaseResultMap">
60
         select
60
         select
61
               COLUMN_NAME
61
               COLUMN_NAME
62
         from
62
         from
69
     </select>
69
     </select>
70
 
70
 
71
 
71
 
72
-    <select id="selectFatchRuleListIsDefault" parameterType="FatchRule" resultMap="BaseResultMap">
72
+    <select id="selectFatchRuleListIsDefault" parameterType="com.ruoyi.wisdomarbitrate.domain.dto.template.FatchRule" resultMap="BaseResultMap">
73
         SELECT f.id ,f.file_name ,f.start_content ,f.end_content ,
73
         SELECT f.id ,f.file_name ,f.start_content ,f.end_content ,
74
         f.`column` ,f.is_default ,f.`column_name`
74
         f.`column` ,f.is_default ,f.`column_name`
75
         FROM ms_fatch_rule f
75
         FROM ms_fatch_rule f
87
         </foreach>
87
         </foreach>
88
     </delete>
88
     </delete>
89
 
89
 
90
-    <insert id="insertFatchRule" parameterType="FatchRule" useGeneratedKeys="true" keyProperty="id">
90
+    <insert id="insertFatchRule" parameterType="com.ruoyi.wisdomarbitrate.domain.dto.template.FatchRule" useGeneratedKeys="true" keyProperty="id">
91
         insert into ms_fatch_rule(
91
         insert into ms_fatch_rule(
92
         <if test="fileName != null and fileName != ''">file_name,</if>
92
         <if test="fileName != null and fileName != ''">file_name,</if>
93
         <if test="startContent != null and startContent != ''">start_content,</if>
93
         <if test="startContent != null and startContent != ''">start_content,</if>

+ 3
- 3
ruoyi-system/src/main/resources/mapper/wisdomarbitrate/template/TemplateFatchRuleMapper.xml Näytä tiedosto

10
         <result column="fatch_rule_id" property="fatchRuleId" />
10
         <result column="fatch_rule_id" property="fatchRuleId" />
11
     </resultMap>
11
     </resultMap>
12
 
12
 
13
-    <select id="selectTemplateFatchRulecount" parameterType="TemplateFatchRule"   resultType="Integer">
13
+    <select id="selectTemplateFatchRulecount" parameterType="com.ruoyi.wisdomarbitrate.domain.vo.template.TemplateFatchRule"   resultType="Integer">
14
         select count(1) from  ms_template_fatch_rule t
14
         select count(1) from  ms_template_fatch_rule t
15
         <where>
15
         <where>
16
             <if test="templateId != null">
16
             <if test="templateId != null">
19
         </where>
19
         </where>
20
     </select>
20
     </select>
21
 
21
 
22
-    <select id="selectTemplateFatchRuleList" parameterType="TemplateFatchRule" resultMap="BaseResultMap">
22
+    <select id="selectTemplateFatchRuleList" parameterType="com.ruoyi.wisdomarbitrate.domain.vo.template.TemplateFatchRule" resultMap="BaseResultMap">
23
         SELECT t.id ,t.template_id ,t.fatch_rule_id
23
         SELECT t.id ,t.template_id ,t.fatch_rule_id
24
         from ms_template_fatch_rule t
24
         from ms_template_fatch_rule t
25
         <where>
25
         <where>
35
 		delete from ms_template_fatch_rule where template_id=#{id}
35
 		delete from ms_template_fatch_rule where template_id=#{id}
36
 	</delete>
36
 	</delete>
37
 
37
 
38
-    <insert id="insertTemplateFatchRule" parameterType="TemplateFatchRule" useGeneratedKeys="true" keyProperty="id">
38
+    <insert id="insertTemplateFatchRule" parameterType="com.ruoyi.wisdomarbitrate.domain.vo.template.TemplateFatchRule" useGeneratedKeys="true" keyProperty="id">
39
         insert into ms_template_fatch_rule(
39
         insert into ms_template_fatch_rule(
40
         <if test="templateId != null">template_id,</if>
40
         <if test="templateId != null">template_id,</if>
41
         <if test="fatchRuleId != null">fatch_rule_id</if>
41
         <if test="fatchRuleId != null">fatch_rule_id</if>

+ 4
- 4
ruoyi-system/src/main/resources/mapper/wisdomarbitrate/template/TemplateManageMapper.xml Näytä tiedosto

3
         PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
3
         PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
4
         "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
4
         "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
5
 <mapper namespace="com.ruoyi.wisdomarbitrate.mapper.template.TemplateManageMapper">
5
 <mapper namespace="com.ruoyi.wisdomarbitrate.mapper.template.TemplateManageMapper">
6
-    <resultMap type="TemplateManage" id="TemplateManageResult">
6
+    <resultMap type="com.ruoyi.wisdomarbitrate.domain.dto.template.TemplateManage" id="TemplateManageResult">
7
         <id     property="id"       column="id"      />
7
         <id     property="id"       column="id"      />
8
         <result property="identifyId"     column="identify_id"    />
8
         <result property="identifyId"     column="identify_id"    />
9
         <result property="temName"        column="tem_name"        />
9
         <result property="temName"        column="tem_name"        />
15
         <result property="fileName"     column="file_name"     />
15
         <result property="fileName"     column="file_name"     />
16
     </resultMap>
16
     </resultMap>
17
 
17
 
18
-    <insert id="insertTemplateManage" parameterType="TemplateManage" useGeneratedKeys="true" keyProperty="id">
18
+    <insert id="insertTemplateManage" parameterType="com.ruoyi.wisdomarbitrate.domain.dto.template.TemplateManage" useGeneratedKeys="true" keyProperty="id">
19
         insert into ms_template_manage(
19
         insert into ms_template_manage(
20
         <if test="identifyId != null">identify_id,</if>
20
         <if test="identifyId != null">identify_id,</if>
21
         <if test="temName != null and temName != ''">tem_name,</if>
21
         <if test="temName != null and temName != ''">tem_name,</if>
39
         )
39
         )
40
     </insert>
40
     </insert>
41
 
41
 
42
-    <update id="updateTemplateManage" parameterType="TemplateManage">
42
+    <update id="updateTemplateManage" parameterType="com.ruoyi.wisdomarbitrate.domain.dto.template.TemplateManage">
43
         update ms_template_manage
43
         update ms_template_manage
44
         <set>
44
         <set>
45
             <if test="identifyId != null">identify_id = #{identifyId},</if>
45
             <if test="identifyId != null">identify_id = #{identifyId},</if>
61
         </where>
61
         </where>
62
     </update>
62
     </update>
63
 
63
 
64
-    <select id="selectTemplateList" parameterType="TemplateManage" resultMap="TemplateManageResult">
64
+    <select id="selectTemplateList" parameterType="com.ruoyi.wisdomarbitrate.domain.dto.template.TemplateManage" resultMap="TemplateManageResult">
65
         SELECT  id, identify_id ,tem_name , tem_type,tem_format,tem_orig_path,tem_revis_path ,file_name
65
         SELECT  id, identify_id ,tem_name , tem_type,tem_format,tem_orig_path,tem_revis_path ,file_name
66
         FROM  ms_template_manage
66
         FROM  ms_template_manage
67
         <where>
67
         <where>