Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-api-boot-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
lanbaoming
jiedao-api-boot-master
Commits
01cb5194
Commit
01cb5194
authored
Jul 29, 2024
by
zhaobiyan
Browse files
Options
Browse Files
Download
Plain Diff
获取城市信息接口
parents
c4f261b2
1cd555ef
Changes
25
Show whitespace changes
Inline
Side-by-side
Showing
25 changed files
with
402 additions
and
10 deletions
+402
-10
CurrencyBaseVO.java
...va/cn/iocoder/yudao/module/ecw/api/vo/CurrencyBaseVO.java
+1
-2
CurrencyCreateReqVO.java
...ecw/controller/admin/currency/vo/CurrencyCreateReqVO.java
+1
-0
CurrencyRespVO.java
...dule/ecw/controller/admin/currency/vo/CurrencyRespVO.java
+1
-0
CurrencyUpdateReqVO.java
...ecw/controller/admin/currency/vo/CurrencyUpdateReqVO.java
+1
-0
RegionController.java
.../module/ecw/controller/admin/region/RegionController.java
+9
-0
RegionMapper.java
...coder/yudao/module/ecw/dal/mysql/region/RegionMapper.java
+1
-0
RegionService.java
...ocoder/yudao/module/ecw/service/region/RegionService.java
+1
-1
RegionServiceImpl.java
...er/yudao/module/ecw/service/region/RegionServiceImpl.java
+5
-0
RegionMapper.xml
...cw-impl/src/main/resources/mapper/region/RegionMapper.xml
+9
-0
MemberUserVo.java
...iocoder/yudao/module/member/api/user/vo/MemberUserVo.java
+13
-0
MemberUserScoreQueryVO.java
...ule/member/vo/memberUserScore/MemberUserScoreQueryVO.java
+2
-0
MemberUserScoreMapper.xml
.../src/main/resources/mapper/user/MemberUserScoreMapper.xml
+7
-1
pom.xml
yudao-module-reward/yudao-module-reward-impl/pom.xml
+12
-0
RedeemRewardController.java
...eward/controller/admin/redeem/RedeemRewardController.java
+16
-1
RewardRedeemMapper.java
...ao/module/reward/dal/mysql/redeem/RewardRedeemMapper.java
+8
-0
RewardRedeemService.java
...dao/module/reward/service/redeem/RewardRedeemService.java
+5
-0
RewardRedeemServiceImpl.java
...module/reward/service/redeem/RewardRedeemServiceImpl.java
+22
-4
RewardRedeemBaseVO.java
...der/yudao/module/reward/vo/reward/RewardRedeemBaseVO.java
+117
-0
RewardRedeemPageReqVO.java
.../yudao/module/reward/vo/reward/RewardRedeemPageReqVO.java
+35
-0
RewardRedeemPageRespVO.java
...yudao/module/reward/vo/reward/RewardRedeemPageRespVO.java
+30
-0
RewardRedeemMapper.xml
...ard-impl/src/main/resources/mapper/RewardRedeemMapper.xml
+102
-0
DictDataBaseVO.java
...cn/iocoder/yudao/module/system/api/vo/DictDataBaseVO.java
+1
-1
DictDataCreateReqVO.java
...em/controller/admin/dict/vo/data/DictDataCreateReqVO.java
+1
-0
DictDataRespVO.java
.../system/controller/admin/dict/vo/data/DictDataRespVO.java
+1
-0
DictDataUpdateReqVO.java
...em/controller/admin/dict/vo/data/DictDataUpdateReqVO.java
+1
-0
No files found.
yudao-module-ecw/yudao-module-ecw-
impl/src/main/java/cn/iocoder/yudao/module/ecw/controller/admin/currency
/vo/CurrencyBaseVO.java
→
yudao-module-ecw/yudao-module-ecw-
api/src/main/java/cn/iocoder/yudao/module/ecw/api
/vo/CurrencyBaseVO.java
View file @
01cb5194
package
cn
.
iocoder
.
yudao
.
module
.
ecw
.
controller
.
admin
.
currency
.
vo
;
package
cn
.
iocoder
.
yudao
.
module
.
ecw
.
api
.
vo
;
import
lombok.*
;
import
lombok.*
;
import
java.math.BigDecimal
;
import
java.util.*
;
import
java.util.*
;
import
io.swagger.annotations.*
;
import
io.swagger.annotations.*
;
...
...
yudao-module-ecw/yudao-module-ecw-impl/src/main/java/cn/iocoder/yudao/module/ecw/controller/admin/currency/vo/CurrencyCreateReqVO.java
View file @
01cb5194
package
cn
.
iocoder
.
yudao
.
module
.
ecw
.
controller
.
admin
.
currency
.
vo
;
package
cn
.
iocoder
.
yudao
.
module
.
ecw
.
controller
.
admin
.
currency
.
vo
;
import
cn.iocoder.yudao.module.ecw.api.vo.CurrencyBaseVO
;
import
lombok.*
;
import
lombok.*
;
import
io.swagger.annotations.*
;
import
io.swagger.annotations.*
;
...
...
yudao-module-ecw/yudao-module-ecw-impl/src/main/java/cn/iocoder/yudao/module/ecw/controller/admin/currency/vo/CurrencyRespVO.java
View file @
01cb5194
package
cn
.
iocoder
.
yudao
.
module
.
ecw
.
controller
.
admin
.
currency
.
vo
;
package
cn
.
iocoder
.
yudao
.
module
.
ecw
.
controller
.
admin
.
currency
.
vo
;
import
cn.iocoder.yudao.module.ecw.api.vo.CurrencyBaseVO
;
import
lombok.*
;
import
lombok.*
;
import
io.swagger.annotations.*
;
import
io.swagger.annotations.*
;
...
...
yudao-module-ecw/yudao-module-ecw-impl/src/main/java/cn/iocoder/yudao/module/ecw/controller/admin/currency/vo/CurrencyUpdateReqVO.java
View file @
01cb5194
package
cn
.
iocoder
.
yudao
.
module
.
ecw
.
controller
.
admin
.
currency
.
vo
;
package
cn
.
iocoder
.
yudao
.
module
.
ecw
.
controller
.
admin
.
currency
.
vo
;
import
cn.iocoder.yudao.module.ecw.api.vo.CurrencyBaseVO
;
import
lombok.*
;
import
lombok.*
;
import
io.swagger.annotations.*
;
import
io.swagger.annotations.*
;
import
javax.validation.constraints.*
;
import
javax.validation.constraints.*
;
...
...
yudao-module-ecw/yudao-module-ecw-impl/src/main/java/cn/iocoder/yudao/module/ecw/controller/admin/region/RegionController.java
View file @
01cb5194
...
@@ -208,4 +208,13 @@ public class RegionController {
...
@@ -208,4 +208,13 @@ public class RegionController {
return
pNode
;
return
pNode
;
}
}
@GetMapping
(
"/getCityListByParent"
)
@ApiOperation
(
"根据父节点获取城市列表"
)
public
CommonResult
<
List
<
RegionRespVO
>>
getCityListByParent
(
@RequestParam
(
"id"
)
Long
parentId
)
{
if
(
parentId
==
null
)
{
return
CommonResult
.
success
(
Collections
.
emptyList
());
}
List
<
RegionDO
>
cityList
=
regionService
.
getCityListByParentId
(
parentId
);
return
success
(
RegionConvert
.
INSTANCE
.
convertList
(
cityList
));
}
}
}
yudao-module-ecw/yudao-module-ecw-impl/src/main/java/cn/iocoder/yudao/module/ecw/dal/mysql/region/RegionMapper.java
View file @
01cb5194
...
@@ -102,4 +102,5 @@ public interface RegionMapper extends BaseMapperX<RegionDO> {
...
@@ -102,4 +102,5 @@ public interface RegionMapper extends BaseMapperX<RegionDO> {
List
<
RegionDO
>
getImportExportCountryList
();
List
<
RegionDO
>
getImportExportCountryList
();
List
<
RegionDO
>
getCityListByParentId
(
@Param
(
"parentId"
)
Long
parentId
);
}
}
yudao-module-ecw/yudao-module-ecw-impl/src/main/java/cn/iocoder/yudao/module/ecw/service/region/RegionService.java
View file @
01cb5194
...
@@ -90,5 +90,5 @@ public interface RegionService {
...
@@ -90,5 +90,5 @@ public interface RegionService {
List
<
RegionDO
>
getImportExportCountryList
();
List
<
RegionDO
>
getImportExportCountryList
();
List
<
RegionDO
>
getCityListByParentId
(
Long
parentId
);
}
}
yudao-module-ecw/yudao-module-ecw-impl/src/main/java/cn/iocoder/yudao/module/ecw/service/region/RegionServiceImpl.java
View file @
01cb5194
...
@@ -144,4 +144,9 @@ public class RegionServiceImpl implements RegionService {
...
@@ -144,4 +144,9 @@ public class RegionServiceImpl implements RegionService {
public
List
<
RegionDO
>
getImportExportCountryList
()
{
public
List
<
RegionDO
>
getImportExportCountryList
()
{
return
regionMapper
.
getImportExportCountryList
();
return
regionMapper
.
getImportExportCountryList
();
}
}
@Override
public
List
<
RegionDO
>
getCityListByParentId
(
Long
parentId
)
{
return
regionMapper
.
getCityListByParentId
(
parentId
);
}
}
}
yudao-module-ecw/yudao-module-ecw-impl/src/main/resources/mapper/region/RegionMapper.xml
View file @
01cb5194
...
@@ -68,4 +68,13 @@
...
@@ -68,4 +68,13 @@
and b.status = 0
and b.status = 0
and b.type in (1, 3)
and b.type in (1, 3)
</select>
</select>
<select
id=
"getCityListByParentId"
resultType=
"cn.iocoder.yudao.module.ecw.dal.dataobject.region.RegionDO"
>
select b.* from ecw_region a
left join ecw_region b on a.id = b.parent_id
where a.parent_id = #{parentId}
AND a.deleted = 0
and b.deleted = 0
and a.status = 0
and b.status = 0
</select>
</mapper>
</mapper>
yudao-module-member/yudao-module-member-api/src/main/java/cn/iocoder/yudao/module/member/api/user/vo/MemberUserVo.java
0 → 100644
View file @
01cb5194
package
cn
.
iocoder
.
yudao
.
module
.
member
.
api
.
user
.
vo
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
@Data
@ApiModel
(
"管理后台 - 会员信息 VO"
)
public
class
MemberUserVo
{
@ApiModelProperty
(
value
=
"会员信息"
)
private
Long
id
;
private
String
name
;
}
yudao-module-member/yudao-module-member-impl/src/main/java/cn/iocoder/yudao/module/member/vo/memberUserScore/MemberUserScoreQueryVO.java
View file @
01cb5194
...
@@ -17,6 +17,8 @@ public class MemberUserScoreQueryVO extends PageParam {
...
@@ -17,6 +17,8 @@ public class MemberUserScoreQueryVO extends PageParam {
private
String
key
;
private
String
key
;
@ApiModelProperty
(
value
=
"国家"
)
@ApiModelProperty
(
value
=
"国家"
)
private
Integer
country
;
private
Integer
country
;
@ApiModelProperty
(
value
=
"城市"
)
private
Integer
city
;
@ApiModelProperty
(
value
=
"当前积分"
)
@ApiModelProperty
(
value
=
"当前积分"
)
private
Integer
holdScore
;
private
Integer
holdScore
;
@ApiModelProperty
(
value
=
"当前积分操作"
)
@ApiModelProperty
(
value
=
"当前积分操作"
)
...
...
yudao-module-member/yudao-module-member-impl/src/main/resources/mapper/user/MemberUserScoreMapper.xml
View file @
01cb5194
...
@@ -13,10 +13,13 @@
...
@@ -13,10 +13,13 @@
ifnull(mus.hold_score, 0) as holdScore,
ifnull(mus.hold_score, 0) as holdScore,
ifnull(mus.used_score, 0) as usedScore,
ifnull(mus.used_score, 0) as usedScore,
ifnull(mus.expired_score, 0) as expiredScore,
ifnull(mus.expired_score, 0) as expiredScore,
mu.create_time as createTime
mu.create_time as createTime,
rea.title_zh as cityNameZh,
rea.title_en as cityNameEn
from member_user mu
from member_user mu
left join member_user_score mus on mus.member_id = mu.id
left join member_user_score mus on mus.member_id = mu.id
left join ecw_region re on re.id = mu.country
left join ecw_region re on re.id = mu.country
left join ecw_region rea on re.id = mu.city
where 1 = 1
where 1 = 1
<include
refid=
"scoreCondition"
/>
<include
refid=
"scoreCondition"
/>
order by mu.id
order by mu.id
...
@@ -43,6 +46,9 @@
...
@@ -43,6 +46,9 @@
<if
test=
"query.country != null"
>
<if
test=
"query.country != null"
>
and mu.country = #{query.country}
and mu.country = #{query.country}
</if>
</if>
<if
test=
"query.city != null"
>
and mu.city = #{query.city}
</if>
<if
test=
"query.startTime != null "
>
<if
test=
"query.startTime != null "
>
and mu.create_time
>
= #{query.startTime}
and mu.create_time
>
= #{query.startTime}
</if>
</if>
...
...
yudao-module-reward/yudao-module-reward-impl/pom.xml
View file @
01cb5194
...
@@ -36,6 +36,18 @@
...
@@ -36,6 +36,18 @@
<artifactId>
yudao-module-member-api
</artifactId>
<artifactId>
yudao-module-member-api
</artifactId>
<version>
${revision}
</version>
<version>
${revision}
</version>
</dependency>
</dependency>
<dependency>
<groupId>
cn.iocoder.boot
</groupId>
<artifactId>
yudao-module-system-api
</artifactId>
<version>
1.6.1-snapshot
</version>
<scope>
compile
</scope>
</dependency>
<dependency>
<groupId>
cn.iocoder.boot
</groupId>
<artifactId>
yudao-module-ecw-api
</artifactId>
<version>
1.6.1-snapshot
</version>
<scope>
compile
</scope>
</dependency>
</dependencies>
</dependencies>
</project>
</project>
\ No newline at end of file
yudao-module-reward/yudao-module-reward-impl/src/main/java/cn/iocoder/yudao/module/reward/controller/admin/re
ward
/RedeemRewardController.java
→
yudao-module-reward/yudao-module-reward-impl/src/main/java/cn/iocoder/yudao/module/reward/controller/admin/re
deem
/RedeemRewardController.java
View file @
01cb5194
package
cn
.
iocoder
.
yudao
.
module
.
reward
.
controller
.
admin
.
re
ward
;
package
cn
.
iocoder
.
yudao
.
module
.
reward
.
controller
.
admin
.
re
deem
;
import
cn.iocoder.yudao.framework.common.pojo.CommonResult
;
import
cn.iocoder.yudao.framework.common.pojo.CommonResult
;
import
cn.iocoder.yudao.framework.common.pojo.PageResult
;
import
cn.iocoder.yudao.module.reward.api.reward.RedeemRewardApi
;
import
cn.iocoder.yudao.module.reward.api.reward.RedeemRewardApi
;
import
cn.iocoder.yudao.module.reward.api.reward.dto.RedeemRewardReqVO
;
import
cn.iocoder.yudao.module.reward.api.reward.dto.RedeemRewardReqVO
;
import
cn.iocoder.yudao.module.reward.api.reward.dto.RedeemRewardRespDTO
;
import
cn.iocoder.yudao.module.reward.api.reward.dto.RedeemRewardRespDTO
;
import
cn.iocoder.yudao.module.reward.service.redeem.RewardRedeemService
;
import
cn.iocoder.yudao.module.reward.vo.reward.RewardRedeemPageReqVO
;
import
cn.iocoder.yudao.module.reward.vo.reward.RewardRedeemPageRespVO
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.validation.annotation.Validated
;
import
org.springframework.validation.annotation.Validated
;
...
@@ -28,6 +33,16 @@ public class RedeemRewardController {
...
@@ -28,6 +33,16 @@ public class RedeemRewardController {
@Resource
@Resource
private
RedeemRewardApi
redeemRewardApi
;
private
RedeemRewardApi
redeemRewardApi
;
@Resource
private
RewardRedeemService
rewardRedeemService
;
@PostMapping
(
"record/page"
)
@ApiOperation
(
"兑换记录列表"
)
public
CommonResult
<
PageResult
<
RewardRedeemPageRespVO
>>
pageInfo
(
@Valid
@RequestBody
RewardRedeemPageReqVO
reqVO
)
{
return
success
(
rewardRedeemService
.
pageInfo
(
reqVO
));
}
@PostMapping
(
"/single"
)
@PostMapping
(
"/single"
)
@ApiOperation
(
"兑换礼品"
)
@ApiOperation
(
"兑换礼品"
)
//@PreAuthorize("@ss.hasPermission('reward::redeem')")
//@PreAuthorize("@ss.hasPermission('reward::redeem')")
...
...
yudao-module-reward/yudao-module-reward-impl/src/main/java/cn/iocoder/yudao/module/reward/dal/mysql/redeem/RewardRedeemMapper.java
View file @
01cb5194
...
@@ -2,7 +2,12 @@ package cn.iocoder.yudao.module.reward.dal.mysql.redeem;
...
@@ -2,7 +2,12 @@ package cn.iocoder.yudao.module.reward.dal.mysql.redeem;
import
cn.iocoder.yudao.framework.mybatis.core.mapper.AbstractMapper
;
import
cn.iocoder.yudao.framework.mybatis.core.mapper.AbstractMapper
;
import
cn.iocoder.yudao.module.reward.dal.dataobject.redeem.RewardRedeemDO
;
import
cn.iocoder.yudao.module.reward.dal.dataobject.redeem.RewardRedeemDO
;
import
cn.iocoder.yudao.module.reward.vo.reward.RewardRedeemPageReqVO
;
import
cn.iocoder.yudao.module.reward.vo.reward.RewardRedeemPageRespVO
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
import
java.util.List
;
/**
/**
* 礼品 Mapper
* 礼品 Mapper
...
@@ -11,4 +16,7 @@ import org.apache.ibatis.annotations.Mapper;
...
@@ -11,4 +16,7 @@ import org.apache.ibatis.annotations.Mapper;
@Mapper
@Mapper
public
interface
RewardRedeemMapper
extends
AbstractMapper
<
RewardRedeemDO
>
{
public
interface
RewardRedeemMapper
extends
AbstractMapper
<
RewardRedeemDO
>
{
List
<
RewardRedeemPageRespVO
>
pageInfo
(
@Param
(
"start"
)
int
start
,
@Param
(
"size"
)
int
size
,
@Param
(
"req"
)
RewardRedeemPageReqVO
reqVO
);
int
pageCount
(
@Param
(
"req"
)
RewardRedeemPageReqVO
reqVO
);
}
}
yudao-module-reward/yudao-module-reward-impl/src/main/java/cn/iocoder/yudao/module/reward/service/redeem/RewardRedeemService.java
View file @
01cb5194
package
cn
.
iocoder
.
yudao
.
module
.
reward
.
service
.
redeem
;
package
cn
.
iocoder
.
yudao
.
module
.
reward
.
service
.
redeem
;
import
cn.iocoder.yudao.framework.common.pojo.PageResult
;
import
cn.iocoder.yudao.framework.mybatis.core.service.IService
;
import
cn.iocoder.yudao.framework.mybatis.core.service.IService
;
import
cn.iocoder.yudao.module.reward.dal.dataobject.redeem.RewardRedeemDO
;
import
cn.iocoder.yudao.module.reward.dal.dataobject.redeem.RewardRedeemDO
;
import
cn.iocoder.yudao.module.reward.vo.reward.RewardRedeemPageReqVO
;
import
cn.iocoder.yudao.module.reward.vo.reward.RewardRedeemPageRespVO
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
/**
/**
* 礼品兑换 Service 接口
* 礼品兑换 Service 接口
...
@@ -10,4 +14,5 @@ import cn.iocoder.yudao.module.reward.dal.dataobject.redeem.RewardRedeemDO;
...
@@ -10,4 +14,5 @@ import cn.iocoder.yudao.module.reward.dal.dataobject.redeem.RewardRedeemDO;
*/
*/
public
interface
RewardRedeemService
extends
IService
<
RewardRedeemDO
>
{
public
interface
RewardRedeemService
extends
IService
<
RewardRedeemDO
>
{
PageResult
<
RewardRedeemPageRespVO
>
pageInfo
(
RewardRedeemPageReqVO
reqVO
);
}
}
yudao-module-reward/yudao-module-reward-impl/src/main/java/cn/iocoder/yudao/module/reward/service/redeem/RewardRedeemServiceImpl.java
View file @
01cb5194
package
cn
.
iocoder
.
yudao
.
module
.
reward
.
service
.
redeem
;
package
cn
.
iocoder
.
yudao
.
module
.
reward
.
service
.
redeem
;
import
cn.iocoder.yudao.framework.common.pojo.PageResult
;
import
cn.iocoder.yudao.framework.mybatis.core.service.AbstractService
;
import
cn.iocoder.yudao.framework.mybatis.core.service.AbstractService
;
import
cn.iocoder.yudao.framework.mybatis.core.service.IService
;
import
cn.iocoder.yudao.framework.mybatis.core.util.MyBatisUtils
;
import
cn.iocoder.yudao.framework.mybatis.core.vo.PageVO
;
import
cn.iocoder.yudao.module.reward.dal.dataobject.redeem.RewardRedeemDO
;
import
cn.iocoder.yudao.module.reward.dal.dataobject.redeem.RewardRedeemDO
;
import
cn.iocoder.yudao.module.reward.dal.dataobject.reward.RewardDO
;
import
cn.iocoder.yudao.module.reward.dal.mysql.redeem.RewardRedeemMapper
;
import
cn.iocoder.yudao.module.reward.dal.mysql.redeem.RewardRedeemMapper
;
import
cn.iocoder.yudao.module.reward.dal.mysql.reward.RewardMapper
;
import
cn.iocoder.yudao.module.reward.vo.reward.RewardRedeemPageReqVO
;
import
cn.iocoder.yudao.module.reward.service.reward.RewardService
;
import
cn.iocoder.yudao.module.reward.vo.reward.RewardRedeemPageRespVO
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.core.toolkit.Wrappers
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
javax.annotation.Resource
;
import
java.util.List
;
/**
/**
* 礼品兑换 Service
* 礼品兑换 Service
*
*
...
@@ -18,5 +26,15 @@ import org.springframework.stereotype.Service;
...
@@ -18,5 +26,15 @@ import org.springframework.stereotype.Service;
@Service
@Service
@Slf4j
@Slf4j
public
class
RewardRedeemServiceImpl
extends
AbstractService
<
RewardRedeemMapper
,
RewardRedeemDO
>
implements
RewardRedeemService
{
public
class
RewardRedeemServiceImpl
extends
AbstractService
<
RewardRedeemMapper
,
RewardRedeemDO
>
implements
RewardRedeemService
{
@Resource
private
RewardRedeemMapper
rewardRedeemMapper
;
@Override
public
PageResult
<
RewardRedeemPageRespVO
>
pageInfo
(
RewardRedeemPageReqVO
reqVO
)
{
int
start
=
(
reqVO
.
getPageNo
()
-
1
)
*
reqVO
.
getPageSize
();
int
size
=
reqVO
.
getPageSize
();
List
<
RewardRedeemPageRespVO
>
result
=
rewardRedeemMapper
.
pageInfo
(
start
,
size
,
reqVO
);
int
total
=
rewardRedeemMapper
.
pageCount
(
reqVO
);
return
new
PageResult
<>(
result
,
total
,
reqVO
.
getPageSize
(),
reqVO
.
getPageNo
(),
(
total
+
reqVO
.
getPageSize
()
-
1
)
/
reqVO
.
getPageSize
());
}
}
}
yudao-module-reward/yudao-module-reward-impl/src/main/java/cn/iocoder/yudao/module/reward/vo/reward/RewardRedeemBaseVO.java
0 → 100644
View file @
01cb5194
package
cn
.
iocoder
.
yudao
.
module
.
reward
.
vo
.
reward
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
java.math.BigDecimal
;
import
java.util.Date
;
@Data
public
class
RewardRedeemBaseVO
{
@ApiModelProperty
(
value
=
"id"
)
private
Long
id
;
/**
* 会员id
*/
@ApiModelProperty
(
value
=
"会员id"
)
private
Long
memberId
;
/**
* 礼品id
*/
@ApiModelProperty
(
value
=
"礼品id"
)
private
Long
rewardId
;
/**
* 兑换状态
*/
@ApiModelProperty
(
value
=
"兑换状态"
)
private
Integer
status
;
/**
* 兑换数量
*/
@ApiModelProperty
(
value
=
"兑换数量"
)
private
Integer
rewardCount
;
/**
* 兑换方式
*/
@ApiModelProperty
(
value
=
"兑换方式"
)
private
Integer
redeemType
;
/**
* 兑换入口
*/
@ApiModelProperty
(
value
=
"兑换入口"
)
private
Integer
entrance
;
/**
* 费用
*/
@ApiModelProperty
(
value
=
"费用"
)
private
BigDecimal
expenses
;
/**
* 币种
*/
@ApiModelProperty
(
value
=
"币种"
)
private
Integer
currency
;
/**
* 收件人姓名
*/
@ApiModelProperty
(
value
=
"收件人姓名"
)
private
String
recipientName
;
/**
* 收件人电话
*/
@ApiModelProperty
(
value
=
"收件人电话"
)
private
String
recipientPhoneNum
;
/**
* 收件人地址
*/
@ApiModelProperty
(
value
=
"收件人地址"
)
private
String
recipientAddress
;
/**
* 兑换人
*/
@ApiModelProperty
(
value
=
"兑换人"
)
private
String
redeemer
;
/**
* 兑换时间
*/
@ApiModelProperty
(
value
=
"兑换时间"
)
private
Date
redemptionTime
;
/**
* 快递公司
*/
@ApiModelProperty
(
value
=
"快递公司"
)
private
String
courierCompany
;
/**
* 快递单号
*/
@ApiModelProperty
(
value
=
"快递单号"
)
private
String
expressNo
;
/**
* 快递日期
*/
@ApiModelProperty
(
value
=
"快递日期"
)
private
String
expressDate
;
/**
* 快递寄出人
*/
@ApiModelProperty
(
value
=
"快递寄出人"
)
private
String
expressSender
;
/**
* 上传附件
*/
@ApiModelProperty
(
value
=
"上传附件"
)
private
String
annex
;
/**
* 备注
*/
@ApiModelProperty
(
value
=
"备注"
)
private
String
remark
;
@ApiModelProperty
(
value
=
"创建人id"
)
private
String
creator
;
@ApiModelProperty
(
value
=
"创建时间"
)
private
Date
createTime
;
@ApiModelProperty
(
value
=
"更新人id"
)
private
String
updater
;
@ApiModelProperty
(
value
=
"更新时间"
)
private
String
updateTime
;
@ApiModelProperty
(
value
=
"是否删除"
)
private
Boolean
deleted
;
}
yudao-module-reward/yudao-module-reward-impl/src/main/java/cn/iocoder/yudao/module/reward/vo/reward/RewardRedeemPageReqVO.java
0 → 100644
View file @
01cb5194
package
cn
.
iocoder
.
yudao
.
module
.
reward
.
vo
.
reward
;
import
cn.iocoder.yudao.framework.common.pojo.PageParam
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
java.util.Date
;
@Data
@ApiModel
(
"管理后台 - 礼品兑换记录查询 VO"
)
public
class
RewardRedeemPageReqVO
extends
PageParam
{
@ApiModelProperty
(
value
=
"礼品名称"
)
private
String
rewardTitle
;
@ApiModelProperty
(
value
=
"会员名称"
)
private
String
memberName
;
@ApiModelProperty
(
value
=
"领取方式"
)
private
Integer
redeemType
;
@ApiModelProperty
(
value
=
"状态"
)
private
Integer
status
;
@ApiModelProperty
(
value
=
"数量"
)
private
Integer
rewardCount
;
@ApiModelProperty
(
value
=
"数量操作"
)
private
Integer
rewardCountOperate
;
@ApiModelProperty
(
value
=
"兑换开始时间"
)
private
Date
startTime
;
@ApiModelProperty
(
value
=
"兑换结束时间"
)
private
Date
endTime
;
@ApiModelProperty
(
value
=
"礼品id"
)
private
String
rewardCode
;
@ApiModelProperty
(
value
=
"兑换入口"
)
private
Integer
entrance
;
@ApiModelProperty
(
value
=
"兑换网点"
)
private
Integer
nodeId
;
}
yudao-module-reward/yudao-module-reward-impl/src/main/java/cn/iocoder/yudao/module/reward/vo/reward/RewardRedeemPageRespVO.java
0 → 100644
View file @
01cb5194
package
cn
.
iocoder
.
yudao
.
module
.
reward
.
vo
.
reward
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
@Data
@ApiModel
(
"管理后台 - 礼品兑换记录分页结果 VO"
)
public
class
RewardRedeemPageRespVO
extends
RewardRedeemBaseVO
{
@ApiModelProperty
(
value
=
"会员信息"
)
private
String
memberName
;
@ApiModelProperty
(
value
=
"礼品ID"
)
private
String
rewardCode
;
@ApiModelProperty
(
value
=
"礼品名称(中文)"
)
private
String
rewardTitleZh
;
@ApiModelProperty
(
value
=
"礼品名称(英文)"
)
private
String
rewardTitleEn
;
@ApiModelProperty
(
value
=
"礼品名称(法文)"
)
private
String
rewardTitleFr
;
@ApiModelProperty
(
value
=
"兑换网点(中文)"
)
private
String
nodeTitleZh
;
@ApiModelProperty
(
value
=
"兑换网点(英文)"
)
private
String
nodeTitleEn
;
@ApiModelProperty
(
value
=
"兑换积分"
)
private
Integer
totalCount
;
@ApiModelProperty
(
value
=
"创建人时间"
)
private
String
creatorName
;
@ApiModelProperty
(
value
=
"更新人时间"
)
private
String
updaterName
;
}
yudao-module-reward/yudao-module-reward-impl/src/main/resources/mapper/RewardRedeemMapper.xml
View file @
01cb5194
...
@@ -9,4 +9,106 @@
...
@@ -9,4 +9,106 @@
文档可见:https://www.iocoder.cn/MyBatis/x-plugins/
文档可见:https://www.iocoder.cn/MyBatis/x-plugins/
-->
-->
<select
id=
"pageInfo"
resultType=
"cn.iocoder.yudao.module.reward.vo.reward.RewardRedeemPageRespVO"
>
select
err.id ,
err.member_id as memberId,
err.reward_id as rewardId,
err.status,
err.reward_count as rewardCount,
err.redeem_type as redeemType,
err.entrance,
err.expenses,
err.currency,
err.recipient_name as recipientName,
err.recipient_phone_num as recipientPhoneNum,
err.recipient_address as recipientAddress,
err.redeemer,
err.redemption_time as redemptionTime,
err.courier_company as courierCompany,
err.express_no as expressNo,
err.express_date as expressDate,
err.express_sender as expressSender,
err.annex as annex,
err.remark as remark,
err.create_time as createTime,
err.update_time as updateTime,
err.creator as creator,
err.updater as updater,
err.deleted as deleted,
mu.nickname as memberName,
er.code as rewardCode,
er.title_zh as rewardTitleZh,
er.title_en as rewardTitleEn,
er.title_fr as rewardTitleFr,
en.title_zh as nodeTitleZh,
en.title_en as nodeTitleEn,
er.points_require*err.reward_count as totalCount,
suc.username as creatorName,
suu.username as updaterName,
(select username from system_user where id = er.updater) as updaterName
from ecw_reward_redeem err
left join ecw_reward er on err.reward_id = er.id
left join member_user mu on mu.id = err.member_id
left join ecw_node en on er.node_id = en.id
left join system_user suc on suc.id = er.creator
left join system_user suu on suu.id = er.updater
where 1=1
<include
refid=
"pageCondition"
/>
order by er.create_time desc
limit #{start}, #{size}
</select>
<select
id=
"pageCount"
resultType=
"java.lang.Integer"
>
select count(*)
from ecw_reward_redeem err
left join ecw_reward er on err.reward_id = er.id
left join member_user mu on mu.id = err.member_id
left join ecw_node en on er.node_id = en.id
left join system_user suc on suc.id = er.creator
left join system_user suu on suu.id = er.updater
where 1=1
<include
refid=
"pageCondition"
/>
</select>
<sql
id=
"pageCondition"
>
<if
test=
"req.rewardTitle != null and req.rewardTitle !=''"
>
and (er.title_zh like '%${req.rewardTitle}%' or er.title_en like '%${req.rewardTitle}%' or er.title_fr like '%${req.rewardTitle}%')
</if>
<if
test=
"req.memberName != null and req.memberName !=''"
>
and mu.nickname like '%${req.memberName}%'
</if>
<if
test=
"req.rewardCode != null and req.rewardCode !=''"
>
and er.code like '%${req.rewardCode}%'
</if>
<if
test=
"req.redeemType != null"
>
and err.redeem_type = #{req.redeemType}
</if>
<if
test=
"req.status != null"
>
and err.status = #{req.status}
</if>
<if
test=
"req.entrance != null"
>
and err.entrance = #{req.entrance}
</if>
<if
test=
"req.nodeId != null"
>
and er.node_id = #{req.nodeId}
</if>
<if
test=
"req.rewardCount != null and req.rewardCountOperate != null"
>
<!--1:大于 2:等于 3:小于-->
<if
test=
"req.rewardCountOperate == 1"
>
and err.reward_count
>
#{req.rewardCount}
</if>
<if
test=
"req.rewardCountOperate == 2"
>
and err.reward_count = #{req.rewardCount}
</if>
<if
test=
"req.rewardCountOperate == 3"
>
and err.reward_count
<
#{req.rewardCount}
</if>
</if>
<if
test=
"req.startTime != null "
>
and err.create_time
>
= #{req.startTime}
</if>
<if
test=
"req.endTime != null "
>
and err.create_time
<
= #{req.endTime}
</if>
</sql>
</mapper>
</mapper>
yudao-module-system/yudao-module-system-
impl/src/main/java/cn/iocoder/yudao/module/system/controller/admin/dict/vo/data
/DictDataBaseVO.java
→
yudao-module-system/yudao-module-system-
api/src/main/java/cn/iocoder/yudao/module/system/api/vo
/DictDataBaseVO.java
View file @
01cb5194
package
cn
.
iocoder
.
yudao
.
module
.
system
.
controller
.
admin
.
dict
.
vo
.
data
;
package
cn
.
iocoder
.
yudao
.
module
.
system
.
api
.
vo
;
import
io.swagger.annotations.ApiModelProperty
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
lombok.Data
;
...
...
yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/controller/admin/dict/vo/data/DictDataCreateReqVO.java
View file @
01cb5194
package
cn
.
iocoder
.
yudao
.
module
.
system
.
controller
.
admin
.
dict
.
vo
.
data
;
package
cn
.
iocoder
.
yudao
.
module
.
system
.
controller
.
admin
.
dict
.
vo
.
data
;
import
cn.iocoder.yudao.module.system.api.vo.DictDataBaseVO
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModel
;
import
lombok.Data
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
lombok.EqualsAndHashCode
;
...
...
yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/controller/admin/dict/vo/data/DictDataRespVO.java
View file @
01cb5194
package
cn
.
iocoder
.
yudao
.
module
.
system
.
controller
.
admin
.
dict
.
vo
.
data
;
package
cn
.
iocoder
.
yudao
.
module
.
system
.
controller
.
admin
.
dict
.
vo
.
data
;
import
cn.iocoder.yudao.module.system.api.vo.DictDataBaseVO
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.AllArgsConstructor
;
...
...
yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/controller/admin/dict/vo/data/DictDataUpdateReqVO.java
View file @
01cb5194
package
cn
.
iocoder
.
yudao
.
module
.
system
.
controller
.
admin
.
dict
.
vo
.
data
;
package
cn
.
iocoder
.
yudao
.
module
.
system
.
controller
.
admin
.
dict
.
vo
.
data
;
import
cn.iocoder.yudao.module.system.api.vo.DictDataBaseVO
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
lombok.Data
;
...
...
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