|
|
|
@ -58,6 +58,7 @@ import com.glxp.api.util.GennerOrderUtils;
|
|
|
|
|
import com.glxp.api.util.IntUtil;
|
|
|
|
|
import com.glxp.api.util.OrderNoTypeBean;
|
|
|
|
|
import com.glxp.api.util.udi.FilterUdiUtils;
|
|
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
|
|
import org.springframework.beans.BeanUtils;
|
|
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
import org.springframework.validation.BindingResult;
|
|
|
|
@ -561,6 +562,9 @@ public class IoOrderDetailBizController extends BaseController {
|
|
|
|
|
public BaseResponse insertInvoice(@RequestBody IoOrderInvoiceEntity ioOrderInvoice) {
|
|
|
|
|
String billNo = null;
|
|
|
|
|
for (IoOrderDetailBizEntity ioOrderDetailBizEntity : ioOrderInvoice.getList()) {
|
|
|
|
|
if(StringUtils.isEmpty(ioOrderDetailBizEntity.getOrderIdFk())){
|
|
|
|
|
ioOrderDetailBizEntity.setOrderIdFk(ioOrderDetailBizEntity.getBillNo());
|
|
|
|
|
}
|
|
|
|
|
IoOrderInvoiceEntity ioOrderInvoiceEntity = new IoOrderInvoiceEntity();
|
|
|
|
|
ioOrderInvoiceEntity.setOrderIdFk(ioOrderDetailBizEntity.getOrderIdFk());
|
|
|
|
|
ioOrderInvoiceEntity.setBindRlFk(ioOrderDetailBizEntity.getBindRlFk() + "");
|
|
|
|
@ -578,10 +582,13 @@ public class IoOrderDetailBizController extends BaseController {
|
|
|
|
|
ioOrderInvoiceEntity.setPrice(ioOrderInvoice.getPrice());
|
|
|
|
|
ioOrderInvoiceEntity.setRemark(ioOrderInvoice.getRemark());
|
|
|
|
|
ioOrderInvoiceEntity.setLicenseUrl(ioOrderInvoice.getLicenseUrl());
|
|
|
|
|
|
|
|
|
|
boolean b = ioOrderInvoiceService.insertInvoice(ioOrderInvoiceEntity);
|
|
|
|
|
|
|
|
|
|
billNo = ioOrderDetailBizEntity.getOrderIdFk();
|
|
|
|
|
}
|
|
|
|
|
IoOrderEntity orderEntity = orderService.findByBillNo(billNo);
|
|
|
|
|
|
|
|
|
|
orderEntity.setUpdateTime(new Date());
|
|
|
|
|
orderService.update(orderEntity);
|
|
|
|
|
return ResultVOUtils.success("成功");
|
|
|
|
@ -605,6 +612,9 @@ public class IoOrderDetailBizController extends BaseController {
|
|
|
|
|
public BaseResponse updateorderBiz(@RequestBody InvoiceRequest invoiceRequest) {
|
|
|
|
|
String billNo = null;
|
|
|
|
|
for (IoOrderDetailCodeEntity ioOrderDetailBizEntity : invoiceRequest.getList()) {
|
|
|
|
|
if(StringUtils.isEmpty(ioOrderDetailBizEntity.getOrderIdFk())){
|
|
|
|
|
ioOrderDetailBizEntity.setOrderIdFk(ioOrderDetailBizEntity.getBillNo());
|
|
|
|
|
}
|
|
|
|
|
ioOrderInvoiceService.updateRegStatus(ioOrderDetailBizEntity);
|
|
|
|
|
billNo = ioOrderDetailBizEntity.getOrderIdFk();
|
|
|
|
|
}
|
|
|
|
|