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
416d8ce9
Commit
416d8ce9
authored
Nov 30, 2021
by
zxn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sku查询接口
parent
a77355ac
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
52 additions
and
1 deletion
+52
-1
IntegrateController.java
.../uitech/authorization/controller/IntegrateController.java
+8
-0
SuperBomSkuInfoMapper.java
...om/uitech/authorization/mapper/SuperBomSkuInfoMapper.java
+2
-0
IntegrateService.java
...cn/com/uitech/authorization/service/IntegrateService.java
+2
-0
IntegrateServiceImpl.java
...tech/authorization/service/impl/IntegrateServiceImpl.java
+11
-0
SuperBomSkuInfoMapper.xml
src/main/resources/mapper/SuperBomSkuInfoMapper.xml
+29
-1
No files found.
src/main/java/cn/com/uitech/authorization/controller/IntegrateController.java
View file @
416d8ce9
...
...
@@ -291,4 +291,12 @@ public class IntegrateController {
}
@PostMapping
(
"/querySkuList"
)
@ApiOperation
(
value
=
"querySkuList"
,
notes
=
"查询sku信息"
,
httpMethod
=
"POST"
)
public
CrmResponseEntity
<?>
querySkuList
(
@RequestBody
SuperBomSkuInfo
superBomSkuInfo
){
List
<
SuperBomSkuInfo
>
list
=
integrateService
.
querySkuList
(
superBomSkuInfo
);
return
ResultGenerator
.
genSuccessResult
(
list
);
}
}
src/main/java/cn/com/uitech/authorization/mapper/SuperBomSkuInfoMapper.java
View file @
416d8ce9
...
...
@@ -17,4 +17,6 @@ public interface SuperBomSkuInfoMapper extends IBaseMapper<SuperBomSkuInfo> {
SuperBomSkuConfigInfo
getConfigInfoList
(
String
h3cPn
,
String
vCode
);
void
updateSkuInfo
(
ApplySkuCodeResultDto
applySkuCodeResultDto
);
List
<
SuperBomSkuInfo
>
querySkuList
(
SuperBomSkuInfo
superBomSkuInfo
);
}
src/main/java/cn/com/uitech/authorization/service/IntegrateService.java
View file @
416d8ce9
...
...
@@ -42,4 +42,6 @@ public interface IntegrateService {
Object
GetSKUByConfigInfo
(
SuperBomSkuInfo
superBomSkuInfo
);
Object
GetConfigBySUKINFO
(
SuperBomSkuInfo
superBomSkuInfo
);
List
<
SuperBomSkuInfo
>
querySkuList
(
SuperBomSkuInfo
superBomSkuInfo
);
}
src/main/java/cn/com/uitech/authorization/service/impl/IntegrateServiceImpl.java
View file @
416d8ce9
...
...
@@ -314,6 +314,17 @@ public class IntegrateServiceImpl implements IntegrateService {
}
/**
* 查询sku信息
*
* @param superBomSkuInfo
* @return
*/
@Override
public
List
<
SuperBomSkuInfo
>
querySkuList
(
SuperBomSkuInfo
superBomSkuInfo
)
{
return
superBomSkuInfoMapper
.
querySkuList
(
superBomSkuInfo
);
}
/**
* @return Configid, SKUCode,SKUCode,产品型号,产品小型好,69码
* @Author 赵晓雷
* @Description 申请SKU功能
...
...
src/main/resources/mapper/SuperBomSkuInfoMapper.xml
View file @
416d8ce9
...
...
@@ -84,8 +84,35 @@
<select
id=
"getConfigInfoList"
resultType=
"cn.com.uitech.authorization.pojo.entity.SuperBomSkuConfigInfo"
>
select * from super_bom_sku_config_info where super_bom_code = #{h3cPn} and characteristic_value_code = #{vCode}
</select>
<select
id=
"querySkuList"
resultType=
"cn.com.uitech.authorization.pojo.entity.SuperBomSkuInfo"
>
select * from super_bom_sku_info a
<where>
<if
test=
"productClassCode!=null and productClassCode!=''.toString()"
>
a.product_class_code = #{productClassCode}
</if>
<if
test=
"brand!=null and brand!=''.toString()"
>
and a.brand = #{brand}
</if>
<if
test=
"superBomCode!=null and superBomCode!=''.toString()"
>
and a.super_bom_code = #{superBomCode}
</if>
<if
test=
"skuCode!=null and skuCode!=''.toString()"
>
and a.sku_code = #{skuCode}
</if>
<if
test=
"skuName!=null and skuName!=''.toString()"
>
and a.sku_name = #{skuName}
</if>
<if
test=
"politicalMiningId!=null and politicalMiningId!=''.toString()"
>
and a.political_mining_id = #{politicalMiningId}
</if>
<if
test=
"patern!=null and patern!=''.toString()"
>
and a.patern = #{patern}
</if>
<update
id=
"updateSkuInfo"
>
</where>
</select>
<update
id=
"updateSkuInfo"
>
update super_bom_sku_info set sncode = #{sncode},product_type = #{productType} ,product_small_type =#{productSmallType},sku_code = #{skuCode} where config_id = #{configId}
</update>
</mapper>
\ No newline at end of file
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