发票价格不匹配时 状态是未登记

pro
wangwei 2 years ago
parent 8198a35458
commit d67ef1050c

@ -674,10 +674,14 @@ public class IoOrderDetailBizController extends BaseController {
@PostMapping("/udiwms/inout/biz/updateorderBiz") @PostMapping("/udiwms/inout/biz/updateorderBiz")
public BaseResponse updateorderBiz(@RequestBody List<IoOrderDetailCodeEntity> list) { public BaseResponse updateorderBiz(@RequestBody InvoiceRequest invoiceRequest) {
String billNo = null; String billNo = null;
for (IoOrderDetailCodeEntity ioOrderDetailBizEntity : list) { for (IoOrderDetailCodeEntity ioOrderDetailBizEntity : invoiceRequest.getList()) {
ioOrderDetailBizEntity.setRegStatus(true); if("key".equals(invoiceRequest.getKey())){
ioOrderDetailBizEntity.setRegStatus(false);
}else{
ioOrderDetailBizEntity.setRegStatus(true);
}
orderDetailCodeService.updateOrderDetailBiz(ioOrderDetailBizEntity); orderDetailCodeService.updateOrderDetailBiz(ioOrderDetailBizEntity);
billNo = ioOrderDetailBizEntity.getOrderIdFk(); billNo = ioOrderDetailBizEntity.getOrderIdFk();
} }

@ -0,0 +1,21 @@
package com.glxp.api.req.inout;
import com.glxp.api.entity.inout.IoOrderDetailCodeEntity;
import lombok.Data;
import java.util.List;
/**
* @author : zhangsan
* @date : 2023/6/8 15:15
* @modyified By :
*/
@Data
public class InvoiceRequest {
private List<IoOrderDetailCodeEntity> list;
private String key;
}
Loading…
Cancel
Save