提交 e7917521 authored 作者: 李秋林's avatar 李秋林

管理后台-打卡页面新增打卡地址展示;添加条件查询功能

上级 c51023ea
...@@ -88,7 +88,7 @@ public class TemporaryActivityClockCoreController { ...@@ -88,7 +88,7 @@ public class TemporaryActivityClockCoreController {
} }
if (StringUtils.isBlank(clockVo.getClockPhoto())){ if (StringUtils.isBlank(clockVo.getClockPhoto())){
throw new ParamException(RCode.PHOTO_IS_NULL_ERROR, null); throw new ParamException(RCode.NOT_CLOCK_PHOTO_ERROR, null);
} }
long minuteBetween = DateUtil.between(clockVo.getLastClockTime(), new Date(), DateUnit.MINUTE); long minuteBetween = DateUtil.between(clockVo.getLastClockTime(), new Date(), DateUnit.MINUTE);
......
...@@ -45,4 +45,8 @@ public class TemporaryClockWrapper { ...@@ -45,4 +45,8 @@ public class TemporaryClockWrapper {
private List<Long> reportedIds; private List<Long> reportedIds;
private Long reportedId; private Long reportedId;
private String createDateStart;
private String createDateEnd;
private String nameLike;
} }
...@@ -12,12 +12,15 @@ ...@@ -12,12 +12,15 @@
<result property="noonClockOutTime" column="noon_clock_out_time" jdbcType="TIMESTAMP"/> <result property="noonClockOutTime" column="noon_clock_out_time" jdbcType="TIMESTAMP"/>
<result property="noonClockInTime" column="noon_clock_in_time" jdbcType="TIMESTAMP"/> <result property="noonClockInTime" column="noon_clock_in_time" jdbcType="TIMESTAMP"/>
<result property="clockOutTime" column="clock_out_time" jdbcType="TIMESTAMP"/> <result property="clockOutTime" column="clock_out_time" jdbcType="TIMESTAMP"/>
<result property="createDate" column="create_date" jdbcType="CHAR"/>
<result property="clockProvince" column="clock_province" jdbcType="VARCHAR"/> <result property="clockProvince" column="clock_province" jdbcType="VARCHAR"/>
<result property="clockCity" column="clock_city" jdbcType="VARCHAR"/> <result property="clockCity" column="clock_city" jdbcType="VARCHAR"/>
<result property="createDate" column="create_date" jdbcType="VARCHAR"/> <result property="createDate" column="create_date" jdbcType="VARCHAR"/>
<result property="activityPatternId" column="activity_pattern_id" jdbcType="INTEGER"/> <result property="activityPatternId" column="activity_pattern_id" jdbcType="INTEGER"/>
<result property="activityPattern" column="activity_pattern" jdbcType="VARCHAR"/> <result property="activityPattern" column="activity_pattern" jdbcType="VARCHAR"/>
<result property="clockInAddress" column="clock_in_address" jdbcType="VARCHAR"/>
<result property="noonClockOutAddress" column="noon_clock_out_address" jdbcType="VARCHAR"/>
<result property="noonClockInAddress" column="noon_clock_in_address" jdbcType="VARCHAR"/>
<result property="clockOutAddress" column="clock_out_address" jdbcType="VARCHAR"/>
</resultMap> </resultMap>
<sql id="Base_Column_List"> <sql id="Base_Column_List">
...@@ -46,17 +49,30 @@ ...@@ -46,17 +49,30 @@
tc.clock_out_time, tc.clock_out_time,
tc.clock_province, tc.clock_province,
tc.clock_city, tc.clock_city,
tc.create_date, tc.clock_in_address,
tc.noon_clock_out_address,
tc.noon_clock_in_address,
tc.clock_out_address,
tc.activity_pattern_id, tc.activity_pattern_id,
tc.activity_pattern, tc.activity_pattern,
ti.dept_qc_org_name, ti.dept_qc_org_name,
ti.charger_name ti.charger_name
from temporary_info ti from temporary_info ti
inner join temporary_activity_clock tc on ti.id = tc.temporary_id inner join temporary_activity_clock tc on ti.id = tc.temporary_id
where tc.is_delete = 1 <where>
<if test="tcw != null and tcw.clockOutTimeIsNull != null and tcw.clockOutTimeIsNull == true"> <if test="tcw != null">
and tc.clock_out_time is null <if test="tcw.clockOutTimeIsNull != null and tcw.clockOutTimeIsNull == true">
</if> and tc.clock_out_time is null
</if>
<if test="tcw.createDateStart != null and tcw.createDateEnd != null">
and (tc.create_date between #{tcw.createDateStart} and #{tcw.createDateEnd})
</if>
<if test="tcw.nameLike != null">
and ti.name like concat('%',#{tcw.nameLike},'%')
</if>
</if>
and tc.is_delete = 1
</where>
order by id desc order by id desc
limit #{skipNum}, #{pageSize}; limit #{skipNum}, #{pageSize};
</select> </select>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论