Commit c8478da9 authored by 温志超's avatar 温志超

产品关联模板,生产版本增加是否超报

parent bd2505ef
...@@ -196,4 +196,11 @@ public class ProProductionSolution extends BaseEntity { ...@@ -196,4 +196,11 @@ public class ProProductionSolution extends BaseEntity {
*/ */
@ApiModelProperty("单价") @ApiModelProperty("单价")
private BigDecimal unitPrice; private BigDecimal unitPrice;
/**
* 单价
*/
@ApiModelProperty("超报")
private Boolean surpassState;
} }
...@@ -79,6 +79,26 @@ public class ProProductQrcodeRecordDto { ...@@ -79,6 +79,26 @@ public class ProProductQrcodeRecordDto {
@ApiModelProperty("更新时间") @ApiModelProperty("更新时间")
private Date updateTime; private Date updateTime;
/**
* 模板ID
*/
private Long templateId;
/**
* 模板名称
*/
private String templateName;
/**
* 模板编码(ID)
*/
private String templateCode;
/**
* 模板类型
*/
private String templateType;
} }
...@@ -53,6 +53,26 @@ public class ProProductQrcodeRuleCreate { ...@@ -53,6 +53,26 @@ public class ProProductQrcodeRuleCreate {
/** 当前流水 */ /** 当前流水 */
@ApiModelProperty("当前流水") @ApiModelProperty("当前流水")
private Integer currentSerial; private Integer currentSerial;
/**
* 模板ID
*/
private Long templateId;
/**
* 模板名称
*/
private String templateName;
/**
* 模板编码(ID)
*/
private String templateCode;
/**
* 模板类型
*/
private String templateType;
......
...@@ -72,7 +72,8 @@ ...@@ -72,7 +72,8 @@
pps.unit_of_measure, pps.unit_of_measure,
pps.ecn_code, pps.ecn_code,
pps.sap_usage_id, pps.sap_usage_id,
pps.unit_Price pps.unit_Price,
pps.surpass_state
from pro_production_solution pps from pro_production_solution pps
left join md_item mi on pps.item_id = mi.item_id left join md_item mi on pps.item_id = mi.item_id
left join pro_route pr on pr.route_id = pps.route_id left join pro_route pr on pr.route_id = pps.route_id
...@@ -158,6 +159,8 @@ ...@@ -158,6 +159,8 @@
<if test="sapUsageId != null">sap_usage_id,</if> <if test="sapUsageId != null">sap_usage_id,</if>
<if test="sapPrototypeMakeCode != null">sap_prototype_make_code,</if> <if test="sapPrototypeMakeCode != null">sap_prototype_make_code,</if>
<if test="unitPrice != null">unit_price,</if> <if test="unitPrice != null">unit_price,</if>
<if test="surpassState != null">surpass_state,</if>
</trim> </trim>
<trim prefix="values (" suffix=")" suffixOverrides=","> <trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="productionSolutionCode != null">#{productionSolutionCode},</if> <if test="productionSolutionCode != null">#{productionSolutionCode},</if>
...@@ -187,6 +190,7 @@ ...@@ -187,6 +190,7 @@
<if test="sapUsageId != null">#{sapUsageId},</if> <if test="sapUsageId != null">#{sapUsageId},</if>
<if test="sapPrototypeMakeCode != null">#{sapPrototypeMakeCode},</if> <if test="sapPrototypeMakeCode != null">#{sapPrototypeMakeCode},</if>
<if test="unitPrice != null">#{unitPrice},</if> <if test="unitPrice != null">#{unitPrice},</if>
<if test="surpassState != null">#{surpassState},</if>
</trim> </trim>
</insert> </insert>
...@@ -220,6 +224,7 @@ ...@@ -220,6 +224,7 @@
<if test="sapUsageId != null">sap_usage_id = #{sapUsageId},</if> <if test="sapUsageId != null">sap_usage_id = #{sapUsageId},</if>
<if test="sapPrototypeMakeCode != null">sap_prototype_make_code = #{sapPrototypeMakeCode},</if> <if test="sapPrototypeMakeCode != null">sap_prototype_make_code = #{sapPrototypeMakeCode},</if>
<if test="unitPrice != null">unit_price = #{unitPrice},</if> <if test="unitPrice != null">unit_price = #{unitPrice},</if>
<if test="surpassState != null">surpass_state = #{surpassState},</if>
</trim> </trim>
where production_solution_id = #{productionSolutionId} where production_solution_id = #{productionSolutionId}
</update> </update>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment