调解系统整理
This commit is contained in:
+43
@@ -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<MsCaseLogRecord> list = caseLogRecordService.selectCaseLogRecordList(caseLogRecord);
|
||||||
|
return AjaxResult.success(list);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
+6
-2
@@ -2,7 +2,6 @@ package com.ruoyi.web.controller.wisdomarbitrate.mscase;
|
|||||||
|
|
||||||
import com.ruoyi.common.core.controller.BaseController;
|
import com.ruoyi.common.core.controller.BaseController;
|
||||||
import com.ruoyi.common.core.domain.AjaxResult;
|
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.domain.entity.mscase.MsCaseLogRecord;
|
||||||
import com.ruoyi.wisdomarbitrate.service.mscase.MsCaseLogRecordService;
|
import com.ruoyi.wisdomarbitrate.service.mscase.MsCaseLogRecordService;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
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 org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
/**
|
||||||
|
* 案件日志控制层
|
||||||
|
* @Author wangqiong
|
||||||
|
* @Date 2024/01/8
|
||||||
|
* @Version V1.0
|
||||||
|
*/
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/caseLogRecord")
|
@RequestMapping("/caseLogRecord")
|
||||||
public class MsCaseLogRecordController extends BaseController {
|
public class MsCaseLogRecordController extends BaseController {
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ spring:
|
|||||||
druid:
|
druid:
|
||||||
# 主库数据源
|
# 主库数据源
|
||||||
master:
|
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
|
username: root
|
||||||
password: YMzc157#
|
password: YMzc157#
|
||||||
# 从库数据源
|
# 从库数据源
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ ruoyi:
|
|||||||
# 开发环境配置
|
# 开发环境配置
|
||||||
server:
|
server:
|
||||||
# 服务器的HTTP端口,默认为8080
|
# 服务器的HTTP端口,默认为8080
|
||||||
port: 8001
|
port: 6001
|
||||||
servlet:
|
servlet:
|
||||||
# 应用的访问路径
|
# 应用的访问路径
|
||||||
context-path: /
|
context-path: /
|
||||||
|
|||||||
+32
-19
@@ -1,5 +1,6 @@
|
|||||||
package com.ruoyi.common.handler;
|
package com.ruoyi.common.handler;
|
||||||
|
|
||||||
|
import cn.hutool.core.collection.CollectionUtil;
|
||||||
import cn.hutool.core.util.ObjectUtil;
|
import cn.hutool.core.util.ObjectUtil;
|
||||||
import cn.hutool.core.util.StrUtil;
|
import cn.hutool.core.util.StrUtil;
|
||||||
import com.fasterxml.jackson.core.JsonProcessingException;
|
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.http.server.ServerHttpResponse;
|
||||||
import org.springframework.web.bind.annotation.RestControllerAdvice;
|
import org.springframework.web.bind.annotation.RestControllerAdvice;
|
||||||
import org.springframework.web.servlet.mvc.method.annotation.ResponseBodyAdvice;
|
import org.springframework.web.servlet.mvc.method.annotation.ResponseBodyAdvice;
|
||||||
|
|
||||||
import java.lang.reflect.Field;
|
import java.lang.reflect.Field;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import java.util.Optional;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -39,18 +42,27 @@ public class ResponseBodyAdviceHandler implements ResponseBodyAdvice {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Object beforeBodyWrite(Object body, MethodParameter methodParameter, MediaType mediaType, Class aClass, ServerHttpRequest request, ServerHttpResponse serverHttpResponse) {
|
public Object beforeBodyWrite(Object body, MethodParameter methodParameter, MediaType mediaType, Class aClass, ServerHttpRequest request, ServerHttpResponse serverHttpResponse) {
|
||||||
if (body instanceof String) {
|
|
||||||
ObjectMapper om = new ObjectMapper();
|
if (body instanceof AjaxResult) {
|
||||||
try {
|
AjaxResult result = (AjaxResult) body;
|
||||||
return om.writeValueAsString(AjaxResult.success(body));
|
if (ObjectUtil.isNotEmpty(result.get("data"))) {
|
||||||
} catch (JsonProcessingException e) {
|
//判断类型,然后转换字典
|
||||||
log.error("JsonProcessingException e:{}", e);
|
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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//判断类型,然后转换字典
|
return body;
|
||||||
turnType(body);
|
|
||||||
AjaxResult result = AjaxResult.success(body);
|
|
||||||
return result;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -61,17 +73,17 @@ public class ResponseBodyAdviceHandler implements ResponseBodyAdvice {
|
|||||||
private void turnType(Object body) {
|
private void turnType(Object body) {
|
||||||
if (body instanceof AjaxResult) {
|
if (body instanceof AjaxResult) {
|
||||||
AjaxResult result = (AjaxResult) body;
|
AjaxResult result = (AjaxResult) body;
|
||||||
if(result.isSuccess()){
|
if (result.isSuccess()) {
|
||||||
Object data = result.get("data");
|
Object data = result.get("data");
|
||||||
if(data!=null){
|
if (data != null) {
|
||||||
if(data instanceof List){
|
if (data instanceof List) {
|
||||||
List list = (List) data;
|
List list = (List) data;
|
||||||
convertList(list);
|
convertList(list);
|
||||||
}else if(data instanceof TableDataInfo){
|
} else if (data instanceof TableDataInfo) {
|
||||||
TableDataInfo pageRes = (TableDataInfo) data;
|
TableDataInfo pageRes = (TableDataInfo) data;
|
||||||
List list = pageRes.getRows();
|
List list = pageRes.getRows();
|
||||||
convertList(list);
|
convertList(list);
|
||||||
}else{
|
} else {
|
||||||
loopTurn(data);
|
loopTurn(data);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -185,20 +197,20 @@ public class ResponseBodyAdviceHandler implements ResponseBodyAdvice {
|
|||||||
if (targetField != null) {
|
if (targetField != null) {
|
||||||
targetField.setAccessible(true);
|
targetField.setAccessible(true);
|
||||||
String dictType = dictConvert.dictType();
|
String dictType = dictConvert.dictType();
|
||||||
if(StrUtil.isEmpty(dictType)){
|
if (StrUtil.isEmpty(dictType)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
//单个字典时直接设置值
|
//单个字典时直接设置值
|
||||||
if (!dictConvert.isMultiple()) {
|
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 {
|
} else {
|
||||||
//多个字典时,用逗号拼接值
|
//多个字典时,用逗号拼接值
|
||||||
List<String> textList = new ArrayList<>();
|
List<String> textList = new ArrayList<>();
|
||||||
String[] ids = key.split(dictConvert.separator());
|
String[] ids = key.split(dictConvert.separator());
|
||||||
for (String id : ids) {
|
for (String id : ids) {
|
||||||
if (ObjectUtil.isNotEmpty(DictUtils.getDictLabel(dictType,id))&&StrUtil.isNotEmpty(DictUtils.getDictLabel(dictType,id))) {
|
if (ObjectUtil.isNotEmpty(DictUtils.getDictLabel(dictType, id)) && StrUtil.isNotEmpty(DictUtils.getDictLabel(dictType, id))) {
|
||||||
textList.add(DictUtils.getDictLabel(dictType,id));
|
textList.add(DictUtils.getDictLabel(dictType, id));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
targetField.set(obj, StrUtil.join(dictConvert.separator(), textList));
|
targetField.set(obj, StrUtil.join(dictConvert.separator(), textList));
|
||||||
@@ -210,6 +222,7 @@ public class ResponseBodyAdviceHandler implements ResponseBodyAdvice {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 获取目标属性
|
* 获取目标属性
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
<mapper namespace="com.ruoyi.quartz.mapper.SysJobLogMapper">
|
<mapper namespace="com.ruoyi.quartz.mapper.SysJobLogMapper">
|
||||||
|
|
||||||
<resultMap type="SysJobLog" id="SysJobLogResult">
|
<resultMap type="com.ruoyi.quartz.domain.SysJobLog" id="SysJobLogResult">
|
||||||
<id property="jobLogId" column="job_log_id" />
|
<id property="jobLogId" column="job_log_id" />
|
||||||
<result property="jobName" column="job_name" />
|
<result property="jobName" column="job_name" />
|
||||||
<result property="jobGroup" column="job_group" />
|
<result property="jobGroup" column="job_group" />
|
||||||
@@ -20,7 +20,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
from ms_sys_job_log
|
from ms_sys_job_log
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
<select id="selectJobLogList" parameterType="SysJobLog" resultMap="SysJobLogResult">
|
<select id="selectJobLogList" parameterType="com.ruoyi.quartz.domain.SysJobLog" resultMap="SysJobLogResult">
|
||||||
<include refid="selectJobLogVo"/>
|
<include refid="selectJobLogVo"/>
|
||||||
<where>
|
<where>
|
||||||
<if test="jobName != null and jobName != ''">
|
<if test="jobName != null and jobName != ''">
|
||||||
@@ -68,7 +68,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
truncate table ms_sys_job_log
|
truncate table ms_sys_job_log
|
||||||
</update>
|
</update>
|
||||||
|
|
||||||
<insert id="insertJobLog" parameterType="SysJobLog">
|
<insert id="insertJobLog" parameterType="com.ruoyi.quartz.domain.SysJobLog">
|
||||||
insert into ms_sys_job_log(
|
insert into ms_sys_job_log(
|
||||||
<if test="jobLogId != null and jobLogId != 0">job_log_id,</if>
|
<if test="jobLogId != null and jobLogId != 0">job_log_id,</if>
|
||||||
<if test="jobName != null and jobName != ''">job_name,</if>
|
<if test="jobName != null and jobName != ''">job_name,</if>
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
<mapper namespace="com.ruoyi.quartz.mapper.SysJobMapper">
|
<mapper namespace="com.ruoyi.quartz.mapper.SysJobMapper">
|
||||||
|
|
||||||
<resultMap type="SysJob" id="SysJobResult">
|
<resultMap type="com.ruoyi.quartz.domain.SysJob" id="SysJobResult">
|
||||||
<id property="jobId" column="job_id" />
|
<id property="jobId" column="job_id" />
|
||||||
<result property="jobName" column="job_name" />
|
<result property="jobName" column="job_name" />
|
||||||
<result property="jobGroup" column="job_group" />
|
<result property="jobGroup" column="job_group" />
|
||||||
@@ -25,7 +25,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
from ms_sys_job
|
from ms_sys_job
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
<select id="selectJobList" parameterType="SysJob" resultMap="SysJobResult">
|
<select id="selectJobList" parameterType="com.ruoyi.quartz.domain.SysJob" resultMap="SysJobResult">
|
||||||
<include refid="selectJobVo"/>
|
<include refid="selectJobVo"/>
|
||||||
<where>
|
<where>
|
||||||
<if test="jobName != null and jobName != ''">
|
<if test="jobName != null and jobName != ''">
|
||||||
@@ -63,7 +63,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
</foreach>
|
</foreach>
|
||||||
</delete>
|
</delete>
|
||||||
|
|
||||||
<update id="updateJob" parameterType="SysJob">
|
<update id="updateJob" parameterType="com.ruoyi.quartz.domain.SysJob">
|
||||||
update ms_sys_job
|
update ms_sys_job
|
||||||
<set>
|
<set>
|
||||||
<if test="jobName != null and jobName != ''">job_name = #{jobName},</if>
|
<if test="jobName != null and jobName != ''">job_name = #{jobName},</if>
|
||||||
@@ -80,7 +80,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
where job_id = #{jobId}
|
where job_id = #{jobId}
|
||||||
</update>
|
</update>
|
||||||
|
|
||||||
<insert id="insertJob" parameterType="SysJob" useGeneratedKeys="true" keyProperty="jobId">
|
<insert id="insertJob" parameterType="com.ruoyi.quartz.domain.SysJob" useGeneratedKeys="true" keyProperty="jobId">
|
||||||
insert into ms_sys_job(
|
insert into ms_sys_job(
|
||||||
<if test="jobId != null and jobId != 0">job_id,</if>
|
<if test="jobId != null and jobId != 0">job_id,</if>
|
||||||
<if test="jobName != null and jobName != ''">job_name,</if>
|
<if test="jobName != null and jobName != ''">job_name,</if>
|
||||||
|
|||||||
+1
@@ -5,6 +5,7 @@ import com.ruoyi.wisdomarbitrate.domain.dto.miniprogress.IdentityAuthentication;
|
|||||||
public interface IdentityAuthenticationMapper {
|
public interface IdentityAuthenticationMapper {
|
||||||
int insertIdentityAuthentication(IdentityAuthentication identityAuthentication);
|
int insertIdentityAuthentication(IdentityAuthentication identityAuthentication);
|
||||||
IdentityAuthentication selectIdentityAuthentication(IdentityAuthentication identityAuthentication);
|
IdentityAuthentication selectIdentityAuthentication(IdentityAuthentication identityAuthentication);
|
||||||
|
Integer selectCountIdentityAuthentication(IdentityAuthentication identityAuthentication);
|
||||||
|
|
||||||
|
|
||||||
void updateIdentityAuthentication(IdentityAuthentication ientityAuthentication);
|
void updateIdentityAuthentication(IdentityAuthentication ientityAuthentication);
|
||||||
|
|||||||
@@ -3,10 +3,10 @@ jdbc.url=jdbc:mysql://121.40.189.20:3306/mediation_system?serverTimezone=Asia/Sh
|
|||||||
jdbc.user=root
|
jdbc.user=root
|
||||||
jdbc.password=YMzc157#
|
jdbc.password=YMzc157#
|
||||||
#目标模块项目路径
|
#目标模块项目路径
|
||||||
targetprojectpath=D:/ymPro/Mediation-Backend/ruoyi-system
|
targetprojectpath=D:/ymPro/Mediation-Backend/ruoyi-system/src/main/resources/mapper/wisdomarbitrate
|
||||||
#模块名称
|
#模块名称
|
||||||
moduleName=mscase
|
moduleName=mscase
|
||||||
#表名
|
#表名
|
||||||
tableName=ms_case_application
|
tableName=ms_case_affiliate
|
||||||
#主键
|
#主键
|
||||||
premaryId=id
|
premaryId=id
|
||||||
|
|||||||
@@ -21,13 +21,13 @@
|
|||||||
password="${jdbc.password}">
|
password="${jdbc.password}">
|
||||||
</jdbcConnection>
|
</jdbcConnection>
|
||||||
<!--实体-->
|
<!--实体-->
|
||||||
<javaModelGenerator targetPackage="com.ruoyi.system.domain.entity.${moduleName}"
|
<javaModelGenerator targetPackage="com.ruoyi.wisdomarbitrate.domain.entity.${moduleName}"
|
||||||
targetProject="src/main/java"/>
|
targetProject="src/main/java"/>
|
||||||
<!--mapper.xml-->
|
<!--mapper.xml-->
|
||||||
<sqlMapGenerator targetPackage="com.ruoyi.system.mapper.${moduleName}"
|
<sqlMapGenerator targetPackage="mapper.wisdomarbitrate.${moduleName}"
|
||||||
targetProject="src/main/resources"/>
|
targetProject="src/main/resources"/>
|
||||||
<!--mapper接口-->
|
<!--mapper接口-->
|
||||||
<javaClientGenerator targetPackage="com.ruoyi.system.mapper.${moduleName}"
|
<javaClientGenerator targetPackage="com.ruoyi.wisdomarbitrate.mapper.${moduleName}"
|
||||||
targetProject="src/main/java"
|
targetProject="src/main/java"
|
||||||
type="XMLMAPPER"/>
|
type="XMLMAPPER"/>
|
||||||
<!--需要生成的数据库表-->
|
<!--需要生成的数据库表-->
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
<mapper namespace="com.ruoyi.system.mapper.SysConfigMapper">
|
<mapper namespace="com.ruoyi.system.mapper.SysConfigMapper">
|
||||||
|
|
||||||
<resultMap type="SysConfig" id="SysConfigResult">
|
<resultMap type="com.ruoyi.system.domain.SysConfig" id="SysConfigResult">
|
||||||
<id property="configId" column="config_id" />
|
<id property="configId" column="config_id" />
|
||||||
<result property="configName" column="config_name" />
|
<result property="configName" column="config_name" />
|
||||||
<result property="configKey" column="config_key" />
|
<result property="configKey" column="config_key" />
|
||||||
@@ -33,12 +33,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
</where>
|
</where>
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
<select id="selectConfig" parameterType="SysConfig" resultMap="SysConfigResult">
|
<select id="selectConfig" parameterType="com.ruoyi.system.domain.SysConfig" resultMap="SysConfigResult">
|
||||||
<include refid="selectConfigVo"/>
|
<include refid="selectConfigVo"/>
|
||||||
<include refid="sqlwhereSearch"/>
|
<include refid="sqlwhereSearch"/>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="selectConfigList" parameterType="SysConfig" resultMap="SysConfigResult">
|
<select id="selectConfigList" parameterType="com.ruoyi.system.domain.SysConfig" resultMap="SysConfigResult">
|
||||||
<include refid="selectConfigVo"/>
|
<include refid="selectConfigVo"/>
|
||||||
<where>
|
<where>
|
||||||
<if test="configName != null and configName != ''">
|
<if test="configName != null and configName != ''">
|
||||||
@@ -69,7 +69,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
where config_key = #{configKey} limit 1
|
where config_key = #{configKey} limit 1
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<insert id="insertConfig" parameterType="SysConfig">
|
<insert id="insertConfig" parameterType="com.ruoyi.system.domain.SysConfig">
|
||||||
insert into ms_sys_config (
|
insert into ms_sys_config (
|
||||||
<if test="configName != null and configName != '' ">config_name,</if>
|
<if test="configName != null and configName != '' ">config_name,</if>
|
||||||
<if test="configKey != null and configKey != '' ">config_key,</if>
|
<if test="configKey != null and configKey != '' ">config_key,</if>
|
||||||
@@ -89,7 +89,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
)
|
)
|
||||||
</insert>
|
</insert>
|
||||||
|
|
||||||
<update id="updateConfig" parameterType="SysConfig">
|
<update id="updateConfig" parameterType="com.ruoyi.system.domain.SysConfig">
|
||||||
update ms_sys_config
|
update ms_sys_config
|
||||||
<set>
|
<set>
|
||||||
<if test="configName != null and configName != ''">config_name = #{configName},</if>
|
<if test="configName != null and configName != ''">config_name = #{configName},</if>
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
<mapper namespace="com.ruoyi.system.mapper.SysDeptMapper">
|
<mapper namespace="com.ruoyi.system.mapper.SysDeptMapper">
|
||||||
|
|
||||||
<resultMap type="SysDept" id="SysDeptResult">
|
<resultMap type="com.ruoyi.common.core.domain.entity.SysDept" id="SysDeptResult">
|
||||||
<id property="deptId" column="dept_id" />
|
<id property="deptId" column="dept_id" />
|
||||||
<result property="parentId" column="parent_id" />
|
<result property="parentId" column="parent_id" />
|
||||||
<result property="ancestors" column="ancestors" />
|
<result property="ancestors" column="ancestors" />
|
||||||
@@ -28,7 +28,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
from ms_sys_dept d
|
from ms_sys_dept d
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
<select id="selectDeptList" parameterType="SysDept" resultMap="SysDeptResult">
|
<select id="selectDeptList" parameterType="com.ruoyi.common.core.domain.entity.SysDept" resultMap="SysDeptResult">
|
||||||
<include refid="selectDeptVo"/>
|
<include refid="selectDeptVo"/>
|
||||||
where d.del_flag = '0'
|
where d.del_flag = '0'
|
||||||
<if test="deptId != null and deptId != 0">
|
<if test="deptId != null and deptId != 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
|
join ms_sys_user u on r.role_id=#{roleId} and r.user_id=u.user_id
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<insert id="insertDept" parameterType="SysDept" useGeneratedKeys="true" keyColumn="dept_id" keyProperty="deptId">
|
<insert id="insertDept" parameterType="com.ruoyi.common.core.domain.entity.SysDept" useGeneratedKeys="true" keyColumn="dept_id" keyProperty="deptId">
|
||||||
insert into ms_sys_dept(
|
insert into ms_sys_dept(
|
||||||
<if test="deptId != null and deptId != 0">dept_id,</if>
|
<if test="deptId != null and deptId != 0">dept_id,</if>
|
||||||
<if test="parentId != null and parentId != 0">parent_id,</if>
|
<if test="parentId != null and parentId != 0">parent_id,</if>
|
||||||
@@ -155,7 +155,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
|
|
||||||
</insert>
|
</insert>
|
||||||
|
|
||||||
<update id="updateDept" parameterType="SysDept">
|
<update id="updateDept" parameterType="com.ruoyi.common.core.domain.entity.SysDept">
|
||||||
update ms_sys_dept
|
update ms_sys_dept
|
||||||
<set>
|
<set>
|
||||||
<if test="parentId != null and parentId != 0">parent_id = #{parentId},</if>
|
<if test="parentId != null and parentId != 0">parent_id = #{parentId},</if>
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
<mapper namespace="com.ruoyi.system.mapper.SysDictDataMapper">
|
<mapper namespace="com.ruoyi.system.mapper.SysDictDataMapper">
|
||||||
|
|
||||||
<resultMap type="SysDictData" id="SysDictDataResult">
|
<resultMap type="com.ruoyi.common.core.domain.entity.SysDictData" id="SysDictDataResult">
|
||||||
<id property="dictCode" column="dict_code" />
|
<id property="dictCode" column="dict_code" />
|
||||||
<result property="dictSort" column="dict_sort" />
|
<result property="dictSort" column="dict_sort" />
|
||||||
<result property="dictLabel" column="dict_label" />
|
<result property="dictLabel" column="dict_label" />
|
||||||
@@ -25,7 +25,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
from ms_sys_dict_data
|
from ms_sys_dict_data
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
<select id="selectDictDataList" parameterType="SysDictData" resultMap="SysDictDataResult">
|
<select id="selectDictDataList" parameterType="com.ruoyi.common.core.domain.entity.SysDictData" resultMap="SysDictDataResult">
|
||||||
<include refid="selectDictDataVo"/>
|
<include refid="selectDictDataVo"/>
|
||||||
<where>
|
<where>
|
||||||
<if test="dictType != null and dictType != ''">
|
<if test="dictType != null and dictType != ''">
|
||||||
@@ -41,7 +41,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
order by dict_sort asc
|
order by dict_sort asc
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="selectDictDataByType" parameterType="SysDictData" resultMap="SysDictDataResult">
|
<select id="selectDictDataByType" parameterType="com.ruoyi.common.core.domain.entity.SysDictData" resultMap="SysDictDataResult">
|
||||||
<include refid="selectDictDataVo"/>
|
<include refid="selectDictDataVo"/>
|
||||||
where status = '0' and dict_type = #{dictType} order by dict_sort asc
|
where status = '0' and dict_type = #{dictType} order by dict_sort asc
|
||||||
</select>
|
</select>
|
||||||
@@ -71,7 +71,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
</foreach>
|
</foreach>
|
||||||
</delete>
|
</delete>
|
||||||
|
|
||||||
<update id="updateDictData" parameterType="SysDictData">
|
<update id="updateDictData" parameterType="com.ruoyi.common.core.domain.entity.SysDictData">
|
||||||
update ms_sys_dict_data
|
update ms_sys_dict_data
|
||||||
<set>
|
<set>
|
||||||
<if test="dictSort != null">dict_sort = #{dictSort},</if>
|
<if test="dictSort != null">dict_sort = #{dictSort},</if>
|
||||||
@@ -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}
|
update ms_sys_dict_data set dict_type = #{newDictType} where dict_type = #{oldDictType}
|
||||||
</update>
|
</update>
|
||||||
|
|
||||||
<insert id="insertDictData" parameterType="SysDictData">
|
<insert id="insertDictData" parameterType="com.ruoyi.common.core.domain.entity.SysDictData">
|
||||||
insert into ms_sys_dict_data(
|
insert into ms_sys_dict_data(
|
||||||
<if test="dictSort != null">dict_sort,</if>
|
<if test="dictSort != null">dict_sort,</if>
|
||||||
<if test="dictLabel != null and dictLabel != ''">dict_label,</if>
|
<if test="dictLabel != null and dictLabel != ''">dict_label,</if>
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
<mapper namespace="com.ruoyi.system.mapper.SysDictTypeMapper">
|
<mapper namespace="com.ruoyi.system.mapper.SysDictTypeMapper">
|
||||||
|
|
||||||
<resultMap type="SysDictType" id="SysDictTypeResult">
|
<resultMap type="com.ruoyi.common.core.domain.entity.SysDictType" id="SysDictTypeResult">
|
||||||
<id property="dictId" column="dict_id" />
|
<id property="dictId" column="dict_id" />
|
||||||
<result property="dictName" column="dict_name" />
|
<result property="dictName" column="dict_name" />
|
||||||
<result property="dictType" column="dict_type" />
|
<result property="dictType" column="dict_type" />
|
||||||
@@ -20,7 +20,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
from ms_sys_dict_type
|
from ms_sys_dict_type
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
<select id="selectDictTypeList" parameterType="SysDictType" resultMap="SysDictTypeResult">
|
<select id="selectDictTypeList" parameterType="com.ruoyi.common.core.domain.entity.SysDictType" resultMap="SysDictTypeResult">
|
||||||
<include refid="selectDictTypeVo"/>
|
<include refid="selectDictTypeVo"/>
|
||||||
<where>
|
<where>
|
||||||
<if test="dictName != null and dictName != ''">
|
<if test="dictName != null and dictName != ''">
|
||||||
@@ -71,7 +71,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
</foreach>
|
</foreach>
|
||||||
</delete>
|
</delete>
|
||||||
|
|
||||||
<update id="updateDictType" parameterType="SysDictType">
|
<update id="updateDictType" parameterType="com.ruoyi.common.core.domain.entity.SysDictType">
|
||||||
update ms_sys_dict_type
|
update ms_sys_dict_type
|
||||||
<set>
|
<set>
|
||||||
<if test="dictName != null and dictName != ''">dict_name = #{dictName},</if>
|
<if test="dictName != null and dictName != ''">dict_name = #{dictName},</if>
|
||||||
@@ -84,7 +84,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
where dict_id = #{dictId}
|
where dict_id = #{dictId}
|
||||||
</update>
|
</update>
|
||||||
|
|
||||||
<insert id="insertDictType" parameterType="SysDictType">
|
<insert id="insertDictType" parameterType="com.ruoyi.common.core.domain.entity.SysDictType">
|
||||||
insert into ms_sys_dict_type(
|
insert into ms_sys_dict_type(
|
||||||
<if test="dictName != null and dictName != ''">dict_name,</if>
|
<if test="dictName != null and dictName != ''">dict_name,</if>
|
||||||
<if test="dictType != null and dictType != ''">dict_type,</if>
|
<if test="dictType != null and dictType != ''">dict_type,</if>
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
<mapper namespace="com.ruoyi.system.mapper.SysLogininforMapper">
|
<mapper namespace="com.ruoyi.system.mapper.SysLogininforMapper">
|
||||||
|
|
||||||
<resultMap type="SysLogininfor" id="SysLogininforResult">
|
<resultMap type="com.ruoyi.system.domain.SysLogininfor" id="SysLogininforResult">
|
||||||
<id property="infoId" column="info_id" />
|
<id property="infoId" column="info_id" />
|
||||||
<result property="userName" column="user_name" />
|
<result property="userName" column="user_name" />
|
||||||
<result property="status" column="status" />
|
<result property="status" column="status" />
|
||||||
@@ -16,12 +16,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<result property="loginTime" column="login_time" />
|
<result property="loginTime" column="login_time" />
|
||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
<insert id="insertLogininfor" parameterType="SysLogininfor">
|
<insert id="insertLogininfor" parameterType="com.ruoyi.system.domain.SysLogininfor">
|
||||||
insert into ms_sys_logininfor (user_name, status, ipaddr, login_location, browser, os, msg, login_time)
|
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())
|
values (#{userName}, #{status}, #{ipaddr}, #{loginLocation}, #{browser}, #{os}, #{msg}, sysdate())
|
||||||
</insert>
|
</insert>
|
||||||
|
|
||||||
<select id="selectLogininforList" parameterType="SysLogininfor" resultMap="SysLogininforResult">
|
<select id="selectLogininforList" parameterType="com.ruoyi.system.domain.SysLogininfor" resultMap="SysLogininforResult">
|
||||||
select info_id, user_name, ipaddr, login_location, browser, os, status, msg, login_time from ms_sys_logininfor
|
select info_id, user_name, ipaddr, login_location, browser, os, status, msg, login_time from ms_sys_logininfor
|
||||||
<where>
|
<where>
|
||||||
<if test="ipaddr != null and ipaddr != ''">
|
<if test="ipaddr != null and ipaddr != ''">
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
<mapper namespace="com.ruoyi.system.mapper.SysMenuMapper">
|
<mapper namespace="com.ruoyi.system.mapper.SysMenuMapper">
|
||||||
|
|
||||||
<resultMap type="SysMenu" id="SysMenuResult">
|
<resultMap type="com.ruoyi.common.core.domain.entity.SysMenu" id="SysMenuResult">
|
||||||
<id property="menuId" column="menu_id" />
|
<id property="menuId" column="menu_id" />
|
||||||
<result property="menuName" column="menu_name" />
|
<result property="menuName" column="menu_name" />
|
||||||
<result property="parentName" column="parent_name" />
|
<result property="parentName" column="parent_name" />
|
||||||
@@ -32,7 +32,7 @@
|
|||||||
from ms_sys_menu
|
from ms_sys_menu
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
<select id="selectMenuList" parameterType="SysMenu" resultMap="SysMenuResult">
|
<select id="selectMenuList" parameterType="com.ruoyi.common.core.domain.entity.SysMenu" resultMap="SysMenuResult">
|
||||||
<include refid="selectMenuVo"/>
|
<include refid="selectMenuVo"/>
|
||||||
<where>
|
<where>
|
||||||
<if test="menuName != null and menuName != ''">
|
<if test="menuName != null and menuName != ''">
|
||||||
@@ -54,7 +54,7 @@
|
|||||||
order by m.parent_id, m.order_num
|
order by m.parent_id, m.order_num
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="selectMenuListByUserId" parameterType="SysMenu" resultMap="SysMenuResult">
|
<select id="selectMenuListByUserId" parameterType="com.ruoyi.common.core.domain.entity.SysMenu" resultMap="SysMenuResult">
|
||||||
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
|
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
|
from ms_sys_menu m
|
||||||
left join ms_ms_sys_role_menu rm on m.menu_id = rm.menu_id
|
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}
|
select count(1) from ms_sys_menu where parent_id = #{menuId}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="checkMenuNameUnique" parameterType="SysMenu" resultMap="SysMenuResult">
|
<select id="checkMenuNameUnique" parameterType="com.ruoyi.common.core.domain.entity.SysMenu" resultMap="SysMenuResult">
|
||||||
<include refid="selectMenuVo"/>
|
<include refid="selectMenuVo"/>
|
||||||
where menu_name=#{menuName} and parent_id = #{parentId} limit 1
|
where menu_name=#{menuName} and parent_id = #{parentId} limit 1
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<update id="updateMenu" parameterType="SysMenu">
|
<update id="updateMenu" parameterType="com.ruoyi.common.core.domain.entity.SysMenu">
|
||||||
update ms_sys_menu
|
update ms_sys_menu
|
||||||
<set>
|
<set>
|
||||||
<if test="menuName != null and menuName != ''">menu_name = #{menuName},</if>
|
<if test="menuName != null and menuName != ''">menu_name = #{menuName},</if>
|
||||||
@@ -155,7 +155,7 @@
|
|||||||
where menu_id = #{menuId}
|
where menu_id = #{menuId}
|
||||||
</update>
|
</update>
|
||||||
|
|
||||||
<insert id="insertMenu" parameterType="SysMenu">
|
<insert id="insertMenu" parameterType="com.ruoyi.common.core.domain.entity.SysMenu">
|
||||||
insert into ms_sys_menu(
|
insert into ms_sys_menu(
|
||||||
<if test="menuId != null and menuId != 0">menu_id,</if>
|
<if test="menuId != null and menuId != 0">menu_id,</if>
|
||||||
<if test="parentId != null and parentId != 0">parent_id,</if>
|
<if test="parentId != null and parentId != 0">parent_id,</if>
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
<mapper namespace="com.ruoyi.system.mapper.SysNoticeMapper">
|
<mapper namespace="com.ruoyi.system.mapper.SysNoticeMapper">
|
||||||
|
|
||||||
<resultMap type="SysNotice" id="SysNoticeResult">
|
<resultMap type="com.ruoyi.system.domain.SysNotice" id="SysNoticeResult">
|
||||||
<result property="noticeId" column="notice_id" />
|
<result property="noticeId" column="notice_id" />
|
||||||
<result property="noticeTitle" column="notice_title" />
|
<result property="noticeTitle" column="notice_title" />
|
||||||
<result property="noticeType" column="notice_type" />
|
<result property="noticeType" column="notice_type" />
|
||||||
@@ -27,7 +27,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
where notice_id = #{noticeId}
|
where notice_id = #{noticeId}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="selectNoticeList" parameterType="SysNotice" resultMap="SysNoticeResult">
|
<select id="selectNoticeList" parameterType="com.ruoyi.system.domain.SysNotice" resultMap="SysNoticeResult">
|
||||||
<include refid="selectNoticeVo"/>
|
<include refid="selectNoticeVo"/>
|
||||||
<where>
|
<where>
|
||||||
<if test="noticeTitle != null and noticeTitle != ''">
|
<if test="noticeTitle != null and noticeTitle != ''">
|
||||||
@@ -42,7 +42,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
</where>
|
</where>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<insert id="insertNotice" parameterType="SysNotice">
|
<insert id="insertNotice" parameterType="com.ruoyi.system.domain.SysNotice">
|
||||||
insert into ms_sys_notice (
|
insert into ms_sys_notice (
|
||||||
<if test="noticeTitle != null and noticeTitle != '' ">notice_title, </if>
|
<if test="noticeTitle != null and noticeTitle != '' ">notice_title, </if>
|
||||||
<if test="noticeType != null and noticeType != '' ">notice_type, </if>
|
<if test="noticeType != null and noticeType != '' ">notice_type, </if>
|
||||||
@@ -62,7 +62,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
)
|
)
|
||||||
</insert>
|
</insert>
|
||||||
|
|
||||||
<update id="updateNotice" parameterType="SysNotice">
|
<update id="updateNotice" parameterType="com.ruoyi.system.domain.SysNotice">
|
||||||
update ms_sys_notice
|
update ms_sys_notice
|
||||||
<set>
|
<set>
|
||||||
<if test="noticeTitle != null and noticeTitle != ''">notice_title = #{noticeTitle}, </if>
|
<if test="noticeTitle != null and noticeTitle != ''">notice_title = #{noticeTitle}, </if>
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
<mapper namespace="com.ruoyi.system.mapper.SysOperLogMapper">
|
<mapper namespace="com.ruoyi.system.mapper.SysOperLogMapper">
|
||||||
|
|
||||||
<resultMap type="SysOperLog" id="SysOperLogResult">
|
<resultMap type="com.ruoyi.system.domain.SysOperLog" id="SysOperLogResult">
|
||||||
<id property="operId" column="oper_id" />
|
<id property="operId" column="oper_id" />
|
||||||
<result property="title" column="title" />
|
<result property="title" column="title" />
|
||||||
<result property="businessType" column="business_type" />
|
<result property="businessType" column="business_type" />
|
||||||
@@ -29,12 +29,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
from ms_sys_oper_log
|
from ms_sys_oper_log
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
<insert id="insertOperlog" parameterType="SysOperLog">
|
<insert id="insertOperlog" parameterType="com.ruoyi.system.domain.SysOperLog">
|
||||||
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)
|
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())
|
values (#{title}, #{businessType}, #{method}, #{requestMethod}, #{operatorType}, #{operName}, #{deptName}, #{operUrl}, #{operIp}, #{operLocation}, #{operParam}, #{jsonResult}, #{status}, #{errorMsg}, #{costTime}, sysdate())
|
||||||
</insert>
|
</insert>
|
||||||
|
|
||||||
<select id="selectOperLogList" parameterType="SysOperLog" resultMap="SysOperLogResult">
|
<select id="selectOperLogList" parameterType="com.ruoyi.system.domain.SysOperLog" resultMap="SysOperLogResult">
|
||||||
<include refid="selectOperLogVo"/>
|
<include refid="selectOperLogVo"/>
|
||||||
<where>
|
<where>
|
||||||
<if test="title != null and title != ''">
|
<if test="title != null and title != ''">
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
<mapper namespace="com.ruoyi.system.mapper.SysPostMapper">
|
<mapper namespace="com.ruoyi.system.mapper.SysPostMapper">
|
||||||
|
|
||||||
<resultMap type="SysPost" id="SysPostResult">
|
<resultMap type="com.ruoyi.system.domain.SysPost" id="SysPostResult">
|
||||||
<id property="postId" column="post_id" />
|
<id property="postId" column="post_id" />
|
||||||
<result property="postCode" column="post_code" />
|
<result property="postCode" column="post_code" />
|
||||||
<result property="postName" column="post_name" />
|
<result property="postName" column="post_name" />
|
||||||
@@ -22,7 +22,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
from ms_sys_post
|
from ms_sys_post
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
<select id="selectPostList" parameterType="SysPost" resultMap="SysPostResult">
|
<select id="selectPostList" parameterType="com.ruoyi.system.domain.SysPost" resultMap="SysPostResult">
|
||||||
<include refid="selectPostVo"/>
|
<include refid="selectPostVo"/>
|
||||||
<where>
|
<where>
|
||||||
<if test="postCode != null and postCode != ''">
|
<if test="postCode != null and postCode != ''">
|
||||||
@@ -77,7 +77,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
where post_code=#{postCode} limit 1
|
where post_code=#{postCode} limit 1
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<update id="updatePost" parameterType="SysPost">
|
<update id="updatePost" parameterType="com.ruoyi.system.domain.SysPost">
|
||||||
update ms_sys_post
|
update ms_sys_post
|
||||||
<set>
|
<set>
|
||||||
<if test="postCode != null and postCode != ''">post_code = #{postCode},</if>
|
<if test="postCode != null and postCode != ''">post_code = #{postCode},</if>
|
||||||
@@ -91,7 +91,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
where post_id = #{postId}
|
where post_id = #{postId}
|
||||||
</update>
|
</update>
|
||||||
|
|
||||||
<insert id="insertPost" parameterType="SysPost" useGeneratedKeys="true" keyProperty="postId">
|
<insert id="insertPost" parameterType="com.ruoyi.system.domain.SysPost" useGeneratedKeys="true" keyProperty="postId">
|
||||||
insert into ms_sys_post(
|
insert into ms_sys_post(
|
||||||
<if test="postId != null and postId != 0">post_id,</if>
|
<if test="postId != null and postId != 0">post_id,</if>
|
||||||
<if test="postCode != null and postCode != ''">post_code,</if>
|
<if test="postCode != null and postCode != ''">post_code,</if>
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
<mapper namespace="com.ruoyi.system.mapper.SysRoleDeptMapper">
|
<mapper namespace="com.ruoyi.system.mapper.SysRoleDeptMapper">
|
||||||
|
|
||||||
<resultMap type="SysRoleDept" id="SysRoleDeptResult">
|
<resultMap type="com.ruoyi.system.domain.SysRoleDept" id="SysRoleDeptResult">
|
||||||
<result property="roleId" column="role_id" />
|
<result property="roleId" column="role_id" />
|
||||||
<result property="deptId" column="dept_id" />
|
<result property="deptId" column="dept_id" />
|
||||||
</resultMap>
|
</resultMap>
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
<mapper namespace="com.ruoyi.system.mapper.SysRoleMapper">
|
<mapper namespace="com.ruoyi.system.mapper.SysRoleMapper">
|
||||||
|
|
||||||
<resultMap type="SysRole" id="SysRoleResult">
|
<resultMap type="com.ruoyi.common.core.domain.entity.SysRole" id="SysRoleResult">
|
||||||
<id property="roleId" column="role_id" />
|
<id property="roleId" column="role_id" />
|
||||||
<result property="roleName" column="role_name" />
|
<result property="roleName" column="role_name" />
|
||||||
<result property="roleKey" column="role_key" />
|
<result property="roleKey" column="role_key" />
|
||||||
@@ -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,
|
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
|
r.status, r.del_flag, r.create_time, r.remark
|
||||||
from ms_sys_role r
|
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_user u on u.user_id = ur.user_id
|
||||||
left join ms_sys_dept d on u.dept_id = d.dept_id
|
left join ms_sys_dept d on u.dept_id = d.dept_id
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
<select id="selectRoleList" parameterType="SysRole" resultMap="SysRoleResult">
|
<select id="selectRoleList" parameterType="com.ruoyi.common.core.domain.entity.SysRole" resultMap="SysRoleResult">
|
||||||
<include refid="selectRoleVo"/>
|
<include refid="selectRoleVo"/>
|
||||||
where r.del_flag = '0'
|
where r.del_flag = '0'
|
||||||
<if test="roleId != null and roleId != 0">
|
<if test="roleId != null and roleId != 0">
|
||||||
@@ -68,7 +68,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<select id="selectRoleListByUserId" parameterType="Long" resultType="Long">
|
<select id="selectRoleListByUserId" parameterType="Long" resultType="Long">
|
||||||
select r.role_id
|
select r.role_id
|
||||||
from ms_sys_role r
|
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_user u on u.user_id = ur.user_id
|
||||||
where u.user_id = #{userId}
|
where u.user_id = #{userId}
|
||||||
</select>
|
</select>
|
||||||
@@ -96,7 +96,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
select role_id from ms_sys_role where role_name=#{roleName}
|
select role_id from ms_sys_role where role_name=#{roleName}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<insert id="insertRole" parameterType="SysRole" useGeneratedKeys="true" keyProperty="roleId">
|
<insert id="insertRole" parameterType="com.ruoyi.common.core.domain.entity.SysRole" useGeneratedKeys="true" keyProperty="roleId">
|
||||||
insert into ms_sys_role(
|
insert into ms_sys_role(
|
||||||
<if test="roleId != null and roleId != 0">role_id,</if>
|
<if test="roleId != null and roleId != 0">role_id,</if>
|
||||||
<if test="roleName != null and roleName != ''">role_name,</if>
|
<if test="roleName != null and roleName != ''">role_name,</if>
|
||||||
@@ -124,7 +124,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
)
|
)
|
||||||
</insert>
|
</insert>
|
||||||
|
|
||||||
<update id="updateRole" parameterType="SysRole">
|
<update id="updateRole" parameterType="com.ruoyi.common.core.domain.entity.SysRole">
|
||||||
update ms_sys_role
|
update ms_sys_role
|
||||||
<set>
|
<set>
|
||||||
<if test="roleName != null and roleName != ''">role_name = #{roleName},</if>
|
<if test="roleName != null and roleName != ''">role_name = #{roleName},</if>
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
<mapper namespace="com.ruoyi.system.mapper.SysRoleMenuMapper">
|
<mapper namespace="com.ruoyi.system.mapper.SysRoleMenuMapper">
|
||||||
|
|
||||||
<resultMap type="SysRoleMenu" id="SysRoleMenuResult">
|
<resultMap type="com.ruoyi.system.domain.SysRoleMenu" id="SysRoleMenuResult">
|
||||||
<result property="roleId" column="role_id" />
|
<result property="roleId" column="role_id" />
|
||||||
<result property="menuId" column="menu_id" />
|
<result property="menuId" column="menu_id" />
|
||||||
</resultMap>
|
</resultMap>
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
<mapper namespace="com.ruoyi.system.mapper.SysUserMapper">
|
<mapper namespace="com.ruoyi.system.mapper.SysUserMapper">
|
||||||
|
|
||||||
<resultMap type="SysUser" id="SysUserResult">
|
<resultMap type="com.ruoyi.common.core.domain.entity.SysUser" id="SysUserResult">
|
||||||
<id property="userId" column="user_id" />
|
<id property="userId" column="user_id" />
|
||||||
<result property="deptId" column="dept_id" />
|
<result property="deptId" column="dept_id" />
|
||||||
<result property="userName" column="user_name" />
|
<result property="userName" column="user_name" />
|
||||||
@@ -25,11 +25,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<result property="updateTime" column="update_time" />
|
<result property="updateTime" column="update_time" />
|
||||||
<result property="remark" column="remark" />
|
<result property="remark" column="remark" />
|
||||||
<result property="specialty" column="specialty" />
|
<result property="specialty" column="specialty" />
|
||||||
<association property="dept" javaType="SysDept" resultMap="deptResult" />
|
<association property="dept" javaType="com.ruoyi.common.core.domain.entity.SysDept" resultMap="deptResult" />
|
||||||
<collection property="roles" javaType="java.util.List" resultMap="RoleResult" />
|
<collection property="roles" javaType="java.util.List" resultMap="RoleResult" />
|
||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
<resultMap id="deptResult" type="SysDept">
|
<resultMap id="deptResult" type="com.ruoyi.common.core.domain.entity.SysDept">
|
||||||
<id property="deptId" column="dept_id" />
|
<id property="deptId" column="dept_id" />
|
||||||
<result property="parentId" column="parent_id" />
|
<result property="parentId" column="parent_id" />
|
||||||
<result property="deptName" column="dept_name" />
|
<result property="deptName" column="dept_name" />
|
||||||
@@ -40,7 +40,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
|
|
||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
<resultMap id="RoleResult" type="SysRole">
|
<resultMap id="RoleResult" type="com.ruoyi.common.core.domain.entity.SysRole">
|
||||||
<id property="roleId" column="role_id" />
|
<id property="roleId" column="role_id" />
|
||||||
<result property="roleName" column="role_name" />
|
<result property="roleName" column="role_name" />
|
||||||
<result property="roleKey" column="role_key" />
|
<result property="roleKey" column="role_key" />
|
||||||
@@ -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
|
left join ms_sys_role r on r.role_id = ur.role_id
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
<select id="selectUserList" parameterType="SysUser" resultMap="SysUserResult">
|
<select id="selectUserList" parameterType="com.ruoyi.common.core.domain.entity.SysUser"resultMap="SysUserResult">
|
||||||
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,
|
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
|
d.leader , r.role_id, r.role_name, d.dept_id
|
||||||
from ms_sys_user u
|
from ms_sys_user u
|
||||||
@@ -92,7 +92,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
${params.dataScope}
|
${params.dataScope}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="selectAllocatedList" parameterType="SysUser" resultMap="SysUserResult">
|
<select id="selectAllocatedList" parameterType="com.ruoyi.common.core.domain.entity.SysUser"resultMap="SysUserResult">
|
||||||
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
|
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
|
from ms_sys_user u
|
||||||
left join ms_sys_dept d on u.dept_id = d.dept_id
|
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}
|
${params.dataScope}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="selectUnallocatedList" parameterType="SysUser" resultMap="SysUserResult">
|
<select id="selectUnallocatedList" parameterType="com.ruoyi.common.core.domain.entity.SysUser"resultMap="SysUserResult">
|
||||||
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
|
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
|
from ms_sys_user u
|
||||||
left join ms_sys_dept d on u.dept_id = d.dept_id
|
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"
|
|||||||
|
|
||||||
<select id="checkEmailUnique" parameterType="String" resultMap="SysUserResult">
|
<select id="checkEmailUnique" parameterType="String" resultMap="SysUserResult">
|
||||||
select user_id, email from ms_sys_user where email = #{email} and del_flag = '0' limit 1
|
select user_id, email from ms_sys_user where email = #{email} and del_flag = '0' limit 1
|
||||||
</select>
|
|
||||||
<select id="selectUserListByAdRole" resultMap="SysUserResult">
|
|
||||||
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
|
|
||||||
join ms_sys_user_role ur on ur.user_id =u.user_id
|
|
||||||
join ms_sys_role r on ur.role_id = r.role_id and r.role_name='仲裁员'
|
|
||||||
where r.del_flag = '0' and r.status='0'
|
|
||||||
and u.del_flag = '0' and u.status='0'
|
|
||||||
<if test="arbitratorName != null and arbitratorName != ''">
|
|
||||||
AND u.nick_name like concat('%', #{arbitratorName}, '%')
|
|
||||||
</if>
|
|
||||||
|
|
||||||
<if test="idList != null and idList.size() > 0">
|
|
||||||
AND u.user_id in
|
|
||||||
<foreach item="id" collection="idList" open="(" separator="," close=")">
|
|
||||||
#{id}
|
|
||||||
</foreach>
|
|
||||||
</if>
|
|
||||||
|
|
||||||
|
|
||||||
</select>
|
</select>
|
||||||
<select id="selectUserListByIds" resultMap="SysUserResult">
|
<select id="selectUserListByIds" resultMap="SysUserResult">
|
||||||
select u.user_id, u.nick_name, u.user_name,u.id_card,u.specialty, u.phonenumber, u.remark from ms_sys_user u
|
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,7 +197,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
|
||||||
<insert id="insertUser" parameterType="SysUser" useGeneratedKeys="true" keyProperty="userId">
|
<insert id="insertUser" parameterType="com.ruoyi.common.core.domain.entity.SysUser"useGeneratedKeys="true" keyProperty="userId">
|
||||||
insert into ms_sys_user(
|
insert into ms_sys_user(
|
||||||
<if test="userId != null and userId != 0">user_id,</if>
|
<if test="userId != null and userId != 0">user_id,</if>
|
||||||
<if test="deptId != null and deptId != 0">dept_id,</if>
|
<if test="deptId != null and deptId != 0">dept_id,</if>
|
||||||
@@ -290,7 +271,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
</foreach>;
|
</foreach>;
|
||||||
</insert>
|
</insert>
|
||||||
|
|
||||||
<update id="updateUser" parameterType="SysUser">
|
<update id="updateUser" parameterType="com.ruoyi.common.core.domain.entity.SysUser">
|
||||||
update ms_sys_user
|
update ms_sys_user
|
||||||
<set>
|
<set>
|
||||||
<if test="deptId != null and deptId != 0">dept_id = #{deptId},</if>
|
<if test="deptId != null and deptId != 0">dept_id = #{deptId},</if>
|
||||||
@@ -313,15 +294,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
where user_id = #{userId}
|
where user_id = #{userId}
|
||||||
</update>
|
</update>
|
||||||
|
|
||||||
<update id="updateUserStatus" parameterType="SysUser">
|
<update id="updateUserAvatar" parameterType="com.ruoyi.common.core.domain.entity.SysUser">
|
||||||
update ms_sys_user set status = #{status} where user_id = #{userId}
|
|
||||||
</update>
|
|
||||||
|
|
||||||
<update id="updateUserAvatar" parameterType="SysUser">
|
|
||||||
update ms_sys_user set avatar = #{avatar} where user_name = #{userName}
|
update ms_sys_user set avatar = #{avatar} where user_name = #{userName}
|
||||||
</update>
|
</update>
|
||||||
|
|
||||||
<update id="resetUserPwd" parameterType="SysUser">
|
<update id="resetUserPwd" parameterType="com.ruoyi.common.core.domain.entity.SysUser">
|
||||||
update ms_sys_user set password = #{password} where user_name = #{userName}
|
update ms_sys_user set password = #{password} where user_name = #{userName}
|
||||||
</update>
|
</update>
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
<mapper namespace="com.ruoyi.system.mapper.SysUserPostMapper">
|
<mapper namespace="com.ruoyi.system.mapper.SysUserPostMapper">
|
||||||
|
|
||||||
<resultMap type="SysUserPost" id="SysUserPostResult">
|
<resultMap type="com.ruoyi.system.domain.SysUserPost" id="SysUserPostResult">
|
||||||
<result property="userId" column="user_id" />
|
<result property="userId" column="user_id" />
|
||||||
<result property="postId" column="post_id" />
|
<result property="postId" column="post_id" />
|
||||||
</resultMap>
|
</resultMap>
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
<mapper namespace="com.ruoyi.system.mapper.SysUserRoleMapper">
|
<mapper namespace="com.ruoyi.system.mapper.SysUserRoleMapper">
|
||||||
|
|
||||||
<resultMap type="SysUserRole" id="SysUserRoleResult">
|
<resultMap type="com.ruoyi.system.domain.SysUserRole" id="SysUserRoleResult">
|
||||||
<result property="userId" column="user_id" />
|
<result property="userId" column="user_id" />
|
||||||
<result property="roleId" column="role_id" />
|
<result property="roleId" column="role_id" />
|
||||||
</resultMap>
|
</resultMap>
|
||||||
@@ -31,7 +31,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
</foreach>
|
</foreach>
|
||||||
</insert>
|
</insert>
|
||||||
|
|
||||||
<delete id="deleteUserRoleInfo" parameterType="SysUserRole">
|
<delete id="deleteUserRoleInfo" parameterType="com.ruoyi.system.domain.SysUserRole">
|
||||||
delete from ms_sys_user_role where user_id=#{userId} and role_id=#{roleId}
|
delete from ms_sys_user_role where user_id=#{userId} and role_id=#{roleId}
|
||||||
</delete>
|
</delete>
|
||||||
|
|
||||||
|
|||||||
+5
-5
@@ -13,7 +13,7 @@
|
|||||||
<result column="dept_name_firchar" property="deptNameFirchar" />
|
<result column="dept_name_firchar" property="deptNameFirchar" />
|
||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
<insert id="insertCaseNumRule" parameterType="CaseNumRule" useGeneratedKeys="true" keyProperty="id">
|
<insert id="insertCaseNumRule" parameterType="com.ruoyi.wisdomarbitrate.domain.dto.casenumrule.CaseNumRule" useGeneratedKeys="true" keyProperty="id">
|
||||||
insert into ms_case_num_rule(
|
insert into ms_case_num_rule(
|
||||||
<if test="ruleType != null">rule_type,</if>
|
<if test="ruleType != null">rule_type,</if>
|
||||||
<if test="prefixstr != null and prefixstr != '' ">prefixstr,</if>
|
<if test="prefixstr != null and prefixstr != '' ">prefixstr,</if>
|
||||||
@@ -35,7 +35,7 @@
|
|||||||
)
|
)
|
||||||
</insert>
|
</insert>
|
||||||
|
|
||||||
<update id="updateCaseNumRule" parameterType="CaseNumRule">
|
<update id="updateCaseNumRule" parameterType="com.ruoyi.wisdomarbitrate.domain.dto.casenumrule.CaseNumRule">
|
||||||
update ms_case_num_rule
|
update ms_case_num_rule
|
||||||
<set>
|
<set>
|
||||||
<if test="ruleType != null">rule_type = #{ruleType},</if>
|
<if test="ruleType != null">rule_type = #{ruleType},</if>
|
||||||
@@ -51,11 +51,11 @@
|
|||||||
</if>
|
</if>
|
||||||
</where>
|
</where>
|
||||||
</update>
|
</update>
|
||||||
<delete id="deleteCaseNumRule" parameterType="CaseNumRule">
|
<delete id="deleteCaseNumRule" parameterType="com.ruoyi.wisdomarbitrate.domain.dto.casenumrule.CaseNumRule">
|
||||||
delete from ms_case_num_rule where id = #{id}
|
delete from ms_case_num_rule where id = #{id}
|
||||||
</delete>
|
</delete>
|
||||||
|
|
||||||
<select id="selectCaseNumRules" parameterType="CaseNumRule" resultMap="BaseResultMap">
|
<select id="selectCaseNumRules" parameterType="com.ruoyi.wisdomarbitrate.domain.dto.casenumrule.CaseNumRule" resultMap="BaseResultMap">
|
||||||
SELECT id, rule_type ,prefixstr , date_format,dept_name,dept_name_firchar,current_num
|
SELECT id, rule_type ,prefixstr , date_format,dept_name,dept_name_firchar,current_num
|
||||||
FROM ms_case_num_rule
|
FROM ms_case_num_rule
|
||||||
<where>
|
<where>
|
||||||
@@ -90,7 +90,7 @@
|
|||||||
</where>
|
</where>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="selectCaseNumRule" parameterType="CaseNumRule" resultMap="BaseResultMap">
|
<select id="selectCaseNumRule" parameterType="com.ruoyi.wisdomarbitrate.domain.dto.casenumrule.CaseNumRule" resultMap="BaseResultMap">
|
||||||
SELECT id, rule_type ,prefixstr , date_format,dept_name,dept_name_firchar,current_num
|
SELECT id, rule_type ,prefixstr , date_format,dept_name,dept_name_firchar,current_num
|
||||||
FROM ms_case_num_rule
|
FROM ms_case_num_rule
|
||||||
<where>
|
<where>
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
<mapper namespace="com.ruoyi.wisdomarbitrate.mapper.dept.DeptIdentifyMapper">
|
<mapper namespace="com.ruoyi.wisdomarbitrate.mapper.dept.DeptIdentifyMapper">
|
||||||
<resultMap type="DeptIdentify" id="DeptIdentifyResult">
|
<resultMap type="com.ruoyi.wisdomarbitrate.domain.dto.dept.DeptIdentify" id="DeptIdentifyResult">
|
||||||
<id property="id" column="id" />
|
<id property="id" column="id" />
|
||||||
<result property="identifyStatus" column="identify_status" />
|
<result property="identifyStatus" column="identify_status" />
|
||||||
<result property="identifyDate" column="identify_date" />
|
<result property="identifyDate" column="identify_date" />
|
||||||
@@ -25,7 +25,7 @@
|
|||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
|
|
||||||
<select id="selectDeptIdentify" parameterType="DeptIdentify" resultMap="DeptIdentifyResult">
|
<select id="selectDeptIdentify" parameterType="com.ruoyi.wisdomarbitrate.domain.dto.dept.DeptIdentify" resultMap="DeptIdentifyResult">
|
||||||
SELECT id, identify_name ,identify_status , identify_date,is_use,org_id,auth_flow_id,
|
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
|
oper_name,oper_phone,identify_type,credit_code,legal_per_name,legal_per_phone
|
||||||
,identify_email,dept_id ,user_id
|
,identify_email,dept_id ,user_id
|
||||||
@@ -56,7 +56,7 @@
|
|||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
|
||||||
<insert id="insertDeptIdentify" parameterType="DeptIdentify" useGeneratedKeys="true" keyProperty="id">
|
<insert id="insertDeptIdentify" parameterType="com.ruoyi.wisdomarbitrate.domain.dto.dept.DeptIdentify" useGeneratedKeys="true" keyProperty="id">
|
||||||
insert into ms_dept_identify(
|
insert into ms_dept_identify(
|
||||||
<if test="identifyName != null and identifyName != ''">identify_name,</if>
|
<if test="identifyName != null and identifyName != ''">identify_name,</if>
|
||||||
<if test="identifyStatus != null">identify_status,</if>
|
<if test="identifyStatus != null">identify_status,</if>
|
||||||
@@ -99,7 +99,7 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
<update id="updateDeptIdentify" parameterType="DeptIdentify">
|
<update id="updateDeptIdentify" parameterType="com.ruoyi.wisdomarbitrate.domain.dto.dept.DeptIdentify">
|
||||||
update ms_dept_identify
|
update ms_dept_identify
|
||||||
<set>
|
<set>
|
||||||
<if test="identifyDate != null">identify_date = #{identifyDate},</if>
|
<if test="identifyDate != null">identify_date = #{identifyDate},</if>
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
<mapper namespace="com.ruoyi.wisdomarbitrate.mapper.dept.SealManageMapper">
|
<mapper namespace="com.ruoyi.wisdomarbitrate.mapper.dept.SealManageMapper">
|
||||||
<resultMap type="SealManage" id="SealManageResult">
|
<resultMap type="com.ruoyi.wisdomarbitrate.domain.dto.dept.SealManage" id="SealManageResult">
|
||||||
<id property="id" column="id" />
|
<id property="id" column="id" />
|
||||||
<result property="identifyId" column="identify_id" />
|
<result property="identifyId" column="identify_id" />
|
||||||
<result property="sealName" column="seal_name" />
|
<result property="sealName" column="seal_name" />
|
||||||
@@ -13,7 +13,7 @@
|
|||||||
<result property="isUse" column="is_use" />
|
<result property="isUse" column="is_use" />
|
||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
<select id="selectSealList" parameterType="SealManage" resultMap="SealManageResult">
|
<select id="selectSealList" parameterType="com.ruoyi.wisdomarbitrate.domain.dto.dept.SealManage" resultMap="SealManageResult">
|
||||||
SELECT id, identify_id ,seal_name , seal_id,annex_id,seal_status,is_use
|
SELECT id, identify_id ,seal_name , seal_id,annex_id,seal_status,is_use
|
||||||
FROM ms_seal_manage
|
FROM ms_seal_manage
|
||||||
<where>
|
<where>
|
||||||
@@ -27,7 +27,7 @@
|
|||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
|
||||||
<insert id="insertSealManage" parameterType="SealManage" useGeneratedKeys="true" keyProperty="id">
|
<insert id="insertSealManage" parameterType="com.ruoyi.wisdomarbitrate.domain.dto.dept.SealManage" useGeneratedKeys="true" keyProperty="id">
|
||||||
insert into ms_seal_manage(
|
insert into ms_seal_manage(
|
||||||
<if test="identifyId != null">identify_id,</if>
|
<if test="identifyId != null">identify_id,</if>
|
||||||
<if test="sealName != null and sealName != ''">seal_name,</if>
|
<if test="sealName != null and sealName != ''">seal_name,</if>
|
||||||
@@ -45,7 +45,7 @@
|
|||||||
)
|
)
|
||||||
</insert>
|
</insert>
|
||||||
|
|
||||||
<update id="updateSealManage" parameterType="SealManage">
|
<update id="updateSealManage" parameterType="com.ruoyi.wisdomarbitrate.domain.dto.dept.SealManage">
|
||||||
update ms_seal_manage
|
update ms_seal_manage
|
||||||
<set>
|
<set>
|
||||||
<if test="identifyId != null">identify_id = #{identifyId},</if>
|
<if test="identifyId != null">identify_id = #{identifyId},</if>
|
||||||
|
|||||||
+3
-3
@@ -3,7 +3,7 @@
|
|||||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
<mapper namespace="com.ruoyi.wisdomarbitrate.mapper.miniprogress.IdentityAuthenticationMapper">
|
<mapper namespace="com.ruoyi.wisdomarbitrate.mapper.miniprogress.IdentityAuthenticationMapper">
|
||||||
<resultMap type="IdentityAuthentication" id="IdentityAuthenticationResult">
|
<resultMap type="com.ruoyi.wisdomarbitrate.domain.dto.miniprogress.IdentityAuthentication" id="IdentityAuthenticationResult">
|
||||||
<id property="id" column="id" />
|
<id property="id" column="id" />
|
||||||
<result property="name" column="name" />
|
<result property="name" column="name" />
|
||||||
<result property="identityNo" column="identity_no" />
|
<result property="identityNo" column="identity_no" />
|
||||||
@@ -15,7 +15,7 @@
|
|||||||
|
|
||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
<insert id="insertIdentityAuthentication" parameterType="IdentityAuthentication" useGeneratedKeys="true" keyProperty="id">
|
<insert id="insertIdentityAuthentication" parameterType="com.ruoyi.wisdomarbitrate.domain.dto.miniprogress.IdentityAuthentication" useGeneratedKeys="true" keyProperty="id">
|
||||||
insert into ms_identi_authenti(
|
insert into ms_identi_authenti(
|
||||||
<if test="userId != null">user_id,</if>
|
<if test="userId != null">user_id,</if>
|
||||||
<if test="idAddress != null and idAddress != ''">id_address,</if>
|
<if test="idAddress != null and idAddress != ''">id_address,</if>
|
||||||
@@ -50,7 +50,7 @@
|
|||||||
where id = #{id}
|
where id = #{id}
|
||||||
</update>
|
</update>
|
||||||
|
|
||||||
<select id="selectIdentityAuthentication" parameterType="IdentityAuthentication" resultMap="IdentityAuthenticationResult">
|
<select id="selectIdentityAuthentication" parameterType="com.ruoyi.wisdomarbitrate.domain.dto.miniprogress.IdentityAuthentication" resultMap="IdentityAuthenticationResult">
|
||||||
SELECT i.id ,i.name ,i.identity_no ,i.certification_time ,i.certification_status ,i.user_id ,i.user_name
|
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
|
from ms_identi_authenti i
|
||||||
<where>
|
<where>
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
<mapper namespace="com.ruoyi.system.mapper.mscase.MsCaseAffiliateLogMapper">
|
<mapper namespace="com.ruoyi.wisdomarbitrate.mapper.mscase.MsCaseAffiliateLogMapper">
|
||||||
<resultMap id="BaseResultMap" type="com.ruoyi.wisdomarbitrate.domain.entity.mscase.MsCaseAffiliateLog">
|
<resultMap id="BaseResultMap" type="com.ruoyi.wisdomarbitrate.domain.entity.mscase.MsCaseAffiliateLog">
|
||||||
<!--
|
<!--
|
||||||
WARNING - @mbg.generated
|
WARNING - @mbg.generated
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
<mapper namespace="com.ruoyi.system.mapper.mscase.MsCaseApplicationMapper">
|
<mapper namespace="com.ruoyi.wisdomarbitrate.mapper.mscase.MsCaseApplicationMapper">
|
||||||
<resultMap id="BaseResultMap" type="com.ruoyi.wisdomarbitrate.domain.entity.mscase.MsCaseApplication">
|
<resultMap id="BaseResultMap" type="com.ruoyi.wisdomarbitrate.domain.entity.mscase.MsCaseApplication">
|
||||||
<!--
|
<!--
|
||||||
WARNING - @mbg.generated
|
WARNING - @mbg.generated
|
||||||
|
|||||||
+3
-3
@@ -3,7 +3,7 @@
|
|||||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
<mapper namespace="com.ruoyi.wisdomarbitrate.mapper.mscase.MsCaseAttachLogMapper">
|
<mapper namespace="com.ruoyi.wisdomarbitrate.mapper.mscase.MsCaseAttachLogMapper">
|
||||||
<resultMap type="CaseAttach" id="CaseAttachResult">
|
<resultMap type="com.ruoyi.wisdomarbitrate.domain.dto.mscase.CaseAttach" id="CaseAttachResult">
|
||||||
<id property="annexId" column="annex_id" />
|
<id property="annexId" column="annex_id" />
|
||||||
<result property="caseAppliId" column="case_appli_id" />
|
<result property="caseAppliId" column="case_appli_id" />
|
||||||
<result property="annexName" column="annex_name" />
|
<result property="annexName" column="annex_name" />
|
||||||
@@ -81,14 +81,14 @@
|
|||||||
</where>
|
</where>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<update id="updateCaseAttach" parameterType="CaseAttach">
|
<update id="updateCaseAttach" parameterType="com.ruoyi.wisdomarbitrate.domain.dto.mscase.CaseAttach">
|
||||||
update ms_case_attach_log
|
update ms_case_attach_log
|
||||||
set
|
set
|
||||||
case_appli_log_id= #{caseAppliLogId}
|
case_appli_log_id= #{caseAppliLogId}
|
||||||
where annex_id = #{annexId}
|
where annex_id = #{annexId}
|
||||||
</update>
|
</update>
|
||||||
|
|
||||||
<update id="updateCaseAttachBycaseid" parameterType="CaseAttach" >
|
<update id="updateCaseAttachBycaseid" parameterType="com.ruoyi.wisdomarbitrate.domain.dto.mscase.CaseAttach" >
|
||||||
update ms_case_attach_log
|
update ms_case_attach_log
|
||||||
<set>
|
<set>
|
||||||
<if test="annexName != null and annexName != ''">annex_name = #{annexName},</if>
|
<if test="annexName != null and annexName != ''">annex_name = #{annexName},</if>
|
||||||
|
|||||||
+3
-3
@@ -3,7 +3,7 @@
|
|||||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
<mapper namespace="com.ruoyi.wisdomarbitrate.mapper.mscase.MsCaseAttachMapper">
|
<mapper namespace="com.ruoyi.wisdomarbitrate.mapper.mscase.MsCaseAttachMapper">
|
||||||
<resultMap type="CaseAttach" id="CaseAttachResult">
|
<resultMap type="com.ruoyi.wisdomarbitrate.domain.dto.mscase.CaseAttach" id="CaseAttachResult">
|
||||||
<id property="annexId" column="annex_id" />
|
<id property="annexId" column="annex_id" />
|
||||||
<result property="caseAppliId" column="case_appli_id" />
|
<result property="caseAppliId" column="case_appli_id" />
|
||||||
<result property="annexName" column="annex_name" />
|
<result property="annexName" column="annex_name" />
|
||||||
@@ -96,14 +96,14 @@
|
|||||||
</where>
|
</where>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<update id="updateCaseAttach" parameterType="CaseAttach">
|
<update id="updateCaseAttach" parameterType="com.ruoyi.wisdomarbitrate.domain.dto.mscase.CaseAttach">
|
||||||
update ms_case_attach
|
update ms_case_attach
|
||||||
set
|
set
|
||||||
case_appli_id= #{caseAppliId}
|
case_appli_id= #{caseAppliId}
|
||||||
where annex_id = #{annexId}
|
where annex_id = #{annexId}
|
||||||
</update>
|
</update>
|
||||||
|
|
||||||
<update id="updateCaseAttachBycaseid" parameterType="CaseAttach" >
|
<update id="updateCaseAttachBycaseid" parameterType="com.ruoyi.wisdomarbitrate.domain.dto.mscase.CaseAttach" >
|
||||||
update ms_case_attach
|
update ms_case_attach
|
||||||
<set>
|
<set>
|
||||||
<if test="annexName != null and annexName != ''">annex_name = #{annexName},</if>
|
<if test="annexName != null and annexName != ''">annex_name = #{annexName},</if>
|
||||||
|
|||||||
+2
-2
@@ -4,7 +4,7 @@
|
|||||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
<mapper namespace="com.ruoyi.wisdomarbitrate.mapper.sendrecord.SendMailRecordMapper">
|
<mapper namespace="com.ruoyi.wisdomarbitrate.mapper.sendrecord.SendMailRecordMapper">
|
||||||
|
|
||||||
<resultMap type="SendMailRecord" id="SendMailRecordResult">
|
<resultMap type="com.ruoyi.wisdomarbitrate.domain.dto.sendrecord.SendMailRecord" id="SendMailRecordResult">
|
||||||
<id property="id" column="id" />
|
<id property="id" column="id" />
|
||||||
<result property="mailName" column="mail_name" />
|
<result property="mailName" column="mail_name" />
|
||||||
<result property="mailContent" column="mail_content" />
|
<result property="mailContent" column="mail_content" />
|
||||||
@@ -16,7 +16,7 @@
|
|||||||
|
|
||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
<select id="selectSendMailRecord" parameterType="SendMailRecord" resultMap="SendMailRecordResult">
|
<select id="selectSendMailRecord" parameterType="com.ruoyi.wisdomarbitrate.domain.dto.sendrecord.SendMailRecord" resultMap="SendMailRecordResult">
|
||||||
SELECT s.id ,s.mail_name ,s.mail_content ,s.mail_address ,s.send_time ,s.case_id ,s.create_time ,s.create_by ,
|
SELECT s.id ,s.mail_name ,s.mail_content ,s.mail_address ,s.send_time ,s.case_id ,s.create_time ,s.create_by ,
|
||||||
s.update_by ,s.update_time , s.send_status ,c.case_num
|
s.update_by ,s.update_time , s.send_status ,c.case_num
|
||||||
from send_mail_record s left join ms_case_application c
|
from send_mail_record s left join ms_case_application c
|
||||||
|
|||||||
+3
-3
@@ -4,7 +4,7 @@
|
|||||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
|
||||||
<mapper namespace="com.ruoyi.wisdomarbitrate.mapper.sendrecord.SmsRecordMapper">
|
<mapper namespace="com.ruoyi.wisdomarbitrate.mapper.sendrecord.SmsRecordMapper">
|
||||||
<resultMap type="SmsSendRecord" id="SmsSendRecordResult">
|
<resultMap type="com.ruoyi.wisdomarbitrate.domain.dto.sendrecord.SmsSendRecord" id="SmsSendRecordResult">
|
||||||
<id property="id" column="id" />
|
<id property="id" column="id" />
|
||||||
<result property="caseId" column="case_appli_id" />
|
<result property="caseId" column="case_appli_id" />
|
||||||
<result property="caseNum" column="case_num" />
|
<result property="caseNum" column="case_num" />
|
||||||
@@ -17,7 +17,7 @@
|
|||||||
<result property="updateBy" column="update_by" />
|
<result property="updateBy" column="update_by" />
|
||||||
<result property="sendStatus" column="send_status" />
|
<result property="sendStatus" column="send_status" />
|
||||||
</resultMap>
|
</resultMap>
|
||||||
<insert id="saveSmsSendRecord" parameterType="SmsSendRecord" useGeneratedKeys="true" keyProperty="id">
|
<insert id="saveSmsSendRecord" parameterType="com.ruoyi.wisdomarbitrate.domain.dto.sendrecord.SmsSendRecord" useGeneratedKeys="true" keyProperty="id">
|
||||||
|
|
||||||
insert into sms_send_record(
|
insert into sms_send_record(
|
||||||
<if test="caseId != null ">case_appli_id,</if>
|
<if test="caseId != null ">case_appli_id,</if>
|
||||||
@@ -65,7 +65,7 @@
|
|||||||
</foreach>
|
</foreach>
|
||||||
</insert>
|
</insert>
|
||||||
|
|
||||||
<select id="getSmsSendRecord" parameterType="SmsSendRecord" resultMap="SmsSendRecordResult">
|
<select id="getSmsSendRecord" parameterType="com.ruoyi.wisdomarbitrate.domain.dto.sendrecord.SmsSendRecord" resultMap="SmsSendRecordResult">
|
||||||
|
|
||||||
select id ,case_appli_id ,case_num ,phone ,send_time ,send_content,send_status
|
select id ,case_appli_id ,case_num ,phone ,send_time ,send_content,send_status
|
||||||
from sms_send_record
|
from sms_send_record
|
||||||
|
|||||||
@@ -19,16 +19,16 @@
|
|||||||
<select id="listByTemplateId" resultMap="BaseResultMap">
|
<select id="listByTemplateId" resultMap="BaseResultMap">
|
||||||
select f.id ,f.file_name ,f.start_content ,f.end_content ,
|
select f.id ,f.file_name ,f.start_content ,f.end_content ,
|
||||||
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
|
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
|
||||||
from ms_fatch_rule f join ms_template_fatch_rule tfr on f.id=tfr.ms_fatch_rule_id
|
from ms_fatch_rule f join ms_template_fatch_rule tfr on f.id=tfr.fatch_rule_id
|
||||||
where tfr.template_id=#{templateId}
|
where tfr.template_id=#{templateId}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="selectFatchRuleList" parameterType="FatchRule" resultMap="BaseResultMap">
|
<select id="selectFatchRuleList" parameterType="com.ruoyi.wisdomarbitrate.domain.dto.template.FatchRule" resultMap="BaseResultMap">
|
||||||
SELECT f.id ,f.file_name ,f.start_content ,f.end_content ,
|
SELECT f.id ,f.file_name ,f.start_content ,f.end_content ,
|
||||||
f.`column` ,f.is_default ,f.`column_name`,f.start_content_repeat_order,f.end_content_repeat_order,f.fatch_order
|
f.`column` ,f.is_default ,f.`column_name`,f.start_content_repeat_order,f.end_content_repeat_order,f.fatch_order
|
||||||
FROM ms_template_fatch_rule tf
|
FROM ms_template_fatch_rule tf
|
||||||
left join ms_template_manage t on tf.template_id = t.id
|
left join ms_template_manage t on tf.template_id = t.id
|
||||||
LEFT JOIN ms_fatch_rule f on tf.ms_fatch_rule_id = f.id
|
LEFT JOIN ms_fatch_rule f on tf.fatch_rule_id = f.id
|
||||||
<where>
|
<where>
|
||||||
<if test="templateId != null">
|
<if test="templateId != null">
|
||||||
AND tf.template_id = #{templateId}
|
AND tf.template_id = #{templateId}
|
||||||
@@ -36,7 +36,7 @@
|
|||||||
</where>
|
</where>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="selectColumnandComment" parameterType="FatchRule" resultMap="BaseResultMap">
|
<select id="selectColumnandComment" parameterType="com.ruoyi.wisdomarbitrate.domain.dto.template.FatchRule" resultMap="BaseResultMap">
|
||||||
select
|
select
|
||||||
a.COLUMN_name as `column`,
|
a.COLUMN_name as `column`,
|
||||||
a.COLumn_comment as column_name
|
a.COLumn_comment as column_name
|
||||||
@@ -56,7 +56,7 @@
|
|||||||
|
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="selectColumnbycomment" parameterType="FatchRule" resultMap="BaseResultMap">
|
<select id="selectColumnbycomment" parameterType="com.ruoyi.wisdomarbitrate.domain.dto.template.FatchRule" resultMap="BaseResultMap">
|
||||||
select
|
select
|
||||||
COLUMN_NAME
|
COLUMN_NAME
|
||||||
from
|
from
|
||||||
@@ -69,7 +69,7 @@
|
|||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
|
||||||
<select id="selectFatchRuleListIsDefault" parameterType="FatchRule" resultMap="BaseResultMap">
|
<select id="selectFatchRuleListIsDefault" parameterType="com.ruoyi.wisdomarbitrate.domain.dto.template.FatchRule" resultMap="BaseResultMap">
|
||||||
SELECT f.id ,f.file_name ,f.start_content ,f.end_content ,
|
SELECT f.id ,f.file_name ,f.start_content ,f.end_content ,
|
||||||
f.`column` ,f.is_default ,f.`column_name`
|
f.`column` ,f.is_default ,f.`column_name`
|
||||||
FROM ms_fatch_rule f
|
FROM ms_fatch_rule f
|
||||||
@@ -87,7 +87,7 @@
|
|||||||
</foreach>
|
</foreach>
|
||||||
</delete>
|
</delete>
|
||||||
|
|
||||||
<insert id="insertFatchRule" parameterType="FatchRule" useGeneratedKeys="true" keyProperty="id">
|
<insert id="insertFatchRule" parameterType="com.ruoyi.wisdomarbitrate.domain.dto.template.FatchRule" useGeneratedKeys="true" keyProperty="id">
|
||||||
insert into ms_fatch_rule(
|
insert into ms_fatch_rule(
|
||||||
<if test="fileName != null and fileName != ''">file_name,</if>
|
<if test="fileName != null and fileName != ''">file_name,</if>
|
||||||
<if test="startContent != null and startContent != ''">start_content,</if>
|
<if test="startContent != null and startContent != ''">start_content,</if>
|
||||||
|
|||||||
+3
-3
@@ -10,7 +10,7 @@
|
|||||||
<result column="fatch_rule_id" property="fatchRuleId" />
|
<result column="fatch_rule_id" property="fatchRuleId" />
|
||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
<select id="selectTemplateFatchRulecount" parameterType="TemplateFatchRule" resultType="Integer">
|
<select id="selectTemplateFatchRulecount" parameterType="com.ruoyi.wisdomarbitrate.domain.vo.template.TemplateFatchRule" resultType="Integer">
|
||||||
select count(1) from ms_template_fatch_rule t
|
select count(1) from ms_template_fatch_rule t
|
||||||
<where>
|
<where>
|
||||||
<if test="templateId != null">
|
<if test="templateId != null">
|
||||||
@@ -19,7 +19,7 @@
|
|||||||
</where>
|
</where>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="selectTemplateFatchRuleList" parameterType="TemplateFatchRule" resultMap="BaseResultMap">
|
<select id="selectTemplateFatchRuleList" parameterType="com.ruoyi.wisdomarbitrate.domain.vo.template.TemplateFatchRule" resultMap="BaseResultMap">
|
||||||
SELECT t.id ,t.template_id ,t.fatch_rule_id
|
SELECT t.id ,t.template_id ,t.fatch_rule_id
|
||||||
from ms_template_fatch_rule t
|
from ms_template_fatch_rule t
|
||||||
<where>
|
<where>
|
||||||
@@ -35,7 +35,7 @@
|
|||||||
delete from ms_template_fatch_rule where template_id=#{id}
|
delete from ms_template_fatch_rule where template_id=#{id}
|
||||||
</delete>
|
</delete>
|
||||||
|
|
||||||
<insert id="insertTemplateFatchRule" parameterType="TemplateFatchRule" useGeneratedKeys="true" keyProperty="id">
|
<insert id="insertTemplateFatchRule" parameterType="com.ruoyi.wisdomarbitrate.domain.vo.template.TemplateFatchRule" useGeneratedKeys="true" keyProperty="id">
|
||||||
insert into ms_template_fatch_rule(
|
insert into ms_template_fatch_rule(
|
||||||
<if test="templateId != null">template_id,</if>
|
<if test="templateId != null">template_id,</if>
|
||||||
<if test="fatchRuleId != null">fatch_rule_id</if>
|
<if test="fatchRuleId != null">fatch_rule_id</if>
|
||||||
|
|||||||
+4
-4
@@ -3,7 +3,7 @@
|
|||||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
<mapper namespace="com.ruoyi.wisdomarbitrate.mapper.template.TemplateManageMapper">
|
<mapper namespace="com.ruoyi.wisdomarbitrate.mapper.template.TemplateManageMapper">
|
||||||
<resultMap type="TemplateManage" id="TemplateManageResult">
|
<resultMap type="com.ruoyi.wisdomarbitrate.domain.dto.template.TemplateManage" id="TemplateManageResult">
|
||||||
<id property="id" column="id" />
|
<id property="id" column="id" />
|
||||||
<result property="identifyId" column="identify_id" />
|
<result property="identifyId" column="identify_id" />
|
||||||
<result property="temName" column="tem_name" />
|
<result property="temName" column="tem_name" />
|
||||||
@@ -15,7 +15,7 @@
|
|||||||
<result property="fileName" column="file_name" />
|
<result property="fileName" column="file_name" />
|
||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
<insert id="insertTemplateManage" parameterType="TemplateManage" useGeneratedKeys="true" keyProperty="id">
|
<insert id="insertTemplateManage" parameterType="com.ruoyi.wisdomarbitrate.domain.dto.template.TemplateManage" useGeneratedKeys="true" keyProperty="id">
|
||||||
insert into ms_template_manage(
|
insert into ms_template_manage(
|
||||||
<if test="identifyId != null">identify_id,</if>
|
<if test="identifyId != null">identify_id,</if>
|
||||||
<if test="temName != null and temName != ''">tem_name,</if>
|
<if test="temName != null and temName != ''">tem_name,</if>
|
||||||
@@ -39,7 +39,7 @@
|
|||||||
)
|
)
|
||||||
</insert>
|
</insert>
|
||||||
|
|
||||||
<update id="updateTemplateManage" parameterType="TemplateManage">
|
<update id="updateTemplateManage" parameterType="com.ruoyi.wisdomarbitrate.domain.dto.template.TemplateManage">
|
||||||
update ms_template_manage
|
update ms_template_manage
|
||||||
<set>
|
<set>
|
||||||
<if test="identifyId != null">identify_id = #{identifyId},</if>
|
<if test="identifyId != null">identify_id = #{identifyId},</if>
|
||||||
@@ -61,7 +61,7 @@
|
|||||||
</where>
|
</where>
|
||||||
</update>
|
</update>
|
||||||
|
|
||||||
<select id="selectTemplateList" parameterType="TemplateManage" resultMap="TemplateManageResult">
|
<select id="selectTemplateList" parameterType="com.ruoyi.wisdomarbitrate.domain.dto.template.TemplateManage" resultMap="TemplateManageResult">
|
||||||
SELECT id, identify_id ,tem_name , tem_type,tem_format,tem_orig_path,tem_revis_path ,file_name
|
SELECT id, identify_id ,tem_name , tem_type,tem_format,tem_orig_path,tem_revis_path ,file_name
|
||||||
FROM ms_template_manage
|
FROM ms_template_manage
|
||||||
<where>
|
<where>
|
||||||
|
|||||||
Reference in New Issue
Block a user