You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
53 lines
1.6 KiB
Java
53 lines
1.6 KiB
Java
2 years ago
|
package com.glxp.api.controller.thrsys;
|
||
|
|
||
|
import com.github.pagehelper.PageInfo;
|
||
|
import com.glxp.api.common.res.BaseResponse;
|
||
|
import com.glxp.api.common.util.ResultVOUtils;
|
||
|
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")
|
||
|
public BaseResponse delete(Integer id) {
|
||
|
boolean result = thrOrderUploadLogService.delete(id);
|
||
|
if (result) {
|
||
|
return ResultVOUtils.success("删除成功");
|
||
|
}
|
||
|
return ResultVOUtils.error(500, "删除失败");
|
||
|
}
|
||
|
|
||
|
}
|