|
|
|
@ -4,7 +4,9 @@ import com.alibaba.fastjson.JSONObject;
|
|
|
|
|
import com.alibaba.fastjson.TypeReference;
|
|
|
|
|
import com.github.pagehelper.PageInfo;
|
|
|
|
|
import com.glxp.api.admin.annotation.AuthRuleAnnotation;
|
|
|
|
|
import com.glxp.api.admin.annotation.Log;
|
|
|
|
|
import com.glxp.api.admin.constant.BasicProcessStatus;
|
|
|
|
|
import com.glxp.api.admin.constant.BusinessType;
|
|
|
|
|
import com.glxp.api.admin.constant.Constant;
|
|
|
|
|
import com.glxp.api.admin.entity.info.SystemParamConfigEntity;
|
|
|
|
|
import com.glxp.api.admin.entity.inout.ErpOrderEntity;
|
|
|
|
@ -61,6 +63,7 @@ public class ThrOrderController {
|
|
|
|
|
@Resource
|
|
|
|
|
private OrderDetailService myErpOrderService;
|
|
|
|
|
|
|
|
|
|
@Log(title = "获取第三方单据信息列表")
|
|
|
|
|
@AuthRuleAnnotation("")
|
|
|
|
|
@GetMapping("/udiwms/thrsys/getOrders")
|
|
|
|
|
public BaseResponse getOrders(FilterThrOrderRequest filterThrOrderRequest,
|
|
|
|
@ -79,6 +82,7 @@ public class ThrOrderController {
|
|
|
|
|
return ResultVOUtils.success(pageSimpleResponse);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Log(title = "获取第三方单据信息详情列表")
|
|
|
|
|
@AuthRuleAnnotation("")
|
|
|
|
|
@GetMapping("/udiwms/thrsys/getOrderDetails")
|
|
|
|
|
public BaseResponse getOrderDetails(FilterThrOrderDetailRequest filterThrOrderDetailRequest,
|
|
|
|
@ -97,6 +101,7 @@ public class ThrOrderController {
|
|
|
|
|
return ResultVOUtils.success(pageSimpleResponse);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Log(title = "上传第三方单据信息")
|
|
|
|
|
@AuthRuleAnnotation("")
|
|
|
|
|
@PostMapping("/udiwms/thrsys/postOrderDetail")
|
|
|
|
|
public BaseResponse postOrderDetail(@RequestBody PostThrOrderRequest postThrOrderRequest,
|
|
|
|
@ -155,6 +160,7 @@ public class ThrOrderController {
|
|
|
|
|
return ResultVOUtils.success("单据上传成功!");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Log(title = "上传第三方文件单据信息")
|
|
|
|
|
@PostMapping("/udiwms/thrsys/postFileOrder")
|
|
|
|
|
public BaseResponse postFileOrder(@RequestBody PostFileThrOrderRequest postThrOrderRequest,
|
|
|
|
|
BindingResult bindingResult) {
|
|
|
|
@ -202,7 +208,7 @@ public class ThrOrderController {
|
|
|
|
|
return ResultVOUtils.success("单据上传成功!");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Log(title = "删除第三方单据信息",businessType = BusinessType.DELETE)
|
|
|
|
|
@PostMapping("/udiwms/thrsys/delOrder")
|
|
|
|
|
public BaseResponse delOrder(@RequestBody DeleteRequest deleteRequest, BindingResult bindingResult) {
|
|
|
|
|
|
|
|
|
@ -222,7 +228,7 @@ public class ThrOrderController {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Log(title = "删除第三方单据信息详情",businessType = BusinessType.DELETE)
|
|
|
|
|
@AuthRuleAnnotation("")
|
|
|
|
|
@PostMapping("/udiwms/thrsys/delOrderDetail")
|
|
|
|
|
public BaseResponse delOrderDetail(@RequestBody DeleteRequest deleteRequest, BindingResult bindingResult) {
|
|
|
|
@ -248,6 +254,7 @@ public class ThrOrderController {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Log(title = "删除所有第三方单据信息",businessType = BusinessType.DELETE)
|
|
|
|
|
@AuthRuleAnnotation("")
|
|
|
|
|
@RequestMapping("/udiwms/thrsys/order/delAll")
|
|
|
|
|
public BaseResponse delAll() {
|
|
|
|
@ -256,6 +263,7 @@ public class ThrOrderController {
|
|
|
|
|
return ResultVOUtils.success("删除成功");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Log(title = "下载所有第三方单据信息")
|
|
|
|
|
@AuthRuleAnnotation("")
|
|
|
|
|
@RequestMapping("/udiwms/thrsys/orders/downloadAll")
|
|
|
|
|
public BaseResponse downloadAll(FilterThrOrderRequest filterThrProductsRequest) {
|
|
|
|
@ -285,6 +293,7 @@ public class ThrOrderController {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Log(title = "单据下载")
|
|
|
|
|
@AuthRuleAnnotation("")
|
|
|
|
|
@PostMapping("/udiwms/thrsys/orders/orderDownload")
|
|
|
|
|
public BaseResponse orderDownload(@RequestBody FilterThrOrderRequest filterThrProductsRequest) {
|
|
|
|
@ -314,6 +323,7 @@ public class ThrOrderController {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Log(title = "上传单据")
|
|
|
|
|
@AuthRuleAnnotation("")
|
|
|
|
|
@PostMapping("/udiwms/smp/postOrder")
|
|
|
|
|
public BaseResponse postSmpOrder(@RequestBody PostSmpOrderRequest postSmpOrderRequest,
|
|
|
|
|