|
|
|
@ -32,6 +32,7 @@ import com.glxp.api.req.thrsys.FilterThrOrderDetailRequest;
|
|
|
|
|
import com.glxp.api.res.PageSimpleResponse;
|
|
|
|
|
import com.glxp.api.res.basic.UdiRelevanceResponse;
|
|
|
|
|
import com.glxp.api.res.inout.IoOrderDetailBizResponse;
|
|
|
|
|
import com.glxp.api.res.inout.IoOrderDetailCodeResponse;
|
|
|
|
|
import com.glxp.api.res.inout.IoOrderInvoiceResponse;
|
|
|
|
|
import com.glxp.api.service.auth.InvWarehouseService;
|
|
|
|
|
import com.glxp.api.service.basic.*;
|
|
|
|
@ -513,14 +514,14 @@ public class IoOrderDetailBizController extends BaseController {
|
|
|
|
|
return ResultVOUtils.page(pageInfo);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@GetMapping("/udiwms/inout/bizDetail/filterListInv")
|
|
|
|
|
public BaseResponse filterListInv(FilterOrderDetailBizRequest orderDetailBizRequest) {
|
|
|
|
|
List<IoOrderDetailBizResponse> list = orderDetailBizService.getfilterList(orderDetailBizRequest);
|
|
|
|
|
List<IoOrderDetailCodeEntity> orderDetailCodeEntities = orderDetailCodeService.findByOrderId(orderDetailBizRequest.getOrderIdFk());
|
|
|
|
|
ioCheckInoutService.bizOrderCheck2(list, orderDetailCodeEntities);
|
|
|
|
|
PageInfo<IoOrderDetailBizResponse> pageInfo = new PageInfo<>(list);
|
|
|
|
|
return ResultVOUtils.page(pageInfo);
|
|
|
|
|
}
|
|
|
|
|
// @GetMapping("/udiwms/inout/bizDetail/filterListInv")
|
|
|
|
|
// public BaseResponse filterListInv(FilterOrderDetailBizRequest orderDetailBizRequest) {
|
|
|
|
|
// List<IoOrderDetailBizResponse> list = orderDetailBizService.getfilterList(orderDetailBizRequest);
|
|
|
|
|
// List<IoOrderDetailCodeEntity> orderDetailCodeEntities = orderDetailCodeService.findByOrderId(orderDetailBizRequest.getOrderIdFk());
|
|
|
|
|
// ioCheckInoutService.bizOrderCheck2(list, orderDetailCodeEntities);
|
|
|
|
|
// PageInfo<IoOrderDetailBizResponse> pageInfo = new PageInfo<>(list);
|
|
|
|
|
// return ResultVOUtils.page(pageInfo);
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
@GetMapping("/udiwms/inout/bizDetail/filterListInvoice")
|
|
|
|
|
public BaseResponse filterListInvoice(FilterOrderDetailBizRequest orderDetailBizRequest) {
|
|
|
|
@ -561,7 +562,7 @@ public class IoOrderDetailBizController extends BaseController {
|
|
|
|
|
|
|
|
|
|
ioOrderInvoiceService.deleteByInvId(ioOrderInvoiceEntity.getId()+"");
|
|
|
|
|
//更改 登记状态
|
|
|
|
|
IoOrderDetailBizEntity ioOrderDetailBizEntity = new IoOrderDetailBizEntity();
|
|
|
|
|
IoOrderDetailCodeEntity ioOrderDetailBizEntity = new IoOrderDetailCodeEntity();
|
|
|
|
|
|
|
|
|
|
FilterOrderDetailBizRequest filterOrderDetailBizRequest = new FilterOrderDetailBizRequest();
|
|
|
|
|
|
|
|
|
@ -575,7 +576,7 @@ public class IoOrderDetailBizController extends BaseController {
|
|
|
|
|
if(list == null && list.size()==0){
|
|
|
|
|
ioOrderDetailBizEntity.setRegStatus(false);
|
|
|
|
|
}
|
|
|
|
|
orderDetailBizService.updateOrderDetailBiz(ioOrderDetailBizEntity);
|
|
|
|
|
orderDetailCodeService.updateOrderDetailBiz(ioOrderDetailBizEntity);
|
|
|
|
|
return ResultVOUtils.success();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -627,10 +628,10 @@ public class IoOrderDetailBizController extends BaseController {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@PostMapping("/udiwms/inout/biz/updateorderBiz")
|
|
|
|
|
public BaseResponse updateorderBiz(@RequestBody List<IoOrderDetailBizEntity> list) {
|
|
|
|
|
for (IoOrderDetailBizEntity ioOrderDetailBizEntity : list) {
|
|
|
|
|
public BaseResponse updateorderBiz(@RequestBody List<IoOrderDetailCodeEntity> list) {
|
|
|
|
|
for (IoOrderDetailCodeEntity ioOrderDetailBizEntity : list) {
|
|
|
|
|
ioOrderDetailBizEntity.setRegStatus(true);
|
|
|
|
|
orderDetailBizService.updateOrderDetailBiz(ioOrderDetailBizEntity);
|
|
|
|
|
orderDetailCodeService.updateOrderDetailBiz(ioOrderDetailBizEntity);
|
|
|
|
|
}
|
|
|
|
|
return ResultVOUtils.success("成功");
|
|
|
|
|
|
|
|
|
@ -645,13 +646,14 @@ public class IoOrderDetailBizController extends BaseController {
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
@GetMapping("/udiwms/inout/bizDetail/filterBizOrderList")
|
|
|
|
|
public BaseResponse filterBizOrderList(FilterOrderDetailBizRequest orderDetailBizRequest) {
|
|
|
|
|
List<IoOrderDetailBizResponse> list = orderDetailBizService.getfilterList(orderDetailBizRequest);
|
|
|
|
|
for (IoOrderDetailBizResponse ioOrderDetailBizResponse : list) {
|
|
|
|
|
public BaseResponse filterBizOrderList(FilterOrderDetailCodeRequest orderDetailBizRequest) {
|
|
|
|
|
List<IoOrderDetailCodeResponse> ioOrderDetailCodeResponses = orderDetailBizService.getfilterList(orderDetailBizRequest);
|
|
|
|
|
for (IoOrderDetailCodeResponse ioOrderDetailCodeRespons : ioOrderDetailCodeResponses) {
|
|
|
|
|
ioOrderDetailCodeRespons.setAmount(new BigDecimal(ioOrderDetailCodeRespons.getCount()).multiply(ioOrderDetailCodeRespons.getPrice()));
|
|
|
|
|
String msg = "";
|
|
|
|
|
IoOrderInvoiceRequest ioOrderInvoiceEntity = new IoOrderInvoiceRequest();
|
|
|
|
|
ioOrderInvoiceEntity.setOrderIdFk(ioOrderDetailBizResponse.getOrderIdFk());
|
|
|
|
|
ioOrderInvoiceEntity.setBizIdFk(ioOrderDetailBizResponse.getId());
|
|
|
|
|
ioOrderInvoiceEntity.setOrderIdFk(ioOrderDetailCodeRespons.getOrderIdFk());
|
|
|
|
|
ioOrderInvoiceEntity.setBizIdFk(ioOrderDetailCodeRespons.getId());
|
|
|
|
|
List<IoOrderInvoiceEntity> ioOrderInvoiceEntityList = ioOrderInvoiceService.selectOrderInvoice(ioOrderInvoiceEntity);
|
|
|
|
|
for (IoOrderInvoiceEntity obj : ioOrderInvoiceEntityList) {
|
|
|
|
|
if (StrUtil.isNotEmpty(obj.getInvoiceEncode())) {
|
|
|
|
@ -661,9 +663,9 @@ public class IoOrderDetailBizController extends BaseController {
|
|
|
|
|
if (msg.length() > 1) {
|
|
|
|
|
msg = msg.substring(1);
|
|
|
|
|
}
|
|
|
|
|
ioOrderDetailBizResponse.setInvoiceCodes(msg);
|
|
|
|
|
ioOrderDetailCodeRespons.setInvoiceCodes(msg);
|
|
|
|
|
}
|
|
|
|
|
PageInfo<IoOrderDetailBizResponse> pageInfo = new PageInfo<>(list);
|
|
|
|
|
PageInfo<IoOrderDetailCodeResponse> pageInfo = new PageInfo<>(ioOrderDetailCodeResponses);
|
|
|
|
|
return ResultVOUtils.page(pageInfo);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|