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