Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-platform-enterprise
Overview
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
base_platform_enterprise
gic-platform-enterprise
Commits
983d54a8
Commit
983d54a8
authored
May 08, 2020
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
微盟商城-店铺配置调整
parent
9da628ea
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
86 additions
and
76 deletions
+86
-76
WmStoreConfigDTO.java
...main/java/com/gic/enterprise/dto/wm/WmStoreConfigDTO.java
+6
-6
WmStoreApiService.java
...in/java/com/gic/enterprise/service/WmStoreApiService.java
+6
-6
TabWmStoreConfigMapper.java
...com/gic/enterprise/dao/mapper/TabWmStoreConfigMapper.java
+3
-2
TabWmStoreConfig.java
...main/java/com/gic/enterprise/entity/TabWmStoreConfig.java
+6
-6
WmStoreConfigService.java
...java/com/gic/enterprise/service/WmStoreConfigService.java
+6
-6
WmStoreConfigServiceImpl.java
...gic/enterprise/service/impl/WmStoreConfigServiceImpl.java
+11
-9
WmStoreApiServiceImpl.java
.../enterprise/service/outer/impl/WmStoreApiServiceImpl.java
+27
-20
TabWmStoreConfigMapper.xml
...vice/src/main/resources/mapper/TabWmStoreConfigMapper.xml
+15
-15
WmMallStoreController.java
...c/enterprise/web/controller/wm/WmMallStoreController.java
+6
-6
No files found.
gic-platform-enterprise-api/src/main/java/com/gic/enterprise/dto/wm/WmStoreConfigDTO.java
View file @
983d54a8
...
...
@@ -24,9 +24,9 @@ public class WmStoreConfigDTO implements Serializable{
private
Integer
enterpriseId
;
/**
*
微盟主账号(平台唯一)
,用于关联配置
*
店铺主键ID
,用于关联配置
*/
private
String
wmMainAccount
;
private
Integer
wmMallStoreId
;
/**
* 店铺配置类型 1:会员卡配置 2:卡券配置 3:订单配置 4:积分配置 5:商品同步记录 6:小程序配置
...
...
@@ -71,12 +71,12 @@ public class WmStoreConfigDTO implements Serializable{
return
this
;
}
public
String
getWmMainAccount
()
{
return
wmMa
inAccount
;
public
Integer
getWmMallStoreId
()
{
return
wmMa
llStoreId
;
}
public
WmStoreConfigDTO
setWmMa
inAccount
(
String
wmMainAccount
)
{
this
.
wmMa
inAccount
=
wmMainAccount
;
public
WmStoreConfigDTO
setWmMa
llStoreId
(
Integer
wmMallStoreId
)
{
this
.
wmMa
llStoreId
=
wmMallStoreId
;
return
this
;
}
...
...
gic-platform-enterprise-api/src/main/java/com/gic/enterprise/service/WmStoreApiService.java
View file @
983d54a8
...
...
@@ -89,24 +89,24 @@ public interface WmStoreApiService {
/**
* 根据微盟主账号查询配置
* @Title: getWmStoreConfig
ByWmMainAccount
* @Title: getWmStoreConfig
* @Description:
* @author guojuxing
* @param wmMa
inAccount
* @param wmMa
llStoreId 店铺主键ID
* @param wmStoreConfigType 店铺配置类型 WmStoreConfigTypeEnum 枚举类
* @return com.gic.api.base.commons.ServiceResponse<com.gic.enterprise.dto.wm.WmStoreConfigDTO>
*/
ServiceResponse
<
WmStoreConfigDTO
>
getWmStoreConfig
ByWmMainAccount
(
String
wmMainAccount
,
Integer
wmStoreConfigType
);
ServiceResponse
<
WmStoreConfigDTO
>
getWmStoreConfig
(
Integer
wmMallStoreId
,
Integer
wmStoreConfigType
);
/**
* 查询店铺配置 key : 配置类型 WmStoreConfigTypeEnum 枚举类
* @Title: getWmStoreConfig
ByWmMainAccount
* @Title: getWmStoreConfig
Key
* @Description:
* @author guojuxing
* @param wmMa
inAccount
* @param wmMa
llStoreId 店铺主键ID
* @return com.gic.api.base.commons.ServiceResponse<java.util.Set<String>>
*/
ServiceResponse
<
Set
<
String
>>
getWmStoreConfig
ByWmMainAccount
(
String
wmMainAccount
);
ServiceResponse
<
Set
<
String
>>
getWmStoreConfig
Key
(
Integer
wmMallStoreId
);
/**
* 绑定卡券
...
...
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/dao/mapper/TabWmStoreConfigMapper.java
View file @
983d54a8
...
...
@@ -54,7 +54,7 @@ public interface TabWmStoreConfigMapper {
*/
int
updateByPrimaryKey
(
TabWmStoreConfig
record
);
TabWmStoreConfig
get
ByWmMainAccount
(
@Param
(
"wmMainAccount"
)
String
wmMainAccount
,
@Param
(
"storeConfigType"
)
Integer
storeConfigType
);
TabWmStoreConfig
get
WmStoreConfig
(
@Param
(
"wmMallStoreId"
)
Integer
wmMallStoreId
,
@Param
(
"storeConfigType"
)
Integer
storeConfigType
);
List
<
TabWmStoreConfig
>
listWmStoreConfig
ByWmMainAccount
(
String
wmMainAccount
);
List
<
TabWmStoreConfig
>
listWmStoreConfig
(
Integer
wmMallStoreId
);
}
\ No newline at end of file
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/entity/TabWmStoreConfig.java
View file @
983d54a8
...
...
@@ -17,9 +17,9 @@ public class TabWmStoreConfig {
private
Integer
enterpriseId
;
/**
*
微盟主账号(平台唯一)
,用于关联配置
*
店铺主键ID
,用于关联配置
*/
private
String
wmMainAccount
;
private
Integer
wmMallStoreId
;
/**
* 店铺配置类型 1:会员卡配置 2:卡券配置 3:订单配置 4:积分配置 5:商品同步记录 6:小程序配置
...
...
@@ -64,12 +64,12 @@ public class TabWmStoreConfig {
return
this
;
}
public
String
getWmMainAccount
()
{
return
wmMa
inAccount
;
public
Integer
getWmMallStoreId
()
{
return
wmMa
llStoreId
;
}
public
TabWmStoreConfig
setWmMa
inAccount
(
String
wmMainAccount
)
{
this
.
wmMa
inAccount
=
wmMainAccount
;
public
TabWmStoreConfig
setWmMa
llStoreId
(
Integer
wmMallStoreId
)
{
this
.
wmMa
llStoreId
=
wmMallStoreId
;
return
this
;
}
...
...
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/service/WmStoreConfigService.java
View file @
983d54a8
package
com
.
gic
.
enterprise
.
service
;
import
java.util.List
;
import
com.gic.enterprise.dto.wm.WmStoreConfigDTO
;
import
com.gic.enterprise.entity.TabWmStoreConfig
;
import
java.util.List
;
public
interface
WmStoreConfigService
{
/**
...
...
@@ -21,14 +21,14 @@ public interface WmStoreConfigService {
/**
* 根据微盟主账号查询配置
* @Title: get
ByWmMainAccount
* @Title: get
WmStoreConfig
* @Description:
* @author guojuxing
* @param wmMa
inAccount
* @param wmMa
llStoreId 店铺主键ID
* @param storeConfigType 店铺配置类型 WmStoreConfigTypeEnum枚举类
* @return com.gic.enterprise.entity.TabWmStoreConfig
*/
TabWmStoreConfig
get
ByWmMainAccount
(
String
wmMainAccount
,
Integer
storeConfigType
);
TabWmStoreConfig
get
WmStoreConfig
(
Integer
wmMallStoreId
,
Integer
storeConfigType
);
List
<
TabWmStoreConfig
>
listWmStoreConfig
ByWmMainAccount
(
String
wmMainAccount
);
List
<
TabWmStoreConfig
>
listWmStoreConfig
(
Integer
wmMallStoreId
);
}
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/service/impl/WmStoreConfigServiceImpl.java
View file @
983d54a8
package
com
.
gic
.
enterprise
.
service
.
impl
;
import
java.util.Date
;
import
java.util.List
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
com.gic.commons.util.EntityUtil
;
import
com.gic.enterprise.dao.mapper.TabWmStoreConfigMapper
;
import
com.gic.enterprise.dto.wm.WmStoreConfigDTO
;
import
com.gic.enterprise.entity.TabWmStoreConfig
;
import
com.gic.enterprise.service.WmStoreConfigService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
java.util.Date
;
import
java.util.List
;
@Service
(
"wmStoreConfigService"
)
public
class
WmStoreConfigServiceImpl
implements
WmStoreConfigService
{
...
...
@@ -35,12 +36,13 @@ public class WmStoreConfigServiceImpl implements WmStoreConfigService{
}
@Override
public
TabWmStoreConfig
get
ByWmMainAccount
(
String
wmMainAccount
,
Integer
storeConfigType
)
{
return
tabWmStoreConfigMapper
.
get
ByWmMainAccount
(
wmMainAccount
,
storeConfigType
);
public
TabWmStoreConfig
get
WmStoreConfig
(
Integer
wmMallStoreId
,
Integer
storeConfigType
)
{
return
tabWmStoreConfigMapper
.
get
WmStoreConfig
(
wmMallStoreId
,
storeConfigType
);
}
@Override
public
List
<
TabWmStoreConfig
>
listWmStoreConfig
ByWmMainAccount
(
String
wmMainAccount
)
{
return
tabWmStoreConfigMapper
.
listWmStoreConfig
ByWmMainAccount
(
wmMainAccount
);
public
List
<
TabWmStoreConfig
>
listWmStoreConfig
(
Integer
wmMallStoreId
)
{
return
tabWmStoreConfigMapper
.
listWmStoreConfig
(
wmMallStoreId
);
}
}
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/service/outer/impl/WmStoreApiServiceImpl.java
View file @
983d54a8
package
com
.
gic
.
enterprise
.
service
.
outer
.
impl
;
import
java.util.*
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.Optional
;
import
java.util.Set
;
import
java.util.stream.Collectors
;
import
com.alibaba.fastjson.JSON
;
import
com.gic.api.base.commons.Page
;
import
com.gic.commons.util.PageHelperUtils
;
import
com.gic.commons.util.StringUtil
;
import
com.gic.enterprise.dto.WmOrderConfigDTO
;
import
com.gic.enterprise.dto.wm.WmCouponDTO
;
import
com.gic.enterprise.dto.wm.WmStoreCouponConfigDTO
;
import
com.gic.enterprise.entity.TabWmStoreCouponConfig
;
import
com.gic.enterprise.qo.wm.CouponConfigQO
;
import
com.gic.enterprise.service.WmStoreCouponConfigService
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.apache.commons.lang.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
com.alibaba.fastjson.JSON
;
import
com.gic.api.base.commons.Page
;
import
com.gic.api.base.commons.ServiceResponse
;
import
com.gic.commons.util.EntityUtil
;
import
com.gic.commons.util.PageHelperUtils
;
import
com.gic.commons.util.StringUtil
;
import
com.gic.enterprise.constant.MallModeEnum
;
import
com.gic.enterprise.constant.WmStoreConfigTypeEnum
;
import
com.gic.enterprise.dto.WmMemberCardConfigDTO
;
import
com.gic.enterprise.dto.WmOrderConfigDTO
;
import
com.gic.enterprise.dto.WmStoreDTO
;
import
com.gic.enterprise.dto.wm.WmCouponDTO
;
import
com.gic.enterprise.dto.wm.WmStoreConfigDTO
;
import
com.gic.enterprise.dto.wm.WmStoreCouponConfigDTO
;
import
com.gic.enterprise.entity.TabWmStore
;
import
com.gic.enterprise.entity.TabWmStoreConfig
;
import
com.gic.enterprise.entity.TabWmStoreCouponConfig
;
import
com.gic.enterprise.error.ErrorCode
;
import
com.gic.enterprise.qo.wm.CouponConfigQO
;
import
com.gic.enterprise.service.WmStoreApiService
;
import
com.gic.enterprise.service.WmStoreConfigService
;
import
com.gic.enterprise.service.WmStoreCouponConfigService
;
import
com.gic.enterprise.service.WmStoreService
;
@Service
(
"wmStoreApiService"
)
...
...
@@ -94,14 +97,14 @@ public class WmStoreApiServiceImpl implements WmStoreApiService {
if
(!
WmStoreConfigTypeEnum
.
isRightCode
(
dto
.
getStoreConfigType
()))
{
return
ServiceResponse
.
failure
(
ErrorCode
.
PARAMETER_ERROR
.
getCode
(),
"店铺配置类型值非法"
);
}
TabWmStore
wmStore
=
wmStoreService
.
getByWmMa
inAccount
(
dto
.
getWmMainAccount
());
TabWmStore
wmStore
=
wmStoreService
.
getByWmMa
llStoreId
(
dto
.
getWmMallStoreId
());
if
(
wmStore
==
null
)
{
return
ServiceResponse
.
failure
(
ErrorCode
.
PARAMETER_ERROR
.
getCode
(),
"微盟主账号错误,查无数据"
);
}
if
(
StringUtils
.
isBlank
(
dto
.
getStoreConfigJson
()))
{
return
ServiceResponse
.
failure
(
ErrorCode
.
PARAMETER_ERROR
.
getCode
(),
"店铺配置信息不能为空"
);
}
TabWmStoreConfig
record
=
wmStoreConfigService
.
get
ByWmMainAccount
(
dto
.
getWmMainAccount
(),
TabWmStoreConfig
record
=
wmStoreConfigService
.
get
WmStoreConfig
(
dto
.
getWmMallStoreId
(),
dto
.
getStoreConfigType
());
if
(
record
==
null
)
{
//新增
...
...
@@ -118,7 +121,7 @@ public class WmStoreApiServiceImpl implements WmStoreApiService {
if
(
record
==
null
)
{
return
ServiceResponse
.
failure
(
ErrorCode
.
PARAMETER_ERROR
.
getCode
(),
"微盟商城店铺ID错误,查无数据"
);
}
TabWmStoreConfig
memberCardConfig
=
wmStoreConfigService
.
get
ByWmMainAccount
(
record
.
getWmMainAccount
()
,
TabWmStoreConfig
memberCardConfig
=
wmStoreConfigService
.
get
WmStoreConfig
(
wmMallStoreId
,
WmStoreConfigTypeEnum
.
MEMBER_CARD_CONFIG
.
getCode
());
if
(
memberCardConfig
==
null
)
{
return
ServiceResponse
.
failure
(
ErrorCode
.
PARAMETER_ERROR
.
getCode
(),
...
...
@@ -133,7 +136,7 @@ public class WmStoreApiServiceImpl implements WmStoreApiService {
if
(
record
==
null
)
{
return
ServiceResponse
.
failure
(
ErrorCode
.
PARAMETER_ERROR
.
getCode
(),
"微盟商城店铺ID错误,查无数据"
);
}
TabWmStoreConfig
orderConfig
=
wmStoreConfigService
.
get
ByWmMainAccount
(
record
.
getWmMainAccount
()
,
TabWmStoreConfig
orderConfig
=
wmStoreConfigService
.
get
WmStoreConfig
(
wmMallStoreId
,
WmStoreConfigTypeEnum
.
ORDER_CONFIG
.
getCode
());
if
(
orderConfig
==
null
)
{
return
ServiceResponse
.
failure
(
ErrorCode
.
PARAMETER_ERROR
.
getCode
(),
...
...
@@ -143,10 +146,14 @@ public class WmStoreApiServiceImpl implements WmStoreApiService {
}
@Override
public
ServiceResponse
<
WmStoreConfigDTO
>
getWmStoreConfig
ByWmMainAccount
(
String
wmMainAccount
,
public
ServiceResponse
<
WmStoreConfigDTO
>
getWmStoreConfig
(
Integer
wmMallStoreId
,
Integer
wmStoreConfigType
)
{
TabWmStore
Config
record
=
wmStoreConfigService
.
getByWmMainAccount
(
wmMainAccount
,
wmStoreConfigType
);
TabWmStore
record
=
wmStoreService
.
getByWmMallStoreId
(
wmMallStoreId
);
if
(
record
==
null
)
{
return
ServiceResponse
.
failure
(
ErrorCode
.
PARAMETER_ERROR
.
getCode
(),
"店铺不存在"
);
}
TabWmStoreConfig
config
=
wmStoreConfigService
.
getWmStoreConfig
(
wmMallStoreId
,
wmStoreConfigType
);
if
(
config
==
null
)
{
if
(!
WmStoreConfigTypeEnum
.
isRightCode
(
wmStoreConfigType
))
{
return
ServiceResponse
.
failure
(
ErrorCode
.
PARAMETER_ERROR
.
getCode
(),
"店铺配置类型值非法"
);
}
...
...
@@ -154,13 +161,13 @@ public class WmStoreApiServiceImpl implements WmStoreApiService {
return
ServiceResponse
.
failure
(
ErrorCode
.
PARAMETER_ERROR
.
getCode
(),
WmStoreConfigTypeEnum
.
getMessageByCode
(
wmStoreConfigType
)
+
"还未配置"
);
}
return
ServiceResponse
.
success
(
EntityUtil
.
changeEntityNew
(
WmStoreConfigDTO
.
class
,
record
));
return
ServiceResponse
.
success
(
EntityUtil
.
changeEntityNew
(
WmStoreConfigDTO
.
class
,
config
));
}
@Override
public
ServiceResponse
<
Set
<
String
>>
getWmStoreConfig
ByWmMainAccount
(
String
wmMainAccount
)
{
public
ServiceResponse
<
Set
<
String
>>
getWmStoreConfig
Key
(
Integer
wmMallStoreId
)
{
Set
<
String
>
result
;
List
<
TabWmStoreConfig
>
wmStoreConfigList
=
wmStoreConfigService
.
listWmStoreConfig
ByWmMainAccount
(
wmMainAccount
);
List
<
TabWmStoreConfig
>
wmStoreConfigList
=
wmStoreConfigService
.
listWmStoreConfig
(
wmMallStoreId
);
//基本配置
result
=
Optional
.
ofNullable
(
wmStoreConfigList
).
orElse
(
new
ArrayList
<>())
.
stream
()
...
...
gic-platform-enterprise-service/src/main/resources/mapper/TabWmStoreConfigMapper.xml
View file @
983d54a8
...
...
@@ -4,7 +4,7 @@
<resultMap
id=
"BaseResultMap"
type=
"com.gic.enterprise.entity.TabWmStoreConfig"
>
<id
column=
"store_config_id"
jdbcType=
"INTEGER"
property=
"storeConfigId"
/>
<result
column=
"enterprise_id"
jdbcType=
"INTEGER"
property=
"enterpriseId"
/>
<result
column=
"wm_ma
in_account"
jdbcType=
"VARCHAR"
property=
"wmMainAccount
"
/>
<result
column=
"wm_ma
ll_store_id"
jdbcType=
"INTEGER"
property=
"wmMallStoreId
"
/>
<result
column=
"store_config_type"
jdbcType=
"INTEGER"
property=
"storeConfigType"
/>
<result
column=
"store_config_json"
jdbcType=
"VARCHAR"
property=
"storeConfigJson"
/>
<result
column=
"status"
jdbcType=
"INTEGER"
property=
"status"
/>
...
...
@@ -12,7 +12,7 @@
<result
column=
"update_time"
jdbcType=
"TIMESTAMP"
property=
"updateTime"
/>
</resultMap>
<sql
id=
"Base_Column_List"
>
store_config_id, enterprise_id, wm_ma
in_account, store_config_type, store_config_json,
store_config_id, enterprise_id, wm_ma
ll_store_id, store_config_type, store_config_json,
status, create_time, update_time
</sql>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.Integer"
resultMap=
"BaseResultMap"
>
...
...
@@ -26,10 +26,10 @@
where store_config_id = #{storeConfigId,jdbcType=INTEGER}
</delete>
<insert
id=
"insert"
parameterType=
"com.gic.enterprise.entity.TabWmStoreConfig"
useGeneratedKeys=
"true"
keyProperty=
"storeConfigId"
>
insert into tab_wm_store_config (store_config_id, enterprise_id, wm_ma
in_account,
insert into tab_wm_store_config (store_config_id, enterprise_id, wm_ma
ll_store_id,
store_config_type, store_config_json, status,
create_time, update_time)
values (#{storeConfigId,jdbcType=INTEGER}, #{enterpriseId,jdbcType=INTEGER}, #{wmMa
inAccount,jdbcType=VARCHAR},
values (#{storeConfigId,jdbcType=INTEGER}, #{enterpriseId,jdbcType=INTEGER}, #{wmMa
llStoreId,jdbcType=INTEGER},
#{storeConfigType,jdbcType=INTEGER}, #{storeConfigJson,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER},
#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP})
</insert>
...
...
@@ -42,8 +42,8 @@
<if
test=
"enterpriseId != null"
>
enterprise_id,
</if>
<if
test=
"wmMa
inAccount
!= null"
>
wm_ma
in_account
,
<if
test=
"wmMa
llStoreId
!= null"
>
wm_ma
ll_store_id
,
</if>
<if
test=
"storeConfigType != null"
>
store_config_type,
...
...
@@ -68,8 +68,8 @@
<if
test=
"enterpriseId != null"
>
#{enterpriseId,jdbcType=INTEGER},
</if>
<if
test=
"wmMa
inAccount
!= null"
>
#{wmMa
inAccount,jdbcType=VARCHA
R},
<if
test=
"wmMa
llStoreId
!= null"
>
#{wmMa
llStoreId,jdbcType=INTEGE
R},
</if>
<if
test=
"storeConfigType != null"
>
#{storeConfigType,jdbcType=INTEGER},
...
...
@@ -94,8 +94,8 @@
<if
test=
"enterpriseId != null"
>
enterprise_id = #{enterpriseId,jdbcType=INTEGER},
</if>
<if
test=
"wmMa
inAccount
!= null"
>
wm_ma
in_account = #{wmMainAccount,jdbcType=VARCHA
R},
<if
test=
"wmMa
llStoreId
!= null"
>
wm_ma
ll_store_id = #{wmMallStoreId,jdbcType=INTEGE
R},
</if>
<if
test=
"storeConfigType != null"
>
store_config_type = #{storeConfigType,jdbcType=INTEGER},
...
...
@@ -118,7 +118,7 @@
<update
id=
"updateByPrimaryKey"
parameterType=
"com.gic.enterprise.entity.TabWmStoreConfig"
>
update tab_wm_store_config
set enterprise_id = #{enterpriseId,jdbcType=INTEGER},
wm_ma
in_account = #{wmMainAccount,jdbcType=VARCHA
R},
wm_ma
ll_store_id = #{wmMallStoreId,jdbcType=INTEGE
R},
store_config_type = #{storeConfigType,jdbcType=INTEGER},
store_config_json = #{storeConfigJson,jdbcType=VARCHAR},
status = #{status,jdbcType=INTEGER},
...
...
@@ -127,18 +127,18 @@
where store_config_id = #{storeConfigId,jdbcType=INTEGER}
</update>
<select
id=
"get
ByWmMainAccount
"
resultMap=
"BaseResultMap"
>
<select
id=
"get
WmStoreConfig
"
resultMap=
"BaseResultMap"
>
select
<include
refid=
"Base_Column_List"
></include>
from tab_wm_store_config
where wm_ma
in_account = #{wmMainAccount
}
where wm_ma
ll_store_id = #{wmMallStoreId
}
and status = 1
and store_config_type = #{storeConfigType}
</select>
<select
id=
"listWmStoreConfig
ByWmMainAccount
"
resultMap=
"BaseResultMap"
>
<select
id=
"listWmStoreConfig"
resultMap=
"BaseResultMap"
>
select
<include
refid=
"Base_Column_List"
></include>
from tab_wm_store_config
where wm_ma
in_account = #{wmMainAccount
}
where wm_ma
ll_store_id = #{wmMallStoreId
}
and status = 1
order by store_config_type
</select>
...
...
gic-platform-enterprise-web/src/main/java/com/gic/enterprise/web/controller/wm/WmMallStoreController.java
View file @
983d54a8
...
...
@@ -93,7 +93,7 @@ public class WmMallStoreController {
List
<
WmStoreVO
>
voList
=
list
.
stream
()
.
map
(
e
->
{
WmStoreVO
vo
=
EntityUtil
.
changeEntityNew
(
WmStoreVO
.
class
,
e
);
ServiceResponse
<
Set
<
String
>>
configSet
=
wmStoreApiService
.
getWmStoreConfig
ByWmMainAccount
(
e
.
getWmMainAccount
());
ServiceResponse
<
Set
<
String
>>
configSet
=
wmStoreApiService
.
getWmStoreConfig
Key
(
e
.
getWmMallStoreId
());
if
(
configSet
.
isSuccess
())
{
Set
<
String
>
set
=
configSet
.
getResult
();
if
(
set
.
contains
(
String
.
valueOf
(
WmStoreConfigTypeEnum
.
COUPON_CONFIG
.
getCode
())))
{
...
...
@@ -304,15 +304,15 @@ public class WmMallStoreController {
dto
.
setEnterpriseId
(
UserDetailUtils
.
getUserDetail
().
getEnterpriseId
());
return
OperationResultUtils
.
operationResult
(
wmStoreApiService
.
saveOrUpdateWmStoreConfig
(
dto
),
OperationResultUtils
.
LOG_EDIT
+
"微盟商城-
店铺配置"
"
店铺配置"
+
WmStoreConfigTypeEnum
.
getMessageByCode
(
dto
.
getStoreConfigType
()),
dto
.
getWmMainAccount
()
);
"微盟商城"
);
}
@RequestMapping
(
"/get-wm-store-config
-by-wm-main-account
"
)
public
RestResponse
getWmStoreConfig
ByWmMainAccount
(
String
wmMainAccount
,
Integer
wmStoreConfigType
)
{
@RequestMapping
(
"/get-wm-store-config"
)
public
RestResponse
getWmStoreConfig
(
Integer
wmMallStoreId
,
Integer
wmStoreConfigType
)
{
return
ResultControllerUtils
.
commonResult
(
wmStoreApiService
.
getWmStoreConfig
ByWmMainAccount
(
wmMainAccount
,
wmStoreConfigType
));
.
commonResult
(
wmStoreApiService
.
getWmStoreConfig
(
wmMallStoreId
,
wmStoreConfigType
));
}
@RequestMapping
(
"/bind-coupon"
)
...
...
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