liwen 10 months ago
parent
commit
5884ddfecd
  1. 4
      hzims-service/hzims-scheduled/src/main/java/com/hnac/hzims/scheduled/service/operation/home/impl/RealTargetServiceImpl.java
  2. 4
      hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/task/mapper/TaskMapper.xml

4
hzims-service/hzims-scheduled/src/main/java/com/hnac/hzims/scheduled/service/operation/home/impl/RealTargetServiceImpl.java

@ -1078,6 +1078,10 @@ public class RealTargetServiceImpl implements RealTargetService {
if(System.currentTimeMillis() - date.getTime() > 30 * 60 * 1000L){ if(System.currentTimeMillis() - date.getTime() > 30 * 60 * 1000L){
return 0.0; return 0.0;
} }
// 状态限制
if(fields.get(0).getQ() != 0){
return 0.0;
}
return Double.parseDouble(fields.get(0).getValue()); return Double.parseDouble(fields.get(0).getValue());
} }

4
hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/task/mapper/TaskMapper.xml

@ -191,7 +191,7 @@
LEFT JOIN HZ_ST_EX_TASK_USER b on t.ID=b.TASK_ID and b.IS_DELETED=0 LEFT JOIN HZ_ST_EX_TASK_USER b on t.ID=b.TASK_ID and b.IS_DELETED=0
where t.IS_DELETED=0 where t.IS_DELETED=0
<if test="task.userId != null "> <if test="task.userId != null ">
and u.USER_ID=#{task.userId} and b.USER_ID=#{task.userId}
</if> </if>
<include refid="getTaskListSql"></include> <include refid="getTaskListSql"></include>
GROUP BY t.id GROUP BY t.id
@ -209,7 +209,7 @@
LEFT JOIN HZ_ST_EX_TASK_USER b on t.ID=b.TASK_ID and b.IS_DELETED=0 LEFT JOIN HZ_ST_EX_TASK_USER b on t.ID=b.TASK_ID and b.IS_DELETED=0
where t.IS_DELETED=0 where t.IS_DELETED=0
<if test="task.userId != null "> <if test="task.userId != null ">
and u.USER_ID=#{task.userId} and b.USER_ID=#{task.userId}
</if> </if>
<include refid="getTaskListSql"></include> <include refid="getTaskListSql"></include>
GROUP BY t.id GROUP BY t.id

Loading…
Cancel
Save