|
物资主表:有一个字段汇总从表的总金额
物资从表:有个金额字段,根据单价*数量计算
在保存后有个update,更新从表的累计收货数量字段
但是这个action放在哪个事件合适
我放在了dataMaster的savecommit事件,新增主表不保存后,录入从表数据,再点保存
会提示下面的错误信息
Caused by: com.justep.exception.BusinessException: 编码: JUSTEP150210; 提示: 执行KSQL出错, KSQL: INSERT INTO XMPM_WZRKZB XMPM_WZRKZB(XMPM_WZRKZB, XMPM_WZRKZB.version, XMPM_WZRKZB.fBHSJE, XMPM_WZRKZB.fBLX, XMPM_WZRKZB.fBSBMID_CLBS, XMPM_WZRKZB.fBSBM_CLBS, XMPM_WZRKZB.fBTJSRQ, XMPM_WZRKZB.fBTKSRQ, XMPM_WZRKZB.fBZ, XMPM_WZRKZB.fCBKMBM_WZRK, XMPM_WZRKZB.fCBKMMC_WZRK, XMPM_WZRKZB.fCGLX_WZRK, XMPM_WZRKZB.fDCDWID_WZDB, XMPM_WZRKZB.fDCDW_WZDB, XMPM_WZRKZB.fDJBH, XMPM_WZRKZB.fDJRQ, XMPM_WZRKZB.fDJZT, XMPM_WZRKZB.fDJZTID, XMPM_WZRKZB.fDKSL_WZRK, XMPM_WZRKZB.fDRGCBH_WZDB, XMPM_WZRKZB.fDRGC_WZDB, XMPM_WZRKZB.fFPLX_WZRK, XMPM_WZRKZB.fGYSBH_WZRK, XMPM_WZRKZB.fGYSMC_WZRK, XMPM_WZRKZB.fHTBH_WZRK, XMPM_WZRKZB.fLSZZ, XMPM_WZRKZB.fLYDJ, XMPM_WZRKZB.fPDRID_KCPD, XMPM_WZRKZB.fPDR_KCPD, XMPM_WZRKZB.fSFHC_WZRK, XMPM_WZRKZB.fSFTX_WZRK, XMPM_WZRKZB.fSHDWBH_WZRK, XMPM_WZRKZB.fSHDWMC_WZRK, XMPM_WZRKZB.fSHJE_WZRK, XMPM_WZRKZB.fSHRID_WZRK, XMPM_WZRKZB.fSHR_WZRK, XMPM_WZRKZB.fTBR, XMPM_WZRKZB.fTBRFID, XMP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