记得上下班打卡 | git大法好,push需谨慎

Commit deda9aa2 authored by jiangxiulong's avatar jiangxiulong

Merge remote-tracking branch 'origin/dev' into dev

parents 89c05347 87dc31d1
...@@ -14,6 +14,7 @@ import io.swagger.annotations.ApiImplicitParam; ...@@ -14,6 +14,7 @@ import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams; import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated; import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
...@@ -36,12 +37,7 @@ public class AdamMemberAdminController { ...@@ -36,12 +37,7 @@ public class AdamMemberAdminController {
@Autowired @Autowired
RedisUtil redisUtil; RedisUtil redisUtil;
@ApiOperation(value = "添加会员卡") @RequiresPermissions("adam:member:list")
@PostMapping("add")
public ResponseDto<Object> add(@RequestBody AdamMemberParam parameter) {
return ResponseDto.success(adamMemberService.add(parameter));
}
@ApiOperation(value = "会员卡列表") @ApiOperation(value = "会员卡列表")
@PostMapping("list") @PostMapping("list")
public ResponseDto<List<AdamMemberVo>> list() { public ResponseDto<List<AdamMemberVo>> list() {
...@@ -53,18 +49,21 @@ public class AdamMemberAdminController { ...@@ -53,18 +49,21 @@ public class AdamMemberAdminController {
return ResponseDto.success(vos); return ResponseDto.success(vos);
} }
@ApiOperation(value = "同步会员卡") @RequiresPermissions("adam:member:add")
@PostMapping("sync") @ApiOperation(value = "添加会员卡")
public ResponseDto<Object> sync() { @PostMapping("add")
return adamMemberService.sync(); public ResponseDto<Object> add(@RequestBody AdamMemberParam parameter) {
return ResponseDto.success(adamMemberService.add(parameter));
} }
@RequiresPermissions("adam:member:gen_code")
@ApiOperation(value = "生成兑换码") @ApiOperation(value = "生成兑换码")
@PostMapping("gen_code") @PostMapping("gen_code")
public ResponseDto<String> genMemberCode(@RequestBody AdamMemberCodeParam parameter) { public ResponseDto<String> genMemberCode(@RequestBody AdamMemberCodeParam parameter) {
return ResponseDto.success(adamMemberCodeAdminService.createGiftCode(parameter)); return ResponseDto.success(adamMemberCodeAdminService.createGiftCode(parameter));
} }
@RequiresPermissions("adam:member:switch:buy")
@ApiOperation(value = "开放/限制购买会员") @ApiOperation(value = "开放/限制购买会员")
@ApiImplicitParams({ @ApiImplicitParams({
@ApiImplicitParam(type = "form", required = true, dataType = "int", name = "opt", value = "0-限制|1-开放", example = "0"), @ApiImplicitParam(type = "form", required = true, dataType = "int", name = "opt", value = "0-限制|1-开放", example = "0"),
......
...@@ -24,7 +24,7 @@ import java.util.List; ...@@ -24,7 +24,7 @@ import java.util.List;
* @date 2021/6/6 16:52 * @date 2021/6/6 16:52
*/ */
@Controller @Controller
@RequestMapping("adam/morder") @RequestMapping("adam/order")
public class AdamMemberOrderController extends BaseController public class AdamMemberOrderController extends BaseController
{ {
private String prefix = "zhengzai/adam/order"; private String prefix = "zhengzai/adam/order";
......
...@@ -11,6 +11,7 @@ import io.swagger.annotations.ApiImplicitParam; ...@@ -11,6 +11,7 @@ import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams; import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.BeanUtils; import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated; import org.springframework.validation.annotation.Validated;
...@@ -30,6 +31,7 @@ public class AdamMemberPriceAdminController { ...@@ -30,6 +31,7 @@ public class AdamMemberPriceAdminController {
@Autowired @Autowired
IAdamMemberPriceAdminService adamMemberPriceService; IAdamMemberPriceAdminService adamMemberPriceService;
@RequiresPermissions("adam:mprice:list")
@ApiOperation(value = "会员价格列表") @ApiOperation(value = "会员价格列表")
@ApiImplicitParams({ @ApiImplicitParams({
@ApiImplicitParam(type = "form", required = true, dataType = "String", name = "memberId", value = "会员卡ID[64]"), @ApiImplicitParam(type = "form", required = true, dataType = "String", name = "memberId", value = "会员卡ID[64]"),
...@@ -46,6 +48,7 @@ public class AdamMemberPriceAdminController { ...@@ -46,6 +48,7 @@ public class AdamMemberPriceAdminController {
return ResponseDto.success(vos); return ResponseDto.success(vos);
} }
@RequiresPermissions("adam:mprice:info")
@ApiOperation(value = "会员价格详情") @ApiOperation(value = "会员价格详情")
@ApiImplicitParams({ @ApiImplicitParams({
@ApiImplicitParam(type = "form", required = true, dataType = "String", name = "memberId", value = "会员卡ID[64]"), @ApiImplicitParam(type = "form", required = true, dataType = "String", name = "memberId", value = "会员卡ID[64]"),
...@@ -61,6 +64,7 @@ public class AdamMemberPriceAdminController { ...@@ -61,6 +64,7 @@ public class AdamMemberPriceAdminController {
return ResponseDto.success(AdamMemberPriceVo.getNew().copy(one)); return ResponseDto.success(AdamMemberPriceVo.getNew().copy(one));
} }
@RequiresPermissions("adam:mprice:add")
@ApiOperation(value = "添加会员价格") @ApiOperation(value = "添加会员价格")
@PostMapping("add") @PostMapping("add")
public ResponseDto<AdamMemberPriceVo> add(@Valid @RequestBody AdamMemberPriceParam param) { public ResponseDto<AdamMemberPriceVo> add(@Valid @RequestBody AdamMemberPriceParam param) {
...@@ -69,6 +73,7 @@ public class AdamMemberPriceAdminController { ...@@ -69,6 +73,7 @@ public class AdamMemberPriceAdminController {
return ResponseDto.success(adamMemberPriceService.add(entity)); return ResponseDto.success(adamMemberPriceService.add(entity));
} }
@RequiresPermissions("adam:mprice:edit")
@ApiOperation(value = "编辑会员价格") @ApiOperation(value = "编辑会员价格")
@PostMapping("edit") @PostMapping("edit")
public ResponseDto<AdamMemberPriceVo> edit(@Valid @RequestBody AdamMemberPriceParam param) { public ResponseDto<AdamMemberPriceVo> edit(@Valid @RequestBody AdamMemberPriceParam param) {
......
...@@ -7,6 +7,7 @@ import io.swagger.annotations.Api; ...@@ -7,6 +7,7 @@ import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.util.CollectionUtils; import org.springframework.util.CollectionUtils;
import org.springframework.validation.annotation.Validated; import org.springframework.validation.annotation.Validated;
...@@ -28,12 +29,14 @@ public class AdamUserMemberAdminController { ...@@ -28,12 +29,14 @@ public class AdamUserMemberAdminController {
@Autowired @Autowired
RedisUtil redisUtil; RedisUtil redisUtil;
@RequiresPermissions("adam:umember:blk:lis")
@ApiOperation(value = "会员黑名单UID") @ApiOperation(value = "会员黑名单UID")
@PostMapping("blk/lis") @PostMapping("blk/lis")
public ResponseDto<List<String>> listBlack() { public ResponseDto<List<String>> listBlack() {
return ResponseDto.success((List<String>) redisUtil.get(AdamRedisConst.BLK_LIST_MEMBER_UID)); return ResponseDto.success((List<String>) redisUtil.get(AdamRedisConst.BLK_LIST_MEMBER_UID));
} }
@RequiresPermissions("adam:umember:blk:add")
@ApiOperation(value = "添加会员黑名单") @ApiOperation(value = "添加会员黑名单")
@PostMapping("blk/add") @PostMapping("blk/add")
public ResponseDto<List<String>> addBlack(@NotBlank @RequestParam String opts) { public ResponseDto<List<String>> addBlack(@NotBlank @RequestParam String opts) {
...@@ -60,6 +63,7 @@ public class AdamUserMemberAdminController { ...@@ -60,6 +63,7 @@ public class AdamUserMemberAdminController {
return ResponseDto.success(invalidList); return ResponseDto.success(invalidList);
} }
@RequiresPermissions("adam:umember:blk:del")
@ApiOperation(value = "删除会员黑名单") @ApiOperation(value = "删除会员黑名单")
@PostMapping("blk/del") @PostMapping("blk/del")
public ResponseDto<Object> delBlack(@NotBlank @RequestParam String opts) { public ResponseDto<Object> delBlack(@NotBlank @RequestParam String opts) {
......
...@@ -128,7 +128,7 @@ ...@@ -128,7 +128,7 @@
<span th:text="${dict2.title}"></span> <span th:text="${dict2.title}"></span>
</div> </div>
<div> <div>
<span>使用日期:</span> <span>用日期:</span>
<span th:text="${dict2.useStart}"></span> <span th:text="${dict2.useStart}"></span>
<span> - </span> <span> - </span>
<span th:text="${dict2.useEnd}"></span> <span th:text="${dict2.useEnd}"></span>
......
...@@ -126,9 +126,9 @@ ...@@ -126,9 +126,9 @@
</div> </div>
</table> </table>
</div> </div>
<button type="button" class="btn btn-w-m btn-success"> <!-- <button type="button" class="btn btn-w-m btn-success">-->
审核记录 <!-- 审核记录-->
</button> <!-- </button>-->
<button type="button" class="btn btn-w-m btn-success" th:if="*{isSubmit==0}" onclick="submitHandler()"> <button type="button" class="btn btn-w-m btn-success" th:if="*{isSubmit==0}" onclick="submitHandler()">
提交审核 提交审核
</button> </button>
......
...@@ -11,6 +11,4 @@ import com.liquidnet.service.base.ResponseDto; ...@@ -11,6 +11,4 @@ import com.liquidnet.service.base.ResponseDto;
*/ */
public interface IAdamMemberAdminService extends IService<AdamMember> { public interface IAdamMemberAdminService extends IService<AdamMember> {
AdamMemberVo add(AdamMemberParam info); AdamMemberVo add(AdamMemberParam info);
ResponseDto<Object> sync();
} }
...@@ -3,7 +3,9 @@ package com.liquidnet.client.admin.zhengzai.adam.service.impl; ...@@ -3,7 +3,9 @@ package com.liquidnet.client.admin.zhengzai.adam.service.impl;
import com.baomidou.mybatisplus.core.toolkit.Wrappers; import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.liquidnet.client.admin.zhengzai.adam.service.IAdamMemberAdminService; import com.liquidnet.client.admin.zhengzai.adam.service.IAdamMemberAdminService;
import com.liquidnet.common.cache.redis.util.RedisUtil;
import com.liquidnet.commons.lang.util.IDGenerator; import com.liquidnet.commons.lang.util.IDGenerator;
import com.liquidnet.service.adam.constant.AdamRedisConst;
import com.liquidnet.service.adam.dto.AdamMemberParam; import com.liquidnet.service.adam.dto.AdamMemberParam;
import com.liquidnet.service.adam.dto.vo.AdamMemberVo; import com.liquidnet.service.adam.dto.vo.AdamMemberVo;
import com.liquidnet.service.adam.entity.AdamMember; import com.liquidnet.service.adam.entity.AdamMember;
...@@ -28,8 +30,8 @@ public class AdamMemberServiceAdminImpl extends ServiceImpl<AdamMemberMapper, Ad ...@@ -28,8 +30,8 @@ public class AdamMemberServiceAdminImpl extends ServiceImpl<AdamMemberMapper, Ad
AdamMemberMapper adamMemberMapper; AdamMemberMapper adamMemberMapper;
@Autowired @Autowired
MongoTemplate mongoTemplate; MongoTemplate mongoTemplate;
// @Autowired @Autowired
// AdamRdmService adamRdmService; RedisUtil redisUtil;
@Override @Override
public AdamMemberVo add(AdamMemberParam param) { public AdamMemberVo add(AdamMemberParam param) {
...@@ -38,7 +40,7 @@ public class AdamMemberServiceAdminImpl extends ServiceImpl<AdamMemberMapper, Ad ...@@ -38,7 +40,7 @@ public class AdamMemberServiceAdminImpl extends ServiceImpl<AdamMemberMapper, Ad
List<AdamMember> existList = adamMemberMapper.selectList(Wrappers.lambdaQuery()); List<AdamMember> existList = adamMemberMapper.selectList(Wrappers.lambdaQuery());
adamMember.setMemberId(CollectionUtils.isEmpty(existList) ? "1" : IDGenerator.nextSnowId().toString()); adamMember.setMemberId(CollectionUtils.isEmpty(existList) ? "1" : IDGenerator.nextSnowId());
adamMember.setType(1); adamMember.setType(1);
adamMember.setStartNo(10000); adamMember.setStartNo(10000);
adamMember.setCreatedAt(LocalDateTime.now()); adamMember.setCreatedAt(LocalDateTime.now());
...@@ -50,21 +52,8 @@ public class AdamMemberServiceAdminImpl extends ServiceImpl<AdamMemberMapper, Ad ...@@ -50,21 +52,8 @@ public class AdamMemberServiceAdminImpl extends ServiceImpl<AdamMemberMapper, Ad
mongoTemplate.insert(vo, AdamMemberVo.class.getSimpleName()); mongoTemplate.insert(vo, AdamMemberVo.class.getSimpleName());
// adamRdmService.setMemberVoByMemberId(vo.getMemberId(), vo); redisUtil.set(AdamRedisConst.INFO_MEMBER_CATEGORY.concat(vo.getMemberId()), vo);
return vo; return vo;
} }
@Override
public ResponseDto<Object> sync() {
List<AdamMember> list = adamMemberMapper.selectList(Wrappers.lambdaQuery(AdamMember.class).orderByAsc(AdamMember::getMemberId));
if (CollectionUtils.isEmpty(list)) {
return ResponseDto.failure("会员数据不存在,请核实");
}
mongoTemplate.remove(Query.query(Criteria.where("_id").exists(true)), AdamMemberVo.class.getSimpleName());
AdamMemberVo vo = AdamMemberVo.getNew().copy(list.get(0));
mongoTemplate.insert(vo, AdamMemberVo.class.getSimpleName());
// adamRdmService.delMemberVoByMemberId(vo.getMemberId());
return ResponseDto.success();
}
} }
...@@ -121,10 +121,11 @@ spring: ...@@ -121,10 +121,11 @@ spring:
# type: org.apache.tomcat.jdbc.pool.DataSource # type: org.apache.tomcat.jdbc.pool.DataSource
driver-class-name: com.mysql.cj.jdbc.Driver driver-class-name: com.mysql.cj.jdbc.Driver
hikari: hikari:
# 迁移数据暂设500
maximum-pool-size: 500 maximum-pool-size: 500
# 迁移数据暂设10分钟 # 迁移数据暂设10分钟
connection-timeout: 600000 connection-timeout: 600000
minimum-idle: 10 minimum-idle: 8
connection-test-query: SELECT 1 connection-test-query: SELECT 1
# ----------------------------------------------------------- # -----------------------------------------------------------
......
...@@ -22,6 +22,7 @@ public class PerformanceOrderStatisticalDao { ...@@ -22,6 +22,7 @@ public class PerformanceOrderStatisticalDao {
private BigDecimal price; private BigDecimal price;
private Integer type; private Integer type;
private String useStart; private String useStart;
private String useEnd;
private BigDecimal totalGeneral = BigDecimal.ZERO; private BigDecimal totalGeneral = BigDecimal.ZERO;
private BigDecimal saleGeneral = BigDecimal.ZERO; private BigDecimal saleGeneral = BigDecimal.ZERO;
private BigDecimal surplusGeneral = BigDecimal.ZERO; private BigDecimal surplusGeneral = BigDecimal.ZERO;
......
package com.liquidnet.service.adam.service; package com.liquidnet.service.adam.service;
import com.liquidnet.common.cache.redis.util.RedisUtil; import com.liquidnet.common.cache.redis.util.RedisUtil;
import com.liquidnet.commons.lang.util.DateUtil;
import com.liquidnet.commons.lang.util.SensitizeUtil; import com.liquidnet.commons.lang.util.SensitizeUtil;
import com.liquidnet.service.adam.constant.AdamRedisConst; import com.liquidnet.service.adam.constant.AdamRedisConst;
import com.liquidnet.service.adam.dto.vo.*; import com.liquidnet.service.adam.dto.vo.*;
...@@ -18,7 +17,6 @@ import org.springframework.util.CollectionUtils; ...@@ -18,7 +17,6 @@ import org.springframework.util.CollectionUtils;
import org.springframework.util.StringUtils; import org.springframework.util.StringUtils;
import java.time.LocalDateTime; import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.Arrays; import java.util.Arrays;
import java.util.List; import java.util.List;
import java.util.Optional; import java.util.Optional;
...@@ -37,6 +35,8 @@ public class AdamRdmService { ...@@ -37,6 +35,8 @@ public class AdamRdmService {
return null == i ? 1 : i; return null == i ? 1 : i;
} }
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | <Mobile|OPENID, UID> */
public boolean setUidByMobile(String mobile, String uid) { public boolean setUidByMobile(String mobile, String uid) {
return redisUtil.set(AdamRedisConst.IDENTITY_MOBILE.concat(mobile), uid); return redisUtil.set(AdamRedisConst.IDENTITY_MOBILE.concat(mobile), uid);
} }
...@@ -91,6 +91,8 @@ public class AdamRdmService { ...@@ -91,6 +91,8 @@ public class AdamRdmService {
redisUtil.del(AdamRedisConst.IDENTITY_THIRD_PARTY + platform + ":" + openId); redisUtil.del(AdamRedisConst.IDENTITY_THIRD_PARTY + platform + ":" + openId);
} }
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | <UID, USER_INFO> */
public boolean setUserInfoVoByUid(String uid, AdamUserInfoVo vo) { public boolean setUserInfoVoByUid(String uid, AdamUserInfoVo vo) {
return redisUtil.set(AdamRedisConst.INFO_USER.concat(uid), vo); return redisUtil.set(AdamRedisConst.INFO_USER.concat(uid), vo);
} }
...@@ -115,6 +117,8 @@ public class AdamRdmService { ...@@ -115,6 +117,8 @@ public class AdamRdmService {
redisUtil.del(AdamRedisConst.INFO_USER.concat(uid)); redisUtil.del(AdamRedisConst.INFO_USER.concat(uid));
} }
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | <UID, REAL_INFO> */
public boolean setRealInfoVoByUid(String uid, AdamRealInfoVo vo) { public boolean setRealInfoVoByUid(String uid, AdamRealInfoVo vo) {
return redisUtil.set(AdamRedisConst.INFO_REAL_NAME.concat(uid), vo); return redisUtil.set(AdamRedisConst.INFO_REAL_NAME.concat(uid), vo);
} }
...@@ -139,6 +143,8 @@ public class AdamRdmService { ...@@ -139,6 +143,8 @@ public class AdamRdmService {
return vo; return vo;
} }
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | <ID_TYPE+ID_NO, ID_NAME> */
public boolean setCertification(int idType, String idNo, String idName) { public boolean setCertification(int idType, String idNo, String idName) {
return redisUtil.set(AdamRedisConst.INFO_CERTIFICATION + idType + idNo, idName); return redisUtil.set(AdamRedisConst.INFO_CERTIFICATION + idType + idNo, idName);
} }
...@@ -148,6 +154,8 @@ public class AdamRdmService { ...@@ -148,6 +154,8 @@ public class AdamRdmService {
return !StringUtils.isEmpty(o) && o.equals(idName); return !StringUtils.isEmpty(o) && o.equals(idName);
} }
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | <UID, List<AdamThirdPartInfoVo>> */
public boolean setThirdPartVoListByUid(String uid, List<AdamThirdPartInfoVo> voList) { public boolean setThirdPartVoListByUid(String uid, List<AdamThirdPartInfoVo> voList) {
return redisUtil.set(AdamRedisConst.INFO_THIRD_PARTY.concat(uid), voList); return redisUtil.set(AdamRedisConst.INFO_THIRD_PARTY.concat(uid), voList);
} }
...@@ -185,6 +193,8 @@ public class AdamRdmService { ...@@ -185,6 +193,8 @@ public class AdamRdmService {
redisUtil.del(AdamRedisConst.INFO_THIRD_PARTY.concat(uid)); redisUtil.del(AdamRedisConst.INFO_THIRD_PARTY.concat(uid));
} }
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | <UID, List<AdamEntersVo>> */
public boolean setEntersVoByUid(String uid, List<AdamEntersVo> list) { public boolean setEntersVoByUid(String uid, List<AdamEntersVo> list) {
return redisUtil.set(AdamRedisConst.INFO_ENTERS.concat(uid), list); return redisUtil.set(AdamRedisConst.INFO_ENTERS.concat(uid), list);
} }
...@@ -220,6 +230,8 @@ public class AdamRdmService { ...@@ -220,6 +230,8 @@ public class AdamRdmService {
redisUtil.del(AdamRedisConst.INFO_ENTERS.concat(uid)); redisUtil.del(AdamRedisConst.INFO_ENTERS.concat(uid));
} }
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | <UID, List<AdamAddressesVo>> */
public boolean setAddressesVoByUid(String uid, List<AdamAddressesVo> list) { public boolean setAddressesVoByUid(String uid, List<AdamAddressesVo> list) {
return redisUtil.set(AdamRedisConst.INFO_ADDRESSES.concat(uid), list); return redisUtil.set(AdamRedisConst.INFO_ADDRESSES.concat(uid), list);
} }
...@@ -250,6 +262,8 @@ public class AdamRdmService { ...@@ -250,6 +262,8 @@ public class AdamRdmService {
redisUtil.del(AdamRedisConst.INFO_ADDRESSES.concat(uid)); redisUtil.del(AdamRedisConst.INFO_ADDRESSES.concat(uid));
} }
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | List<购买会员黑名单UID> */
public boolean setBlacklistForMember(List<String> uids) { public boolean setBlacklistForMember(List<String> uids) {
return redisUtil.set(AdamRedisConst.BLK_LIST_MEMBER_UID, uids); return redisUtil.set(AdamRedisConst.BLK_LIST_MEMBER_UID, uids);
} }
...@@ -258,6 +272,8 @@ public class AdamRdmService { ...@@ -258,6 +272,8 @@ public class AdamRdmService {
return (List<String>) redisUtil.get(AdamRedisConst.BLK_LIST_MEMBER_UID); return (List<String>) redisUtil.get(AdamRedisConst.BLK_LIST_MEMBER_UID);
} }
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | <UID, USER_MEMBER> */
public boolean setUserMemberVoByUid(String uid, AdamUserMemberVo vo) { public boolean setUserMemberVoByUid(String uid, AdamUserMemberVo vo) {
return redisUtil.set(AdamRedisConst.INFO_USER_MEMBER.concat(uid), vo); return redisUtil.set(AdamRedisConst.INFO_USER_MEMBER.concat(uid), vo);
} }
...@@ -284,6 +300,8 @@ public class AdamRdmService { ...@@ -284,6 +300,8 @@ public class AdamRdmService {
redisUtil.del(AdamRedisConst.INFO_USER_MEMBER.concat(uid)); redisUtil.del(AdamRedisConst.INFO_USER_MEMBER.concat(uid));
} }
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | <MEMBER_SIMPLE_INFO> */
public AdamMemberSimpleVo getMemberSimpleVo() { public AdamMemberSimpleVo getMemberSimpleVo() {
AdamMemberSimpleVo vo = (AdamMemberSimpleVo) redisUtil.get(AdamRedisConst.INFO_MEMBER_SIMPLE); AdamMemberSimpleVo vo = (AdamMemberSimpleVo) redisUtil.get(AdamRedisConst.INFO_MEMBER_SIMPLE);
if (null == vo) { if (null == vo) {
...@@ -301,6 +319,8 @@ public class AdamRdmService { ...@@ -301,6 +319,8 @@ public class AdamRdmService {
return vo; return vo;
} }
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | <MEMBER_ID, MEMBER_INFO> */
public boolean setMemberVoByMemberId(String memberId, AdamMemberVo vo) { public boolean setMemberVoByMemberId(String memberId, AdamMemberVo vo) {
return redisUtil.set(AdamRedisConst.INFO_MEMBER_CATEGORY.concat(memberId), vo); return redisUtil.set(AdamRedisConst.INFO_MEMBER_CATEGORY.concat(memberId), vo);
} }
...@@ -326,6 +346,8 @@ public class AdamRdmService { ...@@ -326,6 +346,8 @@ public class AdamRdmService {
redisUtil.del(AdamRedisConst.INFO_MEMBER_CATEGORY.concat(memberId)); redisUtil.del(AdamRedisConst.INFO_MEMBER_CATEGORY.concat(memberId));
} }
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | <MEMBER_ID, List<AdamMemberPriceVo>> */
public boolean setMemberPriceVoByMemberId(String memberId, List<AdamMemberPriceVo> vos) { public boolean setMemberPriceVoByMemberId(String memberId, List<AdamMemberPriceVo> vos) {
return redisUtil.set(AdamRedisConst.INFO_MEMBER_PRICE.concat(memberId), vos); return redisUtil.set(AdamRedisConst.INFO_MEMBER_PRICE.concat(memberId), vos);
} }
...@@ -365,6 +387,8 @@ public class AdamRdmService { ...@@ -365,6 +387,8 @@ public class AdamRdmService {
return null; return null;
} }
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | <MEMBER_ID, List<AdamMemberRightsVo>> */
public boolean setMemberRightsVoByMemberId(String memberId, List<AdamMemberRightsVo> vos) { public boolean setMemberRightsVoByMemberId(String memberId, List<AdamMemberRightsVo> vos) {
return redisUtil.set(AdamRedisConst.INFO_MEMBER_RIGHTS.concat(memberId), vos); return redisUtil.set(AdamRedisConst.INFO_MEMBER_RIGHTS.concat(memberId), vos);
} }
...@@ -387,6 +411,8 @@ public class AdamRdmService { ...@@ -387,6 +411,8 @@ public class AdamRdmService {
return vos; return vos;
} }
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | MEMBER_AGREEMENT */
public String getMemberAgreement() { public String getMemberAgreement() {
String val = (String) redisUtil.get(AdamRedisConst.INFO_MEMBER_AGREEMENT); String val = (String) redisUtil.get(AdamRedisConst.INFO_MEMBER_AGREEMENT);
if (StringUtils.isEmpty(val)) { if (StringUtils.isEmpty(val)) {
...@@ -397,6 +423,8 @@ public class AdamRdmService { ...@@ -397,6 +423,8 @@ public class AdamRdmService {
return val; return val;
} }
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | <ORDER_NO, MEMBER_ORDER_INFO> */
public boolean setShotMemberOrderVoByOrderNo(String orderNo, AdamMemberOrderVo vo) { public boolean setShotMemberOrderVoByOrderNo(String orderNo, AdamMemberOrderVo vo) {
return redisUtil.set(AdamRedisConst.SHOT_MEMBER_ORDER + orderNo, vo); return redisUtil.set(AdamRedisConst.SHOT_MEMBER_ORDER + orderNo, vo);
} }
...@@ -423,6 +451,8 @@ public class AdamRdmService { ...@@ -423,6 +451,8 @@ public class AdamRdmService {
redisUtil.del(AdamRedisConst.SHOT_MEMBER_ORDER + orderNo); redisUtil.del(AdamRedisConst.SHOT_MEMBER_ORDER + orderNo);
} }
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | INCR_MEMBER_NO */
public boolean setMaxMemberNo(int val) { public boolean setMaxMemberNo(int val) {
return redisUtil.set(AdamRedisConst.INCR_MEMBER_NO, val); return redisUtil.set(AdamRedisConst.INCR_MEMBER_NO, val);
} }
...@@ -436,6 +466,8 @@ public class AdamRdmService { ...@@ -436,6 +466,8 @@ public class AdamRdmService {
return null == o ? -1 : (int) o; return null == o ? -1 : (int) o;
} }
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | <MEMBER_CODE, MEMBER_CODE_INFO> */
public boolean setMemberCodeVoByCode(String memberCode, AdamMemberCodeVo vo) { public boolean setMemberCodeVoByCode(String memberCode, AdamMemberCodeVo vo) {
return redisUtil.set(AdamRedisConst.INFO_MEMBER_CODE.concat(memberCode), vo); return redisUtil.set(AdamRedisConst.INFO_MEMBER_CODE.concat(memberCode), vo);
} }
...@@ -457,6 +489,12 @@ public class AdamRdmService { ...@@ -457,6 +489,12 @@ public class AdamRdmService {
return vo; return vo;
} }
public void delMemberCodeVoByCode(String memberCode) {
redisUtil.del(AdamRedisConst.INFO_MEMBER_CODE.concat(memberCode));
}
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | */
/** /**
* Temporarily connect Mongo * Temporarily connect Mongo
*/ */
...@@ -471,9 +509,7 @@ public class AdamRdmService { ...@@ -471,9 +509,7 @@ public class AdamRdmService {
return vo; return vo;
} }
public void delMemberCodeVoByCode(String memberCode) { /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | TAGS:List<AdamTagVo> */
redisUtil.del(AdamRedisConst.INFO_MEMBER_CODE.concat(memberCode));
}
public boolean setTagsForSex(List<AdamTagVo> voList) { public boolean setTagsForSex(List<AdamTagVo> voList) {
return redisUtil.set(AdamRedisConst.INFO_TAGS_SEX, voList); return redisUtil.set(AdamRedisConst.INFO_TAGS_SEX, voList);
...@@ -491,6 +527,24 @@ public class AdamRdmService { ...@@ -491,6 +527,24 @@ public class AdamRdmService {
return (List<AdamTagParentVo>) redisUtil.get(AdamRedisConst.INFO_TAGS_MUSIC); return (List<AdamTagParentVo>) redisUtil.get(AdamRedisConst.INFO_TAGS_MUSIC);
} }
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | */
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | */
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | */
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | */
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | */
/* ========================================================== | Other micro-service data inquiry */ /* ========================================================== | Other micro-service data inquiry */
......
...@@ -1342,6 +1342,9 @@ public class KylinOrderTicketsServiceImpl implements IKylinOrderTicketsService { ...@@ -1342,6 +1342,9 @@ public class KylinOrderTicketsServiceImpl implements IKylinOrderTicketsService {
orderRefundsVoBase.getStatus(), orderRefundsVoBase.getUpdatedAt(), orderRefundsId orderRefundsVoBase.getStatus(), orderRefundsVoBase.getUpdatedAt(), orderRefundsId
}); });
dataUtils.delOrderRefundVo(orderRefundsId);
dataUtils.delOrderRefundVoByOrderId(orderTicketsId);
sqls.add(SqlMapping.get("kylin_order_ticket_status.withDraw")); sqls.add(SqlMapping.get("kylin_order_ticket_status.withDraw"));
sqls.add(SqlMapping.get("kylin_order_ticket_entities.withDraw")); sqls.add(SqlMapping.get("kylin_order_ticket_entities.withDraw"));
sqls.add(SqlMapping.get("kylin_order_refund.withDraw")); sqls.add(SqlMapping.get("kylin_order_refund.withDraw"));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment