update code
parent
e7a6e0309f
commit
2c67e41fee
|
@ -49,7 +49,7 @@ spring:
|
||||||
druid:
|
druid:
|
||||||
# 主库数据源
|
# 主库数据源
|
||||||
master:
|
master:
|
||||||
url: jdbc:mysql://cd-cynosdbmysql-grp-9rqrhxsm.sql.tencentcdb.com:27981/yanzhu_jh?useSSL=false&characterEncoding=UTF-8&serverTimezone=GMT%2B8
|
url: jdbc:mysql://cd-cynosdbmysql-grp-9rqrhxsm.sql.tencentcdb.com:27981/yanzhu_jh_test_2024?useSSL=false&characterEncoding=UTF-8&serverTimezone=GMT%2B8
|
||||||
username: root
|
username: root
|
||||||
password: Sxyanzhu@cf
|
password: Sxyanzhu@cf
|
||||||
# 从库数据源
|
# 从库数据源
|
||||||
|
|
|
@ -107,7 +107,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
SELECT * FROM (
|
SELECT * FROM (
|
||||||
SELECT a.*,b.project_id,b.sub_dept_id,g.companyTypeId
|
SELECT a.*,b.project_id,b.sub_dept_id,g.companyTypeId
|
||||||
FROM sur_project_attendance_user a,sur_project_attendance_cfg b,sur_project_attendance_group g
|
FROM sur_project_attendance_user a,sur_project_attendance_cfg b,sur_project_attendance_group g
|
||||||
WHERE a.cfgid=b.id and a.companyId=g.companyId)
|
WHERE a.cfgid=b.id and a.companyId=g.companyId and g.id in(select min(id) from sur_project_attendance_group group by companyid)
|
||||||
|
)
|
||||||
sur_project_attendance_user
|
sur_project_attendance_user
|
||||||
<where>
|
<where>
|
||||||
<if test="companyTypeId!=null">
|
<if test="companyTypeId!=null">
|
||||||
|
|
Loading…
Reference in New Issue