|
|
|
@ -1,11 +1,16 @@
|
|
|
|
|
package com.hnac.hzims.electric.service.impl; |
|
|
|
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
|
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
|
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
|
|
|
|
import com.hnac.hzims.electric.entity.RunTemplateEntity; |
|
|
|
|
import com.hnac.hzims.electric.mapper.RunTemplateMapper; |
|
|
|
|
import com.hnac.hzims.electric.service.IRunTemplateService; |
|
|
|
|
import com.hnac.hzims.history.entity.HistoryTemplateEntity; |
|
|
|
|
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.StringUtil; |
|
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
@ -23,6 +28,12 @@ public class RunTemplateServiceImpl extends ServiceImpl<RunTemplateMapper, RunTe
|
|
|
|
|
*/ |
|
|
|
|
@Override |
|
|
|
|
public IPage<RunTemplateEntity> pageCondition(HistoryTemplateParamVo params, IPage<RunTemplateEntity> page) { |
|
|
|
|
return null; |
|
|
|
|
LambdaQueryWrapper<RunTemplateEntity> wrapper = new LambdaQueryWrapper(); |
|
|
|
|
wrapper.eq(RunTemplateEntity::getCreateUser, AuthUtil.getUserId()); |
|
|
|
|
wrapper.orderByDesc(RunTemplateEntity::getCreateTime); |
|
|
|
|
if(StringUtil.isNotBlank(params.getStationId())){ |
|
|
|
|
wrapper.eq(RunTemplateEntity::getStationId,params.getStationId()); |
|
|
|
|
} |
|
|
|
|
return super.page(page,wrapper); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|