| | |
| | | import io.swagger.annotations.*; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.util.ObjectUtils; |
| | | |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.lang.reflect.Field; |
| | | import java.util.ArrayList; |
| | | import java.util.HashMap; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | |
| | | import com.moral.api.utils.NoModelWriteData; |
| | | import com.moral.constant.Constants; |
| | | import com.moral.constant.ResultMessage; |
| | | import com.moral.util.DateUtils; |
| | | import com.moral.util.WebUtils; |
| | | |
| | | |
| | | import javax.validation.Valid; |
| | | |
| | |
| | | allocationVo.setFileChangeList(allocationext.getFileChangeList()); |
| | | allocationVo.setFileApproveList(allocationext.getFileApproveList()); |
| | | allocationVo.setApproveList(allocationext.getApproveList()); |
| | | allocationVo.setTime(DateUtils.dateToDateString(allocationVo.getEscalationTime(), DateUtils.yyyy_MM_dd_CN)); |
| | | return ResultMessage.ok(allocationVo); |
| | | } |
| | | @GetMapping("remove") |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | @GetMapping("selectSmallRoutine") |
| | | @ApiOperation("小程序查询") |
| | | public ResultMessage selectSmallRoutine(@RequestParam @ApiParam(value = "state",name = "状态") Integer state, |
| | | @RequestParam @ApiParam(value = "startTime",name = "开始时间") String startTime, |
| | | @RequestParam @ApiParam(value = "endTime",name = "结束时间") String endTime){ |
| | | List<AllocationFindVo> allocationFindVos = allocationService.selectSmallRoutine(state,startTime,endTime); |
| | | return ResultMessage.ok(ObjectUtils.isEmpty(allocationFindVos)? "0":allocationFindVos); |
| | | } |
| | | |
| | | |
| | | @PostMapping("changeRoutine") |
| | | @ApiOperation("小程序整改") |
| | | public ResultMessage changeSmallRoutine(@Valid @RequestBody AllocationChangeCond changeCond){ |
| | | allocationService.changeSmallRoutine(changeCond); |
| | | return ResultMessage.ok(); |
| | | } |
| | | |
| | | |
| | | @PostMapping("checkRoutine") |
| | | @ApiOperation("小程序审批") |
| | | public ResultMessage checkSmallRoutine(@Valid @RequestBody AllocationCheckCond checkCond){ |
| | | allocationService.checkSmallRoutine(checkCond); |
| | | return ResultMessage.ok(); |
| | | } |
| | | |
| | | |
| | | } |