Commit ed601462 authored by litengwei's avatar litengwei

任务 8612 任务 8695

parent 5b161654
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
cb_sign sign cb_sign sign
<where> <where>
<if test="dto.name!=null and dto.name!=''"> <if test="dto.name!=null and dto.name!=''">
and sign.`name`=#{dto.name} and sign.`name`= like CONCAT(#{dto.name},'%')
</if> </if>
<if test="dto.type!=null and dto.type!=''"> <if test="dto.type!=null and dto.type!=''">
and sign.type=#{dto.type}) and sign.type=#{dto.type})
...@@ -32,6 +32,9 @@ ...@@ -32,6 +32,9 @@
<if test="dto.bizOrgCode!=null and dto.bizOrgCode!=''"> <if test="dto.bizOrgCode!=null and dto.bizOrgCode!=''">
and sign.biz_org_code like CONCAT(#{dto.bizOrgCode},'%') and sign.biz_org_code like CONCAT(#{dto.bizOrgCode},'%')
</if> </if>
<if test="dto.date!=null and dto.date!=''">
and sign.date= #{dto.date}
</if>
</where> </where>
order by sign.rec_date desc order by sign.rec_date desc
</select> </select>
...@@ -39,7 +42,7 @@ ...@@ -39,7 +42,7 @@
SELECT SELECT
date, date,
count(name) signNum, count(sequence_nbr) signNum,
biz_org_name bizOrgName, biz_org_name bizOrgName,
biz_org_code bizOrgCode biz_org_code bizOrgCode
FROM FROM
......
...@@ -49,8 +49,15 @@ public class SignServiceImpl extends BaseService<SignDto,Sign,SignMapper> implem ...@@ -49,8 +49,15 @@ public class SignServiceImpl extends BaseService<SignDto,Sign,SignMapper> implem
sinStaticDtoIPage.getRecords().stream().forEach(e->{ sinStaticDtoIPage.getRecords().stream().forEach(e->{
int num = this.baseMapper.queryPersonNum(e.getBizOrgCode()); int num = this.baseMapper.queryPersonNum(e.getBizOrgCode());
int signNum ;
if((Integer.parseInt(e.getSignNum()) & 1) != 0) {
signNum = (Integer.parseInt(e.getSignNum()) + 1) / 2;
} else {
signNum = (Integer.parseInt(e.getSignNum())) / 2;
}
if(num != 0) { if(num != 0) {
e.setAttendance(numberFormat.format((float)Integer.parseInt(e.getSignNum())/(float) num * 100) + "%"); e.setAttendance(numberFormat.format((float) Integer.valueOf(signNum)/(float) num * 100) + "%");
} else { } else {
e.setAttendance("0%"); e.setAttendance("0%");
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment