|
|
|
package com.glxp.api.controller.thrsys;
|
|
|
|
|
|
|
|
import com.github.pagehelper.PageInfo;
|
|
|
|
import com.glxp.api.annotation.Log;
|
|
|
|
import com.glxp.api.common.res.BaseResponse;
|
|
|
|
import com.glxp.api.common.util.ResultVOUtils;
|
|
|
|
import com.glxp.api.constant.BusinessType;
|
|
|
|
import com.glxp.api.req.thrsys.FilterThrOrderUploadLogRequest;
|
|
|
|
import com.glxp.api.res.thrsys.ThrOrderUploadLogResponse;
|
|
|
|
import com.glxp.api.service.thrsys.ThrOrderUploadLogService;
|
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
|
|
@Slf4j
|
|
|
|
@RestController
|
|
|
|
public class ThrOrderUploadLogController {
|
|
|
|
|
|
|
|
@Resource
|
|
|
|
private ThrOrderUploadLogService thrOrderUploadLogService;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 查询单据上传日志
|
|
|
|
*
|
|
|
|
* @param uploadLogRequest
|
|
|
|
* @return
|
|
|
|
*/
|
|
|
|
@GetMapping("/udiwms/inout/order/uploadLog/filter")
|
|
|
|
public BaseResponse filter(FilterThrOrderUploadLogRequest uploadLogRequest) {
|
|
|
|
List<ThrOrderUploadLogResponse> list = thrOrderUploadLogService.filterList(uploadLogRequest);
|
|
|
|
PageInfo<ThrOrderUploadLogResponse> pageInfo = new PageInfo<>(list);
|
|
|
|
return ResultVOUtils.page(pageInfo);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 删除上传单据日志
|
|
|
|
*
|
|
|
|
* @param id
|
|
|
|
* @return
|
|
|
|
*/
|
|
|
|
@GetMapping("/udiwms/inout/order/uploadLog/delete")
|
|
|
|
@Log(title = "单据上传", businessType = BusinessType.DELETE)
|
|
|
|
public BaseResponse delete(Integer id) {
|
|
|
|
boolean result = thrOrderUploadLogService.delete(id);
|
|
|
|
if (result) {
|
|
|
|
return ResultVOUtils.success("删除成功");
|
|
|
|
}
|
|
|
|
return ResultVOUtils.error(500, "删除失败");
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|