删除时的状态判断
This commit is contained in:
parent
65630637b9
commit
fcd99cf1e8
@ -129,6 +129,11 @@ public class CalPlanController extends BaseController
|
|||||||
{
|
{
|
||||||
for (Long planId:planIds
|
for (Long planId:planIds
|
||||||
) {
|
) {
|
||||||
|
//状态判断
|
||||||
|
CalPlan plan = calPlanService.selectCalPlanByPlanId(planId);
|
||||||
|
if(!UserConstants.ORDER_STATUS_PREPARE.equals(plan.getStatus())){
|
||||||
|
return AjaxResult.error("只能删除草稿状态单据!");
|
||||||
|
}
|
||||||
calShiftService.deleteByPlanId(planId);
|
calShiftService.deleteByPlanId(planId);
|
||||||
calPlanTeamService.deleteByPlanId(planId);
|
calPlanTeamService.deleteByPlanId(planId);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user