BUG修复
This commit is contained in:
parent
6e92b68ab7
commit
96a36cfb68
@ -1223,6 +1223,9 @@
|
|||||||
<if test="param.personType != null and param.personType != ''">
|
<if test="param.personType != null and param.personType != ''">
|
||||||
and a.person_type = #{param.personType}
|
and a.person_type = #{param.personType}
|
||||||
</if>
|
</if>
|
||||||
|
<if test="param.personSn != null and param.personSn != ''">
|
||||||
|
and a.person_sn = #{param.personSn}
|
||||||
|
</if>
|
||||||
</select>
|
</select>
|
||||||
<select id="selectAttendanceWorkerCountByDate" resultType="java.util.Map" parameterType="map">
|
<select id="selectAttendanceWorkerCountByDate" resultType="java.util.Map" parameterType="map">
|
||||||
SELECT COUNT(1) total_person,
|
SELECT COUNT(1) total_person,
|
||||||
@ -1239,6 +1242,9 @@
|
|||||||
<if test="personType != null and personType != ''">
|
<if test="personType != null and personType != ''">
|
||||||
and a.person_type = #{personType}
|
and a.person_type = #{personType}
|
||||||
</if>
|
</if>
|
||||||
|
<if test="personSn != null and personSn != ''">
|
||||||
|
and a.person_sn = #{personSn}
|
||||||
|
</if>
|
||||||
</select>
|
</select>
|
||||||
<select id="selectAppWorkerList" resultType="com.zhgd.jeecg.common.mybatis.EntityMap">
|
<select id="selectAppWorkerList" resultType="com.zhgd.jeecg.common.mybatis.EntityMap">
|
||||||
SELECT a.*,
|
SELECT a.*,
|
||||||
|
|||||||
@ -1666,6 +1666,7 @@ public class WorkerInfoServiceImpl extends ServiceImpl<WorkerInfoMapper, WorkerI
|
|||||||
WorkerType workerType = workerTypeMapper.selectById(entityMap.get("workerTypeId"));
|
WorkerType workerType = workerTypeMapper.selectById(entityMap.get("workerTypeId"));
|
||||||
List<WorkerSafeEducation> workerSafeEducations = workerSafeEducationMapper.selectList(Wrappers.<WorkerSafeEducation>lambdaQuery()
|
List<WorkerSafeEducation> workerSafeEducations = workerSafeEducationMapper.selectList(Wrappers.<WorkerSafeEducation>lambdaQuery()
|
||||||
.eq(WorkerSafeEducation::getProjectSn, projectSn)
|
.eq(WorkerSafeEducation::getProjectSn, projectSn)
|
||||||
|
.eq(WorkerSafeEducation::getEduType, 1)
|
||||||
.orderByDesc(WorkerSafeEducation::getAddTime));
|
.orderByDesc(WorkerSafeEducation::getAddTime));
|
||||||
if (workerSafeEducations == null || workerSafeEducations.size() == 0) {
|
if (workerSafeEducations == null || workerSafeEducations.size() == 0) {
|
||||||
throw new OpenAlertException("该人员未参加过入场安全教育培训!");
|
throw new OpenAlertException("该人员未参加过入场安全教育培训!");
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user