|
|
@@ -532,6 +532,24 @@ public class BpmCommonProcessAction extends RequestAbs {
|
|
|
if (detailObj.containsKey("price")) {
|
|
|
detail.setPrice(new java.math.BigDecimal(detailObj.getString("price")));
|
|
|
}
|
|
|
+ // 设置申请人和用途字段
|
|
|
+ if (detailObj.containsKey("applyUser")) {
|
|
|
+ detail.setApplyUser(detailObj.getString("applyUser"));
|
|
|
+ }
|
|
|
+ if (detailObj.containsKey("remark")) {
|
|
|
+ detail.setRemark(detailObj.getString("remark"));
|
|
|
+ }
|
|
|
+ // 设置申请ID和申请部门名称(用于数据完整性)
|
|
|
+ if (detailObj.containsKey("applyId") && detailObj.get("applyId") != null) {
|
|
|
+ try {
|
|
|
+ detail.setApplyId(Long.valueOf(detailObj.getString("applyId")));
|
|
|
+ } catch (Exception e) {
|
|
|
+ System.out.println("设置 applyId 失败:" + e.getMessage());
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (detailObj.containsKey("applyDeptName")) {
|
|
|
+ detail.setApplyDeptName(detailObj.getString("applyDeptName"));
|
|
|
+ }
|
|
|
// 设置关联信息
|
|
|
detail.setContractPurchaseFormId(purchaseForm.getUniversalid());
|
|
|
detail.setlFormInsId(purchaseForm.getUniversalid());
|