|
@@ -31,7 +31,6 @@ import thyyxxk.webserver.utils.CommonUtil;
|
|
|
import thyyxxk.webserver.utils.ResultVoUtil;
|
|
|
import thyyxxk.webserver.utils.TokenUtil;
|
|
|
|
|
|
-import javax.annotation.Resource;
|
|
|
import java.math.BigDecimal;
|
|
|
import java.math.RoundingMode;
|
|
|
import java.util.Date;
|
|
@@ -490,6 +489,22 @@ public class CashierProcessService {
|
|
|
if(response.getCode() == -1 ){
|
|
|
return ResultVoUtil.fail(ExceptionEnum.LOGICAL_HTML_ERROR, response.getMessage());
|
|
|
}
|
|
|
+ if(Convert.toInt(NumberEnum.ThREE.getCode()).equals(param.getTypeFlag())){
|
|
|
+ String dzfpNo = dao.selectDzfpNo(param);
|
|
|
+ if(StrUtil.isNotBlank(dzfpNo)){
|
|
|
+ param.setReceiptNo(dzfpNo);
|
|
|
+ dao.updateZyLedgerFileReceiptNo(param);
|
|
|
+ dao.updateZyDepositFileReceiptNo(param);
|
|
|
+ dao.updatezyReceiptDzfpNo(param);
|
|
|
+ }else {
|
|
|
+ // 查询是否有冲红的发票
|
|
|
+ param.setTypeFlag(4);
|
|
|
+ String zfDzfpNo = dao.selectDzfpNo(param);
|
|
|
+ if(StrUtil.isNotBlank(zfDzfpNo)){
|
|
|
+ dao.clearZyReceiptDzfpNo(param);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
return ResultVoUtil.success(ExceptionEnum.SUCCESS, (Map)response.getData());
|
|
|
}
|
|
|
|