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
31f1e4be
Commit
31f1e4be
authored
Jul 10, 2020
by
陶光胜
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'developer' into 'master'
Developer See merge request
!22
parents
eae37f0e
7f6d484b
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
5 deletions
+18
-5
EnterpriseListDTO.java
...c/main/java/com/gic/enterprise/dto/EnterpriseListDTO.java
+15
-1
TabEnterpriseMapper.xml
...service/src/main/resources/mapper/TabEnterpriseMapper.xml
+1
-1
TabWmStoreCouponConfigMapper.xml
...rc/main/resources/mapper/TabWmStoreCouponConfigMapper.xml
+1
-2
EnterpriseSmsController.java
...gic/operation/web/controller/EnterpriseSmsController.java
+1
-1
No files found.
gic-platform-enterprise-api/src/main/java/com/gic/enterprise/dto/EnterpriseListDTO.java
View file @
31f1e4be
...
...
@@ -3,9 +3,11 @@ package com.gic.enterprise.dto;
import
com.gic.enterprise.constant.LicenseTypeEnum
;
import
java.io.Serializable
;
import
java.util.Arrays
;
import
java.util.Date
;
import
java.util.HashMap
;
import
java.util.Map
;
import
java.util.stream.Collectors
;
/**
* @author guojx
...
...
@@ -155,7 +157,19 @@ public class EnterpriseListDTO implements Serializable{
if
(
licenseUpperLimitStr
==
null
||
licenseUpperLimitStr
==
""
)
{
return
"--"
;
}
else
{
return
licenseUpperLimitStr
;
//按照会员卡、服务号、小程序、门店分别展示
//数据格式 名称:数值-名称2:数值2
Map
<
String
,
Object
>
map
=
Arrays
.
stream
(
licenseUpperLimitStr
.
split
(
"-"
))
.
map
(
e
->
e
.
split
(
":"
))
.
collect
(
Collectors
.
toMap
(
e
->
e
[
0
],
e
->
e
[
1
]));
Object
memberCard
=
map
.
get
(
"会员卡"
);
Object
serviceCard
=
map
.
get
(
"服务号"
);
Object
weChat
=
map
.
get
(
"小程序"
);
Object
store
=
map
.
get
(
"门店"
);
return
(
memberCard
==
null
?
"0"
:
memberCard
.
toString
())
+
"-"
+
(
serviceCard
==
null
?
"0"
:
serviceCard
.
toString
())
+
"-"
+
(
weChat
==
null
?
"0"
:
weChat
.
toString
())
+
"-"
+
(
store
==
null
?
"0"
:
store
.
toString
());
}
}
...
...
gic-platform-enterprise-service/src/main/resources/mapper/TabEnterpriseMapper.xml
View file @
31f1e4be
...
...
@@ -283,7 +283,7 @@
a.company_name companyName,
a.create_time createTime,
a.is_init_complete isInitComplete,
GROUP_CONCAT(
b.upper_limit ORDER BY b.enterprise_license_id
separator '-') licenseUpperLimitStr,
GROUP_CONCAT(
concat(b.license_name,':',b.upper_limit)
separator '-') licenseUpperLimitStr,
a.version_code versionCode,
a.version_name versionName,
a.audit_time expirationTime,
...
...
gic-platform-enterprise-service/src/main/resources/mapper/TabWmStoreCouponConfigMapper.xml
View file @
31f1e4be
...
...
@@ -167,7 +167,7 @@
select
<include
refid=
"Base_Column_List"
></include>
from tab_wm_store_coupon_config
where
1
= 1
where
status
= 1
<if
test=
"wmMallStoreId != null and wmMallStoreId != '' "
>
and wm_mall_store_id = #{wmMallStoreId}
</if>
...
...
@@ -185,7 +185,6 @@
</if>
<if
test=
"onlyShowEffective != null and onlyShowEffective == 1"
>
and (gic_coupon_expire is null or TIMESTAMPDIFF(DAY, now(), gic_coupon_expire) >= 0)
and status = 1
</if>
<if
test=
"couponName != null and couponName != '' "
>
and (gic_coupon_name like concat('%', #{couponName}, '%') or wm_coupon_name like concat('%', #{couponName}, '%'))
...
...
gic-platform-operation-web/src/main/java/com/gic/operation/web/controller/EnterpriseSmsController.java
View file @
31f1e4be
...
...
@@ -102,7 +102,7 @@ public class EnterpriseSmsController {
@RequestMapping
(
"/delete-sms"
)
public
RestResponse
deleteSms
(
Long
signId
,
Integer
enterpriseId
)
{
ServiceResponse
<
Void
>
smsResult
=
smsOuterApiService
.
delEnterpriseSmsSign
(
UserDetailUtils
.
getUserDetail
().
getEnterpriseId
()
,
signId
);
ServiceResponse
<
Void
>
smsResult
=
smsOuterApiService
.
delEnterpriseSmsSign
(
enterpriseId
,
signId
);
if
(
smsResult
.
isSuccess
())
{
ServiceResponse
<
EnterpriseDTO
>
enterpriseResult
=
enterpriseApiService
.
getEnterpriseById
(
enterpriseId
);
if
(
enterpriseResult
.
isSuccess
())
{
...
...
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