|
|
|
@ -560,7 +560,9 @@ public class IoOrderDetailBizController extends BaseController {
|
|
|
|
|
@Log(title = "发票管理", businessType = BusinessType.DELETE)
|
|
|
|
|
public BaseResponse deleteById(@RequestBody IoOrderInvoiceEntity ioOrderInvoiceEntity) {
|
|
|
|
|
|
|
|
|
|
ioOrderInvoiceService.deleteByInvId(ioOrderInvoiceEntity.getId()+"");
|
|
|
|
|
|
|
|
|
|
IoOrderInvoiceResponse ioOrderInvoiceResponse = orderDetailBizService.selectByinvoiceId(ioOrderInvoiceEntity.getId());
|
|
|
|
|
|
|
|
|
|
//更改 登记状态
|
|
|
|
|
IoOrderDetailCodeEntity ioOrderDetailBizEntity = new IoOrderDetailCodeEntity();
|
|
|
|
|
|
|
|
|
@ -570,10 +572,11 @@ public class IoOrderDetailBizController extends BaseController {
|
|
|
|
|
|
|
|
|
|
ioOrderDetailBizEntity.setOrderIdFk(ioOrderInvoiceEntity.getOrderIdFk());
|
|
|
|
|
|
|
|
|
|
ioOrderDetailBizEntity.setId(ioOrderInvoiceEntity.getRegId());
|
|
|
|
|
ioOrderDetailBizEntity.setId(ioOrderInvoiceResponse.getBizIdFk().intValue());
|
|
|
|
|
|
|
|
|
|
ioOrderInvoiceService.deleteByInvId(ioOrderInvoiceEntity.getId()+"");
|
|
|
|
|
List<IoOrderInvoiceResponse> list = orderDetailBizService.filterListInv(filterOrderDetailBizRequest);
|
|
|
|
|
if(list == null && list.size()==0){
|
|
|
|
|
if(list.size()==0){
|
|
|
|
|
ioOrderDetailBizEntity.setRegStatus(false);
|
|
|
|
|
}
|
|
|
|
|
orderDetailCodeService.updateOrderDetailBiz(ioOrderDetailBizEntity);
|
|
|
|
|