update code
parent
d5fbe11cc9
commit
007804ab37
|
@ -541,8 +541,8 @@ public class AttendanceJgwTask {
|
||||||
params.put("tokenSign",tokenSign);
|
params.put("tokenSign",tokenSign);
|
||||||
params.put("projectId",projectId);
|
params.put("projectId",projectId);
|
||||||
params.put("startId",startId);
|
params.put("startId",startId);
|
||||||
params.put("startTime",startTime);
|
params.put("startTime","2024-03-22");
|
||||||
params.put("endTime",endTime);
|
params.put("endTime","2024-03-23");
|
||||||
Request request = new Request.Builder()
|
Request request = new Request.Builder()
|
||||||
.url(host+path)
|
.url(host+path)
|
||||||
.post(toFormBody(params))
|
.post(toFormBody(params))
|
||||||
|
|
|
@ -51,9 +51,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
<select id="selectSurProjectAttendanceCfgListForAllInfo" parameterType="SurProjectAttendanceCfg" resultMap="SurProjectAttendanceCfgResult">
|
<select id="selectSurProjectAttendanceCfgListForAllInfo" parameterType="SurProjectAttendanceCfg" resultMap="SurProjectAttendanceCfgResult">
|
||||||
SELECT a.*,b.projectName,c.dept_name
|
SELECT a.*,b.projectName,c.dept_name
|
||||||
FROM sur_project_attendance_cfg a,sur_project b,sys_dept c WHERE c.dept_id=a.sub_dept_id AND a.project_id=b.id
|
FROM sur_project_attendance_cfg a,sur_project b,sys_dept c WHERE c.dept_id=a.sub_dept_id AND a.project_id=b.id
|
||||||
<where>
|
<if test="id != null "> and a.id = #{id}</if>
|
||||||
<if test="id != null "> and id = #{id}</if>
|
|
||||||
</where>
|
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="selectSurProjectAttendanceCfgById" parameterType="Long" resultMap="SurProjectAttendanceCfgResult">
|
<select id="selectSurProjectAttendanceCfgById" parameterType="Long" resultMap="SurProjectAttendanceCfgResult">
|
||||||
|
|
|
@ -61,19 +61,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
<if test="vendorsCode != null and vendorsCode != ''"> and vendors_code = #{vendorsCode}</if>
|
<if test="vendorsCode != null and vendorsCode != ''"> and vendors_code = #{vendorsCode}</if>
|
||||||
<if test="serverid != null "> and serverid = #{serverid}</if>
|
<if test="serverid != null "> and serverid = #{serverid}</if>
|
||||||
<if test="workerId != null "> and workerId = #{workerId}</if>
|
<if test="workerId != null "> and workerId = #{workerId}</if>
|
||||||
<if test="attendanceType != null and attendanceType != ''"> and attendance_type = #{attendanceType}</if>
|
|
||||||
<if test="attendanceTime != null and attendanceTime != ''"> and date(attendance_time) = date(#{attendanceTime})</if>
|
<if test="attendanceTime != null and attendanceTime != ''"> and date(attendance_time) = date(#{attendanceTime})</if>
|
||||||
<if test="identification != null and identification != ''"> and identification = #{identification}</if>
|
<if test="identification != null and identification != ''"> and identification = #{identification}</if>
|
||||||
<if test="teamId != null "> and teamId = #{teamId}</if>
|
<if test="teamId != null "> and teamId = #{teamId}</if>
|
||||||
<if test="workTypeCode != null and workTypeCode != ''"> and workTypeCode = #{workTypeCode}</if>
|
<if test="workTypeCode != null and workTypeCode != ''"> and workTypeCode = #{workTypeCode}</if>
|
||||||
<if test="companyId != null "> and companyId = #{companyId}</if>
|
<if test="companyId != null "> and companyId = #{companyId}</if>
|
||||||
<if test="vendorId != null "> and vendorId = #{vendorId}</if>
|
<if test="vendorId != null "> and vendorId = #{vendorId}</if>
|
||||||
<if test="projectType != null "> and projectType = #{projectType}</if>
|
<if test="deviceCode != null and deviceCode != ''"> and device_code = #{deviceCode}</if>
|
||||||
<if test="deviceCode != null and deviceCode != ''"> and device_code = #{deviceCode}</if>
|
|
||||||
<if test="workPointId != null and workPointId != ''"> and work_point_id = #{workPointId}</if>
|
|
||||||
<if test="scanPhoto != null and scanPhoto != ''"> and scanPhoto = #{scanPhoto}</if>
|
<if test="scanPhoto != null and scanPhoto != ''"> and scanPhoto = #{scanPhoto}</if>
|
||||||
<if test="other != null and other != ''"> and other = #{other}</if>
|
|
||||||
<if test="state != null "> and state = #{state}</if>
|
|
||||||
<if test="isDel != null "> and is_del = #{isDel}</if>
|
<if test="isDel != null "> and is_del = #{isDel}</if>
|
||||||
</where>
|
</where>
|
||||||
</select>
|
</select>
|
||||||
|
@ -86,19 +81,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
<if test="vendorsCode != null and vendorsCode != ''"> and vendors_code = #{vendorsCode}</if>
|
<if test="vendorsCode != null and vendorsCode != ''"> and vendors_code = #{vendorsCode}</if>
|
||||||
<if test="serverid != null "> and serverid = #{serverid}</if>
|
<if test="serverid != null "> and serverid = #{serverid}</if>
|
||||||
<if test="workerId != null "> and workerId = #{workerId}</if>
|
<if test="workerId != null "> and workerId = #{workerId}</if>
|
||||||
<if test="attendanceType != null and attendanceType != ''"> and attendance_type = #{attendanceType}</if>
|
|
||||||
<if test="attendanceTime != null and attendanceTime != ''"> and attendance_time = #{attendanceTime}</if>
|
<if test="attendanceTime != null and attendanceTime != ''"> and attendance_time = #{attendanceTime}</if>
|
||||||
<if test="identification != null and identification != ''"> and identification = #{identification}</if>
|
<if test="identification != null and identification != ''"> and identification = #{identification}</if>
|
||||||
<if test="teamId != null "> and teamId = #{teamId}</if>
|
<if test="teamId != null "> and teamId = #{teamId}</if>
|
||||||
<if test="workTypeCode != null and workTypeCode != ''"> and workTypeCode = #{workTypeCode}</if>
|
<if test="workTypeCode != null and workTypeCode != ''"> and workTypeCode = #{workTypeCode}</if>
|
||||||
<if test="companyId != null "> and companyId = #{companyId}</if>
|
<if test="companyId != null "> and companyId = #{companyId}</if>
|
||||||
<if test="vendorId != null "> and vendorId = #{vendorId}</if>
|
<if test="vendorId != null "> and vendorId = #{vendorId}</if>
|
||||||
<if test="projectType != null "> and projectType = #{projectType}</if>
|
<if test="deviceCode != null and deviceCode != ''"> and device_code = #{deviceCode}</if>
|
||||||
<if test="deviceCode != null and deviceCode != ''"> and device_code = #{deviceCode}</if>
|
<if test="scanPhoto != null and scanPhoto != ''"> and scanPhoto = #{scanPhoto}</if>
|
||||||
<if test="workPointId != null and workPointId != ''"> and work_point_id = #{workPointId}</if>
|
|
||||||
<if test="scanPhoto != null and scanPhoto != ''"> and scanPhoto = #{scanPhoto}</if>
|
|
||||||
<if test="other != null and other != ''"> and other = #{other}</if>
|
|
||||||
<if test="state != null "> and state = #{state}</if>
|
|
||||||
<if test="isDel != null "> and is_del = #{isDel}</if>
|
<if test="isDel != null "> and is_del = #{isDel}</if>
|
||||||
</where>
|
</where>
|
||||||
</select>
|
</select>
|
||||||
|
@ -108,7 +98,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
where id = #{id}
|
where id = #{id}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<insert id="insertSurProjectAttendanceData2024" parameterType="SurProjectAttendanceData" useGeneratedKeys="true" keyProperty="id">
|
<insert id="insertSurProjectAttendanceData" parameterType="SurProjectAttendanceData" useGeneratedKeys="true" keyProperty="id">
|
||||||
insert into sur_project_attendance_data_${year}
|
insert into sur_project_attendance_data_${year}
|
||||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
<if test="cfgid != null">cfgid,</if>
|
<if test="cfgid != null">cfgid,</if>
|
||||||
|
@ -188,7 +178,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
</trim>
|
</trim>
|
||||||
</insert>
|
</insert>
|
||||||
|
|
||||||
<update id="updateSurProjectAttendanceData2024" parameterType="SurProjectAttendanceData">
|
<update id="updateSurProjectAttendanceData" parameterType="SurProjectAttendanceData">
|
||||||
update sur_project_attendance_data_${year}
|
update sur_project_attendance_data_${year}
|
||||||
<trim prefix="SET" suffixOverrides=",">
|
<trim prefix="SET" suffixOverrides=",">
|
||||||
<if test="cfgid != null">cfgid = #{cfgid},</if>
|
<if test="cfgid != null">cfgid = #{cfgid},</if>
|
||||||
|
|
Loading…
Reference in New Issue