参数项收集清单-认证工程师-批量编辑截止时间接口开发
This commit is contained in:
+13
@@ -673,4 +673,17 @@ public class ParamsCollectManifestEOController extends JeroController<ParamsColl
|
||||
public Result<?> certifiedEngineerUpdateDreBatch(ParamsCollectManifestVO paramsCollectManifestVO) {
|
||||
return this.paramsCollectManifestEOService.certifiedEngineerUpdateDreBatch(paramsCollectManifestVO);
|
||||
}
|
||||
|
||||
/**
|
||||
* 认证工程师-批量编辑截止时间
|
||||
*
|
||||
* @param paramsCollectManifestVO
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "参数项收集清单-认证工程师-批量编辑截止时间")
|
||||
@ApiOperation(value="参数项收集清单-认证工程师-批量编辑截止时间", notes="参数项收集清单-认证工程师-批量编辑截止时间")
|
||||
@PostMapping(value = "/batchEditDeadline")
|
||||
public Result<?> batchEditDeadline(@RequestBody ParamsCollectManifestVO paramsCollectManifestVO) {
|
||||
return this.paramsCollectManifestEOService.batchEditDeadline(paramsCollectManifestVO);
|
||||
}
|
||||
}
|
||||
|
||||
+3
@@ -197,4 +197,7 @@ public interface IParamsCollectManifestEOService extends IService<ParamsCollectM
|
||||
|
||||
// 创建高级查询条件
|
||||
void createAdvanceedSearchCondition(List<QueryConditionVO> queryConditionVOList, StringBuilder sqlJoin);
|
||||
|
||||
// 认证工程师-批量编辑截止时间
|
||||
Result<?> batchEditDeadline(ParamsCollectManifestVO paramsCollectManifestVO);
|
||||
}
|
||||
|
||||
+19
@@ -174,6 +174,8 @@ public class ParamsCollectManifestEOServiceImpl extends ServiceImpl<ParamsCollec
|
||||
|
||||
@Autowired
|
||||
private IProjectUserDutyTerritoryService projectUserDutyTerritoryService;
|
||||
@Autowired
|
||||
private IParamsCollectManifestUserTypeLogEOService paramsCollectManifestUserTypeLogEOService;
|
||||
|
||||
/**
|
||||
* 保存
|
||||
@@ -6352,4 +6354,21 @@ public class ParamsCollectManifestEOServiceImpl extends ServiceImpl<ParamsCollec
|
||||
sqlJoinSb.append(" ) ");
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public Result<?> batchEditDeadline(ParamsCollectManifestVO paramsCollectManifestVO) {
|
||||
if (StringUtils.isEmpty(paramsCollectManifestVO.getIds())) {
|
||||
throw new JeroBootException("参数不能为空!");
|
||||
}
|
||||
|
||||
String paramsCollectManifestIds = paramsCollectManifestVO.getIds();
|
||||
List<String> paramsCollectManifestIdList = Arrays.asList(paramsCollectManifestIds.split(",")).stream().distinct().collect(Collectors.toList());
|
||||
|
||||
LambdaUpdateWrapper<ParamsCollectManifestEO> manifestUpdateWrap = new LambdaUpdateWrapper<>();
|
||||
manifestUpdateWrap.set(ParamsCollectManifestEO::getDeadline,paramsCollectManifestVO.getDeadline());
|
||||
manifestUpdateWrap.in(ParamsCollectManifestEO::getId,paramsCollectManifestIdList);
|
||||
this.update(manifestUpdateWrap);
|
||||
|
||||
return Result.OK("批量编辑截止时间成功!");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user