Browse Source

#培训管理修改

zhongwei
yang_shj 3 months ago
parent
commit
91f752e40b
  1. 3
      hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/train/vo/TrainParamVo.java
  2. 5
      hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/train/service/impl/TrainServiceImpl.java

3
hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/train/vo/TrainParamVo.java

@ -20,4 +20,7 @@ public class TrainParamVo {
@ApiModelProperty(value = "培训结束时间") @ApiModelProperty(value = "培训结束时间")
private String endTime; private String endTime;
@ApiModelProperty(value = "主讲人名称")
private String speakerName;
} }

5
hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/train/service/impl/TrainServiceImpl.java

@ -32,7 +32,7 @@ public class TrainServiceImpl extends ServiceImpl<TrainMapper, TrainEntity> impl
LambdaQueryWrapper<TrainEntity> wrapper = new LambdaQueryWrapper(); LambdaQueryWrapper<TrainEntity> wrapper = new LambdaQueryWrapper();
wrapper.orderByDesc(TrainEntity::getCreateTime); wrapper.orderByDesc(TrainEntity::getCreateTime);
if(StringUtil.isNotBlank(params.getStationId())){ if(StringUtil.isNotBlank(params.getStationId())){
wrapper.eq(TrainEntity::getStationId,params.getStartTime()); wrapper.eq(TrainEntity::getStationId,params.getStationId());
} }
if(StringUtil.isNotBlank(params.getStartTime())){ if(StringUtil.isNotBlank(params.getStartTime())){
wrapper.ge(TrainEntity::getTrainStartTime,params.getStartTime() + " 00:00:00"); wrapper.ge(TrainEntity::getTrainStartTime,params.getStartTime() + " 00:00:00");
@ -40,6 +40,9 @@ public class TrainServiceImpl extends ServiceImpl<TrainMapper, TrainEntity> impl
if(StringUtil.isNotBlank(params.getEndTime())){ if(StringUtil.isNotBlank(params.getEndTime())){
wrapper.le(TrainEntity::getTrainStartTime,params.getEndTime() + " 23:59:59"); wrapper.le(TrainEntity::getTrainStartTime,params.getEndTime() + " 23:59:59");
} }
if(StringUtil.isNotBlank(params.getSpeakerName())){
wrapper.like(TrainEntity::getSpeakerName,params.getSpeakerName());
}
return super.page(page,wrapper); return super.page(page,wrapper);
} }

Loading…
Cancel
Save