feat:合同生成的贷记单审核失败,不回滚合同

(cherry picked from commit 859bd67e1b)
This commit is contained in:
zzs 2025-02-11 14:36:24 +08:00
parent 4c35fd1594
commit 959314b783

View File

@ -14,6 +14,8 @@ import kd.bos.entity.plugin.AbstractOperationServicePlugIn;
import kd.bos.entity.plugin.PreparePropertysEventArgs;
import kd.bos.entity.plugin.args.EndOperationTransactionArgs;
import kd.bos.exception.KDBizException;
import kd.bos.logging.Log;
import kd.bos.logging.LogFactory;
import kd.bos.orm.query.QCP;
import kd.bos.orm.query.QFilter;
import kd.bos.servicehelper.BusinessDataServiceHelper;
@ -35,6 +37,9 @@ import java.util.Map;
* @description 生成贷记单
*/
public class SaleOrdeAddGenerateOp extends AbstractOperationServicePlugIn {
private final static Log log = LogFactory.getLog(SaleOrdeAddGenerateOp.class);
@Override
public void onPreparePropertys(PreparePropertysEventArgs e) {
e.getFieldKeys().addAll(this.billEntityType.getAllFields().keySet());
@ -172,12 +177,14 @@ public class SaleOrdeAddGenerateOp extends AbstractOperationServicePlugIn {
} else {
List<IOperateInfo> allErrorOrValidateInfo = auditResult.getAllErrorOrValidateInfo();
String message = auditResult.getMessage();
throw new KDBizException("贷记单审核失败," + message + "" + allErrorOrValidateInfo);
// throw new KDBizException("贷记单审核失败," + message + "" + allErrorOrValidateInfo);
log.error("贷记单审核失败," + message + "" + allErrorOrValidateInfo);
}
} else {
List<IOperateInfo> allErrorOrValidateInfo = submitResult.getAllErrorOrValidateInfo();
String message = submitResult.getMessage();
throw new KDBizException("贷记单提交失败," + message + "" + allErrorOrValidateInfo);
// throw new KDBizException("贷记单提交失败," + message + "" + allErrorOrValidateInfo);
log.error("贷记单提交失败," + message + "" + allErrorOrValidateInfo);
}
} else {
List<IOperateInfo> allErrorOrValidateInfo = Operate.getAllErrorOrValidateInfo();