数据推送修改
This commit is contained in:
parent
3ab20a42e5
commit
2db149add4
|
|
@ -121,6 +121,7 @@
|
||||||
<if test=' pushType == "2" '>
|
<if test=' pushType == "2" '>
|
||||||
= #{pushDate}
|
= #{pushDate}
|
||||||
</if>
|
</if>
|
||||||
|
and is_wechat != 1
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="getAllPerson" resultType="com.bonus.system.att.entity.AttDataBean">
|
<select id="getAllPerson" resultType="com.bonus.system.att.entity.AttDataBean">
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,7 @@
|
||||||
|
|
||||||
<insert id="pushAttDataToQsy">
|
<insert id="pushAttDataToQsy">
|
||||||
<foreach collection="list" item="item" separator=";">
|
<foreach collection="list" item="item" separator=";">
|
||||||
INSERT INTO gz_cloud_test.fc_sup_attendance (
|
replace INTO gz_cloud_test.fc_sup_attendance (
|
||||||
name,
|
name,
|
||||||
id_number,
|
id_number,
|
||||||
org_id,
|
org_id,
|
||||||
|
|
@ -44,7 +44,8 @@
|
||||||
lon,
|
lon,
|
||||||
lat,
|
lat,
|
||||||
attendance_external,
|
attendance_external,
|
||||||
attendance_remark
|
attendance_remark,
|
||||||
|
is_wechat
|
||||||
) VALUES (
|
) VALUES (
|
||||||
#{item.name},
|
#{item.name},
|
||||||
#{item.idNumber},
|
#{item.idNumber},
|
||||||
|
|
@ -60,17 +61,18 @@
|
||||||
#{item.attLon},
|
#{item.attLon},
|
||||||
#{item.attLat},
|
#{item.attLat},
|
||||||
CASE
|
CASE
|
||||||
WHEN #{item.isOutsideAtt} = '1' THEN '外勤'
|
WHEN #{item.isOutsideAtt} = '1' THEN '外勤打卡'
|
||||||
WHEN #{item.isOutsideAtt} = '2' THEN '注册'
|
WHEN #{item.isOutsideAtt} = '2' THEN '正常打卡'
|
||||||
ELSE '默认'
|
ELSE '默认'
|
||||||
END,
|
END,
|
||||||
#{item.remark}
|
#{item.remark},
|
||||||
|
'1'
|
||||||
)
|
)
|
||||||
</foreach>
|
</foreach>
|
||||||
</insert>
|
</insert>
|
||||||
|
|
||||||
<update id="updateWebPassword">
|
<update id="updateWebPassword">
|
||||||
update sys_user set password = #{password} where user_id = #{userId}
|
update sys_user set password = #{password},update_time = #{updateTime} where user_id = #{userId}
|
||||||
</update>
|
</update>
|
||||||
<update id="updateWebOpenId">
|
<update id="updateWebOpenId">
|
||||||
update sys_user set open_id = #{openId} where user_id = #{userId}
|
update sys_user set open_id = #{openId} where user_id = #{userId}
|
||||||
|
|
|
||||||
|
|
@ -73,13 +73,15 @@
|
||||||
update sys_user set is_face = #{isFace} where user_id = #{userId}
|
update sys_user set is_face = #{isFace} where user_id = #{userId}
|
||||||
</update>
|
</update>
|
||||||
|
|
||||||
|
<!-- 改两次sys_user是为了第一次录入人脸时多次录入需要审核但又未更新时间的问题-->
|
||||||
<update id="checkPersonAssignment">
|
<update id="checkPersonAssignment">
|
||||||
UPDATE sys_user_face SET
|
UPDATE sys_user_face SET
|
||||||
`is_check` = #{isCheck},
|
`is_check` = #{isCheck},
|
||||||
`examine_opinion` = #{examineOpinion}
|
`examine_opinion` = #{examineOpinion}
|
||||||
WHERE `user_id` = #{userId};
|
WHERE `user_id` = #{userId};
|
||||||
<if test='isCheck == 1'>
|
<if test='isCheck == 1'>
|
||||||
update sys_user set is_face = 0 where user_id = #{userId}
|
update sys_user set is_face = 1 where user_id = #{userId};
|
||||||
|
update sys_user set is_face = 0 where user_id = #{userId};
|
||||||
</if>
|
</if>
|
||||||
</update>
|
</update>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue