//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.TaskRcvDetailDTO;
//import com.prolog.cs.biz.inbound.service.task.TaskRcvDetailService;
//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 
// */
//
//@Api(tags = "")
//@RestController
//@RequestMapping("/taskRcvDetail")
//@Deprecated
//public class TaskRcvDetailController {
//
//	@Resource
//	private TaskRcvDetailService taskRcvDetailService;
//
//	/**
//	* // TODO
//	*/
//	@ApiOperation("add")
//	@PostMapping("/add")
//	public RestMessage<Object> add(@Validated(validAdd.class) @RequestBody TaskRcvDetailDTO taskRcvDetailDTO){
//		return RestMessage.newInstance(true, "addSuccess", taskRcvDetailService.add(taskRcvDetailDTO));
//	}
//
//	/**
//	* // TODO
//	*/
//	@ApiOperation("edit")
//	@PostMapping("/edit")
//	public RestMessage<Object> edit(@Validated(validEdit.class) @RequestBody TaskRcvDetailDTO taskRcvDetailDTO){
//		return RestMessage.newInstance(true, "editSuccess", taskRcvDetailService.edit(null,taskRcvDetailDTO));
//	}
//
//	/**
//	* // 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", taskRcvDetailService.delIds(pkIdList));
//	}
//
//	/**
//	* // TODO
//	*/
//	@ApiOperation("condition page")
//	@GetMapping("/page")
//	public RestMessage<Page<TaskRcvDetailDTO>> list(TaskRcvDetailDTO taskRcvDetailDTO,PageParam pageParam) throws Exception {
//		return RestMessage.newInstance(true, "pageSuccess", taskRcvDetailService.findList(taskRcvDetailDTO,pageParam));
//	}
//
//	/**
//	* // TODO
//	*/
//	@ApiOperation("batchAdd")
//	@PostMapping("/batchAdd")
//	public RestMessage<Object> batchAdd(@NotEmpty(message = "collection is empty") @RequestBody List<TaskRcvDetailDTO> taskRcvDetailDTOList) {
//		return RestMessage.newInstance(true, "batchAddSuccess", taskRcvDetailService.batchAdd(taskRcvDetailDTOList));
//	}
//
//	/**
//	* // TODO
//	*/
//	@ApiOperation("batchEdit")
//	@PostMapping("/batchEdit")
//	public RestMessage<Object> batchEdit(@NotEmpty(message = "collection is empty")@RequestBody List<TaskRcvDetailDTO> taskRcvDetailDTOList) {
//		return RestMessage.newInstance(true, "batchEditSuccess", taskRcvDetailService.batchEdit(taskRcvDetailDTOList));
//	}
//
//	/**
//	* // TODO
//	*/
//	@ApiOperation("condition findAll")
//	@PostMapping("/findAll")
//	public RestMessage<List<TaskRcvDetailDTO>> findAll(@RequestBody(required = false) TaskRcvDetailDTO taskRcvDetailDTO) {
//		return RestMessage.newInstance(true, "listAllSuccess", taskRcvDetailService.findAll(taskRcvDetailDTO));
//	}
//	/**
//	* // TODO
//	*/
//	@ApiOperation("findByPkId")
//	@GetMapping("/findByPkId")
//	public RestMessage<TaskRcvDetailDTO> findByPkId(@NotEmpty(message = "pkId is empty") String pkId){
//		return RestMessage.newInstance(true, "findByPkIdSuccess", taskRcvDetailService.findByPkId(pkId));
//	}
//}
