|
|
@ -7,6 +7,7 @@ import com.hnac.hzims.history.entity.HistoryTemplateEntity; |
|
|
|
import com.hnac.hzims.history.mapper.HistoryTemplateMapper; |
|
|
|
import com.hnac.hzims.history.mapper.HistoryTemplateMapper; |
|
|
|
import com.hnac.hzims.history.service.IHistoryTemplateService; |
|
|
|
import com.hnac.hzims.history.service.IHistoryTemplateService; |
|
|
|
import com.hnac.hzims.history.vo.HistoryTemplateParamVo; |
|
|
|
import com.hnac.hzims.history.vo.HistoryTemplateParamVo; |
|
|
|
|
|
|
|
import org.springblade.core.secure.utils.AuthUtil; |
|
|
|
import org.springblade.core.tool.utils.ObjectUtil; |
|
|
|
import org.springblade.core.tool.utils.ObjectUtil; |
|
|
|
import org.springblade.core.tool.utils.StringUtil; |
|
|
|
import org.springblade.core.tool.utils.StringUtil; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
@ -26,13 +27,11 @@ public class HistoryTemplateServiceImpl extends ServiceImpl<HistoryTemplateMappe |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public IPage<HistoryTemplateEntity> pageCondition(HistoryTemplateParamVo params, IPage<HistoryTemplateEntity> page) { |
|
|
|
public IPage<HistoryTemplateEntity> pageCondition(HistoryTemplateParamVo params, IPage<HistoryTemplateEntity> page) { |
|
|
|
LambdaQueryWrapper<HistoryTemplateEntity> wrapper = new LambdaQueryWrapper(); |
|
|
|
LambdaQueryWrapper<HistoryTemplateEntity> wrapper = new LambdaQueryWrapper(); |
|
|
|
|
|
|
|
wrapper.eq(HistoryTemplateEntity::getCreateUser,AuthUtil.getUserId()); |
|
|
|
wrapper.orderByDesc(HistoryTemplateEntity::getCreateTime); |
|
|
|
wrapper.orderByDesc(HistoryTemplateEntity::getCreateTime); |
|
|
|
if(StringUtil.isNotBlank(params.getStationId())){ |
|
|
|
if(StringUtil.isNotBlank(params.getStationId())){ |
|
|
|
wrapper.eq(HistoryTemplateEntity::getStationId,params.getStationId()); |
|
|
|
wrapper.eq(HistoryTemplateEntity::getStationId,params.getStationId()); |
|
|
|
} |
|
|
|
} |
|
|
|
if(ObjectUtil.isNotEmpty(params.getCreateUser())){ |
|
|
|
|
|
|
|
wrapper.eq(HistoryTemplateEntity::getCreateUser,params.getCreateUser()); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return super.page(page,wrapper); |
|
|
|
return super.page(page,wrapper); |
|
|
|
} |
|
|
|
} |
|
|
|