|
|
|
@ -16,10 +16,7 @@ import com.dxhy.common.utils.Base64Encoding; |
|
|
|
|
import com.dxhy.common.utils.R; |
|
|
|
|
import com.dxhy.common.vo.Tax; |
|
|
|
|
import com.dxhy.common.vo.TaxOrgCode; |
|
|
|
|
import com.dxhy.erp.dao.CustomsRecordDao; |
|
|
|
|
import com.dxhy.erp.dao.GsClientMapper; |
|
|
|
|
import com.dxhy.erp.dao.RecordInvoiceDao; |
|
|
|
|
import com.dxhy.erp.dao.TdxSaleRecordInvoiceDao; |
|
|
|
|
import com.dxhy.erp.dao.*; |
|
|
|
|
import com.dxhy.erp.entity.*; |
|
|
|
|
import com.dxhy.erp.entity.sdny.*; |
|
|
|
|
import com.dxhy.erp.service.*; |
|
|
|
@ -84,6 +81,9 @@ public class SDNYMainProcessController extends AbstractController { |
|
|
|
|
@Resource |
|
|
|
|
private CustomsRecordDao customsRecordDao; |
|
|
|
|
|
|
|
|
|
@Resource |
|
|
|
|
private BaseTDxRecordInvoiceDao baseTDxRecordInvoiceDao; |
|
|
|
|
|
|
|
|
|
@Resource |
|
|
|
|
private RecordInvoiceDao recordInvoiceDao; |
|
|
|
|
|
|
|
|
@ -480,6 +480,15 @@ public class SDNYMainProcessController extends AbstractController { |
|
|
|
|
return ResponseEntity.ok(JSONObject.toJSONString(R.error(CommonConstants.MSG_ERR_PUSH_SDNY))); |
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|
DynamicContextHolder.push(dbName + DbConstant.BUSINESS_WRITE); |
|
|
|
|
//删除对应的影像号
|
|
|
|
|
QueryWrapper<BaseTDxRecordInvoice> recordWrapper = new QueryWrapper<>(); |
|
|
|
|
recordWrapper.eq("image_id", imageId); |
|
|
|
|
BaseTDxRecordInvoice recordInvoice = new BaseTDxRecordInvoice(); |
|
|
|
|
recordInvoice.setImageId(""); |
|
|
|
|
recordInvoice.setCompCode(""); |
|
|
|
|
baseTDxRecordInvoiceDao.update(recordInvoice, recordWrapper); |
|
|
|
|
|
|
|
|
|
R data = new R(1000, "default success"); |
|
|
|
|
data.put("data", result); |
|
|
|
|
return ResponseEntity.ok(JSONObject.toJSONString(data)); |
|
|
|
|