Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
T
topsun-bpm
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
鲁鑫
topsun-bpm
Commits
847295e3
Commit
847295e3
authored
Dec 11, 2023
by
wanghang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
改动
parent
ed5e0bd7
Show whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
181 additions
and
249 deletions
+181
-249
templates.xml
.idea/mybatisx/templates.xml
+22
-2
proofingMake.js
...un-xt/src/main/webapp/biz/topsun/proofing/proofingMake.js
+1
-1
technologyAndBom.js
.../biz/topsun/proofing/technologyAndBom/technologyAndBom.js
+16
-4
SizeGroup.java
...main/java/com/huigou/topsun/product/domain/SizeGroup.java
+3
-4
SizeGroupItem.java
.../java/com/huigou/topsun/product/domain/SizeGroupItem.java
+3
-4
ProofingApplyProcessApplication.java
...proofing/application/ProofingApplyProcessApplication.java
+13
-0
ProofingApplyApplicationImpl.java
...oofing/application/impl/ProofingApplyApplicationImpl.java
+1
-1
ProofingApplyProcessApplicationImpl.java
...application/impl/ProofingApplyProcessApplicationImpl.java
+20
-0
ProofingApplyTechnologyApplicationImpl.java
...lication/impl/ProofingApplyTechnologyApplicationImpl.java
+2
-0
ProofingMakeApplicationImpl.java
...roofing/application/impl/ProofingMakeApplicationImpl.java
+1
-1
ProofingApplyController.java
...u/topsun/proofing/controller/ProofingApplyController.java
+24
-0
ProofingMakeController.java
...ou/topsun/proofing/controller/ProofingMakeController.java
+3
-4
ProofingApplyBaseInfo.java
...ing/domain/model/proofingApply/ProofingApplyBaseInfo.java
+2
-0
ProofingApplyLooked.java
...ofing/domain/model/proofingApply/ProofingApplyLooked.java
+2
-0
ProofingApplyProcessQueryRequest.java
...oofing/domain/query/ProofingApplyProcessQueryRequest.java
+57
-0
easy-search-proofing.xml
...ources/config/content/easysearch/easy-search-proofing.xml
+2
-1
proofingApply.xml
...c/main/resources/config/topsun/proofing/proofingApply.xml
+9
-64
WorkInstructionMapper.xml
topsun/src/main/resources/mapper/WorkInstructionMapper.xml
+0
-163
No files found.
.idea/mybatisx/templates.xml
View file @
847295e3
...
...
@@ -48,8 +48,28 @@
<option
name=
"tableUIInfoList"
>
<list>
<TableUIInfo>
<option
name=
"className"
value=
"WorkInstruction"
/>
<option
name=
"tableName"
value=
"work_instruction"
/>
<option
name=
"className"
value=
"WorkInstructionBaseInfo"
/>
<option
name=
"tableName"
value=
"work_instruction_base_info"
/>
</TableUIInfo>
<TableUIInfo>
<option
name=
"className"
value=
"WorkInstructionMaterialInfo"
/>
<option
name=
"tableName"
value=
"work_instruction_material_info"
/>
</TableUIInfo>
<TableUIInfo>
<option
name=
"className"
value=
"WorkInstructionOptionalAttribute"
/>
<option
name=
"tableName"
value=
"work_instruction_optional_attribute"
/>
</TableUIInfo>
<TableUIInfo>
<option
name=
"className"
value=
"WorkInstructionPdPublishedConf"
/>
<option
name=
"tableName"
value=
"work_instruction_pd_published_conf"
/>
</TableUIInfo>
<TableUIInfo>
<option
name=
"className"
value=
"WorkInstructionPrdLooked"
/>
<option
name=
"tableName"
value=
"work_instruction_prd_looked"
/>
</TableUIInfo>
<TableUIInfo>
<option
name=
"className"
value=
"WorkInstructionProductLoss"
/>
<option
name=
"tableName"
value=
"work_instruction_product_loss"
/>
</TableUIInfo>
</list>
</option>
...
...
topsun-xt/src/main/webapp/biz/topsun/proofing/proofingMake.js
View file @
847295e3
...
...
@@ -32,7 +32,7 @@ function bindQueryEvent() {
onChange
:
function
(
value
,
data
)
{
$
(
'#productCode'
).
val
(
data
.
productCode
);
ajaxRenderDataGoForm
(
data
.
proofingApplyNo
);
showT
echnologyTable
(
data
.
product
Id
);
showT
able
(
data
.
proofingApply
Id
);
}
});
}
...
...
topsun-xt/src/main/webapp/biz/topsun/proofing/technologyAndBom/technologyAndBom.js
View file @
847295e3
...
...
@@ -157,11 +157,23 @@ function loadProofingApplyGrid(obj) {
function
showTable
(
proofingApplyId
){
technologyObj
.
parms
=
{
proofingApplyId
:
proofingApplyId
}
technologyObj
.
url
=
""
;
debugger
technologyObj
.
parms
=
{
proofingApplyId
:
proofingApplyId
}
if
(
technologyObj
.
gridManager
!=
null
)
{
reloadGrid
(
technologyObj
);
}
else
{
technologyObj
.
url
=
"queryProofingApplyTechnology"
;
loadProofingApplyGrid
(
technologyObj
);
}
let
result
=
DataUtil
.
getUpdateRow
(
technologyObj
.
gridManager
);
// 获取选中行
processObj
.
parms
=
{
technologyId
:
result
.
technologyId
}
if
(
processObj
.
gridManager
!=
null
)
{
reloadGrid
(
processObj
);
}
else
{
processObj
.
url
=
""
loadProofingApplyGrid
(
processObj
);
}
}
...
...
topsun/src/main/java/com/huigou/topsun/product/domain/SizeGroup.java
View file @
847295e3
...
...
@@ -2,10 +2,8 @@ package com.huigou.topsun.product.domain;
import
java.io.Serializable
;
import
java.util.Date
;
import
javax.persistence.Column
;
import
javax.persistence.GeneratedValue
;
import
javax.persistence.Id
;
import
javax.persistence.Table
;
import
javax.persistence.*
;
import
lombok.Data
;
import
org.hibernate.annotations.GenericGenerator
;
...
...
@@ -14,6 +12,7 @@ import org.hibernate.annotations.GenericGenerator;
* @TableName size_group
*/
@Table
(
name
=
"size_group"
)
@Entity
@Data
public
class
SizeGroup
implements
Serializable
{
/**
...
...
topsun/src/main/java/com/huigou/topsun/product/domain/SizeGroupItem.java
View file @
847295e3
package
com
.
huigou
.
topsun
.
product
.
domain
;
import
java.io.Serializable
;
import
javax.persistence.Column
;
import
javax.persistence.GeneratedValue
;
import
javax.persistence.Id
;
import
javax.persistence.Table
;
import
javax.persistence.*
;
import
lombok.Data
;
import
org.hibernate.annotations.GenericGenerator
;
...
...
@@ -13,6 +11,7 @@ import org.hibernate.annotations.GenericGenerator;
* @TableName size_group_item
*/
@Table
(
name
=
"size_group_item"
)
@Entity
@Data
public
class
SizeGroupItem
implements
Serializable
{
/**
...
...
topsun/src/main/java/com/huigou/topsun/proofing/application/ProofingApplyProcessApplication.java
0 → 100644
View file @
847295e3
package
com
.
huigou
.
topsun
.
proofing
.
application
;
import
com.huigou.topsun.proofing.domain.query.ProofingApplyProcessQueryRequest
;
import
com.huigou.topsun.proofing.domain.query.proofingApplyTechnologyQueryRequest
;
import
java.util.Map
;
public
interface
ProofingApplyProcessApplication
{
String
QUERY_XML_FILE_PATH
=
"config/topsun/proofing/proofingApply.xml"
;
Map
<
String
,
Object
>
slicedProofingApplyProcess
(
ProofingApplyProcessQueryRequest
query
);
}
topsun/src/main/java/com/huigou/topsun/proofing/application/impl/ProofingApplyApplicationImpl.java
View file @
847295e3
...
...
@@ -88,7 +88,7 @@ public class ProofingApplyApplicationImpl extends FlowBroker implements Proofing
}
String
id
=
UUID
.
randomUUID
().
toString
().
replace
(
"-"
,
""
);
proofingApply
.
setProofingApplyId
(
id
);
proofingApply
.
setProofingApplyApplicationStatus
(
StringUtil
.
isBlank
(
proofingApply
.
getProofingApplyNgReReason
())?
"normal"
:
"cancel"
);
//
proofingApply.setProofingApplyApplicationStatus(StringUtil.isBlank(proofingApply.getProofingApplyNgReReason())?"normal":"cancel");
proofingApply
=
proofingApplyRepository
.
save
(
proofingApply
);
proofingApplyLooked
.
setProofingApplyId
(
proofingApply
.
getProofingApplyId
());
...
...
topsun/src/main/java/com/huigou/topsun/proofing/application/impl/ProofingApplyProcessApplicationImpl.java
0 → 100644
View file @
847295e3
package
com
.
huigou
.
topsun
.
proofing
.
application
.
impl
;
import
com.huigou.data.query.model.QueryDescriptor
;
import
com.huigou.topsun.proofing.application.ProofingApplyProcessApplication
;
import
com.huigou.topsun.proofing.domain.query.ProofingApplyProcessQueryRequest
;
import
com.huigou.uasp.bmp.common.application.BaseApplication
;
import
org.springframework.stereotype.Service
;
import
java.util.Map
;
@Service
public
class
ProofingApplyProcessApplicationImpl
extends
BaseApplication
implements
ProofingApplyProcessApplication
{
@Override
public
Map
<
String
,
Object
>
slicedProofingApplyProcess
(
ProofingApplyProcessQueryRequest
query
)
{
QueryDescriptor
queryDescriptor
=
this
.
sqlExecutorDao
.
getQuery
(
QUERY_XML_FILE_PATH
,
"slicedProofingApplyTechnology"
);
return
this
.
sqlExecutorDao
.
executeSlicedQuery
(
queryDescriptor
,
query
);
}
}
topsun/src/main/java/com/huigou/topsun/proofing/application/impl/ProofingApplyTechnologyApplicationImpl.java
View file @
847295e3
...
...
@@ -5,9 +5,11 @@ import com.huigou.topsun.proofing.application.ProofingApplyTechnologyApplication
import
com.huigou.topsun.proofing.application.ProofingMakeApplication
;
import
com.huigou.topsun.proofing.domain.query.proofingApplyTechnologyQueryRequest
;
import
com.huigou.uasp.bmp.common.application.BaseApplication
;
import
org.springframework.stereotype.Service
;
import
java.util.Map
;
@Service
public
class
ProofingApplyTechnologyApplicationImpl
extends
BaseApplication
implements
ProofingApplyTechnologyApplication
{
...
...
topsun/src/main/java/com/huigou/topsun/proofing/application/impl/ProofingMakeApplicationImpl.java
View file @
847295e3
...
...
@@ -68,7 +68,7 @@ public class ProofingMakeApplicationImpl extends BaseApplication implements Proo
ProofingMakeLooked
proofingMakeLooked
=
sdo
.
toObject
(
ProofingMakeLooked
.
class
);
ProofingMakePdPublishedConf
proofingMakePdPublishedConf
=
sdo
.
toObject
(
ProofingMakePdPublishedConf
.
class
);
proofingMakeBaseInfo
.
setProofingMakeApplicationStatus
(
StringUtil
.
isBlank
(
proofingMakeBaseInfo
.
getProofingMakeNgReReason
())?
"normal"
:
"cancel"
);
//
proofingMakeBaseInfo.setProofingMakeApplicationStatus(StringUtil.isBlank(proofingMakeBaseInfo.getProofingMakeNgReReason())?"normal":"cancel");
proofingMakeBaseInfo
=
proofingMakeRepository
.
save
(
proofingMakeBaseInfo
);
proofingMakeLooked
.
setProofingMakeId
(
proofingMakeBaseInfo
.
getProofingMakeId
());
...
...
topsun/src/main/java/com/huigou/topsun/proofing/controller/ProofingApplyController.java
View file @
847295e3
...
...
@@ -7,9 +7,13 @@ import com.huigou.topsun.product.domain.ProductLooked;
import
com.huigou.topsun.proofing.application.ProofingApplyApplication
;
import
com.huigou.topsun.proofing.application.ProofingApplyLookedApplication
;
import
com.huigou.topsun.proofing.application.ProofingApplyProcessApplication
;
import
com.huigou.topsun.proofing.application.ProofingApplyTechnologyApplication
;
import
com.huigou.topsun.proofing.domain.model.proofingApply.ProofingApplyBaseInfo
;
import
com.huigou.topsun.proofing.domain.model.proofingApply.ProofingApplyLooked
;
import
com.huigou.topsun.proofing.domain.query.ProofingApplyProcessQueryRequest
;
import
com.huigou.topsun.proofing.domain.query.ProofingApplyQuery
;
import
com.huigou.topsun.proofing.domain.query.proofingApplyTechnologyQueryRequest
;
import
com.huigou.topsun.technology.application.TechnologyApplication
;
import
com.huigou.topsun.technology.application.TechnologyProcessApplication
;
import
com.huigou.topsun.technology.domain.query.TechnologyQueryRequest
;
...
...
@@ -41,6 +45,10 @@ public class ProofingApplyController extends CommonController {
ProductLookedApplication
productLookedApplication
;
@Resource
private
TechnologyProcessApplication
technologyProcessApplication
;
@Autowired
ProofingApplyTechnologyApplication
proofingApplyTechnologyApplication
;
@Autowired
ProofingApplyProcessApplication
proofingApplyProcessApplication
;
/**
* 打样申请详情
...
...
@@ -128,4 +136,20 @@ public class ProofingApplyController extends CommonController {
String
technologyId
=
sdo
.
getString
(
"technologyId"
);
return
packGridDataAndResult
(
technologyProcessApplication
.
slicedTechnologyProcessList
(
technologyId
));
}
public
String
queryProofingApplyTechnology
(){
SDO
sdo
=
this
.
getSDO
();
proofingApplyTechnologyQueryRequest
proofingApplyTechnologyQueryRequest
=
sdo
.
toQueryRequest
(
proofingApplyTechnologyQueryRequest
.
class
);
Map
<
String
,
Object
>
map
=
proofingApplyTechnologyApplication
.
slicedProofingApplyTechnology
(
proofingApplyTechnologyQueryRequest
);
return
toResult
(
map
);
}
public
String
slicedProofingApplyTechnologyProcess
(){
SDO
sdo
=
this
.
getSDO
();
ProofingApplyProcessQueryRequest
proofingApplyProcessQueryRequest
=
sdo
.
toQueryRequest
(
ProofingApplyProcessQueryRequest
.
class
);
Map
<
String
,
Object
>
map
=
proofingApplyProcessApplication
.
slicedProofingApplyProcess
(
proofingApplyProcessQueryRequest
);
return
toResult
(
map
);
}
}
topsun/src/main/java/com/huigou/topsun/proofing/controller/ProofingMakeController.java
View file @
847295e3
...
...
@@ -3,10 +3,12 @@ package com.huigou.topsun.proofing.controller;
import
com.huigou.topsun.product.application.ProductLookedApplication
;
import
com.huigou.topsun.proofing.application.ProofingApplyApplication
;
import
com.huigou.topsun.proofing.application.ProofingApplyTechnologyApplication
;
import
com.huigou.topsun.proofing.application.ProofingMakeApplication
;
import
com.huigou.topsun.proofing.domain.model.proofingMake.ProofingMakeBaseInfo
;
import
com.huigou.topsun.proofing.domain.query.ProofingMakeQueryRequest
;
import
com.huigou.topsun.proofing.domain.query.proofingApplyTechnologyQueryRequest
;
import
com.huigou.topsun.proofing.domain.vo.ProofingApplyAndLookedVo
;
import
com.huigou.topsun.proofing.domain.vo.ProofingMakeVo
;
...
...
@@ -37,6 +39,7 @@ public class ProofingMakeController extends CommonController {
/**
* 跳转打样制造查询页
* @return
...
...
@@ -104,11 +107,7 @@ public class ProofingMakeController extends CommonController {
}
public
String
queryProofingApplyTechnology
(){
SDO
sdo
=
this
.
getSDO
();
String
proofingApplyNo
=
sdo
.
getString
(
"proofingApplyNo"
);
}
}
topsun/src/main/java/com/huigou/topsun/proofing/domain/model/proofingApply/ProofingApplyBaseInfo.java
View file @
847295e3
package
com
.
huigou
.
topsun
.
proofing
.
domain
.
model
.
proofingApply
;
import
com.huigou.data.domain.model.FlowBillAbstractEntity
;
import
com.topsunit.query.annotations.Dictionary
;
import
lombok.Data
;
import
javax.persistence.Column
;
...
...
@@ -140,6 +141,7 @@ public class ProofingApplyBaseInfo extends FlowBillAbstractEntity {
/**
* 申请单状态
*/
@Dictionary
(
"handleResult"
)
@Column
(
name
=
"proofing_apply_application_status"
)
private
String
proofingApplyApplicationStatus
;
...
...
topsun/src/main/java/com/huigou/topsun/proofing/domain/model/proofingApply/ProofingApplyLooked.java
View file @
847295e3
package
com
.
huigou
.
topsun
.
proofing
.
domain
.
model
.
proofingApply
;
import
com.topsunit.query.annotations.Dictionary
;
import
lombok.Data
;
import
org.hibernate.annotations.GenericGenerator
;
...
...
@@ -50,6 +51,7 @@ public class ProofingApplyLooked implements Serializable {
/**
* 是否改变
*/
@Dictionary
(
"yesorno"
)
@Column
(
name
=
"is_change"
)
private
String
isChange
;
...
...
topsun/src/main/java/com/huigou/topsun/proofing/domain/query/ProofingApplyProcessQueryRequest.java
0 → 100644
View file @
847295e3
package
com
.
huigou
.
topsun
.
proofing
.
domain
.
query
;
import
com.fasterxml.jackson.annotation.JsonIgnoreProperties
;
import
com.huigou.data.domain.query.QueryAbstractRequest
;
import
lombok.Data
;
import
org.hibernate.annotations.GenericGenerator
;
import
javax.persistence.*
;
import
java.io.Serializable
;
/**
* 打样申请工序
*/
@Data
public
class
ProofingApplyProcessQueryRequest
extends
QueryAbstractRequest
{
/**
* 工序ID
*/
private
String
proofingApplyProcessId
;
/**
* 打样工艺工艺id
*/
private
String
proofingApplyTechnologyId
;
/**
* 工序名称
*/
private
String
processName
;
/**
* 工序说明
*/
private
String
processRemark
;
/**
* 工时
*/
private
Double
workHours
;
/**
* 工序类别(process_type)
*/
private
String
processType
;
/**
* 工序内容
*/
private
String
processContent
;
}
\ No newline at end of file
topsun/src/main/resources/config/content/easysearch/easy-search-proofing.xml
View file @
847295e3
...
...
@@ -3,12 +3,13 @@
<easy-search
name=
"proofingApplyCode"
desc=
"订单"
>
<sql>
select pa.proofing_apply_no,pa.product_id,p.product_code
select pa.proofing_apply_no,pa.pro
ofing_apply_id,pa.pro
duct_id,p.product_code
from proofing_apply_base_info pa
inner join product p on(pa.product_id=p.product_id)
where pa.proofing_apply_application_status ='normal'
</sql>
<field
name=
"申请单号"
title=
"申请单号"
code=
"proofingApplyNo"
width=
"200"
/>
<field
name=
"申请Id"
title=
"申请Id"
code=
"proofingApplyId"
width=
"200"
/>
<field
name=
"产品Id"
title=
"产品Id"
code=
"productId"
width=
"200"
type=
"hidden"
/>
<field
name=
"产品编号"
title=
"产品编号"
code=
"productCode"
width=
"200"
/>
</easy-search>
...
...
topsun/src/main/resources/config/topsun/proofing/proofingApply.xml
View file @
847295e3
...
...
@@ -14,66 +14,6 @@
<query
name=
"queryProofingApplyAndProductQuery"
table=
"proofing_apply"
>
<sql-query>
<!-- select-->
<!-- pa.proofing_apply_id,-->
<!-- pa.proofing_apply_no,-->
<!-- pa.product_id,-->
<!-- pa.customer_id,-->
<!-- pa.proofing_apply_page_need_time,-->
<!-- pa.proofing_apply_complete_date,-->
<!-- pa.proofing_apply_sample_cn_name,-->
<!-- pa.proofing_apply_sample_en_name,-->
<!-- pa.proofing_apply_sample_version,-->
<!-- pa.proofing_apply_sample_size,-->
<!-- pa.proofing_apply_sample_num,-->
<!-- pa.proofing_apply_output_situation,-->
<!-- pa.proofing_apply_product_no,-->
<!-- pa.proofing_type,-->
<!-- pa.proofing_apply_allocation_type,-->
<!-- pa.proofing_apply_surface_treatment,-->
<!-- pa.proofing_apply_ng_re_reason,-->
<!-- pa.proofing_apply_application_status,-->
<!-- pa.proofing_apply_test_standard,-->
<!-- pa.is_output,-->
<!-- pa.is_out,-->
<!-- pa.is_change,-->
<!-- pl.product_looked_id,-->
<!-- pl.product_length,-->
<!-- pl.product_width,-->
<!-- pl.product_height,-->
<!-- pl.product_thick,-->
<!-- pl.product_weight,-->
<!-- pl.product_angle_type,-->
<!-- pl.product_angle,-->
<!-- pl.product_aperture,-->
<!-- pl.product_single_layer,-->
<!-- pl.product_single_weight,-->
<!-- pl.product_layer_num,-->
<!-- pl.product_mould,-->
<!-- pl.product_coding,-->
<!-- pl.product_sys_certification,-->
<!-- pl.store_name,-->
<!-- pl.product_buy_unit,-->
<!-- pl.product_shape,-->
<!-- pl.prodcut_shape_size,-->
<!-- p.product_name,-->
<!-- p.product_status,-->
<!-- p.product_unit,-->
<!-- p.product_sample_code,-->
<!-- p.brand_name,-->
<!-- p.product_type,-->
<!-- pc.product_category_name-->
<!-- FROM-->
<!-- proofing_apply_base_info pa-->
<!-- JOIN-->
<!-- product_looked pl ON pa.product_id = pl.product_id-->
<!-- JOIN-->
<!-- product p ON pa.product_id = p.product_id-->
<!-- JOIN-->
<!-- product_category pc ON p.product_category_id = pc.product_category_id-->
select
pa.proofing_apply_no,
pa.product_id,
...
...
@@ -103,13 +43,18 @@
</query>
<query
name=
"slicedProofingApplyTechnology"
table=
"proofing_
make
_technology"
>
<query
name=
"slicedProofingApplyTechnology"
table=
"proofing_
Apply
_technology"
>
<sql-query>
select t.* from proofing_
make_technology t where 1=1
select t.* from proofing_
Apply_technology t
</sql-query>
<permissions>
<condition
column=
"proofing_apply_id"
name=
"proofingApplyId"
type=
"java.lang.String"
symbol=
"="
alias=
"t"
/>
</permissions>
</query>
<query
name=
"slicedProofingApplyProcess"
table=
"proofing_apply_process"
>
<sql-query>
select t.* from proofing_apply_process t
</sql-query>
<condition
column=
"proofing_apply_technology_id"
name=
"proofingApplyTechnologyId"
type=
"java.lang.String"
symbol=
"="
alias=
"t"
/>
</query>
...
...
topsun/src/main/resources/mapper/WorkInstructionMapper.xml
deleted
100644 → 0
View file @
ed5e0bd7
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"generator.mapper.WorkInstructionMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"generator.domain.WorkInstruction"
>
<id
property=
"workInstructionId"
column=
"work_instruction_id"
jdbcType=
"VARCHAR"
/>
<result
property=
"workInstructionApplyId"
column=
"work_instruction_apply_id"
jdbcType=
"VARCHAR"
/>
<result
property=
"isBuildBom"
column=
"is_build_bom"
jdbcType=
"VARCHAR"
/>
<result
property=
"confirmDate"
column=
"confirm_date"
jdbcType=
"TIMESTAMP"
/>
<result
property=
"comfirmPerson"
column=
"comfirm_person"
jdbcType=
"VARCHAR"
/>
<result
property=
"isFreeInspection"
column=
"is_free_inspection"
jdbcType=
"VARCHAR"
/>
<result
property=
"isNoQualityLoss"
column=
"is_no_quality_loss"
jdbcType=
"VARCHAR"
/>
<result
property=
"sampleOrderNo"
column=
"sample_order_no"
jdbcType=
"VARCHAR"
/>
<result
property=
"stockNo"
column=
"stock_no"
jdbcType=
"VARCHAR"
/>
<result
property=
"stockName"
column=
"stock_name"
jdbcType=
"VARCHAR"
/>
<result
property=
"fileNo"
column=
"file_no"
jdbcType=
"VARCHAR"
/>
<result
property=
"styleColorMatch"
column=
"style_color_match"
jdbcType=
"VARCHAR"
/>
<result
property=
"customerMaterialNo"
column=
"customer_material_no"
jdbcType=
"VARCHAR"
/>
<result
property=
"versionNo"
column=
"version_no"
jdbcType=
"VARCHAR"
/>
<result
property=
"coefficient"
column=
"coefficient"
jdbcType=
"VARCHAR"
/>
</resultMap>
<sql
id=
"Base_Column_List"
>
work_instruction_id,work_instruction_apply_id,is_build_bom,
confirm_date,comfirm_person,is_free_inspection,
is_no_quality_loss,sample_order_no,stock_no,
stock_name,file_no,style_color_match,
customer_material_no,version_no,coefficient
</sql>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.Long"
resultMap=
"BaseResultMap"
>
select
<include
refid=
"Base_Column_List"
/>
from work_instruction
where work_instruction_id = #{workInstructionId,jdbcType=VARCHAR}
</select>
<delete
id=
"deleteByPrimaryKey"
parameterType=
"java.lang.Long"
>
delete from work_instruction
where work_instruction_id = #{workInstructionId,jdbcType=VARCHAR}
</delete>
<insert
id=
"insert"
keyColumn=
"work_instruction_id"
keyProperty=
"workInstructionId"
parameterType=
"generator.domain.WorkInstruction"
useGeneratedKeys=
"true"
>
insert into work_instruction
( work_instruction_id,work_instruction_apply_id,is_build_bom
,confirm_date,comfirm_person,is_free_inspection
,is_no_quality_loss,sample_order_no,stock_no
,stock_name,file_no,style_color_match
,customer_material_no,version_no,coefficient
)
values (#{workInstructionId,jdbcType=VARCHAR},#{workInstructionApplyId,jdbcType=VARCHAR},#{isBuildBom,jdbcType=VARCHAR}
,#{confirmDate,jdbcType=TIMESTAMP},#{comfirmPerson,jdbcType=VARCHAR},#{isFreeInspection,jdbcType=VARCHAR}
,#{isNoQualityLoss,jdbcType=VARCHAR},#{sampleOrderNo,jdbcType=VARCHAR},#{stockNo,jdbcType=VARCHAR}
,#{stockName,jdbcType=VARCHAR},#{fileNo,jdbcType=VARCHAR},#{styleColorMatch,jdbcType=VARCHAR}
,#{customerMaterialNo,jdbcType=VARCHAR},#{versionNo,jdbcType=VARCHAR},#{coefficient,jdbcType=VARCHAR}
)
</insert>
<insert
id=
"insertSelective"
keyColumn=
"work_instruction_id"
keyProperty=
"workInstructionId"
parameterType=
"generator.domain.WorkInstruction"
useGeneratedKeys=
"true"
>
insert into work_instruction
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"workInstructionId != null"
>
work_instruction_id,
</if>
<if
test=
"workInstructionApplyId != null"
>
work_instruction_apply_id,
</if>
<if
test=
"isBuildBom != null"
>
is_build_bom,
</if>
<if
test=
"confirmDate != null"
>
confirm_date,
</if>
<if
test=
"comfirmPerson != null"
>
comfirm_person,
</if>
<if
test=
"isFreeInspection != null"
>
is_free_inspection,
</if>
<if
test=
"isNoQualityLoss != null"
>
is_no_quality_loss,
</if>
<if
test=
"sampleOrderNo != null"
>
sample_order_no,
</if>
<if
test=
"stockNo != null"
>
stock_no,
</if>
<if
test=
"stockName != null"
>
stock_name,
</if>
<if
test=
"fileNo != null"
>
file_no,
</if>
<if
test=
"styleColorMatch != null"
>
style_color_match,
</if>
<if
test=
"customerMaterialNo != null"
>
customer_material_no,
</if>
<if
test=
"versionNo != null"
>
version_no,
</if>
<if
test=
"coefficient != null"
>
coefficient,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"workInstructionId != null"
>
#{workInstructionId,jdbcType=VARCHAR},
</if>
<if
test=
"workInstructionApplyId != null"
>
#{workInstructionApplyId,jdbcType=VARCHAR},
</if>
<if
test=
"isBuildBom != null"
>
#{isBuildBom,jdbcType=VARCHAR},
</if>
<if
test=
"confirmDate != null"
>
#{confirmDate,jdbcType=TIMESTAMP},
</if>
<if
test=
"comfirmPerson != null"
>
#{comfirmPerson,jdbcType=VARCHAR},
</if>
<if
test=
"isFreeInspection != null"
>
#{isFreeInspection,jdbcType=VARCHAR},
</if>
<if
test=
"isNoQualityLoss != null"
>
#{isNoQualityLoss,jdbcType=VARCHAR},
</if>
<if
test=
"sampleOrderNo != null"
>
#{sampleOrderNo,jdbcType=VARCHAR},
</if>
<if
test=
"stockNo != null"
>
#{stockNo,jdbcType=VARCHAR},
</if>
<if
test=
"stockName != null"
>
#{stockName,jdbcType=VARCHAR},
</if>
<if
test=
"fileNo != null"
>
#{fileNo,jdbcType=VARCHAR},
</if>
<if
test=
"styleColorMatch != null"
>
#{styleColorMatch,jdbcType=VARCHAR},
</if>
<if
test=
"customerMaterialNo != null"
>
#{customerMaterialNo,jdbcType=VARCHAR},
</if>
<if
test=
"versionNo != null"
>
#{versionNo,jdbcType=VARCHAR},
</if>
<if
test=
"coefficient != null"
>
#{coefficient,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"generator.domain.WorkInstruction"
>
update work_instruction
<set>
<if
test=
"workInstructionApplyId != null"
>
work_instruction_apply_id = #{workInstructionApplyId,jdbcType=VARCHAR},
</if>
<if
test=
"isBuildBom != null"
>
is_build_bom = #{isBuildBom,jdbcType=VARCHAR},
</if>
<if
test=
"confirmDate != null"
>
confirm_date = #{confirmDate,jdbcType=TIMESTAMP},
</if>
<if
test=
"comfirmPerson != null"
>
comfirm_person = #{comfirmPerson,jdbcType=VARCHAR},
</if>
<if
test=
"isFreeInspection != null"
>
is_free_inspection = #{isFreeInspection,jdbcType=VARCHAR},
</if>
<if
test=
"isNoQualityLoss != null"
>
is_no_quality_loss = #{isNoQualityLoss,jdbcType=VARCHAR},
</if>
<if
test=
"sampleOrderNo != null"
>
sample_order_no = #{sampleOrderNo,jdbcType=VARCHAR},
</if>
<if
test=
"stockNo != null"
>
stock_no = #{stockNo,jdbcType=VARCHAR},
</if>
<if
test=
"stockName != null"
>
stock_name = #{stockName,jdbcType=VARCHAR},
</if>
<if
test=
"fileNo != null"
>
file_no = #{fileNo,jdbcType=VARCHAR},
</if>
<if
test=
"styleColorMatch != null"
>
style_color_match = #{styleColorMatch,jdbcType=VARCHAR},
</if>
<if
test=
"customerMaterialNo != null"
>
customer_material_no = #{customerMaterialNo,jdbcType=VARCHAR},
</if>
<if
test=
"versionNo != null"
>
version_no = #{versionNo,jdbcType=VARCHAR},
</if>
<if
test=
"coefficient != null"
>
coefficient = #{coefficient,jdbcType=VARCHAR},
</if>
</set>
where work_instruction_id = #{workInstructionId,jdbcType=VARCHAR}
</update>
<update
id=
"updateByPrimaryKey"
parameterType=
"generator.domain.WorkInstruction"
>
update work_instruction
set
work_instruction_apply_id = #{workInstructionApplyId,jdbcType=VARCHAR},
is_build_bom = #{isBuildBom,jdbcType=VARCHAR},
confirm_date = #{confirmDate,jdbcType=TIMESTAMP},
comfirm_person = #{comfirmPerson,jdbcType=VARCHAR},
is_free_inspection = #{isFreeInspection,jdbcType=VARCHAR},
is_no_quality_loss = #{isNoQualityLoss,jdbcType=VARCHAR},
sample_order_no = #{sampleOrderNo,jdbcType=VARCHAR},
stock_no = #{stockNo,jdbcType=VARCHAR},
stock_name = #{stockName,jdbcType=VARCHAR},
file_no = #{fileNo,jdbcType=VARCHAR},
style_color_match = #{styleColorMatch,jdbcType=VARCHAR},
customer_material_no = #{customerMaterialNo,jdbcType=VARCHAR},
version_no = #{versionNo,jdbcType=VARCHAR},
coefficient = #{coefficient,jdbcType=VARCHAR}
where work_instruction_id = #{workInstructionId,jdbcType=VARCHAR}
</update>
</mapper>
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