//package com.prolog.cs.biz.inbound.controller.task;
//
//import java.util.List;
//
//import javax.validation.constraints.NotEmpty;
//
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.validation.annotation.Validated;
//import org.springframework.web.bind.annotation.GetMapping;
//import org.springframework.web.bind.annotation.PostMapping;
//import org.springframework.web.bind.annotation.RequestBody;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RestController;
//
//import com.prolog.cs.biz.inbound.constant.ValidatorGroup.validAdd;
//import com.prolog.cs.biz.inbound.constant.ValidatorGroup.validEdit;
//import com.prolog.cs.biz.inbound.dto.PageParam;
//import com.prolog.cs.biz.inbound.dto.task.TaskRejectedDetailDTO;
//import com.prolog.cs.biz.inbound.service.task.TaskRejectedDetailService;
//import com.prolog.framework.common.message.RestMessage;
//import com.prolog.framework.core.pojo.Page;
//
//import io.swagger.annotations.Api;
//import io.swagger.annotations.ApiOperation;
//
///**
// * @Description // TODO 
// * @Date 2021-03-24 
// */
//
//@Deprecated
//@Api(tags = "")
//@RestController
//@RequestMapping("/taskRejectedDetail")
//public class TaskRejectedDetailController {
//
//	@Resource
//	private TaskRejectedDetailService taskRejectedDetailService;
//
//	/**
//	* // TODO
//	*/
//	@ApiOperation("add")
//	@PostMapping("/add")
//	public RestMessage<Object> add(@Validated(validAdd.class) @RequestBody TaskRejectedDetailDTO taskRejectedDetailDTO){
//		return RestMessage.newInstance(true, "addSuccess", taskRejectedDetailService.add(taskRejectedDetailDTO));
//	}
//
//	/**
//	* // TODO
//	*/
//	@ApiOperation("edit")
//	@PostMapping("/edit")
//	public RestMessage<Object> edit(@Validated(validEdit.class) @RequestBody TaskRejectedDetailDTO taskRejectedDetailDTO){
//		return RestMessage.newInstance(true, "editSuccess", taskRejectedDetailService.edit(null,taskRejectedDetailDTO));
//	}
//
//	/**
//	* // TODO
//	*/
//	@ApiOperation("del by ids")
//	@PostMapping("/delIds")
//	public RestMessage<Object> delIds(@NotEmpty(message = "collection is empty") @RequestBody List<String> pkIdList) {
//		return RestMessage.newInstance(true, "delIdsSuccess", taskRejectedDetailService.delIds(pkIdList));
//	}
//
//	/**
//	* // TODO
//	*/
//	@ApiOperation("condition page")
//	@GetMapping("/page")
//	public RestMessage<Page<TaskRejectedDetailDTO>> list(TaskRejectedDetailDTO taskRejectedDetailDTO,PageParam pageParam) throws Exception {
//		return RestMessage.newInstance(true, "pageSuccess", taskRejectedDetailService.findList(taskRejectedDetailDTO,pageParam));
//	}
//
//	/**
//	* // TODO
//	*/
//	@ApiOperation("batchAdd")
//	@PostMapping("/batchAdd")
//	public RestMessage<Object> batchAdd(@NotEmpty(message = "collection is empty") @RequestBody List<TaskRejectedDetailDTO> taskRejectedDetailDTOList) {
//		return RestMessage.newInstance(true, "batchAddSuccess", taskRejectedDetailService.batchAdd(taskRejectedDetailDTOList));
//	}
//
//	/**
//	* // TODO
//	*/
//	@ApiOperation("batchEdit")
//	@PostMapping("/batchEdit")
//	public RestMessage<Object> batchEdit(@NotEmpty(message = "collection is empty")@RequestBody List<TaskRejectedDetailDTO> taskRejectedDetailDTOList) {
//		return RestMessage.newInstance(true, "batchEditSuccess", taskRejectedDetailService.batchEdit(taskRejectedDetailDTOList));
//	}
//
//	/**
//	* // TODO
//	*/
//	@ApiOperation("condition findAll")
//	@PostMapping("/findAll")
//	public RestMessage<List<TaskRejectedDetailDTO>> findAll(@RequestBody(required = false) TaskRejectedDetailDTO taskRejectedDetailDTO) {
//		return RestMessage.newInstance(true, "listAllSuccess", taskRejectedDetailService.findAll(taskRejectedDetailDTO));
//	}
//	/**
//	* // TODO
//	*/
//	@ApiOperation("findByPkId")
//	@GetMapping("/findByPkId")
//	public RestMessage<TaskRejectedDetailDTO> findByPkId(@NotEmpty(message = "pkId is empty") String pkId){
//		return RestMessage.newInstance(true, "findByPkIdSuccess", taskRejectedDetailService.findByPkId(pkId));
//	}
//}
