将mysql修改为达梦

main
dongdingding 9 hours ago
parent 1c6108cd1a
commit ad9210164b

@ -10,12 +10,18 @@
<modelVersion>4.0.0</modelVersion>
<packaging>jar</packaging>
<artifactId>ruoyi-admin</artifactId>
<description>
web服务入口
</description>
<properties>
<dameng-jdbc-driver.version>8.1.1.193</dameng-jdbc-driver.version>
</properties>
<dependencies>
<dependency>
<groupId>com.dameng</groupId>
<artifactId>DmJdbcDriver18</artifactId>
<version>${dameng-jdbc-driver.version}</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.projectlombok/lombok -->
<dependency>
<groupId>org.projectlombok</groupId>

@ -0,0 +1,62 @@
# 数据源配置
spring:
datasource:
type: com.alibaba.druid.pool.DruidDataSource
driverClassName: dm.jdbc.driver.DmDriver
druid:
# 主库数据源
master:
url: jdbc:dm://localhost:5236/SZYJ?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
#url: jdbc:dm://localhost:5236/JCDBA?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
username: SZYJ
password: Qu8tDy25Jknx
# 从库数据源
slave:
# 从数据源开关/默认关闭
enabled: false
url:
username:
password:
# 初始连接数
initialSize: 5
# 最小连接池数量
minIdle: 10
# 最大连接池数量
maxActive: 20
# 配置获取连接等待超时的时间
maxWait: 60000
# 配置连接超时时间
connectTimeout: 30000
# 配置网络超时时间
socketTimeout: 60000
# 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
timeBetweenEvictionRunsMillis: 60000
# 配置一个连接在池中最小生存的时间,单位是毫秒
minEvictableIdleTimeMillis: 300000
# 配置一个连接在池中最大生存的时间,单位是毫秒
maxEvictableIdleTimeMillis: 900000
# 配置检测连接是否有效
validationQuery: SELECT 1 FROM DUAL
testWhileIdle: true
testOnBorrow: false
testOnReturn: false
webStatFilter:
enabled: true
statViewServlet:
enabled: true
# 设置白名单,不填则允许所有访问
allow:
url-pattern: /druid/*
# 控制台管理用户名和密码
login-username: ruoyi
login-password: 123456
filter:
stat:
enabled: true
# 慢SQL记录
log-slow-sql: true
slow-sql-millis: 1000
merge-sql: true
wall:
config:
multi-statement-allow: true

@ -59,7 +59,7 @@ spring:
# 国际化资源文件路径
basename: i18n/messages
profiles:
active: internet
active: dm
# 文件上传
servlet:
multipart:

@ -17,7 +17,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<sql id="selectJobLogVo">
select job_log_id, job_name, job_group, invoke_target, job_message, status, exception_info, create_time
from sys_job_log
from SZYJ.sys_job_log
</sql>
<select id="selectJobLogList" parameterType="SysJobLog" resultMap="SysJobLogResult">
@ -54,22 +54,22 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</select>
<delete id="deleteJobLogById" parameterType="Long">
delete from sys_job_log where job_log_id = #{jobLogId}
delete from SZYJ.sys_job_log where job_log_id = #{jobLogId}
</delete>
<delete id="deleteJobLogByIds" parameterType="Long">
delete from sys_job_log where job_log_id in
delete from SZYJ.sys_job_log where job_log_id in
<foreach collection="array" item="jobLogId" open="(" separator="," close=")">
#{jobLogId}
</foreach>
</delete>
<update id="cleanJobLog">
truncate table sys_job_log
truncate table SZYJ.sys_job_log
</update>
<insert id="insertJobLog" parameterType="SysJobLog">
insert into sys_job_log(
insert into SZYJ.sys_job_log(
<if test="jobLogId != null and jobLogId != 0">job_log_id,</if>
<if test="jobName != null and jobName != ''">job_name,</if>
<if test="jobGroup != null and jobGroup != ''">job_group,</if>

@ -22,7 +22,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<sql id="selectJobVo">
select job_id, job_name, job_group, invoke_target, cron_expression, misfire_policy, concurrent, status, create_by, create_time, remark
from sys_job
from SZYJ.sys_job
</sql>
<select id="selectJobList" parameterType="SysJob" resultMap="SysJobResult">
@ -53,18 +53,18 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</select>
<delete id="deleteJobById" parameterType="Long">
delete from sys_job where job_id = #{jobId}
delete from SZYJ.sys_job where job_id = #{jobId}
</delete>
<delete id="deleteJobByIds" parameterType="Long">
delete from sys_job where job_id in
delete from SZYJ.sys_job where job_id in
<foreach collection="array" item="jobId" open="(" separator="," close=")">
#{jobId}
</foreach>
</delete>
<update id="updateJob" parameterType="SysJob">
update sys_job
update SZYJ.sys_job
<set>
<if test="jobName != null and jobName != ''">job_name = #{jobName},</if>
<if test="jobGroup != null and jobGroup != ''">job_group = #{jobGroup},</if>
@ -81,7 +81,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</update>
<insert id="insertJob" parameterType="SysJob" useGeneratedKeys="true" keyProperty="jobId">
insert into sys_job(
insert into SZYJ.sys_job(
<if test="jobId != null and jobId != 0">job_id,</if>
<if test="jobName != null and jobName != ''">job_name,</if>
<if test="jobGroup != null and jobGroup != ''">job_group,</if>

@ -18,7 +18,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<sql id="selectConfigVo">
select config_id, config_name, config_key, config_value, config_type, create_by, create_time, update_by, update_time, remark
from sys_config
from SZYJ.sys_config
</sql>
<!-- 查询条件 -->
@ -70,7 +70,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</select>
<insert id="insertConfig" parameterType="SysConfig">
insert into sys_config (
insert into SZYJ.sys_config (
<if test="configName != null and configName != '' ">config_name,</if>
<if test="configKey != null and configKey != '' ">config_key,</if>
<if test="configValue != null and configValue != '' ">config_value,</if>
@ -90,7 +90,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</insert>
<update id="updateConfig" parameterType="SysConfig">
update sys_config
update SZYJ.sys_config
<set>
<if test="configName != null and configName != ''">config_name = #{configName},</if>
<if test="configKey != null and configKey != ''">config_key = #{configKey},</if>
@ -104,11 +104,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</update>
<delete id="deleteConfigById" parameterType="Long">
delete from sys_config where config_id = #{configId}
delete from SZYJ.sys_config where config_id = #{configId}
</delete>
<delete id="deleteConfigByIds" parameterType="Long">
delete from sys_config where config_id in
delete from SZYJ.sys_config where config_id in
<foreach item="configId" collection="array" open="(" separator="," close=")">
#{configId}
</foreach>

@ -24,7 +24,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<sql id="selectDeptVo">
select d.dept_id, d.parent_id, d.ancestors, d.dept_name, d.order_num, d.leader, d.phone, d.email, d.status, d.del_flag, d.create_by, d.create_time
from sys_dept d
from SZYJ.sys_dept d
</sql>
<select id="selectDeptList" parameterType="SysDept" resultMap="SysDeptResult">
@ -49,8 +49,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="selectDeptListByRoleId" resultType="Long">
select d.dept_id
from sys_dept d
left join sys_role_dept rd on d.dept_id = rd.dept_id
from SZYJ.sys_dept d
left join SZYJ.sys_role_dept rd on d.dept_id = rd.dept_id
where rd.role_id = #{roleId}
<if test="deptCheckStrictly">
and d.dept_id not in (select d.parent_id from sys_dept d inner join sys_role_dept rd on d.dept_id = rd.dept_id and rd.role_id = #{roleId})
@ -60,26 +60,26 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="selectDeptById" parameterType="Long" resultMap="SysDeptResult">
select d.dept_id, d.parent_id, d.ancestors, d.dept_name, d.order_num, d.leader, d.phone, d.email, d.status,
(select dept_name from sys_dept where dept_id = d.parent_id) parent_name
from sys_dept d
(select dept_name from SZYJ.sys_dept where dept_id = d.parent_id) parent_name
from SZYJ.sys_dept d
where d.dept_id = #{deptId}
</select>
<select id="checkDeptExistUser" parameterType="Long" resultType="int">
select count(1) from sys_user where dept_id = #{deptId} and del_flag = '0'
select count(1) from SZYJ.sys_user where dept_id = #{deptId} and del_flag = '0'
</select>
<select id="hasChildByDeptId" parameterType="Long" resultType="int">
select count(1) from sys_dept
select count(1) from SZYJ.sys_dept
where del_flag = '0' and parent_id = #{deptId} limit 1
</select>
<select id="selectChildrenDeptById" parameterType="Long" resultMap="SysDeptResult">
select * from sys_dept where find_in_set(#{deptId}, ancestors)
select * from SZYJ.sys_dept where find_in_set(#{deptId}, ancestors)
</select>
<select id="selectNormalChildrenDeptById" parameterType="Long" resultType="int">
select count(*) from sys_dept where status = 0 and del_flag = '0' and find_in_set(#{deptId}, ancestors)
select count(*) from SZYJ.sys_dept where status = 0 and del_flag = '0' and find_in_set(#{deptId}, ancestors)
</select>
<select id="checkDeptNameUnique" resultMap="SysDeptResult">
@ -88,7 +88,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</select>
<insert id="insertDept" parameterType="SysDept">
insert into sys_dept(
insert into SZYJ.sys_dept(
<if test="deptId != null and deptId != 0">dept_id,</if>
<if test="parentId != null and parentId != 0">parent_id,</if>
<if test="deptName != null and deptName != ''">dept_name,</if>
@ -116,7 +116,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</insert>
<update id="updateDept" parameterType="SysDept">
update sys_dept
update SZYJ.sys_dept
<set>
<if test="parentId != null and parentId != 0">parent_id = #{parentId},</if>
<if test="deptName != null and deptName != ''">dept_name = #{deptName},</if>
@ -133,7 +133,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</update>
<update id="updateDeptChildren" parameterType="java.util.List">
update sys_dept set ancestors =
update SZYJ.sys_dept set ancestors =
<foreach collection="depts" item="item" index="index"
separator=" " open="case dept_id" close="end">
when #{item.deptId} then #{item.ancestors}
@ -146,14 +146,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</update>
<update id="updateDeptStatusNormal" parameterType="Long">
update sys_dept set status = '0' where dept_id in
update SZYJ.sys_dept set status = '0' where dept_id in
<foreach collection="array" item="deptId" open="(" separator="," close=")">
#{deptId}
</foreach>
</update>
<delete id="deleteDeptById" parameterType="Long">
update sys_dept set del_flag = '2' where dept_id = #{deptId}
update SZYJ.sys_dept set del_flag = '2' where dept_id = #{deptId}
</delete>
</mapper>

@ -22,7 +22,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<sql id="selectDictDataVo">
select dict_code, dict_sort, dict_label, dict_value, dict_type, css_class, list_class, is_default, status, create_by, create_time, remark
from sys_dict_data
from SZYJ.sys_dict_data
</sql>
<select id="selectDictDataList" parameterType="SysDictData" resultMap="SysDictDataResult">
@ -47,7 +47,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</select>
<select id="selectDictLabel" resultType="String">
select dict_label from sys_dict_data
select dict_label from SZYJ.sys_dict_data
where dict_type = #{dictType} and dict_value = #{dictValue}
</select>
@ -57,22 +57,22 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</select>
<select id="countDictDataByType" resultType="Integer">
select count(1) from sys_dict_data where dict_type=#{dictType}
select count(1) from SZYJ.sys_dict_data where dict_type=#{dictType}
</select>
<delete id="deleteDictDataById" parameterType="Long">
delete from sys_dict_data where dict_code = #{dictCode}
delete from SZYJ.sys_dict_data where dict_code = #{dictCode}
</delete>
<delete id="deleteDictDataByIds" parameterType="Long">
delete from sys_dict_data where dict_code in
delete from SZYJ.sys_dict_data where dict_code in
<foreach collection="array" item="dictCode" open="(" separator="," close=")">
#{dictCode}
</foreach>
</delete>
<update id="updateDictData" parameterType="SysDictData">
update sys_dict_data
update SZYJ.sys_dict_data
<set>
<if test="dictSort != null">dict_sort = #{dictSort},</if>
<if test="dictLabel != null and dictLabel != ''">dict_label = #{dictLabel},</if>
@ -90,11 +90,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</update>
<update id="updateDictDataType" parameterType="String">
update sys_dict_data set dict_type = #{newDictType} where dict_type = #{oldDictType}
update SZYJ.sys_dict_data set dict_type = #{newDictType} where dict_type = #{oldDictType}
</update>
<insert id="insertDictData" parameterType="SysDictData">
insert into sys_dict_data(
insert into SZYJ.sys_dict_data(
<if test="dictSort != null">dict_sort,</if>
<if test="dictLabel != null and dictLabel != ''">dict_label,</if>
<if test="dictValue != null and dictValue != ''">dict_value,</if>

@ -17,7 +17,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<sql id="selectDictTypeVo">
select dict_id, dict_name, dict_type, status, create_by, create_time, remark
from sys_dict_type
from SZYJ.sys_dict_type
</sql>
<select id="selectDictTypeList" parameterType="SysDictType" resultMap="SysDictTypeResult">
@ -61,18 +61,18 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</select>
<delete id="deleteDictTypeById" parameterType="Long">
delete from sys_dict_type where dict_id = #{dictId}
delete from SZYJ.sys_dict_type where dict_id = #{dictId}
</delete>
<delete id="deleteDictTypeByIds" parameterType="Long">
delete from sys_dict_type where dict_id in
delete from SZYJ.sys_dict_type where dict_id in
<foreach collection="array" item="dictId" open="(" separator="," close=")">
#{dictId}
</foreach>
</delete>
<update id="updateDictType" parameterType="SysDictType">
update sys_dict_type
update SZYJ.sys_dict_type
<set>
<if test="dictName != null and dictName != ''">dict_name = #{dictName},</if>
<if test="dictType != null and dictType != ''">dict_type = #{dictType},</if>
@ -85,7 +85,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</update>
<insert id="insertDictType" parameterType="SysDictType">
insert into sys_dict_type(
insert into SZYJ.sys_dict_type(
<if test="dictName != null and dictName != ''">dict_name,</if>
<if test="dictType != null and dictType != ''">dict_type,</if>
<if test="status != null">status,</if>

@ -17,12 +17,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</resultMap>
<insert id="insertLogininfor" parameterType="SysLogininfor">
insert into sys_logininfor (user_name, status, ipaddr, login_location, browser, os, msg, login_time)
insert into SZYJ.sys_logininfor (user_name, status, ipaddr, login_location, browser, os, msg, login_time)
values (#{userName}, #{status}, #{ipaddr}, #{loginLocation}, #{browser}, #{os}, #{msg}, sysdate())
</insert>
<select id="selectLogininforList" parameterType="SysLogininfor" resultMap="SysLogininforResult">
select info_id, user_name, ipaddr, login_location, browser, os, status, msg, login_time from sys_logininfor
select info_id, user_name, ipaddr, login_location, browser, os, status, msg, login_time from SZYJ.sys_logininfor
<where>
<if test="ipaddr != null and ipaddr != ''">
AND ipaddr like concat('%', #{ipaddr}, '%')
@ -44,14 +44,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</select>
<delete id="deleteLogininforByIds" parameterType="Long">
delete from sys_logininfor where info_id in
delete from SZYJ.sys_logininfor where info_id in
<foreach collection="array" item="infoId" open="(" separator="," close=")">
#{infoId}
</foreach>
</delete>
<update id="cleanLogininfor">
truncate table sys_logininfor
truncate table SZYJ.sys_logininfor
</update>
</mapper>

@ -29,7 +29,7 @@
<sql id="selectMenuVo">
select menu_id, menu_name, parent_id, order_num, path, component, `query`, is_frame, is_cache, menu_type, visible, status, ifnull(perms,'') as perms, icon, create_time
from sys_menu
from SZYJ.sys_menu
</sql>
<select id="selectMenuList" parameterType="SysMenu" resultMap="SysMenuResult">
@ -50,13 +50,13 @@
<select id="selectMenuTreeAll" 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
from sys_menu m where m.menu_type in ('M', 'C') and m.status = 0
from SZYJ.sys_menu m where m.menu_type in ('M', 'C') and m.status = 0
order by m.parent_id, m.order_num
</select>
<select id="selectMenuListByUserId" parameterType="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
from sys_menu m
from SZYJ.sys_menu m
left join sys_role_menu rm on m.menu_id = rm.menu_id
left join sys_user_role ur on rm.role_id = ur.role_id
left join sys_role ro on ur.role_id = ro.role_id
@ -75,7 +75,7 @@
<select id="selectMenuTreeByUserId" parameterType="Long" 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
from sys_menu m
from SZYJ.sys_menu m
left join sys_role_menu rm on m.menu_id = rm.menu_id
left join sys_user_role ur on rm.role_id = ur.role_id
left join sys_role ro on ur.role_id = ro.role_id
@ -86,25 +86,25 @@
<select id="selectMenuListByRoleId" resultType="Long">
select m.menu_id
from sys_menu m
from SZYJ.sys_menu m
left join sys_role_menu rm on m.menu_id = rm.menu_id
where rm.role_id = #{roleId}
<if test="menuCheckStrictly">
and m.menu_id not in (select m.parent_id from sys_menu m inner join sys_role_menu rm on m.menu_id = rm.menu_id and rm.role_id = #{roleId})
and m.menu_id not in (select m.parent_id from SZYJ.sys_menu m inner join sys_role_menu rm on m.menu_id = rm.menu_id and rm.role_id = #{roleId})
</if>
order by m.parent_id, m.order_num
</select>
<select id="selectMenuPerms" resultType="String">
select distinct m.perms
from sys_menu m
from SZYJ.sys_menu m
left join sys_role_menu rm on m.menu_id = rm.menu_id
left join sys_user_role ur on rm.role_id = ur.role_id
</select>
<select id="selectMenuPermsByUserId" parameterType="Long" resultType="String">
select distinct m.perms
from sys_menu m
from SZYJ.sys_menu m
left join sys_role_menu rm on m.menu_id = rm.menu_id
left join sys_user_role ur on rm.role_id = ur.role_id
left join sys_role r on r.role_id = ur.role_id
@ -113,7 +113,7 @@
<select id="selectMenuPermsByRoleId" parameterType="Long" resultType="String">
select distinct m.perms
from sys_menu m
from SZYJ.sys_menu m
left join sys_role_menu rm on m.menu_id = rm.menu_id
where m.status = '0' and rm.role_id = #{roleId}
</select>
@ -124,7 +124,7 @@
</select>
<select id="hasChildByMenuId" resultType="Integer">
select count(1) from sys_menu where parent_id = #{menuId}
select count(1) from SZYJ.sys_menu where parent_id = #{menuId}
</select>
<select id="checkMenuNameUnique" parameterType="SysMenu" resultMap="SysMenuResult">
@ -133,7 +133,7 @@
</select>
<update id="updateMenu" parameterType="SysMenu">
update sys_menu
update SZYJ.sys_menu
<set>
<if test="menuName != null and menuName != ''">menu_name = #{menuName},</if>
<if test="parentId != null">parent_id = #{parentId},</if>
@ -156,7 +156,7 @@
</update>
<insert id="insertMenu" parameterType="SysMenu">
insert into sys_menu(
insert into SZYJ.sys_menu(
<if test="menuId != null and menuId != 0">menu_id,</if>
<if test="parentId != null and parentId != 0">parent_id,</if>
<if test="menuName != null and menuName != ''">menu_name,</if>
@ -196,7 +196,7 @@
</insert>
<delete id="deleteMenuById" parameterType="Long">
delete from sys_menu where menu_id = #{menuId}
delete from SZYJ.sys_menu where menu_id = #{menuId}
</delete>
</mapper>

@ -19,7 +19,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<sql id="selectNoticeVo">
select notice_id, notice_title, notice_type, cast(notice_content as char) as notice_content, status, create_by, create_time, update_by, update_time, remark
from sys_notice
from SZYJ.sys_notice
</sql>
<select id="selectNoticeById" parameterType="Long" resultMap="SysNoticeResult">
@ -43,7 +43,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</select>
<insert id="insertNotice" parameterType="SysNotice">
insert into sys_notice (
insert into SZYJ.sys_notice (
<if test="noticeTitle != null and noticeTitle != '' ">notice_title, </if>
<if test="noticeType != null and noticeType != '' ">notice_type, </if>
<if test="noticeContent != null and noticeContent != '' ">notice_content, </if>
@ -63,7 +63,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</insert>
<update id="updateNotice" parameterType="SysNotice">
update sys_notice
update SZYJ.sys_notice
<set>
<if test="noticeTitle != null and noticeTitle != ''">notice_title = #{noticeTitle}, </if>
<if test="noticeType != null and noticeType != ''">notice_type = #{noticeType}, </if>
@ -76,11 +76,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</update>
<delete id="deleteNoticeById" parameterType="Long">
delete from sys_notice where notice_id = #{noticeId}
delete from SZYJ.sys_notice where notice_id = #{noticeId}
</delete>
<delete id="deleteNoticeByIds" parameterType="Long">
delete from sys_notice where notice_id in
delete from SZYJ.sys_notice where notice_id in
<foreach item="noticeId" collection="array" open="(" separator="," close=")">
#{noticeId}
</foreach>

@ -26,11 +26,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<sql id="selectOperLogVo">
select oper_id, 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, oper_time, cost_time
from sys_oper_log
from SZYJ.sys_oper_log
</sql>
<insert id="insertOperlog" parameterType="SysOperLog">
insert into 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 SZYJ.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())
</insert>
@ -66,7 +66,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</select>
<delete id="deleteOperLogByIds" parameterType="Long">
delete from sys_oper_log where oper_id in
delete from SZYJ.sys_oper_log where oper_id in
<foreach collection="array" item="operId" open="(" separator="," close=")">
#{operId}
</foreach>
@ -78,7 +78,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</select>
<update id="cleanOperLog">
truncate table sys_oper_log
truncate table SZYJ.sys_oper_log
</update>
</mapper>

@ -19,7 +19,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<sql id="selectPostVo">
select post_id, post_code, post_name, post_sort, status, create_by, create_time, remark
from sys_post
from SZYJ.sys_post
</sql>
<select id="selectPostList" parameterType="SysPost" resultMap="SysPostResult">
@ -48,17 +48,17 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="selectPostListByUserId" parameterType="Long" resultType="Long">
select p.post_id
from sys_post p
left join sys_user_post up on up.post_id = p.post_id
left join sys_user u on u.user_id = up.user_id
from SZYJ.sys_post p
left join SZYJsys_user_post up on up.post_id = p.post_id
left join SZYJsys_user u on u.user_id = up.user_id
where u.user_id = #{userId}
</select>
<select id="selectPostsByUserName" parameterType="String" resultMap="SysPostResult">
select p.post_id, p.post_name, p.post_code
from sys_post p
left join sys_user_post up on up.post_id = p.post_id
left join sys_user u on u.user_id = up.user_id
from SZYJ.sys_post p
left join SZYJsys_user_post up on up.post_id = p.post_id
left join SZYJsys_user u on u.user_id = up.user_id
where u.user_name = #{userName}
</select>
@ -73,7 +73,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</select>
<update id="updatePost" parameterType="SysPost">
update sys_post
update SZYJ.sys_post
<set>
<if test="postCode != null and postCode != ''">post_code = #{postCode},</if>
<if test="postName != null and postName != ''">post_name = #{postName},</if>
@ -87,7 +87,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</update>
<insert id="insertPost" parameterType="SysPost" useGeneratedKeys="true" keyProperty="postId">
insert into sys_post(
insert into SZYJ.sys_post(
<if test="postId != null and postId != 0">post_id,</if>
<if test="postCode != null and postCode != ''">post_code,</if>
<if test="postName != null and postName != ''">post_name,</if>
@ -109,11 +109,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</insert>
<delete id="deletePostById" parameterType="Long">
delete from sys_post where post_id = #{postId}
delete from SZYJ.sys_post where post_id = #{postId}
</delete>
<delete id="deletePostByIds" parameterType="Long">
delete from sys_post where post_id in
delete from SZYJ.sys_post where post_id in
<foreach collection="array" item="postId" open="(" separator="," close=")">
#{postId}
</foreach>

@ -10,22 +10,22 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</resultMap>
<delete id="deleteRoleDeptByRoleId" parameterType="Long">
delete from sys_role_dept where role_id=#{roleId}
delete from SZYJ.sys_role_dept where role_id=#{roleId}
</delete>
<select id="selectCountRoleDeptByDeptId" resultType="Integer">
select count(1) from sys_role_dept where dept_id=#{deptId}
select count(1) from SZYJ.sys_role_dept where dept_id=#{deptId}
</select>
<delete id="deleteRoleDept" parameterType="Long">
delete from sys_role_dept where role_id in
delete from SZYJ.sys_role_dept where role_id in
<foreach collection="array" item="roleId" open="(" separator="," close=")">
#{roleId}
</foreach>
</delete>
<insert id="batchRoleDept">
insert into sys_role_dept(role_id, dept_id) values
insert into SZYJ.sys_role_dept(role_id, dept_id) values
<foreach item="item" index="index" collection="list" separator=",">
(#{item.roleId},#{item.deptId})
</foreach>

@ -24,10 +24,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<sql id="selectRoleVo">
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 sys_role r
left join sys_user_role ur on ur.role_id = r.role_id
left join sys_user u on u.user_id = ur.user_id
left join sys_dept d on u.dept_id = d.dept_id
from SZYJ.sys_role r
left join SZYJ.sys_user_role ur on ur.role_id = r.role_id
left join SZYJ.sys_user u on u.user_id = ur.user_id
left join SZYJ.sys_dept d on u.dept_id = d.dept_id
</sql>
<select id="selectRoleList" parameterType="SysRole" resultMap="SysRoleResult">
@ -67,9 +67,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="selectRoleListByUserId" parameterType="Long" resultType="Long">
select r.role_id
from sys_role r
left join sys_user_role ur on ur.role_id = r.role_id
left join sys_user u on u.user_id = ur.user_id
from SZYJ.sys_role r
left join SZYJ.sys_user_role ur on ur.role_id = r.role_id
left join SZYJ.sys_user u on u.user_id = ur.user_id
where u.user_id = #{userId}
</select>
@ -94,7 +94,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</select>
<insert id="insertRole" parameterType="SysRole" useGeneratedKeys="true" keyProperty="roleId">
insert into sys_role(
insert into SZYJ.sys_role(
<if test="roleId != null and roleId != 0">role_id,</if>
<if test="roleName != null and roleName != ''">role_name,</if>
<if test="roleKey != null and roleKey != ''">role_key,</if>
@ -122,7 +122,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</insert>
<update id="updateRole" parameterType="SysRole">
update sys_role
update SZYJ.sys_role
<set>
<if test="roleName != null and roleName != ''">role_name = #{roleName},</if>
<if test="roleKey != null and roleKey != ''">role_key = #{roleKey},</if>
@ -139,11 +139,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</update>
<delete id="deleteRoleById" parameterType="Long">
update sys_role set del_flag = '2' where role_id = #{roleId}
update SZYJ.sys_role set del_flag = '2' where role_id = #{roleId}
</delete>
<delete id="deleteRoleByIds" parameterType="Long">
update sys_role set del_flag = '2' where role_id in
update SZYJ.sys_role set del_flag = '2' where role_id in
<foreach collection="array" item="roleId" open="(" separator="," close=")">
#{roleId}
</foreach>

@ -10,22 +10,22 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</resultMap>
<select id="checkMenuExistRole" resultType="Integer">
select count(1) from sys_role_menu where menu_id = #{menuId}
select count(1) from SZYJ.sys_role_menu where menu_id = #{menuId}
</select>
<delete id="deleteRoleMenuByRoleId" parameterType="Long">
delete from sys_role_menu where role_id=#{roleId}
delete from SZYJ.sys_role_menu where role_id=#{roleId}
</delete>
<delete id="deleteRoleMenu" parameterType="Long">
delete from sys_role_menu where role_id in
delete from SZYJ.sys_role_menu where role_id in
<foreach collection="array" item="roleId" open="(" separator="," close=")">
#{roleId}
</foreach>
</delete>
<insert id="batchRoleMenu">
insert into sys_role_menu(role_id, menu_id) values
insert into SZYJ.sys_role_menu(role_id, menu_id) values
<foreach item="item" index="index" collection="list" separator=",">
(#{item.roleId},#{item.menuId})
</foreach>

@ -86,10 +86,10 @@
r.role_sort,
r.data_scope,
r.status as role_status
from sys_user u
left join sys_dept d on u.dept_id = d.dept_id
left join sys_user_role ur on u.user_id = ur.user_id
left join sys_role r on r.role_id = ur.role_id
from SZYJ.sys_user u
left join SZYJ.sys_dept d on u.dept_id = d.dept_id
left join SZYJ.sys_user_role ur on u.user_id = ur.user_id
left join SZYJ.sys_role r on r.role_id = ur.role_id
</sql>
<select id="selectUserList" parameterType="SysUser" resultMap="SysUserResult">
@ -98,9 +98,9 @@
u.law_areas,
u.law_level,
u.permission_description,
u.permission_code, d.dept_name, d.leader from sys_user
u.permission_code, d.dept_name, d.leader from SZYJ.sys_user
u
left join sys_dept d on u.dept_id = d.dept_id
left join SZYJ.sys_dept d on u.dept_id = d.dept_id
where u.del_flag = '0'
<if test="userId != null and userId != 0">
AND u.user_id = #{userId}
@ -134,10 +134,10 @@
u.law_level,
u.permission_description,
u.permission_code
from sys_user u
left join sys_dept d on u.dept_id = d.dept_id
left join sys_user_role ur on u.user_id = ur.user_id
left join sys_role r on r.role_id = ur.role_id
from SZYJ.sys_user u
left join SZYJ.sys_dept d on u.dept_id = d.dept_id
left join SZYJ.sys_user_role ur on u.user_id = ur.user_id
left join SZYJ.sys_role r on r.role_id = ur.role_id
where u.del_flag = '0' and r.role_id = #{roleId}
<if test="userName != null and userName != ''">
AND u.user_name like concat('%', #{userName}, '%')
@ -155,12 +155,12 @@
u.law_level,
u.permission_description,
u.permission_code
from sys_user u
left join sys_dept d on u.dept_id = d.dept_id
left join sys_user_role ur on u.user_id = ur.user_id
left join sys_role r on r.role_id = ur.role_id
from SZYJ.sys_user u
left join SZYJ.sys_dept d on u.dept_id = d.dept_id
left join SZYJ.sys_user_role ur on u.user_id = ur.user_id
left join SZYJ.sys_role r on r.role_id = ur.role_id
where u.del_flag = '0' and (r.role_id != #{roleId} or r.role_id IS NULL)
and u.user_id not in (select u.user_id from sys_user u inner join sys_user_role ur on u.user_id = ur.user_id and
and u.user_id not in (select u.user_id from SZYJ.sys_user u inner join SZYJ.sys_user_role ur on u.user_id = ur.user_id and
ur.role_id = #{roleId})
<if test="userName != null and userName != ''">
AND u.user_name like concat('%', #{userName}, '%')
@ -184,28 +184,28 @@
<select id="checkUserNameUnique" parameterType="String" resultMap="SysUserResult">
select user_id, user_name
from sys_user
from SZYJ.sys_user
where user_name = #{userName}
and del_flag = '0' limit 1
</select>
<select id="checkPhoneUnique" parameterType="String" resultMap="SysUserResult">
select user_id, phonenumber
from sys_user
from SZYJ.sys_user
where phonenumber = #{phonenumber}
and del_flag = '0' limit 1
</select>
<select id="checkEmailUnique" parameterType="String" resultMap="SysUserResult">
select user_id, email
from sys_user
from SZYJ.sys_user
where email = #{email}
and del_flag = '0' limit 1
</select>
<insert id="insertUser" parameterType="SysUser" useGeneratedKeys="true" keyProperty="userId">
insert into sys_user(
insert into SZYJ.sys_user(
<if test="userId != null and userId != 0">user_id,</if>
<if test="deptId != null and deptId != 0">dept_id,</if>
<if test="userName != null and userName != ''">user_name,</if>
@ -247,7 +247,7 @@
</insert>
<update id="updateUser" parameterType="SysUser">
update sys_user
update SZYJ.sys_user
<set>
<if test="deptId != null and deptId != 0">dept_id = #{deptId},</if>
<if test="userName != null and userName != ''">user_name = #{userName},</if>
@ -273,31 +273,31 @@
</update>
<update id="updateUserStatus" parameterType="SysUser">
update sys_user
update SZYJ.sys_user
set status = #{status}
where user_id = #{userId}
</update>
<update id="updateUserAvatar" parameterType="SysUser">
update sys_user
update SZYJ.sys_user
set avatar = #{avatar}
where user_name = #{userName}
</update>
<update id="resetUserPwd" parameterType="SysUser">
update sys_user
update SZYJ.sys_user
set password = #{password}
where user_name = #{userName}
</update>
<delete id="deleteUserById" parameterType="Long">
update sys_user
update SZYJ.sys_user
set del_flag = '2'
where user_id = #{userId}
</delete>
<delete id="deleteUserByIds" parameterType="Long">
update sys_user set del_flag = '2' where user_id in
update SZYJ.sys_user set del_flag = '2' where user_id in
<foreach collection="array" item="userId" open="(" separator="," close=")">
#{userId}
</foreach>

@ -10,22 +10,22 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</resultMap>
<delete id="deleteUserPostByUserId" parameterType="Long">
delete from sys_user_post where user_id=#{userId}
delete from SZYJ.sys_user_post where user_id=#{userId}
</delete>
<select id="countUserPostById" resultType="Integer">
select count(1) from sys_user_post where post_id=#{postId}
select count(1) from SZYJ.sys_user_post where post_id=#{postId}
</select>
<delete id="deleteUserPost" parameterType="Long">
delete from sys_user_post where user_id in
delete from SZYJ.sys_user_post where user_id in
<foreach collection="array" item="userId" open="(" separator="," close=")">
#{userId}
</foreach>
</delete>
<insert id="batchUserPost">
insert into sys_user_post(user_id, post_id) values
insert into SZYJ.sys_user_post(user_id, post_id) values
<foreach item="item" index="index" collection="list" separator=",">
(#{item.userId},#{item.postId})
</foreach>

@ -10,33 +10,33 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</resultMap>
<delete id="deleteUserRoleByUserId" parameterType="Long">
delete from sys_user_role where user_id=#{userId}
delete from SZYJ.sys_user_role where user_id=#{userId}
</delete>
<select id="countUserRoleByRoleId" resultType="Integer">
select count(1) from sys_user_role where role_id=#{roleId}
select count(1) from SZYJ.sys_user_role where role_id=#{roleId}
</select>
<delete id="deleteUserRole" parameterType="Long">
delete from sys_user_role where user_id in
delete from SZYJ.sys_user_role where user_id in
<foreach collection="array" item="userId" open="(" separator="," close=")">
#{userId}
</foreach>
</delete>
<insert id="batchUserRole">
insert into sys_user_role(user_id, role_id) values
insert into SZYJ.sys_user_role(user_id, role_id) values
<foreach item="item" index="index" collection="list" separator=",">
(#{item.userId},#{item.roleId})
</foreach>
</insert>
<delete id="deleteUserRoleInfo" parameterType="SysUserRole">
delete from sys_user_role where user_id=#{userId} and role_id=#{roleId}
delete from SZYJ.sys_user_role where user_id=#{userId} and role_id=#{roleId}
</delete>
<delete id="deleteUserRoleInfos">
delete from sys_user_role where role_id=#{roleId} and user_id in
delete from SZYJ.sys_user_role where role_id=#{roleId} and user_id in
<foreach collection="userIds" item="userId" open="(" separator="," close=")">
#{userId}
</foreach>

@ -15,7 +15,7 @@
<sql id="selectBAdministrativeDivisionVo">
select id, district_code, district, county_code, county, sort
from b_administrative_division
from SZYJ.b_administrative_division
</sql>
<select id="selectBAdministrativeDivisionList" parameterType="BAdministrativeDivision"
@ -37,19 +37,19 @@
<select id="selectByDistctList"
resultType="com.ruoyi.programManagement.entity.request.BAdministrativeTreeRequest">
select county_code as countyCode, county, sort
from b_administrative_division
from SZYJ.b_administrative_division
</select>
<select id="selectBycountyList"
resultType="com.ruoyi.programManagement.entity.request.BAdministrativeDistrictRequest">
select district_code as districtCode,district
from b_administrative_division
from SZYJ.b_administrative_division
group by districtCode,district
</select>
<insert id="insertBAdministrativeDivision" parameterType="BAdministrativeDivision" useGeneratedKeys="true"
keyProperty="id">
insert into b_administrative_division
insert into SZYJ.b_administrative_division
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="districtCode != null">district_code,</if>
<if test="district != null">district,</if>
@ -67,7 +67,7 @@
</insert>
<update id="updateBAdministrativeDivision" parameterType="BAdministrativeDivision">
update b_administrative_division
update SZYJ.b_administrative_division
<trim prefix="SET" suffixOverrides=",">
<if test="districtCode != null">district_code = #{districtCode},</if>
<if test="district != null">district = #{district},</if>
@ -80,12 +80,12 @@
<delete id="deleteBAdministrativeDivisionById" parameterType="Long">
delete
from b_administrative_division
from SZYJ.b_administrative_division
where id = #{id}
</delete>
<delete id="deleteBAdministrativeDivisionByIds" parameterType="String">
delete from b_administrative_division where id in
delete from SZYJ.b_administrative_division where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>

@ -16,7 +16,7 @@
<sql id="selectBAdministrativeVo">
select id, region, province, city, county, subdistrict, institution_name
from b_administrative
from SZYJ.b_administrative
</sql>
<select id="selectBAdministrativeList" parameterType="BAdministrative" resultMap="BAdministrativeResult">
@ -40,14 +40,14 @@
<select id="selectBAdministrativeTreeRequestList"
resultType="com.ruoyi.programManagement.entity.request.BAdministrativeTreeRequest">
select county, subdistrict, institution_name as institutionName
from b_administrative
from SZYJ.b_administrative
where institution_name!='苏州市'
group by county
</select>
<select id="selectcascadingSelectDataList"
resultType="com.ruoyi.programManagement.entity.request.BAdministrativeTreeRequest">
select county, subdistrict, institution_name as institutionName
from b_administrative
from SZYJ.b_administrative
</select>
<select id="selectBPlanEnterPriseTreeRequestRequestList"
resultType="com.ruoyi.programManagement.entity.response.BPlanEnterPriseTreeResponse">
@ -71,7 +71,7 @@
district_name,
DISTRICT_CODE AS county
FROM
szs_administrative_division
SZYJ.szs_administrative_division
WHERE
PARENT_CODE = '320500'
AND district_name != '苏州市'
@ -92,8 +92,8 @@
1 ELSE 0
END AS checkStatus
FROM
b_plan_enterprise e
LEFT JOIN sz_enfor_examine f ON e.enterprise_id = f.USC_CODE
SZYJ.b_plan_enterprise e
LEFT JOIN SZYJ.sz_enfor_examine f ON e.enterprise_id = f.USC_CODE
<where>
<if test="req.plannedYear!=null and req.plannedYear!=''">
e.planned_year like concat('%',#{req.plannedYear}, '%')
@ -110,11 +110,11 @@
) s
</select>
<select id="getBydistinct" resultType="java.lang.String">
SELECT county FROM `b_administrative_division` where county_code = #{district}
SELECT county FROM `SZYJ.szs_administrative_division` where county_code = #{district}
</select>
<insert id="insertBAdministrative" parameterType="BAdministrative" useGeneratedKeys="true" keyProperty="id">
insert into b_administrative
insert into SZYJ.b_administrative
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="region != null">region,</if>
<if test="province != null">province,</if>
@ -134,7 +134,7 @@
</insert>
<update id="updateBAdministrative" parameterType="BAdministrative">
update b_administrative
update SZYJ.b_administrative
<trim prefix="SET" suffixOverrides=",">
<if test="region != null">region = #{region},</if>
<if test="province != null">province = #{province},</if>
@ -148,12 +148,12 @@
<delete id="deleteBAdministrativeById" parameterType="Long">
delete
from b_administrative
from SZYJ.b_administrative
where id = #{id}
</delete>
<delete id="deleteBAdministrativeByIds" parameterType="String">
delete from b_administrative where id in
delete from SZYJ.b_administrative where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>

@ -42,7 +42,7 @@
remark,
user_id,
dept_id
from b_enterprise_new
from SZYJ.b_enterprise_new
</sql>
@ -68,8 +68,8 @@
a.user_id,
a.dept_id,
CASE WHEN b.ent_code IS NOT NULL THEN 1 ELSE 2 END AS isPoint
FROM b_enterprise_new a
LEFT JOIN b_key_enterprise b ON a.enterprise_id = b.ent_code
FROM SZYJ.b_enterprise_new a
LEFT JOIN SZYJ.b_key_enterprise b ON a.enterprise_id = b.ent_code
) s
<where>
<if test="enterpriseId != null and enterpriseId != ''">and s.enterprise_id = #{enterpriseId}</if>
@ -115,7 +115,7 @@
<insert id="insertBEnterpriseNew" parameterType="BEnterpriseNew" useGeneratedKeys="true" keyProperty="id">
insert into b_enterprise_new
insert into SZYJ.b_enterprise_new
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="enterpriseId != null">enterprise_id,</if>
<if test="enterpriseName != null">enterprise_name,</if>
@ -155,7 +155,7 @@
</insert>
<update id="updateBEnterpriseNew" parameterType="BEnterpriseNew">
update b_enterprise_new
update SZYJ.b_enterprise_new
<trim prefix="SET" suffixOverrides=",">
<if test="enterpriseId != null">enterprise_id = #{enterpriseId},</if>
<if test="enterpriseName != null">enterprise_name = #{enterpriseName},</if>
@ -179,18 +179,18 @@
<delete id="deleteBEnterpriseNewById" parameterType="Long">
delete
from b_enterprise_new
from SZYJ.b_enterprise_new
where id = #{id}
</delete>
<delete id="deleteBEnterpriseNewByIds" parameterType="String">
delete from b_enterprise_new where id in
delete from SZYJ.b_enterprise_new where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
<delete id="deletAll">
truncate table b_enterprise_new
truncate table SZYJ.b_enterprise_new
</delete>
<select id="seletAll" resultType="com.ruoyi.programManagement.entity.BEnterpriseNew">
@ -201,11 +201,11 @@
a.RISK_LEVEL,
COALESCE(b.standardized_grade, '/') AS STAND_LEVEL,
COALESCE(e.MAX_EXAMINE_END_TIME, null) AS EXAMINE_END_TIME
FROM b_enterprise_new a
LEFT JOIN b_standardization b ON a.enterprise_name = b.enterprise_name COLLATE utf8mb4_unicode_ci
FROM SZYJ.b_enterprise_new a
LEFT JOIN SZYJ.b_standardization b ON a.enterprise_name = b.enterprise_name COLLATE utf8mb4_unicode_ci
LEFT JOIN (
SELECT USC_CODE, MAX(EXAMINE_END_TIME) AS MAX_EXAMINE_END_TIME
FROM sz_enfor_examine
FROM SZYJ.sz_enfor_examine
GROUP BY USC_CODE
) e ON a.enterprise_id = e.USC_CODE COLLATE utf8mb4_unicode_ci;
</select>
@ -229,9 +229,9 @@
a.user_id,
a.dept_id,
CASE WHEN b.ent_code IS NOT NULL THEN 1 ELSE 2 END AS isPoint
FROM b_enterprise_new a
LEFT JOIN b_key_enterprise b ON a.enterprise_id = b.ent_code
LEFT JOIN b_plan_enterprise d ON a.enterprise_id = d.enterprise_id
FROM SZYJ.b_enterprise_new a
LEFT JOIN SZYJ.b_key_enterprise b ON a.enterprise_id = b.ent_code
LEFT JOIN SZYJ.b_plan_enterprise d ON a.enterprise_id = d.enterprise_id
WHERE d.enterprise_id IS NULL)s
<where>

@ -6,7 +6,7 @@
<insert id="bKeyEnterpriseAdd" parameterType="com.ruoyi.programManagement.entity.BKeyEnterprise">
insert into b_key_enterprise
insert into SZYJ.b_key_enterprise
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="entCode != null">ent_code,</if>
<if test="year != null">year,</if>
@ -22,7 +22,7 @@
</insert>
<select id="page" resultType="com.ruoyi.programManagement.entity.BKeyEnterprise">
select id,ent_code as entCode ,year,enterprise_name as enterpriseName from b_key_enterprise
select id,ent_code as entCode ,year,enterprise_name as enterpriseName from SZYJ.b_key_enterprise
<where>
<if test=" req.year !=null">
and year like concat('%',#{req.year},'%')
@ -39,15 +39,15 @@
<select id="getBydistrict" resultType="java.lang.Integer">
select count(*) as count from b_key_enterprise where district like concat('%',#{district},'%')
select count(*) as count from SZYJ.b_key_enterprise where district like concat('%',#{district},'%')
</select>
<select id="getByentCode" resultType="com.ruoyi.programManagement.entity.BKeyEnterprise">
select * from b_key_enterprise where ent_code =#{entCode}
select * from SZYJ.b_key_enterprise where ent_code =#{entCode}
</select>
<select id="select" resultType="com.ruoyi.programManagement.entity.BKeyEnterprise">
select * from b_key_enterprise where ent_code =#{req.entCode} and year=#{req.year}
select * from SZYJ.b_key_enterprise where ent_code =#{req.entCode} and year=#{req.year}
</select>
</mapper>

@ -32,7 +32,7 @@
check_ageing,
uuto,
check_time
from b_plan_enterprise
from SZYJ.b_plan_enterprise
</sql>
<select id="selectBPlanEnterpriseList" parameterType="BPlanEnterprise" resultType="BPlanEnterpriseResponse">
@ -66,9 +66,9 @@
a.check_ageing,
c.risk_level ,
CONCAT(d.district,'-', d.county) AS districtcounty
FROM b_plan_enterprise a
left join b_administrative_division d on a.district=d.county_code
LEFT JOIN b_enterprise_new c ON a.enterprise_id = c.enterprise_id
FROM SZYJ.b_plan_enterprise a
left join SZYJ.b_administrative_division d on a.district=d.county_code
LEFT JOIN SZYJ.b_enterprise_new c ON a.enterprise_id = c.enterprise_id
<where>
<if test="enterpriseId != null and enterpriseId != ''">and a.enterprise_id = #{enterpriseId}</if>
<if test="createId != null ">and a.create_id = #{createId}</if>
@ -106,7 +106,7 @@
</select>
<delete id="deleteByPlanId">
delete
from b_plan_enterprise
from SZYJ.b_plan_enterprise
where plan_id =
#{planId}
</delete>
@ -145,10 +145,10 @@
c.EXAMINE_END_TIME as examineEndTime,
CASE WHEN b.ent_code IS NOT NULL THEN 1 ELSE 2 END AS isPoint,
CONCAT(d.district,'-', d.county) AS districtcounty
FROM b_plan_enterprise a
LEFT JOIN b_key_enterprise b ON a.enterprise_id = b.ent_code
LEFT JOIN b_enterprise_new c ON a.enterprise_id = c.enterprise_id
left join b_administrative_division d on a.district=d.county_code
FROM SZYJ.b_plan_enterprise a
LEFT JOIN SZYJ.b_key_enterprise b ON a.enterprise_id = b.ent_code
LEFT JOIN SZYJ.b_enterprise_new c ON a.enterprise_id = c.enterprise_id
left join SZYJ.b_administrative_division d on a.district=d.county_code
<where>
<if test="req.plannedYear !=null and req.plannedYear !=''">
and a.planned_year =#{req.plannedYear}
@ -181,7 +181,7 @@
order by law_sort,planned_month+0
</select>
<select id="page" resultType="com.ruoyi.programManagement.entity.BPlanEnterprise">
select * from b_plan_enterprise
select * from SZYJ.b_plan_enterprise
<where>
<if test="req.plannedYear !=null and req.plannedYear !=''">
and plannedYear =#{req.plannedYear}
@ -203,12 +203,12 @@
COUNT(CASE WHEN bpe.is_point = 2 AND exm.USC_CODE IS NULL THEN 1 END) * 100 /
COUNT(CASE WHEN bpe.is_point = 2 THEN 1 END) as percentageNonCompleted,
COUNT(*) as totalPlanCount
FROM b_plan_manage bpm
FROM SZYJ.b_plan_manage bpm
JOIN
b_plan_enterprise bpe ON bpm.id = bpe.plan_id
SZYJ.b_plan_enterprise bpe ON bpm.id = bpe.plan_id
LEFT JOIN
sz_enfor_examine exm ON bpe.enterprise_id = exm.USC_CODE
LEFT JOIN sys_dept c on bpm.dept_id = c.dept_id
SZYJ.sz_enfor_examine exm ON bpe.enterprise_id = exm.USC_CODE
LEFT JOIN SZYJ.sys_dept c on bpm.dept_id = c.dept_id
<where>
<if test="req.plannedYear !=null and req.plannedYear !=''">
and bpm.planned_year =#{req.plannedYear}
@ -221,8 +221,8 @@
</select>
<select id="getplan" resultType="com.ruoyi.programManagement.entity.response.zhifaPlanResponse">
SELECT COUNT(*) AS count, b.dept_name AS deptName
FROM b_plan_manage a
LEFT JOIN sys_dept b
FROM SZYJ.b_plan_manage a
LEFT JOIN SZYJ.sys_dept b
ON a.dept_id = b.dept_id
WHERE b.ancestors REGEXP '^([^,]*,){0,1}[^,]*$'
GROUP BY a.dept_id
@ -233,8 +233,8 @@
b.DISTRICT_NAME AS institutionName,
a.ENTERPRISE_NAME as enterpriseName
FROM
b_plan_enterprise a
LEFT JOIN szs_administrative_division b ON a.district = b.DISTRICT_CODE
SZYJ.b_plan_enterprise a
LEFT JOIN SZYJ.szs_administrative_division b ON a.district = b.DISTRICT_CODE
<where>
<if test="req.district !=null and req.district!='' ">
AND a.district like concat('%', #{req.district}, '%')
@ -267,7 +267,7 @@
a.planned_year,
a.is_point,
a.enterprise_name as entprName
from b_plan_enterprise a
from SZYJ.b_plan_enterprise a
where a.id = #{id}
</select>
<select id="getShouyeList"
@ -275,14 +275,14 @@
SELECT
IFNULL( law_areas, '合计' ) AS lawAreas,
CASE
WHEN GROUPING(law_areas) = 1 THEN (SELECT MAX(law_sort) + 1 FROM b_plan_enterprise)
WHEN GROUPING(law_areas) = 1 THEN (SELECT MAX(law_sort) + 1 FROM SZYJ.b_plan_enterprise)
ELSE MAX(law_sort)
END AS sort,
SUM( CASE WHEN check_status = 1 THEN 1 ELSE 0 END ) AS completed,
SUM(( RISK_LEVEL IN ( 'C', 'D' )) AND check_status = 1 ) AS cdFinish
FROM
b_plan_enterprise a
LEFT JOIN b_enterprise_new b ON a.enterprise_id = b.enterprise_id
SZYJ.b_plan_enterprise a
LEFT JOIN SZYJ.b_enterprise_new b ON a.enterprise_id = b.enterprise_id
<where>
<if test="req.plannedYear !=null and req.plannedYear!='' ">
and planned_year =#{req.plannedYear}
@ -307,14 +307,14 @@
SELECT
IFNULL( law_hierarchy, '合计' ) AS lawAreas,
CASE
WHEN GROUPING(law_hierarchy) = 1 THEN (SELECT MAX(law_sort) + 1 FROM b_plan_enterprise)
WHEN GROUPING(law_hierarchy) = 1 THEN (SELECT MAX(law_sort) + 1 FROM SZYJ.b_plan_enterprise)
ELSE MAX(law_sort)
END AS sort,
SUM( CASE WHEN check_status = 1 THEN 1 ELSE 0 END ) AS completed,
SUM(( RISK_LEVEL IN ( 'C', 'D' )) AND check_status = 1 ) AS cdFinish
FROM
b_plan_enterprise a
LEFT JOIN b_enterprise_new b ON a.enterprise_id = b.enterprise_id
SZYJ.b_plan_enterprise a
LEFT JOIN SZYJ.b_enterprise_new b ON a.enterprise_id = b.enterprise_id
<where>
<if test="req.plannedYear !=null and req.plannedYear!='' ">
and planned_year =#{req.plannedYear}
@ -363,10 +363,10 @@
ELSE 0
END
AS check_status
FROM b_plan_enterprise a
FROM SZYJ.b_plan_enterprise a
LEFT JOIN (
SELECT USC_CODE, MAX(EXAMINE_END_TIME) AS MAX_EXAMINE_END_TIME, ID
FROM sz_enfor_examine
FROM SZYJ.sz_enfor_examine
WHERE YEAR(EXAMINE_END_TIME) = YEAR(CURDATE())
GROUP BY USC_CODE, ID
) e ON a.enterprise_id = e.USC_CODE
@ -376,15 +376,15 @@
SELECT
IFNULL(law_hierarchy, '合计') AS lawAreas,
CASE
WHEN GROUPING(law_hierarchy) = 1 THEN (SELECT MAX(law_sort) + 1 FROM b_plan_enterprise)
WHEN GROUPING(law_hierarchy) = 1 THEN (SELECT MAX(law_sort) + 1 FROM SZYJ.b_plan_enterprise)
ELSE MAX(law_sort)
END AS sort,
COUNT(law_areas) AS count,
SUM(CASE WHEN check_status = 1 THEN 1 ELSE 0 END) AS completed,
SUM(RISK_LEVEL IN ('C', 'D')) AS cdExecutionPlan
FROM
b_plan_enterprise a
LEFT JOIN b_enterprise_new b ON a.enterprise_id = b.enterprise_id
SZYJ.b_plan_enterprise a
LEFT JOIN SZYJ.b_enterprise_new b ON a.enterprise_id = b.enterprise_id
<where>
<if test="req.plannedYear !=null and req.plannedYear!='' ">
and planned_year =#{req.plannedYear}
@ -410,14 +410,14 @@
SELECT
IFNULL(law_areas, '合计') AS lawAreas,
CASE
WHEN GROUPING(law_areas) = 1 THEN (SELECT MAX(law_sort) + 1 FROM b_plan_enterprise)
WHEN GROUPING(law_areas) = 1 THEN (SELECT MAX(law_sort) + 1 FROM SZYJ.b_plan_enterprise)
ELSE MAX(law_sort)
END AS sort,
COUNT(law_areas) AS count,
SUM(RISK_LEVEL IN ('C', 'D')) AS cdExecutionPlan
FROM
b_plan_enterprise a
LEFT JOIN b_enterprise_new b ON a.enterprise_id = b.enterprise_id
SZYJ.b_plan_enterprise a
LEFT JOIN SZYJ.b_enterprise_new b ON a.enterprise_id = b.enterprise_id
<where>
<if test="req.plannedYear !=null and req.plannedYear!='' ">
and planned_year =#{req.plannedYear}
@ -435,7 +435,7 @@
</select>
<update id="updateIdList" parameterType="java.util.List">
UPDATE b_plan_enterprise
UPDATE SZYJ.b_plan_enterprise
SET status = 1
WHERE id in
<foreach item="item" collection="list" open="(" separator="," close=")">
@ -444,7 +444,7 @@
</update>
<update id="updatePlan" parameterType="BPlanEnterpriseRequest">
update b_plan_enterprise
update SZYJ.b_plan_enterprise
<trim prefix="SET" suffixOverrides=",">
<if test="enterpriseId != null">enterprise_id=#{enterpriseId},</if>
<if test="district != null">district=#{district},</if>
@ -471,13 +471,13 @@
where id = #{id}
</update>
<update id="updateEndTime">
UPDATE b_enterprise_new a
UPDATE SZYJ.b_enterprise_new a
INNER JOIN (
SELECT
USC_CODE,
MAX_EXAMINE_END_TIME
FROM
( SELECT ROW_NUMBER ( ) over ( PARTITION BY USC_CODE ORDER BY EXAMINE_END_TIME DESC ) rowId, USC_CODE, EXAMINE_END_TIME AS MAX_EXAMINE_END_TIME FROM sz_enfor_examine ) S
( SELECT ROW_NUMBER ( ) over ( PARTITION BY USC_CODE ORDER BY EXAMINE_END_TIME DESC ) rowId, USC_CODE, EXAMINE_END_TIME AS MAX_EXAMINE_END_TIME FROM SZYJ.sz_enfor_examine ) S
WHERE
rowId = 1
) c
@ -487,7 +487,7 @@
<insert id="insertPlan" parameterType="BPlanEnterpriseRequest" useGeneratedKeys="true" keyProperty="id">
insert into b_plan_enterprise
insert into SZYJ.b_plan_enterprise
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="enterpriseId != null">enterprise_id,</if>
<if test="district != null">district,</if>

@ -11,7 +11,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</resultMap>
<sql id="selectBStandardizationVo">
select id, enterprise_name, standardized_grade from b_standardization
select id, enterprise_name, standardized_grade from SZYJ.b_standardization
</sql>
<select id="selectBStandardizationList" parameterType="BStandardization" resultMap="BStandardizationResult">
@ -28,7 +28,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</select>
<insert id="insertBStandardization" parameterType="BStandardization" useGeneratedKeys="true" keyProperty="id">
insert into b_standardization
insert into SZYJ.b_standardization
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="enterpriseName != null">enterprise_name,</if>
<if test="standardizedGrade != null">standardized_grade,</if>
@ -40,7 +40,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</insert>
<update id="updateBStandardization" parameterType="BStandardization">
update b_standardization
update SZYJ.b_standardization
<trim prefix="SET" suffixOverrides=",">
<if test="enterpriseName != null">enterprise_name = #{enterpriseName},</if>
<if test="standardizedGrade != null">standardized_grade = #{standardizedGrade},</if>
@ -49,11 +49,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</update>
<delete id="deleteBStandardizationById" parameterType="Long">
delete from b_standardization where id = #{id}
delete from SZYJ.b_standardization where id = #{id}
</delete>
<delete id="deleteBStandardizationByIds" parameterType="String">
delete from b_standardization where id in
delete from SZYJ.b_standardization where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>

@ -7,7 +7,7 @@
<select id="getDicttypeList" resultType="com.ruoyi.programManagement.entity.response.DictDataResponse">
select a.dict_type,a.dict_label,a.dict_value from SYS_DICT_DATA a
select a.dict_type,a.dict_label,a.dict_value from SZYJ.SYS_DICT_DATA a
where a.dict_type in
<foreach item="item"
collection="list" open="(" separator="," close=")">

@ -60,7 +60,7 @@
SOURCE_DATA,
EXPERTS_IN_FLAG,
EXPERTS_NAME
from sz_enfor_examine
from SZYJ.sz_enfor_examine
</sql>
<select id="selectSzEnforExamineList" parameterType="SzEnforExamine" resultMap="SzEnforExamineResult">
@ -135,7 +135,7 @@
SOURCE_DATA,
EXPERTS_IN_FLAG,
EXPERTS_NAME
FROM sz_enfor_examine
FROM SZYJ.sz_enfor_examine
WHERE USC_CODE = '913205097500181704'
ORDER BY EXAMINE_END_TIME DESC
LIMIT 1;
@ -143,7 +143,7 @@
<insert id="insertSzEnforExamine" parameterType="SzEnforExamine">
insert into sz_enfor_examine
insert into SZYJ.sz_enfor_examine
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="dmsTimestamp != null">dms_timestamp,</if>
<if test="ID != null">ID,</if>
@ -203,7 +203,7 @@
</insert>
<update id="updateSzEnforExamine" parameterType="SzEnforExamine">
update sz_enfor_examine
update SZYJ.sz_enfor_examine
<trim prefix="SET" suffixOverrides=",">
<if test="dmsTimestamp != null">dms_timestamp = #{dmsTimestamp},</if>
<if test="planExamineId != null">PLAN_EXAMINE_ID = #{planExamineId},</if>
@ -237,12 +237,12 @@
<delete id="deleteSzEnforExamineByID" parameterType="String">
delete
from sz_enfor_examine
from SZYJ.sz_enfor_examine
where ID = #{ID}
</delete>
<delete id="deleteSzEnforExamineByIDs" parameterType="String">
delete from sz_enfor_examine where ID in
delete from SZYJ.sz_enfor_examine where ID in
<foreach item="ID" collection="array" open="(" separator="," close=")">
#{ID}
</foreach>

@ -178,7 +178,7 @@
ISBUYSAFETYINSURANCE,
TURNOVER,
SOURCE_DATA
from sz_ent_basic_info
from SZYJ.sz_ent_basic_info
</sql>
<select id="selectSzEntBasicInfoList" parameterType="SzEntBasicInfo" resultMap="SzEntBasicInfoResult">
@ -310,9 +310,9 @@
SELECT
a.*, CASE WHEN b.ent_code IS NOT NULL THEN 1 ELSE 0 END AS is_point
FROM
sz_ent_basic_info a
SZYJ.sz_ent_basic_info a
LEFT JOIN
b_key_enterprise b ON a.USC_CODE = b.ent_code
SZYJ.b_key_enterprise b ON a.USC_CODE = b.ent_code
) AS s
WHERE s.is_point = 1
</select>
@ -322,9 +322,9 @@
a.*,
CASE WHEN b.ent_code IS NOT NULL THEN 1 ELSE 2 END AS is_point
FROM
sz_ent_basic_info_new a
SZYJ.sz_ent_basic_info_new a
LEFT JOIN
b_key_enterprise b ON a.USC_CODE = b.ent_code )s
SZYJ.b_key_enterprise b ON a.USC_CODE = b.ent_code )s
<where>
<if test="req.uscCode != null and req.uscCode != ''">and s.USC_CODE=#{req.uscCode}</if>
<if test="req.entprColor != null and req.entprColor != ''">and s.ENTPRCOLOR=#{req.entprColor}</if>
@ -346,12 +346,12 @@
</select>
<select id="getDistrict" resultType="java.lang.String">
SELECT SUBDISTRICT
FROM sz_ent_basic_info_new
FROM SZYJ.sz_ent_basic_info_new
where USC_CODE = #{entCode}
</select>
<insert id="insertSzEntBasicInfo" parameterType="SzEntBasicInfo">
insert into sz_ent_basic_info
insert into SZYJ.sz_ent_basic_info
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="dmsTimestamp != null">dms_timestamp,</if>
<if test="ID != null">ID,</if>
@ -532,7 +532,7 @@
</insert>
<update id="updateSzEntBasicInfo" parameterType="SzEntBasicInfo">
update sz_ent_basic_info
update SZYJ.sz_ent_basic_info
<trim prefix="SET" suffixOverrides=",">
<if test="dmsTimestamp != null">dms_timestamp = #{dmsTimestamp},</if>
<if test="entprId != null and entprId != ''">ENTPR_ID = #{entprId},</if>
@ -630,12 +630,12 @@
<delete id="deleteSzEntBasicInfoByID" parameterType="String">
delete
from sz_ent_basic_info
from SZYJ.sz_ent_basic_info
where ID = #{ID}
</delete>
<delete id="deleteSzEntBasicInfoByIDs" parameterType="String">
delete from sz_ent_basic_info where ID in
delete from SZYJ.sz_ent_basic_info where ID in
<foreach item="ID" collection="array" open="(" separator="," close=")">
#{ID}
</foreach>

@ -42,7 +42,7 @@
UPDATETIME,
SPELLING,
IS_DELETE
from szs_administrative_division
from SZYJ.szs_administrative_division
</sql>
<select id="selectSzsAdministrativeDivisionList" parameterType="SzsAdministrativeDivision"
@ -80,20 +80,20 @@
<select id="selectBAdministrativeTreeRequestList"
resultType="com.ruoyi.programManagement.entity.request.BAdministrativeTreeRequest">
SELECT DISTRICT_NAME as institutionName,DISTRICT_CODE as subdistrict,PARENT_CODE as county
FROM `szs_administrative_division`
FROM `SZYJ.szs_administrative_division`
where PARENT_CODE = '320500'
</select>
<select id="selectcascadingSelectDataList"
resultType="com.ruoyi.programManagement.entity.request.BAdministrativeTreeRequest">
SELECT DISTRICT_NAME as institutionName, DISTRICT_CODE as subdistrict, PARENT_CODE as county
FROM `szs_administrative_division`
FROM `SZYJ.szs_administrative_division`
where DISTRICT_CODE like '%3205%'
and DISTRICT_NAME !='苏州市' and PARENT_CODE != '320500'
</select>
<insert id="insertSzsAdministrativeDivision" parameterType="SzsAdministrativeDivision">
insert into szs_administrative_division
insert into SZYJ.szs_administrative_division
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="jhptUpdateTime != null">jhpt_update_time,</if>
<if test="LATITUDE != null">LATITUDE,</if>
@ -137,7 +137,7 @@
</insert>
<update id="updateSzsAdministrativeDivision" parameterType="SzsAdministrativeDivision">
update szs_administrative_division
update SZYJ.szs_administrative_division
<trim prefix="SET" suffixOverrides=",">
<if test="jhptUpdateTime != null">jhpt_update_time = #{jhptUpdateTime},</if>
<if test="LATITUDE != null">LATITUDE = #{LATITUDE},</if>
@ -162,12 +162,12 @@
<delete id="deleteSzsAdministrativeDivisionByID" parameterType="String">
delete
from szs_administrative_division
from SZYJ.szs_administrative_division
where ID = #{ID}
</delete>
<delete id="deleteSzsAdministrativeDivisionByIDs" parameterType="String">
delete from szs_administrative_division where ID in
delete from SZYJ.szs_administrative_division where ID in
<foreach item="ID" collection="array" open="(" separator="," close=")">
#{ID}
</foreach>

@ -130,7 +130,7 @@
MAJOR_PRODUCT,
HTML_TEXT,
FIXED_ASSETS
from szs_enterprise_information
from SZYJ.szs_enterprise_information
</sql>
<select id="selectSzsEnterpriseInformationList" parameterType="SzsEnterpriseInformation"
@ -138,7 +138,7 @@
SELECT
a.*
FROM
szs_enterprise_information a
SZYJ.szs_enterprise_information a
<where>
<if test="supervisionLarge != null and supervisionLarge != ''">and a.SUPERVISION_LARGE like
concat('%',#{supervisionLarge}, '%')
@ -164,7 +164,7 @@
<insert id="insertSzsEnterpriseInformation" parameterType="SzsEnterpriseInformation">
insert into szs_enterprise_information
insert into SZYJ.szs_enterprise_information
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="jhptUpdateTime != null">jhpt_update_time,</if>
<if test="legalPersonCellphone != null">LEGAL_PERSON_CELLPHONE,</if>
@ -294,7 +294,7 @@
</insert>
<update id="updateSzsEnterpriseInformation" parameterType="SzsEnterpriseInformation">
update szs_enterprise_information
update SZYJ.szs_enterprise_information
<trim prefix="SET" suffixOverrides=",">
<if test="jhptUpdateTime != null">jhpt_update_time = #{jhptUpdateTime},</if>
<if test="legalPersonCellphone != null">LEGAL_PERSON_CELLPHONE = #{legalPersonCellphone},</if>
@ -366,12 +366,12 @@
<delete id="deleteSzsEnterpriseInformationByID" parameterType="String">
delete
from szs_enterprise_information
from SZYJ.szs_enterprise_information
where ID = #{ID}
</delete>
<delete id="deleteSzsEnterpriseInformationByIDs" parameterType="String">
delete from szs_enterprise_information where ID in
delete from SZYJ.szs_enterprise_information where ID in
<foreach item="ID" collection="array" open="(" separator="," close=")">
#{ID}
</foreach>

Loading…
Cancel
Save