|
@ -131,7 +131,20 @@ public class BsSgcJsjdBuiProgressInfoController extends BaseController |
|
|
@PutMapping |
|
|
@PutMapping |
|
|
public AjaxResult edit(@RequestBody BsSgcJsjdBuiProgressInfo bsSgcJsjdBuiProgressInfo) |
|
|
public AjaxResult edit(@RequestBody BsSgcJsjdBuiProgressInfo bsSgcJsjdBuiProgressInfo) |
|
|
{ |
|
|
{ |
|
|
return toAjax(bsSgcJsjdBuiProgressInfoService.updateById(bsSgcJsjdBuiProgressInfo)); |
|
|
boolean b = bsSgcJsjdBuiProgressInfoService.updateById(bsSgcJsjdBuiProgressInfo); |
|
|
|
|
|
if(b){ |
|
|
|
|
|
Date stageTime = bsSgcJsjdBuiProgressInfo.getStageTime(); |
|
|
|
|
|
Calendar instance = Calendar.getInstance(); |
|
|
|
|
|
instance.setTime(stageTime); |
|
|
|
|
|
int month = instance.get(Calendar.MONTH); |
|
|
|
|
|
if(StringUtils.isNotEmpty(bsSgcJsjdBuiProgressInfo.getProgressPlanId())) { |
|
|
|
|
|
UpdateWrapper<BsSgcJsjdBuiProgressPlan> update = Wrappers.update(); |
|
|
|
|
|
update.set(bsSgcJsjdBuiProgressInfo.getCompleteInvestment() != null, "v" + month, bsSgcJsjdBuiProgressInfo.getCompleteInvestment()); |
|
|
|
|
|
update.eq("id", bsSgcJsjdBuiProgressInfo.getProgressPlanId()); |
|
|
|
|
|
bsSgcJsjdBuiProgressPlanService.update(update); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
return toAjax(true); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|