|
@@ -61,11 +61,30 @@ public class TdgyServiceImp implements TdgyService {
|
|
|
UpdateWrapper<TdgySjDTO> wrapper = new UpdateWrapper<>();
|
|
|
wrapper.eq("id", updateTdgyVo.getId());
|
|
|
if (updateTdgyVo.getYdkgsj() != null) {
|
|
|
+ // 约定开工时间
|
|
|
wrapper.set("ydkgsj", updateTdgyVo.getYdkgsj());
|
|
|
}
|
|
|
if (updateTdgyVo.getYdjgsj() != null) {
|
|
|
+ // 约定竣工时间
|
|
|
wrapper.set("ydjgsj", updateTdgyVo.getYdjgsj());
|
|
|
}
|
|
|
+ if(updateTdgyVo.getSfkg()){
|
|
|
+ // 是否开工
|
|
|
+ wrapper.set("sfkg", updateTdgyVo.getSfkg());
|
|
|
+ }
|
|
|
+ if(updateTdgyVo.getSjkgsj()!=null){
|
|
|
+ // 实际开工时间
|
|
|
+ wrapper.set("sjkgsj", updateTdgyVo.getSjkgsj());
|
|
|
+ }
|
|
|
+
|
|
|
+ if (updateTdgyVo.getSfjg()) {
|
|
|
+ // 是否竣工
|
|
|
+ wrapper.set("sfjg", updateTdgyVo.getSfjg());
|
|
|
+ }
|
|
|
+ if (updateTdgyVo.getSjjgsj() != null) {
|
|
|
+ // 实际竣工时间
|
|
|
+ wrapper.set("sjjgsj", updateTdgyVo.getSjjgsj());
|
|
|
+ }
|
|
|
tdgyMapper.update(null, wrapper);
|
|
|
return RequestResult.success();
|
|
|
}
|