|
|
|
@ -29,6 +29,7 @@ import com.glxp.api.res.inout.IoOrderInvoiceResponse;
|
|
|
|
|
import com.glxp.api.service.auth.InvWarehouseService;
|
|
|
|
|
import com.glxp.api.service.basic.*;
|
|
|
|
|
import com.glxp.api.service.inout.*;
|
|
|
|
|
import com.glxp.api.service.purchase.SupProductService;
|
|
|
|
|
import com.glxp.api.service.thrsys.ThrOrderDetailService;
|
|
|
|
|
import com.glxp.api.service.thrsys.ThrOrderService;
|
|
|
|
|
import com.glxp.api.service.thrsys.ThrSystemBusApiService;
|
|
|
|
@ -79,7 +80,6 @@ public class IoOrderDetailBizController extends BaseController {
|
|
|
|
|
IoOrderInvoiceService ioOrderInvoiceService;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//获取单据业务详情---临时接口查询
|
|
|
|
|
@AuthRuleAnnotation("")
|
|
|
|
|
@GetMapping("udiwms/inout/order/draft/biz")
|
|
|
|
@ -90,7 +90,8 @@ public class IoOrderDetailBizController extends BaseController {
|
|
|
|
|
pageSimpleResponse.setList(orderEntityList);
|
|
|
|
|
return ResultVOUtils.success(pageSimpleResponse);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Resource
|
|
|
|
|
SupProductService supProductService;
|
|
|
|
|
|
|
|
|
|
//录入业务单据详情
|
|
|
|
|
@AuthRuleAnnotation("")
|
|
|
|
@ -136,7 +137,11 @@ public class IoOrderDetailBizController extends BaseController {
|
|
|
|
|
datas.add(addBizProductReqeust);
|
|
|
|
|
}
|
|
|
|
|
for (AddBizProductReqeust item : datas) {
|
|
|
|
|
UdiRelevanceResponse udiRelevanceResponse = udiRelevanceService.selectGroupById(item.getRelId());
|
|
|
|
|
UdiRelevanceResponse udiRelevanceResponse = udiRelevanceService.selectSupGroupById(item.getRelId());
|
|
|
|
|
|
|
|
|
|
// todo 查询产品是否已经通过认证
|
|
|
|
|
// 1111
|
|
|
|
|
|
|
|
|
|
IoOrderDetailBizEntity ioOrderDetailBizEntity = new IoOrderDetailBizEntity();
|
|
|
|
|
ioOrderDetailBizEntity.setOrderIdFk(orderEntity.getBillNo());
|
|
|
|
|
ioOrderDetailBizEntity.setBindRlFk(udiRelevanceResponse.getId());
|
|
|
|
@ -162,6 +167,8 @@ public class IoOrderDetailBizController extends BaseController {
|
|
|
|
|
return ResultVOUtils.success(orderEntity);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//修改业务单据详情
|
|
|
|
|
@AuthRuleAnnotation("")
|
|
|
|
|
@PostMapping("/udiwms/inout/order/updateBizProduct")
|
|
|
|
@ -417,32 +424,32 @@ public class IoOrderDetailBizController extends BaseController {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
/**
|
|
|
|
|
* 删除发票表
|
|
|
|
|
*
|
|
|
|
|
* @param id
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
@GetMapping("/udiwms/inout/biz/deleteById")
|
|
|
|
|
public BaseResponse deleteById(Integer id) {
|
|
|
|
|
@GetMapping("/udiwms/inout/biz/deleteById")
|
|
|
|
|
public BaseResponse deleteById(Integer id) {
|
|
|
|
|
|
|
|
|
|
return ResultVOUtils.success(ioOrderInvoiceService.deleteByInvId(id));
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
/**
|
|
|
|
|
* 修改发票表
|
|
|
|
|
*
|
|
|
|
|
* @param ioOrderInvoiceRequest
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
@PostMapping("/udiwms/inout/biz/updateById")
|
|
|
|
|
public BaseResponse deleteById(@RequestBody IoOrderInvoiceRequest ioOrderInvoiceRequest) {
|
|
|
|
|
@PostMapping("/udiwms/inout/biz/updateById")
|
|
|
|
|
public BaseResponse deleteById(@RequestBody IoOrderInvoiceRequest ioOrderInvoiceRequest) {
|
|
|
|
|
|
|
|
|
|
return ResultVOUtils.success(ioOrderInvoiceService.updateByInvId(ioOrderInvoiceRequest));
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@PostMapping("/udiwms/inout/biz/insertInvoice")
|
|
|
|
@ -453,7 +460,7 @@ public BaseResponse deleteById(@RequestBody IoOrderInvoiceRequest ioOrderInvoice
|
|
|
|
|
for (IoOrderDetailResultEntity ioOrderDetailResultEntity : list) {
|
|
|
|
|
IoOrderInvoiceEntity ioOrderInvoiceEntity = new IoOrderInvoiceEntity();
|
|
|
|
|
ioOrderInvoiceEntity.setOrderIdFk(ioOrderDetailResultEntity.getOrderIdFk());
|
|
|
|
|
ioOrderInvoiceEntity.setBindRlFk(ioOrderDetailResultEntity.getBindRlFk()+"");
|
|
|
|
|
ioOrderInvoiceEntity.setBindRlFk(ioOrderDetailResultEntity.getBindRlFk() + "");
|
|
|
|
|
ioOrderInvoiceEntity.setBatchNo(ioOrderDetailResultEntity.getBatchNo());
|
|
|
|
|
ioOrderInvoiceEntity.setProductDate(ioOrderDetailResultEntity.getProductDate());
|
|
|
|
|
ioOrderInvoiceEntity.setExpireDate(ioOrderDetailResultEntity.getExpireDate());
|
|
|
|
@ -461,7 +468,6 @@ public BaseResponse deleteById(@RequestBody IoOrderInvoiceRequest ioOrderInvoice
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return ResultVOUtils.success("成功");
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|