Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
config-server-api
Project
Overview
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
何熠
config-server-api
Commits
d3dcafc5
You need to sign in or sign up before continuing.
Commit
d3dcafc5
authored
Dec 14, 2021
by
zxn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sku获取配置修改
parent
1f446391
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
46 additions
and
18 deletions
+46
-18
SuperBomSkuConfigInfo.java
...tech/authorization/pojo/entity/SuperBomSkuConfigInfo.java
+20
-0
SuperBomSkuInfo.java
...com/uitech/authorization/pojo/entity/SuperBomSkuInfo.java
+9
-1
IntegrateServiceImpl.java
...tech/authorization/service/impl/IntegrateServiceImpl.java
+16
-16
SuperBomSkuInfoMapper.xml
src/main/resources/mapper/SuperBomSkuInfoMapper.xml
+1
-1
No files found.
src/main/java/cn/com/uitech/authorization/pojo/entity/SuperBomSkuConfigInfo.java
View file @
d3dcafc5
...
...
@@ -91,4 +91,23 @@ public class SuperBomSkuConfigInfo implements Serializable {
private
String
cvCode
;
@Transient
private
String
zphCode
;
/**
* id
*/
@Transient
private
String
zphName
;
/**
* id
*/
@Transient
private
String
h3cCValue
;
/**
* id
*/
@Transient
private
String
h3cDeliverCode
;
}
\ No newline at end of file
src/main/java/cn/com/uitech/authorization/pojo/entity/SuperBomSkuInfo.java
View file @
d3dcafc5
...
...
@@ -9,6 +9,7 @@ import lombok.experimental.Accessors;
import
javax.persistence.Column
;
import
javax.persistence.Table
;
import
javax.persistence.Transient
;
import
java.io.Serializable
;
import
java.sql.Timestamp
;
import
java.util.ArrayList
;
...
...
@@ -176,6 +177,12 @@ public class SuperBomSkuInfo extends BasePageDto implements Serializable {
@Column
(
name
=
"id"
)
private
String
id
;
private
ArrayList
<
SuperBomSkuConfigInfo
>
characteristicList
;
/**
* setUnisSalesName
*/
@Transient
private
String
unisSalesName
;
private
List
<
SuperBomSkuConfigInfo
>
characteristicList
;
}
\ No newline at end of file
src/main/java/cn/com/uitech/authorization/service/impl/IntegrateServiceImpl.java
View file @
d3dcafc5
...
...
@@ -692,7 +692,7 @@ public class IntegrateServiceImpl implements IntegrateService {
configurableBom
=
characteristicMapper
.
getSuperBomInfo
(
Long
.
valueOf
(
config
));
}
//根据特征值名称获取物料的信息
ConfigurableBomDto
dto
=
new
ConfigurableBomDt
o
();
SuperBomSkuInfo
dto
=
new
SuperBomSkuInf
o
();
dto
.
setSuperBomCode
(
configurableBom
.
getSuperBomCode
());
dto
.
setSuperBomName
(
configurableBom
.
getSuperBomName
());
dto
.
setProductClassCode
(
configurableBom
.
getProductClassCode
());
...
...
@@ -709,26 +709,26 @@ public class IntegrateServiceImpl implements IntegrateService {
dto
.
setProductSmallType
(
configurableBom
.
getProductSmallType
());
ConfigurableBom
finalConfigurableBom
=
configurableBom
;
List
<
Map
<
String
,
Object
>>
selectedCharacteristicList
=
(
List
<
Map
<
String
,
Object
>>)
map
.
get
(
"selectedCharacteristicList"
);
List
<
CharacteristicAndValueDto
>
cDtos
=
new
ArrayList
<>();
List
<
SuperBomSkuConfigInfo
>
characteristicList
=
new
ArrayList
<>();
selectedCharacteristicList
.
forEach
(
item
->
{
CharacteristicAndValueDto
cDto
=
new
CharacteristicAndValueDt
o
();
SuperBomSkuConfigInfo
superBomSkuConfigInfo
=
new
SuperBomSkuConfigInf
o
();
String
characteristicValueName
=
(
String
)
item
.
get
(
"characteristicValueName"
);
String
characteristicName
=
(
String
)
item
.
get
(
"characteristicName"
);
CharacteristicValue
characteristicValue
=
characteristicValueMapper
.
getCharacteristicValueInfoByName
(
characteristicValueName
,
finalConfigurableBom
.
getSuperBomCode
(),
characteristicName
);
cDt
o
.
setCharacteristicCode
(
characteristicValue
.
getCharacteristicCode
());
cDt
o
.
setCharacteristicName
(
characteristicValue
.
getCharacteristicName
());
cDt
o
.
setUnisSalesCName
(
characteristicValue
.
getUnisSalesCName
());
cDt
o
.
setH3cCCode
(
characteristicValue
.
getH3cCCode
());
cDt
o
.
setCharacteristicValueCode
(
characteristicValue
.
getCharacteristicValueCode
());
cDt
o
.
setCharacteristicValueName
(
characteristicValue
.
getCharacteristicValueName
());
cDt
o
.
setZphCode
(
characteristicValue
.
getZphCode
());
cDt
o
.
setZphName
(
characteristicValue
.
getZphName
());
cDt
o
.
setUnisSalesVName
(
characteristicValue
.
getUnisSalesVName
());
cDt
o
.
setH3cCValue
(
characteristicValue
.
getH3cCValue
());
cDt
o
.
setH3cDeliverCode
(
characteristicValue
.
getH3cDeliverCode
());
c
Dtos
.
add
(
cDt
o
);
superBomSkuConfigInf
o
.
setCharacteristicCode
(
characteristicValue
.
getCharacteristicCode
());
superBomSkuConfigInf
o
.
setCharacteristicName
(
characteristicValue
.
getCharacteristicName
());
superBomSkuConfigInf
o
.
setUnisSalesCName
(
characteristicValue
.
getUnisSalesCName
());
superBomSkuConfigInf
o
.
setH3cCCode
(
characteristicValue
.
getH3cCCode
());
superBomSkuConfigInf
o
.
setCharacteristicValueCode
(
characteristicValue
.
getCharacteristicValueCode
());
superBomSkuConfigInf
o
.
setCharacteristicValueName
(
characteristicValue
.
getCharacteristicValueName
());
superBomSkuConfigInf
o
.
setZphCode
(
characteristicValue
.
getZphCode
());
superBomSkuConfigInf
o
.
setZphName
(
characteristicValue
.
getZphName
());
superBomSkuConfigInf
o
.
setUnisSalesVName
(
characteristicValue
.
getUnisSalesVName
());
superBomSkuConfigInf
o
.
setH3cCValue
(
characteristicValue
.
getH3cCValue
());
superBomSkuConfigInf
o
.
setH3cDeliverCode
(
characteristicValue
.
getH3cDeliverCode
());
c
haracteristicList
.
add
(
superBomSkuConfigInf
o
);
});
dto
.
setCharacteristicList
(
c
Dtos
);
dto
.
setCharacteristicList
(
c
haracteristicList
);
map
.
put
(
"superBomInfo"
,
dto
);
//规范选配器出参
map
.
remove
(
"configId"
);
...
...
src/main/resources/mapper/SuperBomSkuInfoMapper.xml
View file @
d3dcafc5
...
...
@@ -178,7 +178,7 @@
</select>
<select
id=
"getConfigId"
resultType=
"java.lang.String"
>
select config_id from super_bom_sku_info where sku_code = #{skuCode}
select config_id from super_bom_sku_info where sku_code = #{skuCode}
limit 1
</select>
<select
id=
"getSkuInfoByConfigId"
resultMap=
"SuperBomSkuMap"
>
...
...
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