| | |
| | | productRecord.setSaleLedgerProjectId(salesLedgerProduct.getId()); |
| | | productRecord.setId(null); |
| | | productRecord.setType("2"); |
| | | insert = productRecordMapper.insert(productRecord); |
| | | insert += productRecordMapper.insert(productRecord); |
| | | } |
| | | if (insert <= 0) { |
| | | throw new RuntimeException("产品开票数都为0,请检查"); |
| | | } |
| | | } |
| | | if (insert <= 0) { |
| | | throw new RuntimeException("产品开票数都为0,请检查"); |
| | | } |
| | | } |
| | | // 迁移临时文件到正式目录 |
| | |
| | | AND t4.purchase_contract_number LIKE CONCAT('%',#{params.purchaseContractNumber},'%') |
| | | </if> |
| | | </where> |
| | | GROUP BY T1.id |
| | | ORDER BY T1.payment_date,T1.create_time DESC |
| | | </select> |
| | | |