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