Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform
Project
Project
Details
Activity
Releases
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
youjj
cloud-platform
Commits
f47de4ad
Commit
f47de4ad
authored
Dec 12, 2019
by
hezhen
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
http://113.105.137.151:22280/youjj/cloud-platform
into dev
parents
96273570
47200a5e
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
37 additions
and
18 deletions
+37
-18
BaseController.java
...m/github/wxiaoqi/security/common/rest/BaseController.java
+1
-1
AppStaffUserController.java
...b/wxiaoqi/security/admin/rest/AppStaffUserController.java
+22
-7
ActivityPopularizeBiz.java
...com/xxfc/platform/activity/biz/ActivityPopularizeBiz.java
+1
-1
ActivityPopupBiz.java
...java/com/xxfc/platform/activity/biz/ActivityPopupBiz.java
+6
-9
Banner.java
...pi/src/main/java/com/xxfc/platform/app/entity/Banner.java
+4
-0
BannerVo.java
...c/main/java/com/xxfc/platform/app/entity/vo/BannerVo.java
+2
-0
BannerBiz.java
...er/src/main/java/com/xxfc/platform/app/biz/BannerBiz.java
+1
-0
No files found.
ace-common/src/main/java/com/github/wxiaoqi/security/common/rest/BaseController.java
View file @
f47de4ad
...
@@ -50,7 +50,7 @@ public class BaseController<Biz extends BaseBiz,Entity> extends CommonBaseContro
...
@@ -50,7 +50,7 @@ public class BaseController<Biz extends BaseBiz,Entity> extends CommonBaseContro
@ApiOperation
(
"修改"
)
@ApiOperation
(
"修改"
)
@RequestMapping
(
value
=
"/{id}"
,
method
=
RequestMethod
.
PUT
)
@RequestMapping
(
value
=
"/{id}"
,
method
=
RequestMethod
.
PUT
)
@ResponseBody
@ResponseBody
public
ObjectRestResponse
<
Entity
>
update
(
@RequestBody
Entity
entity
){
public
ObjectRestResponse
<
Entity
>
update
(
@RequestBody
Entity
entity
)
throws
Exception
{
baseBiz
.
updateSelectiveById
(
entity
);
baseBiz
.
updateSelectiveById
(
entity
);
return
new
ObjectRestResponse
<
Entity
>();
return
new
ObjectRestResponse
<
Entity
>();
}
}
...
...
ace-modules/ace-admin/src/main/java/com/github/wxiaoqi/security/admin/rest/AppStaffUserController.java
View file @
f47de4ad
...
@@ -6,6 +6,7 @@ import com.github.wxiaoqi.security.admin.feign.dto.AppUserDTO;
...
@@ -6,6 +6,7 @@ import com.github.wxiaoqi.security.admin.feign.dto.AppUserDTO;
import
com.github.wxiaoqi.security.auth.client.config.UserAuthConfig
;
import
com.github.wxiaoqi.security.auth.client.config.UserAuthConfig
;
import
com.github.wxiaoqi.security.common.msg.ObjectRestResponse
;
import
com.github.wxiaoqi.security.common.msg.ObjectRestResponse
;
import
com.github.wxiaoqi.security.common.rest.BaseController
;
import
com.github.wxiaoqi.security.common.rest.BaseController
;
import
com.github.wxiaoqi.security.common.util.process.ResultCode
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
import
lombok.RequiredArgsConstructor
;
import
lombok.RequiredArgsConstructor
;
...
@@ -13,7 +14,6 @@ import org.springframework.beans.factory.annotation.Autowired;
...
@@ -13,7 +14,6 @@ import org.springframework.beans.factory.annotation.Autowired;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletRequest
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.List
;
/**
/**
...
@@ -34,14 +34,13 @@ public class AppStaffUserController extends BaseController<AppStaffUserBiz, AppS
...
@@ -34,14 +34,13 @@ public class AppStaffUserController extends BaseController<AppStaffUserBiz, AppS
* @return
* @return
* @throws Exception
* @throws Exception
*/
*/
@Override
@GetMapping
(
"/getAll"
)
@GetMapping
(
"/all"
)
public
ObjectRestResponse
<
List
<
AppStaffUser
>>
getAll
()
throws
Exception
{
public
List
<
AppStaffUser
>
all
()
throws
Exception
{
AppUserDTO
userDTO
=
(
AppUserDTO
)
publicController
.
userDetailByToken
(
authConfig
.
getToken
(
request
)).
getData
();
AppUserDTO
userDTO
=
(
AppUserDTO
)
publicController
.
userDetailByToken
(
authConfig
.
getToken
(
request
)).
getData
();
if
(
POSITION_NAME
.
equals
(
userDTO
.
getPositionName
()))
{
if
(
POSITION_NAME
.
equals
(
userDTO
.
getPositionName
()))
{
return
baseBiz
.
getAll
(
userDTO
.
getUserid
(
))
;
return
ObjectRestResponse
.
succ
(
baseBiz
.
getAll
(
userDTO
.
getUserid
()
))
;
}
}
return
new
ArrayList
<>
();
return
ObjectRestResponse
.
succ
();
}
}
@Override
@Override
...
@@ -49,9 +48,12 @@ public class AppStaffUserController extends BaseController<AppStaffUserBiz, AppS
...
@@ -49,9 +48,12 @@ public class AppStaffUserController extends BaseController<AppStaffUserBiz, AppS
@PostMapping
(
value
=
""
)
@PostMapping
(
value
=
""
)
public
ObjectRestResponse
<
AppStaffUser
>
add
(
@RequestBody
AppStaffUser
appStaffUser
)
throws
Exception
{
public
ObjectRestResponse
<
AppStaffUser
>
add
(
@RequestBody
AppStaffUser
appStaffUser
)
throws
Exception
{
AppUserDTO
userDTO
=
(
AppUserDTO
)
publicController
.
userDetailByToken
(
authConfig
.
getToken
(
request
)).
getData
();
AppUserDTO
userDTO
=
(
AppUserDTO
)
publicController
.
userDetailByToken
(
authConfig
.
getToken
(
request
)).
getData
();
if
(
appStaffUser
.
getPhone
().
equals
(
userDTO
.
getUsername
()))
{
return
ObjectRestResponse
.
createFailedResult
(
ResultCode
.
FAILED_CODE
,
"不能绑定本人为客户"
);
}
appStaffUser
.
setSuId
(
userDTO
.
getUserid
());
appStaffUser
.
setSuId
(
userDTO
.
getUserid
());
baseBiz
.
insertSelective
(
appStaffUser
);
baseBiz
.
insertSelective
(
appStaffUser
);
return
new
ObjectRestResponse
<
AppStaffUser
>
();
return
ObjectRestResponse
.
succ
();
}
}
@ApiOperation
(
"查询一条"
)
@ApiOperation
(
"查询一条"
)
...
@@ -75,4 +77,17 @@ public class AppStaffUserController extends BaseController<AppStaffUserBiz, AppS
...
@@ -75,4 +77,17 @@ public class AppStaffUserController extends BaseController<AppStaffUserBiz, AppS
return
ObjectRestResponse
.
succ
();
return
ObjectRestResponse
.
succ
();
}
}
@Override
@ApiOperation
(
"修改"
)
@RequestMapping
(
value
=
"/{id}"
,
method
=
RequestMethod
.
PUT
)
@ResponseBody
public
ObjectRestResponse
update
(
@RequestBody
AppStaffUser
appStaffUser
)
throws
Exception
{
AppUserDTO
userDTO
=
(
AppUserDTO
)
publicController
.
userDetailByToken
(
authConfig
.
getToken
(
request
)).
getData
();
if
(
appStaffUser
.
getPhone
().
equals
(
userDTO
.
getUsername
()))
{
return
ObjectRestResponse
.
createFailedResult
(
ResultCode
.
FAILED_CODE
,
"不能绑定本人为客户"
);
}
baseBiz
.
updateSelectiveById
(
appStaffUser
);
return
ObjectRestResponse
.
succ
();
}
}
}
xx-activity/xx-activity-server/src/main/java/com/xxfc/platform/activity/biz/ActivityPopularizeBiz.java
View file @
f47de4ad
...
@@ -150,7 +150,7 @@ public class ActivityPopularizeBiz extends BaseBiz<ActivityPopularizeMapper, Act
...
@@ -150,7 +150,7 @@ public class ActivityPopularizeBiz extends BaseBiz<ActivityPopularizeMapper, Act
activityPopularizeUser
.
setCurrentProgress
(
bigDecimal
);
activityPopularizeUser
.
setCurrentProgress
(
bigDecimal
);
popularizeUserBiz
.
updateSelectiveById
(
activityPopularizeUser
);
popularizeUserBiz
.
updateSelectiveById
(
activityPopularizeUser
);
//任务没有完成
//任务没有完成
if
(
SYS_TRUE
.
equals
(
activityPopularizeUser
.
getStatus
()))
{
if
(
!
SYS_TRUE
.
equals
(
activityPopularizeUser
.
getStatus
()))
{
// AwardDTO awardDTO = JSONUtil.toBean(activityPopularize.getValue(), AwardDTO.class);
// AwardDTO awardDTO = JSONUtil.toBean(activityPopularize.getValue(), AwardDTO.class);
//检查是否满足奖励
//检查是否满足奖励
if
(
relationBiz
.
selectList
(
new
ActivityPopularizeRelation
()
{{
if
(
relationBiz
.
selectList
(
new
ActivityPopularizeRelation
()
{{
...
...
xx-activity/xx-activity-server/src/main/java/com/xxfc/platform/activity/biz/ActivityPopupBiz.java
View file @
f47de4ad
...
@@ -6,7 +6,6 @@ import com.github.wxiaoqi.security.common.exception.BaseException;
...
@@ -6,7 +6,6 @@ import com.github.wxiaoqi.security.common.exception.BaseException;
import
com.xxfc.platform.activity.entity.ActivityPopup
;
import
com.xxfc.platform.activity.entity.ActivityPopup
;
import
com.xxfc.platform.activity.entity.ActivityPopupUser
;
import
com.xxfc.platform.activity.entity.ActivityPopupUser
;
import
com.xxfc.platform.activity.mapper.ActivityPopupMapper
;
import
com.xxfc.platform.activity.mapper.ActivityPopupMapper
;
import
com.xxfc.platform.activity.mapper.ActivityPopupUserMapper
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.beans.factory.annotation.Value
;
...
@@ -15,9 +14,7 @@ import org.springframework.transaction.annotation.Transactional;
...
@@ -15,9 +14,7 @@ import org.springframework.transaction.annotation.Transactional;
import
tk.mybatis.mapper.entity.Example
;
import
tk.mybatis.mapper.entity.Example
;
import
tk.mybatis.mapper.weekend.WeekendSqls
;
import
tk.mybatis.mapper.weekend.WeekendSqls
;
import
javax.swing.plaf.synth.SynthEditorPaneUI
;
import
java.math.BigInteger
;
import
java.math.BigInteger
;
import
java.time.Instant
;
import
java.util.*
;
import
java.util.*
;
import
java.util.stream.Collectors
;
import
java.util.stream.Collectors
;
...
@@ -49,7 +46,7 @@ public class ActivityPopupBiz extends BaseBiz<ActivityPopupMapper, ActivityPopup
...
@@ -49,7 +46,7 @@ public class ActivityPopupBiz extends BaseBiz<ActivityPopupMapper, ActivityPopup
public
List
<
ActivityPopup
>
getActivityPopup
(
AppUserDTO
userInfo
)
{
public
List
<
ActivityPopup
>
getActivityPopup
(
AppUserDTO
userInfo
)
{
if
(
userInfo
!=
null
)
{
if
(
userInfo
!=
null
)
{
List
<
ActivityPopup
>
activityPopups
=
getActivityPopupByTypes
(
loginTypes
);
List
<
ActivityPopup
>
activityPopups
=
getActivityPopupByTypes
(
loginTypes
);
if
(
activityPopups
==
null
||
activityPopups
.
size
()
==
0
)
{
if
(
activityPopups
==
null
||
activityPopups
.
isEmpty
()
)
{
return
activityPopups
;
return
activityPopups
;
}
}
/* List<Integer> collect = activityPopups.parallelStream().map(ActivityPopup::getId).collect(Collectors.toList());
/* List<Integer> collect = activityPopups.parallelStream().map(ActivityPopup::getId).collect(Collectors.toList());
...
@@ -90,17 +87,17 @@ public class ActivityPopupBiz extends BaseBiz<ActivityPopupMapper, ActivityPopup
...
@@ -90,17 +87,17 @@ public class ActivityPopupBiz extends BaseBiz<ActivityPopupMapper, ActivityPopup
/**
/**
* 根据不同的用户,可查询寻的类型.得到对应的弹窗
* 根据不同的用户,可查询寻的类型.得到对应的弹窗
*
*
* @param Types
* @param
popup
Types
* @return
* @return
*/
*/
private
List
<
ActivityPopup
>
getActivityPopupByTypes
(
String
Types
)
{
private
List
<
ActivityPopup
>
getActivityPopupByTypes
(
String
popup
Types
)
{
long
timeMillis
=
System
.
currentTimeMillis
();
long
timeMillis
=
System
.
currentTimeMillis
();
//获取有期限的弹窗timeType=1
//获取有期限的弹窗timeType=1
Example
exa
=
new
Example
(
ActivityPopup
.
class
);
Example
exa
=
new
Example
(
ActivityPopup
.
class
);
Example
.
Criteria
criteria
=
exa
.
createCriteria
();
Example
.
Criteria
criteria
=
exa
.
createCriteria
();
exa
.
orderBy
(
"sort"
).
asc
();
exa
.
orderBy
(
"sort"
).
asc
();
criteria
.
andEqualTo
(
"timeType"
,
1
);
criteria
.
andEqualTo
(
"timeType"
,
1
);
criteria
.
andIn
(
"type"
,
Arrays
.
asList
(
Types
.
split
(
","
)));
criteria
.
andIn
(
"type"
,
Arrays
.
asList
(
popup
Types
.
split
(
","
)));
criteria
.
andEqualTo
(
"status"
,
1
);
criteria
.
andEqualTo
(
"status"
,
1
);
criteria
.
andEqualTo
(
"isDel"
,
0
);
criteria
.
andEqualTo
(
"isDel"
,
0
);
criteria
.
andLessThanOrEqualTo
(
"startTime"
,
BigInteger
.
valueOf
(
timeMillis
));
criteria
.
andLessThanOrEqualTo
(
"startTime"
,
BigInteger
.
valueOf
(
timeMillis
));
...
@@ -113,7 +110,7 @@ public class ActivityPopupBiz extends BaseBiz<ActivityPopupMapper, ActivityPopup
...
@@ -113,7 +110,7 @@ public class ActivityPopupBiz extends BaseBiz<ActivityPopupMapper, ActivityPopup
.
where
(
.
where
(
WeekendSqls
.<
ActivityPopup
>
custom
()
WeekendSqls
.<
ActivityPopup
>
custom
()
.
andEqualTo
(
ActivityPopup:
:
getTimeType
,
0
)
.
andEqualTo
(
ActivityPopup:
:
getTimeType
,
0
)
.
andIn
(
ActivityPopup:
:
getType
,
Arrays
.
asList
(
Types
.
split
(
","
)))
.
andIn
(
ActivityPopup:
:
getType
,
Arrays
.
asList
(
popup
Types
.
split
(
","
)))
.
andEqualTo
(
ActivityPopup:
:
getStatus
,
1
)
.
andEqualTo
(
ActivityPopup:
:
getStatus
,
1
)
.
andEqualTo
(
ActivityPopup:
:
getIsDel
,
0
)
.
andEqualTo
(
ActivityPopup:
:
getIsDel
,
0
)
).
orderByAsc
(
"sort"
).
build
();
).
orderByAsc
(
"sort"
).
build
();
...
@@ -138,7 +135,7 @@ public class ActivityPopupBiz extends BaseBiz<ActivityPopupMapper, ActivityPopup
...
@@ -138,7 +135,7 @@ public class ActivityPopupBiz extends BaseBiz<ActivityPopupMapper, ActivityPopup
.
andEqualTo
(
ActivityPopupUser:
:
getUserId
,
userInfo
.
getUserid
())
.
andEqualTo
(
ActivityPopupUser:
:
getUserId
,
userInfo
.
getUserid
())
).
build
();
).
build
();
List
<
ActivityPopupUser
>
activityPopupUsers
=
activityPopupUserBiz
.
selectByExample
(
exa
);
List
<
ActivityPopupUser
>
activityPopupUsers
=
activityPopupUserBiz
.
selectByExample
(
exa
);
if
(
activityPopupUsers
==
null
||
activityPopupUsers
.
size
()
==
0
)
{
if
(
activityPopupUsers
==
null
||
activityPopupUsers
.
isEmpty
()
)
{
ActivityPopupUser
activityPopupUser
=
new
ActivityPopupUser
();
ActivityPopupUser
activityPopupUser
=
new
ActivityPopupUser
();
activityPopupUser
.
setPopupId
(
id
);
activityPopupUser
.
setPopupId
(
id
);
activityPopupUser
.
setUserId
(
userInfo
.
getUserid
());
activityPopupUser
.
setUserId
(
userInfo
.
getUserid
());
...
...
xx-app/xx-app-api/src/main/java/com/xxfc/platform/app/entity/Banner.java
View file @
f47de4ad
...
@@ -80,6 +80,10 @@ public class Banner {
...
@@ -80,6 +80,10 @@ public class Banner {
@ApiModelProperty
(
value
=
"跳转链接"
)
@ApiModelProperty
(
value
=
"跳转链接"
)
private
String
url
;
private
String
url
;
@Column
(
name
=
"ios_url"
)
@ApiModelProperty
(
value
=
"ios跳转地址"
)
private
String
iosUrl
;
/**
/**
* 是否删除,0否,1是
* 是否删除,0否,1是
*/
*/
...
...
xx-app/xx-app-api/src/main/java/com/xxfc/platform/app/entity/vo/BannerVo.java
View file @
f47de4ad
...
@@ -24,6 +24,8 @@ public class BannerVo {
...
@@ -24,6 +24,8 @@ public class BannerVo {
*/
*/
private
String
url
;
private
String
url
;
private
String
iosUrl
;
/**
/**
* seo html标签优化
* seo html标签优化
*/
*/
...
...
xx-app/xx-app-server/src/main/java/com/xxfc/platform/app/biz/BannerBiz.java
View file @
f47de4ad
...
@@ -31,6 +31,7 @@ public class BannerBiz extends BaseBiz<BannerMapper,Banner> {
...
@@ -31,6 +31,7 @@ public class BannerBiz extends BaseBiz<BannerMapper,Banner> {
bannerVo
.
setTitle
(
banner
.
getTitle
());
bannerVo
.
setTitle
(
banner
.
getTitle
());
bannerVo
.
setId
(
banner
.
getId
());
bannerVo
.
setId
(
banner
.
getId
());
bannerVo
.
setAlt
(
banner
.
getAlt
());
bannerVo
.
setAlt
(
banner
.
getAlt
());
bannerVo
.
setIosUrl
(
banner
.
getIosUrl
());
bannerVos
.
add
(
bannerVo
);
bannerVos
.
add
(
bannerVo
);
});
});
return
bannerVos
;
return
bannerVos
;
...
...
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