| | |
| | | if (Cools.isEmpty(weeklyDailyPlan)){ |
| | | throw new CoolException("更新失败:id:"+weeklyDailyPlanId); |
| | | } |
| | | weeklyDailyPlan1.setComment(weeklyDailyPlan1.getComment()+";"+weeklyDailyPlan.getComment()); |
| | | if (!Cools.isEmpty(weeklyDailyPlan1.getComment())){ |
| | | // weeklyDailyPlan1.setComment(weeklyDailyPlan1.getComment()+";"+weeklyDailyPlan.getComment()); |
| | | weeklyDailyPlan1.setComment(weeklyDailyPlan.getComment()); |
| | | }else { |
| | | weeklyDailyPlan1.setComment(weeklyDailyPlan.getComment()); |
| | | } |
| | | weeklyDailyPlan1.setWorkContent(weeklyDailyPlan.getWorkContent()); |
| | | weeklyDailyPlan1.setWorkPurpose(weeklyDailyPlan.getWorkPurpose()); |
| | | weeklyDailyPlan1.setMemo(weeklyDailyPlan.getMemo()); |
| | | weeklyDailyPlan1.setUpdateBy(getUserId()); |
| | | weeklyDailyPlan1.setUpdateTime(now); |
| | | if (!Cools.isEmpty(weeklyDailyPlan.getCstmrId())){ |
| | | weeklyDailyPlan1.setCstmrId(weeklyDailyPlan1.getCstmrId()); |
| | | } |
| | | weeklyDailyPlanService.updateById(weeklyDailyPlan1); |
| | | |
| | | }else { |
| | |
| | | if (Cools.isEmpty(weeklyDailyReality)){ |
| | | throw new CoolException("更新失败:id:"+weeklyDailyPlanId); |
| | | } |
| | | weeklyDailyReality1.setComment(weeklyDailyReality1.getComment()+";"+weeklyDailyReality.getComment()); |
| | | if (!Cools.isEmpty(weeklyDailyReality1.getComment())){ |
| | | // weeklyDailyReality1.setComment(weeklyDailyReality1.getComment()+";"+weeklyDailyReality.getComment()); |
| | | weeklyDailyReality1.setComment(weeklyDailyReality.getComment()); |
| | | }else { |
| | | weeklyDailyReality1.setComment(weeklyDailyReality.getComment()); |
| | | } |
| | | weeklyDailyReality1.setWorkContent(weeklyDailyReality.getWorkContent()); |
| | | weeklyDailyReality1.setWorkPurpose(weeklyDailyReality.getWorkPurpose()); |
| | | weeklyDailyReality1.setMemo(weeklyDailyReality.getMemo()); |
| | | weeklyDailyReality1.setUpdateBy(getUserId()); |
| | | weeklyDailyReality1.setUpdateTime(now); |
| | | if (!Cools.isEmpty(weeklyDailyReality.getCstmrId())){ |
| | | weeklyDailyReality1.setCstmrId(weeklyDailyReality.getCstmrId()); |
| | | } |
| | | weeklyDailyRealityService.updateById(weeklyDailyReality1); |
| | | |
| | | }else { |