diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/wisdomarbitrate/mscase/MsCaseApplicationController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/wisdomarbitrate/mscase/MsCaseApplicationController.java new file mode 100644 index 0000000..7020740 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/wisdomarbitrate/mscase/MsCaseApplicationController.java @@ -0,0 +1,43 @@ +package com.ruoyi.web.controller.wisdomarbitrate.mscase; + +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.wisdomarbitrate.domain.entity.mscase.MsCaseLogRecord; +import com.ruoyi.wisdomarbitrate.service.mscase.MsCaseLogRecordService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; + +import java.util.List; +/** + * 案件列表控制层 + * @Author wangqiong + * @Date 2024/01/8 + * @Version V1.0 + */ +@RestController +@RequestMapping("/caseApplication") +public class MsCaseApplicationController extends BaseController { + @Autowired + private MsCaseLogRecordService caseLogRecordService; + + /** + * 查询案件日志列表 + */ + @PreAuthorize("@ss.hasPermi('caseLog:list')") + @GetMapping("/list") + public AjaxResult list(MsCaseLogRecord caseLogRecord) + { + List list = caseLogRecordService.selectCaseLogRecordList(caseLogRecord); + return AjaxResult.success(list); + } + + + + + + + +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/wisdomarbitrate/mscase/MsCaseLogRecordController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/wisdomarbitrate/mscase/MsCaseLogRecordController.java index 54e2962..ca93c64 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/wisdomarbitrate/mscase/MsCaseLogRecordController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/wisdomarbitrate/mscase/MsCaseLogRecordController.java @@ -2,7 +2,6 @@ package com.ruoyi.web.controller.wisdomarbitrate.mscase; import com.ruoyi.common.core.controller.BaseController; import com.ruoyi.common.core.domain.AjaxResult; -import com.ruoyi.wisdomarbitrate.domain.dto.mscase.CaseLogRecord; import com.ruoyi.wisdomarbitrate.domain.entity.mscase.MsCaseLogRecord; import com.ruoyi.wisdomarbitrate.service.mscase.MsCaseLogRecordService; import org.springframework.beans.factory.annotation.Autowired; @@ -12,7 +11,12 @@ import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; import java.util.List; - +/** + * 案件日志控制层 + * @Author wangqiong + * @Date 2024/01/8 + * @Version V1.0 + */ @RestController @RequestMapping("/caseLogRecord") public class MsCaseLogRecordController extends BaseController { diff --git a/ruoyi-admin/src/main/resources/application-druid.yml b/ruoyi-admin/src/main/resources/application-druid.yml index 77d08a9..a11c80d 100644 --- a/ruoyi-admin/src/main/resources/application-druid.yml +++ b/ruoyi-admin/src/main/resources/application-druid.yml @@ -6,7 +6,7 @@ spring: druid: # 主库数据源 master: - url: jdbc:mysql://121.40.189.20:3306/mediation_system?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=Asia/Shanghai&useSSL=false + 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 username: root password: YMzc157# # 从库数据源 diff --git a/ruoyi-admin/src/main/resources/application.yml b/ruoyi-admin/src/main/resources/application.yml index 96fca58..de1a7fa 100644 --- a/ruoyi-admin/src/main/resources/application.yml +++ b/ruoyi-admin/src/main/resources/application.yml @@ -18,7 +18,7 @@ ruoyi: # 开发环境配置 server: # 服务器的HTTP端口,默认为8080 - port: 8001 + port: 6001 servlet: # 应用的访问路径 context-path: / diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/handler/ResponseBodyAdviceHandler.java b/ruoyi-common/src/main/java/com/ruoyi/common/handler/ResponseBodyAdviceHandler.java index bb8c126..834d47a 100644 --- a/ruoyi-common/src/main/java/com/ruoyi/common/handler/ResponseBodyAdviceHandler.java +++ b/ruoyi-common/src/main/java/com/ruoyi/common/handler/ResponseBodyAdviceHandler.java @@ -1,5 +1,6 @@ package com.ruoyi.common.handler; +import cn.hutool.core.collection.CollectionUtil; import cn.hutool.core.util.ObjectUtil; import cn.hutool.core.util.StrUtil; import com.fasterxml.jackson.core.JsonProcessingException; @@ -17,9 +18,11 @@ import org.springframework.http.server.ServerHttpRequest; import org.springframework.http.server.ServerHttpResponse; import org.springframework.web.bind.annotation.RestControllerAdvice; import org.springframework.web.servlet.mvc.method.annotation.ResponseBodyAdvice; + import java.lang.reflect.Field; import java.util.ArrayList; import java.util.List; +import java.util.Optional; /** @@ -39,18 +42,27 @@ public class ResponseBodyAdviceHandler implements ResponseBodyAdvice { @Override public Object beforeBodyWrite(Object body, MethodParameter methodParameter, MediaType mediaType, Class aClass, ServerHttpRequest request, ServerHttpResponse serverHttpResponse) { - if (body instanceof String) { - ObjectMapper om = new ObjectMapper(); - try { - return om.writeValueAsString(AjaxResult.success(body)); - } catch (JsonProcessingException e) { - log.error("JsonProcessingException e:{}", e); + + if (body instanceof AjaxResult) { + AjaxResult result = (AjaxResult) body; + if (ObjectUtil.isNotEmpty(result.get("data"))) { + //判断类型,然后转换字典 + turnType(body); + return body; + } + } else if (body instanceof TableDataInfo) { + TableDataInfo pageRes = (TableDataInfo) body; + List list = pageRes.getRows(); + if (CollectionUtil.isNotEmpty(list)) { + //判断类型,然后转换字典 + turnType(body); + return body; } } - //判断类型,然后转换字典 - turnType(body); - AjaxResult result = AjaxResult.success(body); - return result; + return body; + + + } /** @@ -61,17 +73,17 @@ public class ResponseBodyAdviceHandler implements ResponseBodyAdvice { private void turnType(Object body) { if (body instanceof AjaxResult) { AjaxResult result = (AjaxResult) body; - if(result.isSuccess()){ + if (result.isSuccess()) { Object data = result.get("data"); - if(data!=null){ - if(data instanceof List){ + if (data != null) { + if (data instanceof List) { List list = (List) data; convertList(list); - }else if(data instanceof TableDataInfo){ + } else if (data instanceof TableDataInfo) { TableDataInfo pageRes = (TableDataInfo) data; List list = pageRes.getRows(); convertList(list); - }else{ + } else { loopTurn(data); } } @@ -185,20 +197,20 @@ public class ResponseBodyAdviceHandler implements ResponseBodyAdvice { if (targetField != null) { targetField.setAccessible(true); String dictType = dictConvert.dictType(); - if(StrUtil.isEmpty(dictType)){ + if (StrUtil.isEmpty(dictType)) { return; } //单个字典时直接设置值 if (!dictConvert.isMultiple()) { - targetField.set(obj, ObjectUtil.isNotEmpty( DictUtils.getDictLabel(dictType,key)) ? DictUtils.getDictLabel(dictType,key):null); + targetField.set(obj, ObjectUtil.isNotEmpty(DictUtils.getDictLabel(dictType, key)) ? DictUtils.getDictLabel(dictType, key) : null); } else { //多个字典时,用逗号拼接值 List textList = new ArrayList<>(); String[] ids = key.split(dictConvert.separator()); for (String id : ids) { - if (ObjectUtil.isNotEmpty(DictUtils.getDictLabel(dictType,id))&&StrUtil.isNotEmpty(DictUtils.getDictLabel(dictType,id))) { - textList.add(DictUtils.getDictLabel(dictType,id)); + if (ObjectUtil.isNotEmpty(DictUtils.getDictLabel(dictType, id)) && StrUtil.isNotEmpty(DictUtils.getDictLabel(dictType, id))) { + textList.add(DictUtils.getDictLabel(dictType, id)); } } targetField.set(obj, StrUtil.join(dictConvert.separator(), textList)); @@ -210,6 +222,7 @@ public class ResponseBodyAdviceHandler implements ResponseBodyAdvice { } } } + /** * 获取目标属性 * diff --git a/ruoyi-quartz/src/main/resources/mapper/quartz/SysJobLogMapper.xml b/ruoyi-quartz/src/main/resources/mapper/quartz/SysJobLogMapper.xml index 3665e83..704c850 100644 --- a/ruoyi-quartz/src/main/resources/mapper/quartz/SysJobLogMapper.xml +++ b/ruoyi-quartz/src/main/resources/mapper/quartz/SysJobLogMapper.xml @@ -4,7 +4,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> - + @@ -20,7 +20,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" from ms_sys_job_log - @@ -68,7 +68,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" truncate table ms_sys_job_log - + insert into ms_sys_job_log( job_log_id, job_name, diff --git a/ruoyi-quartz/src/main/resources/mapper/quartz/SysJobMapper.xml b/ruoyi-quartz/src/main/resources/mapper/quartz/SysJobMapper.xml index c8ed10e..825879a 100644 --- a/ruoyi-quartz/src/main/resources/mapper/quartz/SysJobMapper.xml +++ b/ruoyi-quartz/src/main/resources/mapper/quartz/SysJobMapper.xml @@ -4,7 +4,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> - + @@ -25,7 +25,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" from ms_sys_job - @@ -63,7 +63,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" - + update ms_sys_job job_name = #{jobName}, @@ -80,7 +80,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" where job_id = #{jobId} - + insert into ms_sys_job( job_id, job_name, diff --git a/ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/mapper/miniprogress/IdentityAuthenticationMapper.java b/ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/mapper/miniprogress/IdentityAuthenticationMapper.java index 045e14d..d5d7727 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/mapper/miniprogress/IdentityAuthenticationMapper.java +++ b/ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/mapper/miniprogress/IdentityAuthenticationMapper.java @@ -5,6 +5,7 @@ import com.ruoyi.wisdomarbitrate.domain.dto.miniprogress.IdentityAuthentication; public interface IdentityAuthenticationMapper { int insertIdentityAuthentication(IdentityAuthentication identityAuthentication); IdentityAuthentication selectIdentityAuthentication(IdentityAuthentication identityAuthentication); + Integer selectCountIdentityAuthentication(IdentityAuthentication identityAuthentication); void updateIdentityAuthentication(IdentityAuthentication ientityAuthentication); diff --git a/ruoyi-system/src/main/resources/generator/config.properties b/ruoyi-system/src/main/resources/generator/config.properties index c326d39..1add6ba 100644 --- a/ruoyi-system/src/main/resources/generator/config.properties +++ b/ruoyi-system/src/main/resources/generator/config.properties @@ -3,10 +3,10 @@ jdbc.url=jdbc:mysql://121.40.189.20:3306/mediation_system?serverTimezone=Asia/Sh jdbc.user=root jdbc.password=YMzc157# #目标模块项目路径 -targetprojectpath=D:/ymPro/Mediation-Backend/ruoyi-system +targetprojectpath=D:/ymPro/Mediation-Backend/ruoyi-system/src/main/resources/mapper/wisdomarbitrate #模块名称 moduleName=mscase #表名 -tableName=ms_case_application +tableName=ms_case_affiliate #主键 premaryId=id diff --git a/ruoyi-system/src/main/resources/generator/generatorConfig.xml b/ruoyi-system/src/main/resources/generator/generatorConfig.xml index f2c0694..b28ee29 100644 --- a/ruoyi-system/src/main/resources/generator/generatorConfig.xml +++ b/ruoyi-system/src/main/resources/generator/generatorConfig.xml @@ -21,13 +21,13 @@ password="${jdbc.password}"> - - - diff --git a/ruoyi-system/src/main/resources/mapper/system/SysConfigMapper.xml b/ruoyi-system/src/main/resources/mapper/system/SysConfigMapper.xml index 19bb650..330350a 100644 --- a/ruoyi-system/src/main/resources/mapper/system/SysConfigMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/system/SysConfigMapper.xml @@ -4,7 +4,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> - + @@ -33,12 +33,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" - - @@ -69,7 +69,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" where config_key = #{configKey} limit 1 - + insert into ms_sys_config ( config_name, config_key, @@ -89,7 +89,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ) - + update ms_sys_config config_name = #{configName}, diff --git a/ruoyi-system/src/main/resources/mapper/system/SysDeptMapper.xml b/ruoyi-system/src/main/resources/mapper/system/SysDeptMapper.xml index dd920cb..1b71c1a 100644 --- a/ruoyi-system/src/main/resources/mapper/system/SysDeptMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/system/SysDeptMapper.xml @@ -4,7 +4,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> - + @@ -28,7 +28,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" from ms_sys_dept d - where d.del_flag = '0' @@ -92,7 +92,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" join ms_sys_user u on r.role_id=#{roleId} and r.user_id=u.user_id - + insert into ms_sys_dept( dept_id, parent_id, @@ -155,7 +155,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" - + update ms_sys_dept parent_id = #{parentId}, diff --git a/ruoyi-system/src/main/resources/mapper/system/SysDictDataMapper.xml b/ruoyi-system/src/main/resources/mapper/system/SysDictDataMapper.xml index 10cab80..97145e5 100644 --- a/ruoyi-system/src/main/resources/mapper/system/SysDictDataMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/system/SysDictDataMapper.xml @@ -4,7 +4,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> - + @@ -25,7 +25,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" from ms_sys_dict_data - @@ -41,7 +41,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" order by dict_sort asc - where status = '0' and dict_type = #{dictType} order by dict_sort asc @@ -71,7 +71,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" - + update ms_sys_dict_data dict_sort = #{dictSort}, @@ -93,7 +93,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" update ms_sys_dict_data set dict_type = #{newDictType} where dict_type = #{oldDictType} - + insert into ms_sys_dict_data( dict_sort, dict_label, diff --git a/ruoyi-system/src/main/resources/mapper/system/SysDictTypeMapper.xml b/ruoyi-system/src/main/resources/mapper/system/SysDictTypeMapper.xml index 4bdf4c1..2dd0c91 100644 --- a/ruoyi-system/src/main/resources/mapper/system/SysDictTypeMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/system/SysDictTypeMapper.xml @@ -4,7 +4,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> - + @@ -20,7 +20,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" from ms_sys_dict_type - @@ -71,7 +71,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" - + update ms_sys_dict_type dict_name = #{dictName}, @@ -84,7 +84,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" where dict_id = #{dictId} - + insert into ms_sys_dict_type( dict_name, dict_type, diff --git a/ruoyi-system/src/main/resources/mapper/system/SysLogininforMapper.xml b/ruoyi-system/src/main/resources/mapper/system/SysLogininforMapper.xml index 37179ab..5560aa9 100644 --- a/ruoyi-system/src/main/resources/mapper/system/SysLogininforMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/system/SysLogininforMapper.xml @@ -4,7 +4,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> - + @@ -16,12 +16,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" - + insert into ms_sys_logininfor (user_name, status, ipaddr, login_location, browser, os, msg, login_time) values (#{userName}, #{status}, #{ipaddr}, #{loginLocation}, #{browser}, #{os}, #{msg}, sysdate()) - select info_id, user_name, ipaddr, login_location, browser, os, status, msg, login_time from ms_sys_logininfor diff --git a/ruoyi-system/src/main/resources/mapper/system/SysMenuMapper.xml b/ruoyi-system/src/main/resources/mapper/system/SysMenuMapper.xml index 0452bc1..f600eb8 100644 --- a/ruoyi-system/src/main/resources/mapper/system/SysMenuMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/system/SysMenuMapper.xml @@ -4,7 +4,7 @@ "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> - + @@ -32,7 +32,7 @@ from ms_sys_menu - @@ -54,7 +54,7 @@ order by m.parent_id, m.order_num - 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 from ms_sys_menu m left join ms_ms_sys_role_menu rm on m.menu_id = rm.menu_id @@ -127,12 +127,12 @@ select count(1) from ms_sys_menu where parent_id = #{menuId} - where menu_name=#{menuName} and parent_id = #{parentId} limit 1 - + update ms_sys_menu menu_name = #{menuName}, @@ -155,7 +155,7 @@ where menu_id = #{menuId} - + insert into ms_sys_menu( menu_id, parent_id, diff --git a/ruoyi-system/src/main/resources/mapper/system/SysNoticeMapper.xml b/ruoyi-system/src/main/resources/mapper/system/SysNoticeMapper.xml index 938fbbb..acb6ceb 100644 --- a/ruoyi-system/src/main/resources/mapper/system/SysNoticeMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/system/SysNoticeMapper.xml @@ -4,7 +4,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> - + @@ -27,7 +27,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" where notice_id = #{noticeId} - @@ -42,7 +42,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" - + insert into ms_sys_notice ( notice_title, notice_type, @@ -62,7 +62,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ) - + update ms_sys_notice notice_title = #{noticeTitle}, diff --git a/ruoyi-system/src/main/resources/mapper/system/SysOperLogMapper.xml b/ruoyi-system/src/main/resources/mapper/system/SysOperLogMapper.xml index ecc009b..9c25c5b 100644 --- a/ruoyi-system/src/main/resources/mapper/system/SysOperLogMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/system/SysOperLogMapper.xml @@ -4,7 +4,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> - + @@ -29,12 +29,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" from ms_sys_oper_log - + 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) values (#{title}, #{businessType}, #{method}, #{requestMethod}, #{operatorType}, #{operName}, #{deptName}, #{operUrl}, #{operIp}, #{operLocation}, #{operParam}, #{jsonResult}, #{status}, #{errorMsg}, #{costTime}, sysdate()) - diff --git a/ruoyi-system/src/main/resources/mapper/system/SysPostMapper.xml b/ruoyi-system/src/main/resources/mapper/system/SysPostMapper.xml index 960fa87..8359840 100644 --- a/ruoyi-system/src/main/resources/mapper/system/SysPostMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/system/SysPostMapper.xml @@ -4,7 +4,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> - + @@ -22,7 +22,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" from ms_sys_post - @@ -77,7 +77,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" where post_code=#{postCode} limit 1 - + update ms_sys_post post_code = #{postCode}, @@ -91,7 +91,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" where post_id = #{postId} - + insert into ms_sys_post( post_id, post_code, diff --git a/ruoyi-system/src/main/resources/mapper/system/SysRoleDeptMapper.xml b/ruoyi-system/src/main/resources/mapper/system/SysRoleDeptMapper.xml index 0b46a7b..406c4fb 100644 --- a/ruoyi-system/src/main/resources/mapper/system/SysRoleDeptMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/system/SysRoleDeptMapper.xml @@ -4,7 +4,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> - + diff --git a/ruoyi-system/src/main/resources/mapper/system/SysRoleMapper.xml b/ruoyi-system/src/main/resources/mapper/system/SysRoleMapper.xml index d196e06..4261a35 100644 --- a/ruoyi-system/src/main/resources/mapper/system/SysRoleMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/system/SysRoleMapper.xml @@ -4,7 +4,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> - + @@ -25,12 +25,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" 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, r.status, r.del_flag, r.create_time, r.remark from ms_sys_role r - left join ms_ms_sys_user_role ur on ur.role_id = r.role_id + left join ms_sys_user_role ur on ur.role_id = r.role_id left join ms_sys_user u on u.user_id = ur.user_id left join ms_sys_dept d on u.dept_id = d.dept_id - where r.del_flag = '0' @@ -68,7 +68,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" @@ -96,7 +96,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" select role_id from ms_sys_role where role_name=#{roleName} - + insert into ms_sys_role( role_id, role_name, @@ -124,7 +124,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ) - + update ms_sys_role role_name = #{roleName}, diff --git a/ruoyi-system/src/main/resources/mapper/system/SysRoleMenuMapper.xml b/ruoyi-system/src/main/resources/mapper/system/SysRoleMenuMapper.xml index ee52afa..88b48fd 100644 --- a/ruoyi-system/src/main/resources/mapper/system/SysRoleMenuMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/system/SysRoleMenuMapper.xml @@ -4,7 +4,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> - + diff --git a/ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml b/ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml index 4b2f4a4..2703a6b 100644 --- a/ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml @@ -4,7 +4,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> - + @@ -25,11 +25,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" - + - + @@ -40,7 +40,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" - + @@ -59,7 +59,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" left join ms_sys_role r on r.role_id = ur.role_id - 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, d.leader , r.role_id, r.role_name, d.dept_id from ms_sys_user u @@ -92,7 +92,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ${params.dataScope} - 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 from ms_sys_user u left join ms_sys_dept d on u.dept_id = d.dept_id @@ -109,7 +109,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ${params.dataScope} - 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 from ms_sys_user u left join ms_sys_dept d on u.dept_id = d.dept_id @@ -156,25 +156,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" - - + insert into ms_sys_user( user_id, dept_id, @@ -290,7 +271,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ; - + update ms_sys_user dept_id = #{deptId}, @@ -313,15 +294,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" where user_id = #{userId} - - update ms_sys_user set status = #{status} where user_id = #{userId} - - - + update ms_sys_user set avatar = #{avatar} where user_name = #{userName} - + update ms_sys_user set password = #{password} where user_name = #{userName} diff --git a/ruoyi-system/src/main/resources/mapper/system/SysUserPostMapper.xml b/ruoyi-system/src/main/resources/mapper/system/SysUserPostMapper.xml index 0573881..fee99e0 100644 --- a/ruoyi-system/src/main/resources/mapper/system/SysUserPostMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/system/SysUserPostMapper.xml @@ -4,7 +4,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> - + diff --git a/ruoyi-system/src/main/resources/mapper/system/SysUserRoleMapper.xml b/ruoyi-system/src/main/resources/mapper/system/SysUserRoleMapper.xml index f0a1fef..cd9ae83 100644 --- a/ruoyi-system/src/main/resources/mapper/system/SysUserRoleMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/system/SysUserRoleMapper.xml @@ -4,7 +4,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> - + @@ -31,7 +31,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" - + delete from ms_sys_user_role where user_id=#{userId} and role_id=#{roleId} diff --git a/ruoyi-system/src/main/resources/mapper/wisdomarbitrate/casenumrule/CaseNumRuleMapper.xml b/ruoyi-system/src/main/resources/mapper/wisdomarbitrate/casenumrule/CaseNumRuleMapper.xml index 28c5c2c..a100a81 100644 --- a/ruoyi-system/src/main/resources/mapper/wisdomarbitrate/casenumrule/CaseNumRuleMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/wisdomarbitrate/casenumrule/CaseNumRuleMapper.xml @@ -13,7 +13,7 @@ - + insert into ms_case_num_rule( rule_type, prefixstr, @@ -35,7 +35,7 @@ ) - + update ms_case_num_rule rule_type = #{ruleType}, @@ -51,11 +51,11 @@ - + delete from ms_case_num_rule where id = #{id} - SELECT id, rule_type ,prefixstr , date_format,dept_name,dept_name_firchar,current_num FROM ms_case_num_rule @@ -90,7 +90,7 @@ - SELECT id, rule_type ,prefixstr , date_format,dept_name,dept_name_firchar,current_num FROM ms_case_num_rule diff --git a/ruoyi-system/src/main/resources/mapper/wisdomarbitrate/dept/DeptIdentifyMapper.xml b/ruoyi-system/src/main/resources/mapper/wisdomarbitrate/dept/DeptIdentifyMapper.xml index c4e711d..d72a2eb 100644 --- a/ruoyi-system/src/main/resources/mapper/wisdomarbitrate/dept/DeptIdentifyMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/wisdomarbitrate/dept/DeptIdentifyMapper.xml @@ -3,7 +3,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> - + @@ -25,7 +25,7 @@ - SELECT id, identify_name ,identify_status , identify_date,is_use,org_id,auth_flow_id, oper_name,oper_phone,identify_type,credit_code,legal_per_name,legal_per_phone ,identify_email,dept_id ,user_id @@ -56,7 +56,7 @@ - + insert into ms_dept_identify( identify_name, identify_status, @@ -99,7 +99,7 @@ - + update ms_dept_identify identify_date = #{identifyDate}, diff --git a/ruoyi-system/src/main/resources/mapper/wisdomarbitrate/dept/SealManageMapper.xml b/ruoyi-system/src/main/resources/mapper/wisdomarbitrate/dept/SealManageMapper.xml index ed0ed88..8d16767 100644 --- a/ruoyi-system/src/main/resources/mapper/wisdomarbitrate/dept/SealManageMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/wisdomarbitrate/dept/SealManageMapper.xml @@ -3,7 +3,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> - + @@ -13,7 +13,7 @@ - SELECT id, identify_id ,seal_name , seal_id,annex_id,seal_status,is_use FROM ms_seal_manage @@ -27,7 +27,7 @@ - + insert into ms_seal_manage( identify_id, seal_name, @@ -45,7 +45,7 @@ ) - + update ms_seal_manage identify_id = #{identifyId}, diff --git a/ruoyi-system/src/main/resources/mapper/wisdomarbitrate/miniprogress/IdentityAuthenticationMapper.xml b/ruoyi-system/src/main/resources/mapper/wisdomarbitrate/miniprogress/IdentityAuthenticationMapper.xml index f56f409..6d85fed 100644 --- a/ruoyi-system/src/main/resources/mapper/wisdomarbitrate/miniprogress/IdentityAuthenticationMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/wisdomarbitrate/miniprogress/IdentityAuthenticationMapper.xml @@ -3,7 +3,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> - + @@ -15,7 +15,7 @@ - + insert into ms_identi_authenti( user_id, id_address, @@ -50,7 +50,7 @@ where id = #{id} - SELECT i.id ,i.name ,i.identity_no ,i.certification_time ,i.certification_status ,i.user_id ,i.user_name from ms_identi_authenti i diff --git a/ruoyi-system/src/main/resources/mapper/wisdomarbitrate/mscase/MsCaseAffiliateLogMapper.xml b/ruoyi-system/src/main/resources/mapper/wisdomarbitrate/mscase/MsCaseAffiliateLogMapper.xml index bc5406f..45e72ee 100644 --- a/ruoyi-system/src/main/resources/mapper/wisdomarbitrate/mscase/MsCaseAffiliateLogMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/wisdomarbitrate/mscase/MsCaseAffiliateLogMapper.xml @@ -1,6 +1,6 @@ - +