|
|
|
@ -14,10 +14,7 @@ import org.dromara.common.mybatis.Utils.UniqueCodeUtils;
|
|
|
|
|
import org.dromara.common.mybatis.core.page.PageQuery;
|
|
|
|
|
import org.dromara.common.mybatis.core.page.TableDataInfo;
|
|
|
|
|
import org.dromara.common.satoken.utils.LoginHelper;
|
|
|
|
|
import org.dromara.dms.domain.DmsBillsLubeDetail;
|
|
|
|
|
import org.dromara.dms.domain.DmsBillsLubeInstance;
|
|
|
|
|
import org.dromara.dms.domain.DmsPlanLube;
|
|
|
|
|
import org.dromara.dms.domain.DmsPlanLubeDetail;
|
|
|
|
|
import org.dromara.dms.domain.*;
|
|
|
|
|
import org.dromara.dms.domain.bo.DmsBillsLubeDetailBo;
|
|
|
|
|
import org.dromara.dms.domain.bo.DmsBillsLubeInstanceBo;
|
|
|
|
|
import org.dromara.dms.domain.bo.DmsPlanLubeBo;
|
|
|
|
@ -104,6 +101,7 @@ public class DmsBillsLubeInstanceServiceImpl implements IDmsBillsLubeInstanceSer
|
|
|
|
|
|
|
|
|
|
.eq(bo.getLubeInstanceId() != null, DmsBillsLubeInstance::getLubeInstanceId, bo.getLubeInstanceId())
|
|
|
|
|
.eq(bo.getPlanLubeId() != null, DmsBillsLubeInstance::getPlanLubeId, bo.getPlanLubeId())
|
|
|
|
|
.eq(bo.getWfDefinitionId() != null, DmsBillsLubeInstance::getWfDefinitionId, bo.getWfDefinitionId())
|
|
|
|
|
.eq(StringUtils.isNotBlank(bo.getBillsLubeCode()), DmsBillsLubeInstance::getBillsLubeCode, bo.getBillsLubeCode())
|
|
|
|
|
.eq(StringUtils.isNotBlank(bo.getLubeGroup()), DmsBillsLubeInstance::getLubeGroup, bo.getLubeGroup())
|
|
|
|
|
.eq(StringUtils.isNotBlank(bo.getLubeSupervisor()), DmsBillsLubeInstance::getLubeSupervisor, bo.getLubeSupervisor())
|
|
|
|
@ -428,4 +426,26 @@ public class DmsBillsLubeInstanceServiceImpl implements IDmsBillsLubeInstanceSer
|
|
|
|
|
|
|
|
|
|
return 1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 更新润滑实例的工作流定义ID
|
|
|
|
|
* @param lubeInstanceId 润滑实例的ID
|
|
|
|
|
* @param wfDefinitionId 工作流定义的ID
|
|
|
|
|
* @return 如果更新成功返回true,否则返回false
|
|
|
|
|
*/
|
|
|
|
|
@Override
|
|
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
|
|
public Boolean updateWfDefinitionIdById(Long lubeInstanceId, Long wfDefinitionId) {
|
|
|
|
|
if(ObjectUtils.isEmpty(lubeInstanceId)){
|
|
|
|
|
throw new ServiceException("参数为空");
|
|
|
|
|
}
|
|
|
|
|
DmsBillsLubeInstance entity = baseMapper.selectById(lubeInstanceId);
|
|
|
|
|
if (entity == null) {
|
|
|
|
|
throw new ServiceException("记录不存在");
|
|
|
|
|
}
|
|
|
|
|
entity.setWfDefinitionId(wfDefinitionId); // 假设字段已存在于实体中
|
|
|
|
|
return baseMapper.updateById(entity) > 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|