|
|
@ -7,7 +7,6 @@ import com.hnac.hzims.common.logs.annotation.OperationAnnotation; |
|
|
|
import com.hnac.hzims.common.logs.enums.BusinessType; |
|
|
|
import com.hnac.hzims.common.logs.enums.BusinessType; |
|
|
|
import com.hnac.hzims.common.logs.enums.OperatorType; |
|
|
|
import com.hnac.hzims.common.logs.enums.OperatorType; |
|
|
|
import com.hnac.hzinfo.inspect.obj.utils.CodeUtils; |
|
|
|
import com.hnac.hzinfo.inspect.obj.utils.CodeUtils; |
|
|
|
import com.hnac.hzinfo.inspect.plan.PlanContants; |
|
|
|
|
|
|
|
import com.hnac.hzinfo.inspect.plan.entity.PlanEntity; |
|
|
|
import com.hnac.hzinfo.inspect.plan.entity.PlanEntity; |
|
|
|
import com.hnac.hzinfo.inspect.plan.service.IPlanObjectTemplateService; |
|
|
|
import com.hnac.hzinfo.inspect.plan.service.IPlanObjectTemplateService; |
|
|
|
import com.hnac.hzinfo.inspect.plan.service.IPlanService; |
|
|
|
import com.hnac.hzinfo.inspect.plan.service.IPlanService; |
|
|
@ -74,9 +73,9 @@ public class PlanController extends BladeController { |
|
|
|
if(plan.getEndTime()!=null){ |
|
|
|
if(plan.getEndTime()!=null){ |
|
|
|
queryWrapper.le(PlanEntity::getEndTime,plan.getEndTime()); |
|
|
|
queryWrapper.le(PlanEntity::getEndTime,plan.getEndTime()); |
|
|
|
} |
|
|
|
} |
|
|
|
if(plan.getStatus()==null){ |
|
|
|
// if(plan.getStatus()==null){
|
|
|
|
queryWrapper.ne(PlanEntity::getStatus, PlanContants.PlanStatusEnum.PLAN_AUTH.getStatus()); |
|
|
|
// queryWrapper.ne(PlanEntity::getStatus, PlanContants.PlanStatusEnum.PLAN_AUTH.getStatus());
|
|
|
|
} |
|
|
|
// }
|
|
|
|
if(plan.getCreateDept()!=null){ |
|
|
|
if(plan.getCreateDept()!=null){ |
|
|
|
queryWrapper.eq(PlanEntity::getCreateDept,plan.getCreateDept()); |
|
|
|
queryWrapper.eq(PlanEntity::getCreateDept,plan.getCreateDept()); |
|
|
|
} |
|
|
|
} |
|
|
@ -107,10 +106,10 @@ public class PlanController extends BladeController { |
|
|
|
/** |
|
|
|
/** |
|
|
|
* 撤销 |
|
|
|
* 撤销 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
@PostMapping("/revoke") |
|
|
|
@GetMapping("/revoke") |
|
|
|
@ApiOperationSupport(order = 6) |
|
|
|
@ApiOperationSupport(order = 6) |
|
|
|
@ApiOperation(value = "撤销", notes = "传入plan") |
|
|
|
@ApiOperation(value = "撤销", notes = "传入plan") |
|
|
|
public R<Boolean> revoke(@Valid @RequestBody Long planId) { |
|
|
|
public R<Boolean> revoke(@RequestParam Long planId) { |
|
|
|
return R.data(planService.revoke(planId)); |
|
|
|
return R.data(planService.revoke(planId)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|