正在显示
4 个修改的文件
包含
10 行增加
和
2 行删除
| @@ -146,4 +146,6 @@ public class TblBiddingShenq implements Serializable { | @@ -146,4 +146,6 @@ public class TblBiddingShenq implements Serializable { | ||
| 146 | 146 | ||
| 147 | @ApiModelProperty(value = "是否从基础表选择0是 1否") | 147 | @ApiModelProperty(value = "是否从基础表选择0是 1否") |
| 148 | private String chooseStatus; | 148 | private String chooseStatus; |
| 149 | + //来源 1产品设计新增 2采购申请 | ||
| 150 | + private String source; | ||
| 149 | } | 151 | } |
| @@ -156,4 +156,7 @@ public class BiddingShenqForm implements Serializable { | @@ -156,4 +156,7 @@ public class BiddingShenqForm implements Serializable { | ||
| 156 | @Excel(name = "审批结果:0未通过 1通过", width = 15) | 156 | @Excel(name = "审批结果:0未通过 1通过", width = 15) |
| 157 | @ApiModelProperty(value = "审批结果:0未通过 1通过") | 157 | @ApiModelProperty(value = "审批结果:0未通过 1通过") |
| 158 | private String approvalResult; | 158 | private String approvalResult; |
| 159 | + | ||
| 160 | + //来源 1产品设计新增 2采购申请 | ||
| 161 | + private String source; | ||
| 159 | } | 162 | } |
jeecg-boot-erp/src/main/java/org/jeecg/modules/erp/bidding_info/mapper/xml/TblBiddingShenqMapper.xml
| @@ -9,7 +9,7 @@ | @@ -9,7 +9,7 @@ | ||
| 9 | a.id,a.order_id,a.part_number,a.product_name, | 9 | a.id,a.order_id,a.part_number,a.product_name, |
| 10 | a.specifications,a.type,a.appearance_size,a.num,a.danwei,a.brand,a.wu_type, | 10 | a.specifications,a.type,a.appearance_size,a.num,a.danwei,a.brand,a.wu_type, |
| 11 | a.work_order,a.purpose,a.ku,a.sq_time,a.delivery_time,a.notes,a.applicant, | 11 | a.work_order,a.purpose,a.ku,a.sq_time,a.delivery_time,a.notes,a.applicant, |
| 12 | - a.approval_status,a.approval_result,a.create_by,a.create_time,a.update_by,a.update_time,a.choose_status, | 12 | + a.approval_status,a.approval_result,a.create_by,a.create_time,a.update_by,a.update_time,a.choose_status,a.source, |
| 13 | IF | 13 | IF |
| 14 | ( a.choose_status = '0', b.oper_number, '0' ) AS oper_number | 14 | ( a.choose_status = '0', b.oper_number, '0' ) AS oper_number |
| 15 | FROM | 15 | FROM |
| @@ -17,7 +17,7 @@ | @@ -17,7 +17,7 @@ | ||
| 17 | LEFT JOIN view_depot_stock b ON a.part_number = b.part_number | 17 | LEFT JOIN view_depot_stock b ON a.part_number = b.part_number |
| 18 | where 1=1 | 18 | where 1=1 |
| 19 | <if test="biddingShenqForm.applicant!=null and biddingShenqForm.applicant !=''"> | 19 | <if test="biddingShenqForm.applicant!=null and biddingShenqForm.applicant !=''"> |
| 20 | - and (a.applicant like concat('%',#{biddingShenqForm.applicant},'%') or a.choose_status = '1') | 20 | + and (a.applicant like concat('%',#{biddingShenqForm.applicant},'%') or a.source = '1') |
| 21 | </if> | 21 | </if> |
| 22 | <if test="biddingShenqForm.approvalStatus!=null and biddingShenqForm.approvalStatus !=''"> | 22 | <if test="biddingShenqForm.approvalStatus!=null and biddingShenqForm.approvalStatus !=''"> |
| 23 | and a.approval_status like concat('%',#{biddingShenqForm.approvalStatus},'%') | 23 | and a.approval_status like concat('%',#{biddingShenqForm.approvalStatus},'%') |
jeecg-boot-module-system/src/main/java/org/jeecg/modules/api/controller/ProductDesignController.java
| @@ -27,6 +27,7 @@ import org.springframework.transaction.annotation.Transactional; | @@ -27,6 +27,7 @@ import org.springframework.transaction.annotation.Transactional; | ||
| 27 | import org.springframework.web.bind.annotation.*; | 27 | import org.springframework.web.bind.annotation.*; |
| 28 | 28 | ||
| 29 | import javax.servlet.http.HttpServletRequest; | 29 | import javax.servlet.http.HttpServletRequest; |
| 30 | +import java.util.Date; | ||
| 30 | import java.util.List; | 31 | import java.util.List; |
| 31 | 32 | ||
| 32 | @Slf4j | 33 | @Slf4j |
| @@ -99,6 +100,7 @@ public class ProductDesignController { | @@ -99,6 +100,7 @@ public class ProductDesignController { | ||
| 99 | List<TblBiddingShenq> biddingSqList = tblOrderForm.getBiddingSqList(); | 100 | List<TblBiddingShenq> biddingSqList = tblOrderForm.getBiddingSqList(); |
| 100 | for (TblBiddingShenq biddingShenq:biddingSqList){ | 101 | for (TblBiddingShenq biddingShenq:biddingSqList){ |
| 101 | biddingShenq.setApplicant(sysUser.getWorkNo()); | 102 | biddingShenq.setApplicant(sysUser.getWorkNo()); |
| 103 | + biddingShenq.setSqTime(new Date()); | ||
| 102 | } | 104 | } |
| 103 | tblBiddingShenqService.saveBatch(biddingSqList); | 105 | tblBiddingShenqService.saveBatch(biddingSqList); |
| 104 | //更新生产订单表中产品设计状态 | 106 | //更新生产订单表中产品设计状态 |
| @@ -130,6 +132,7 @@ public class ProductDesignController { | @@ -130,6 +132,7 @@ public class ProductDesignController { | ||
| 130 | List<TblBiddingShenq> biddingSqList = tblOrderForm.getBiddingSqList(); | 132 | List<TblBiddingShenq> biddingSqList = tblOrderForm.getBiddingSqList(); |
| 131 | for (TblBiddingShenq biddingShenq:biddingSqList){ | 133 | for (TblBiddingShenq biddingShenq:biddingSqList){ |
| 132 | biddingShenq.setApplicant(sysUser.getWorkNo()); | 134 | biddingShenq.setApplicant(sysUser.getWorkNo()); |
| 135 | + biddingShenq.setSqTime(new Date()); | ||
| 133 | } | 136 | } |
| 134 | tblBiddingShenqService.saveBatch(biddingSqList); | 137 | tblBiddingShenqService.saveBatch(biddingSqList); |
| 135 | 138 |
-
请 注册 或 登录 后发表评论