Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mes
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ximai
mes
Commits
49d8c4b7
Commit
49d8c4b7
authored
Oct 23, 2024
by
温志超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
产品二维码规则增加模板
parent
136accc4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
46 additions
and
3 deletions
+46
-3
ProProductQrcodeRule.java
...n/java/com/ximai/mes/pro/domain/ProProductQrcodeRule.java
+20
-1
ProProductQrcodeRuleMapper.xml
.../main/resources/mapper/pro/ProProductQrcodeRuleMapper.xml
+24
-0
ProProductionSolutionMapper.xml
...er/pro/productionSolution/ProProductionSolutionMapper.xml
+1
-1
QcAbnormalReportMapper.xml
mes/src/main/resources/mapper/qc/QcAbnormalReportMapper.xml
+1
-1
No files found.
mes/src/main/java/com/ximai/mes/pro/domain/ProProductQrcodeRule.java
View file @
49d8c4b7
...
...
@@ -58,7 +58,26 @@ public class ProProductQrcodeRule extends BaseEntity {
/** 当前流水 */
@ApiModelProperty
(
"当前流水"
)
private
Integer
currentSerial
;
/**
* 模板ID
*/
private
Long
templateId
;
/**
* 模板名称
*/
private
String
templateName
;
/**
* 模板编码(ID)
*/
private
String
templateCode
;
/**
* 模板类型
*/
private
String
templateType
;
public
String
buildQrcode
(){
String
rst
=
this
.
getPrefix
()
+
...
...
mes/src/main/resources/mapper/pro/ProProductQrcodeRuleMapper.xml
View file @
49d8c4b7
...
...
@@ -78,6 +78,18 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"createTime != null"
>
create_time,
</if>
<if
test=
"updateBy != null"
>
update_by,
</if>
<if
test=
"updateTime != null"
>
update_time,
</if>
<if
test=
"templateId != null"
>
template_id,
</if>
<if
test=
"templateCode != null"
>
template_code,
</if>
<if
test=
"templateName != null"
>
template_name,
</if>
<if
test=
"templateType != null"
>
template_type,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"itemId != null"
>
#{itemId},
</if>
...
...
@@ -93,6 +105,18 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"createTime != null"
>
#{createTime},
</if>
<if
test=
"updateBy != null"
>
#{updateBy},
</if>
<if
test=
"updateTime != null"
>
#{updateTime},
</if>
<if
test=
"templateId != null"
>
#{templateId,jdbcType=BIGINT},
</if>
<if
test=
"templateCode != null"
>
#{templateCode,jdbcType=VARCHAR},
</if>
<if
test=
"templateName != null"
>
#{templateName,jdbcType=VARCHAR},
</if>
<if
test=
"templateType != null"
>
#{templateType,jdbcType=VARCHAR},
</if>
</trim>
</insert>
...
...
mes/src/main/resources/mapper/pro/productionSolution/ProProductionSolutionMapper.xml
View file @
49d8c4b7
...
...
@@ -72,7 +72,7 @@
pps.unit_of_measure,
pps.ecn_code,
pps.sap_usage_id,
pps.unitPrice
pps.unit
_
Price
from pro_production_solution pps
left join md_item mi on pps.item_id = mi.item_id
left join pro_route pr on pr.route_id = pps.route_id
...
...
mes/src/main/resources/mapper/qc/QcAbnormalReportMapper.xml
View file @
49d8c4b7
...
...
@@ -55,7 +55,7 @@
<if
test=
"abnormalReason != null and abnormalReason != ''"
>
and abnormal_reason = #{abnormalReason}
</if>
<if
test=
"abnormalTime != null "
>
and abnormal_time = #{abnormalTime}
</if>
<if
test=
"beginPurchaseDate != null and endPurchaseDate != null "
>
and
report.
abnormal_time between #{beginPurchaseDate} and #{endPurchaseDate}
and
abnormal_time between #{beginPurchaseDate} and #{endPurchaseDate}
</if>
<if
test=
"abnormalStatus != null and abnormalStatus != ''"
>
and abnormal_status = #{abnormalStatus}
</if>
<if
test=
"abnormalNumber != null"
>
and abnormal_number = #{abnormalNumber}
</if>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment