|
|
|
@ -10,6 +10,7 @@ |
|
|
|
<result property="clockLatitude" column="CLOCK_LATITUDE"/> |
|
|
|
<result property="clockAddress" column="CLOCK_ADDRESS"/> |
|
|
|
<result property="clockDesc" column="CLOCK_DESC"/> |
|
|
|
<result property="shieldFlag" column="SHIELD_FLAG"/> |
|
|
|
</resultMap> |
|
|
|
<resultMap type="com.elink.esua.epdc.activity.result.ActUserClockLogResultDTO" id="actUserClockLogResultMap"> |
|
|
|
<result property="id" column="ID"/> |
|
|
|
@ -23,6 +24,7 @@ |
|
|
|
<result property="age" column="AGE"/> |
|
|
|
<result property="mobile" column="MOBILE"/> |
|
|
|
<result property="clockPics" column="CLOCK_PIC"/> |
|
|
|
<result property="shieldFlag" column="SHIELD_FLAG"/> |
|
|
|
</resultMap> |
|
|
|
<select id="getActUserClockLogFromPC" resultMap="actUserClockLogResultMap"> |
|
|
|
SELECT |
|
|
|
@ -36,7 +38,8 @@ |
|
|
|
a.SEX, |
|
|
|
a.AGE, |
|
|
|
a.MOBILE, |
|
|
|
GROUP_CONCAT(a.CLOCK_PIC SEPARATOR ',') CLOCK_PIC |
|
|
|
GROUP_CONCAT(a.CLOCK_PIC SEPARATOR ',') CLOCK_PIC, |
|
|
|
a.SHIELD_FLAG |
|
|
|
FROM ( |
|
|
|
SELECT |
|
|
|
log.ID, |
|
|
|
@ -50,7 +53,8 @@ |
|
|
|
relation.AGE, |
|
|
|
relation.MOBILE, |
|
|
|
pic.CLOCK_PIC, |
|
|
|
log.CREATED_TIME |
|
|
|
log.CREATED_TIME, |
|
|
|
log.SHIELD_FLAG |
|
|
|
FROM |
|
|
|
epdc_act_user_clock_log log |
|
|
|
LEFT JOIN epdc_act_user_relation relation ON log.ACT_USER_ID = relation.ID |
|
|
|
@ -64,4 +68,13 @@ |
|
|
|
</if> |
|
|
|
) a GROUP BY a.ID ORDER BY a.CREATED_TIME DESC |
|
|
|
</select> |
|
|
|
|
|
|
|
<update id="updateShieldFlag" parameterType="com.elink.esua.epdc.activity.result.ActUserClockLogResultDTO"> |
|
|
|
UPDATE epdc_act_user_clock_log |
|
|
|
SET |
|
|
|
<if test="shieldFlag != null and shieldFlag != '' "> |
|
|
|
SHIELD_FLAG = #{shieldFlag} |
|
|
|
</if> |
|
|
|
where id = #{id} |
|
|
|
</update> |
|
|
|
</mapper> |