'代码合并'
This commit is contained in:
@@ -15,6 +15,7 @@
|
||||
<packaging>jar</packaging>
|
||||
|
||||
<dependencies>
|
||||
<<<<<<< HEAD
|
||||
|
||||
|
||||
<dependency>
|
||||
@@ -28,6 +29,8 @@
|
||||
<version>7.4.0</version>
|
||||
</dependency>
|
||||
|
||||
=======
|
||||
>>>>>>> ae0c4aea12996d3d72eca7c6ccdc97922373e4d7
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-properties-migrator</artifactId>
|
||||
|
||||
@@ -25,7 +25,6 @@ public class VerificationCodeProperties {
|
||||
* 水印
|
||||
*/
|
||||
private String watermark = "";
|
||||
|
||||
/**
|
||||
* 干扰数量 最大数量
|
||||
*/
|
||||
|
||||
@@ -346,8 +346,7 @@ public abstract class BaseElasticsearchService {
|
||||
" }\n" +
|
||||
" }\n";
|
||||
|
||||
PutMappingRequest request = new PutMappingRequest(index)
|
||||
.source(source, XContentType.JSON);
|
||||
PutMappingRequest request = new PutMappingRequest(index).source(source, XContentType.JSON);
|
||||
CountDownLatch latch = new CountDownLatch(1);
|
||||
AtomicReference<AcknowledgedResponse> response = new AtomicReference<>();
|
||||
client.indices().putMappingAsync(
|
||||
|
||||
@@ -77,7 +77,11 @@ public class AuthConfig {
|
||||
/**
|
||||
* 针对国外服务可以单独设置代理
|
||||
* HttpConfig config = new HttpConfig();
|
||||
<<<<<<< HEAD
|
||||
* config.setProxy(new Proxy(Proxy.Type.HTTP, new InetSocketAddress("106.124.130.167", 10080)));
|
||||
=======
|
||||
* config.setProxy(new Proxy(Proxy.Type.HTTP, new InetSocketAddress("127.0.0.1", 10080)));
|
||||
>>>>>>> ae0c4aea12996d3d72eca7c6ccdc97922373e4d7
|
||||
* config.setTimeout(15000);
|
||||
*
|
||||
* @since 1.15.5
|
||||
|
||||
@@ -4,9 +4,7 @@ import cn.hutool.core.text.CharSequenceUtil;
|
||||
import cn.lili.common.enums.ResultCode;
|
||||
import cn.lili.common.exception.ServiceException;
|
||||
import cn.lili.common.security.AuthUser;
|
||||
import cn.lili.modules.file.plugin.QiNiuManagerPlugin;
|
||||
import cn.lili.mybatis.util.PageUtil;
|
||||
import cn.lili.common.utils.StringUtils;
|
||||
import cn.lili.common.vo.PageVO;
|
||||
import cn.lili.common.vo.SearchVO;
|
||||
import cn.lili.modules.file.entity.File;
|
||||
@@ -14,7 +12,6 @@ import cn.lili.modules.file.entity.dto.FileOwnerDTO;
|
||||
import cn.lili.modules.file.mapper.FileMapper;
|
||||
import cn.lili.modules.file.plugin.FileManagerPlugin;
|
||||
import cn.lili.modules.file.service.FileService;
|
||||
import cn.lili.mybatis.util.PageUtil;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
|
||||
@@ -275,4 +275,4 @@ public class Goods extends BaseEntity {
|
||||
return mobileIntro;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -190,4 +190,4 @@ public interface GoodsService extends IService<Goods> {
|
||||
*/
|
||||
long countStoreGoodsNum(String storeId);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -666,4 +666,4 @@ public class GoodsServiceImpl extends ServiceImpl<GoodsMapper, Goods> implements
|
||||
return queryWrapper;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -32,6 +32,7 @@ public class MemberVO implements Serializable {
|
||||
private String username;
|
||||
|
||||
@ApiModelProperty(value = "昵称")
|
||||
|
||||
private String nickName;
|
||||
|
||||
@ApiModelProperty(value = "会员性别,1为男,0为女")
|
||||
|
||||
@@ -34,7 +34,8 @@ public interface FootprintMapper extends BaseMapper<FootPrint> {
|
||||
*
|
||||
* @param memberId 会员ID
|
||||
*/
|
||||
@Delete("DELETE FROM li_foot_print WHERE id IN (" +
|
||||
|
||||
@Delete("DELETE FROM li_foot_print WHERE id IN ("+
|
||||
"SELECT l2.id FROM (" +
|
||||
"SELECT l3.id FROM li_foot_print l3 WHERE l3.member_id=${memberId} ORDER BY id DESC LIMIT 100,100) l2)")
|
||||
void deleteLastFootPrint(String memberId);
|
||||
|
||||
@@ -624,8 +624,7 @@ public class MemberServiceImpl extends ServiceImpl<MemberMapper, Member> impleme
|
||||
*/
|
||||
private void checkMember(String userName, String mobilePhone) {
|
||||
//判断手机号是否存在
|
||||
Long aa = findMember(userName, mobilePhone);
|
||||
if (aa > 0) {
|
||||
if (findMember(userName, mobilePhone) > 0) {
|
||||
throw new ServiceException(ResultCode.USER_EXIST);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,10 +1,14 @@
|
||||
package cn.lili.modules.page.serviceimpl;
|
||||
|
||||
import cn.hutool.core.text.CharSequenceUtil;
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import cn.lili.common.enums.ClientTypeEnum;
|
||||
import cn.lili.common.enums.ResultCode;
|
||||
import cn.lili.common.enums.SwitchEnum;
|
||||
import cn.lili.common.exception.ServiceException;
|
||||
import cn.lili.common.properties.SystemSettingProperties;
|
||||
import cn.lili.common.security.context.UserContext;
|
||||
import cn.lili.common.security.enums.UserEnums;
|
||||
import cn.lili.common.vo.PageVO;
|
||||
import cn.lili.modules.page.entity.dos.PageData;
|
||||
import cn.lili.modules.page.entity.dto.PageDataDTO;
|
||||
@@ -14,6 +18,7 @@ import cn.lili.modules.page.entity.vos.PageDataVO;
|
||||
import cn.lili.modules.page.mapper.PageDataMapper;
|
||||
import cn.lili.modules.page.service.PageDataService;
|
||||
import cn.lili.mybatis.util.PageUtil;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
@@ -60,9 +65,9 @@ public class PageDataServiceImpl extends ServiceImpl<PageDataMapper, PageData> i
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public PageData addPageData(PageData pageData) {
|
||||
//如果页面为发布,则关闭其他页面,开启此页面
|
||||
//演示站点不可以开启楼层
|
||||
if (!Boolean.TRUE.equals(systemSettingProperties.getIsDemoSite()) && pageData.getPageShow().equals(SwitchEnum.OPEN.name())) {
|
||||
if (pageData.getPageShow().equals(SwitchEnum.OPEN.name())) {
|
||||
LambdaUpdateWrapper<PageData> lambdaUpdateWrapper = Wrappers.lambdaUpdate();
|
||||
lambdaUpdateWrapper.eq(CharSequenceUtil.equals(UserContext.getCurrentUser().getRole().name(), UserEnums.STORE.name()),PageData::getNum,UserContext.getCurrentUser().getStoreId());
|
||||
lambdaUpdateWrapper.eq(PageData::getPageType, pageData.getPageType());
|
||||
lambdaUpdateWrapper.eq(PageData::getPageClientType, pageData.getPageClientType());
|
||||
lambdaUpdateWrapper.set(PageData::getPageShow, SwitchEnum.CLOSE.name());
|
||||
@@ -70,7 +75,6 @@ public class PageDataServiceImpl extends ServiceImpl<PageDataMapper, PageData> i
|
||||
} else {
|
||||
pageData.setPageShow(SwitchEnum.CLOSE.name());
|
||||
}
|
||||
pageData.setPageData(pageData.getPageData().replace("?x-oss-process=style/200X200", "").replace("?x-oss-process=style/400X400", ""));
|
||||
this.save(pageData);
|
||||
return pageData;
|
||||
}
|
||||
@@ -78,21 +82,24 @@ public class PageDataServiceImpl extends ServiceImpl<PageDataMapper, PageData> i
|
||||
@Override
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public PageData updatePageData(PageData pageData) {
|
||||
|
||||
//如果页面为发布,则关闭其他页面,开启此页面
|
||||
if (pageData.getPageShow() != null && pageData.getPageShow().equals(SwitchEnum.OPEN.name())) {
|
||||
LambdaUpdateWrapper<PageData> lambdaUpdateWrapper = Wrappers.lambdaUpdate();
|
||||
lambdaUpdateWrapper.eq(PageData::getPageType, pageData.getPageType());
|
||||
lambdaUpdateWrapper.eq(PageData::getPageClientType, pageData.getPageClientType());
|
||||
lambdaUpdateWrapper.set(PageData::getPageShow, SwitchEnum.CLOSE.name());
|
||||
lambdaUpdateWrapper.set(StrUtil.isNotEmpty(pageData.getNum()), PageData::getNum, SwitchEnum.CLOSE.name());
|
||||
this.update(lambdaUpdateWrapper);
|
||||
} else {
|
||||
pageData.setPageShow(SwitchEnum.CLOSE.name());
|
||||
}
|
||||
|
||||
LambdaUpdateWrapper<PageData> lambdaUpdateWrapper = Wrappers.lambdaUpdate();
|
||||
String dataPage = pageData.getPageData().replace("?x-oss-process=style/200X200", "").replace("?x-oss-process=style/400X400", "");
|
||||
lambdaUpdateWrapper.set(PageData::getPageData,dataPage);
|
||||
lambdaUpdateWrapper.set(PageData::getPageData, pageData.getPageData());
|
||||
lambdaUpdateWrapper.eq(PageData::getId, pageData.getId());
|
||||
pageData.setPageData(dataPage);
|
||||
lambdaUpdateWrapper.eq(CharSequenceUtil.equals(UserContext.getCurrentUser().getRole().name(), UserEnums.STORE.name()),PageData::getPageType,PageEnum.STORE.name());
|
||||
lambdaUpdateWrapper.eq(CharSequenceUtil.equals(UserContext.getCurrentUser().getRole().name(), UserEnums.STORE.name()),PageData::getNum,UserContext.getCurrentUser().getStoreId());
|
||||
this.updateById(pageData);
|
||||
return pageData;
|
||||
}
|
||||
@@ -100,8 +107,13 @@ public class PageDataServiceImpl extends ServiceImpl<PageDataMapper, PageData> i
|
||||
@Override
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public PageData releasePageData(String id) {
|
||||
PageData pageData = this.getById(id);
|
||||
|
||||
PageData pageData = this.getOne(new LambdaQueryWrapper<PageData>()
|
||||
.eq(CharSequenceUtil.equals(UserContext.getCurrentUser().getRole().name(), UserEnums.STORE.name()),PageData::getPageType,PageEnum.STORE.name())
|
||||
.eq(CharSequenceUtil.equals(UserContext.getCurrentUser().getRole().name(), UserEnums.STORE.name()),PageData::getNum,UserContext.getCurrentUser().getStoreId())
|
||||
.eq(PageData::getId,id));
|
||||
if(pageData==null){
|
||||
throw new ServiceException(ResultCode.PAGE_NOT_EXIST);
|
||||
}
|
||||
|
||||
//如果已经发布,不能重复发布
|
||||
if (pageData.getPageShow().equals(SwitchEnum.OPEN.name())) {
|
||||
@@ -130,7 +142,14 @@ public class PageDataServiceImpl extends ServiceImpl<PageDataMapper, PageData> i
|
||||
@Override
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public boolean removePageData(String id) {
|
||||
PageData pageData = this.getById(id);
|
||||
PageData pageData = this.getOne(new LambdaQueryWrapper<PageData>()
|
||||
.eq(CharSequenceUtil.equals(UserContext.getCurrentUser().getRole().name(), UserEnums.STORE.name()),PageData::getPageType,PageEnum.STORE.name())
|
||||
.eq(CharSequenceUtil.equals(UserContext.getCurrentUser().getRole().name(), UserEnums.STORE.name()),PageData::getNum,UserContext.getCurrentUser().getStoreId())
|
||||
.eq(PageData::getId,id));
|
||||
if(pageData==null){
|
||||
throw new ServiceException(ResultCode.PAGE_NOT_EXIST);
|
||||
}
|
||||
|
||||
//专题则直接进行删除
|
||||
if (pageData.getPageType().equals(PageEnum.SPECIAL.name())) {
|
||||
return this.removeById(id);
|
||||
|
||||
@@ -246,4 +246,4 @@ public class XmlHelper {
|
||||
private static XPathFactory xPathFactory = XPathFactory.newInstance();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -97,7 +97,6 @@ public interface SeckillApplyService extends IService<SeckillApply> {
|
||||
* @param quantity 库存
|
||||
*/
|
||||
void updateSeckillApplyQuantity(String seckillId, String skuId, Integer quantity);
|
||||
|
||||
/**
|
||||
* 更新秒杀活动时间
|
||||
*
|
||||
@@ -105,5 +104,4 @@ public interface SeckillApplyService extends IService<SeckillApply> {
|
||||
* @return 是否更新成功
|
||||
*/
|
||||
boolean updateSeckillApplyTime(Seckill seckill);
|
||||
|
||||
}
|
||||
@@ -246,6 +246,7 @@ public class SeckillApplyServiceImpl extends ServiceImpl<SeckillApplyMapper, Sec
|
||||
}
|
||||
|
||||
/**
|
||||
<<<<<<< HEAD
|
||||
* 更新秒杀活动时间
|
||||
*
|
||||
* @param seckill 秒杀活动
|
||||
@@ -281,6 +282,8 @@ public class SeckillApplyServiceImpl extends ServiceImpl<SeckillApplyMapper, Sec
|
||||
}
|
||||
|
||||
/**
|
||||
=======
|
||||
>>>>>>> ae0c4aea12996d3d72eca7c6ccdc97922373e4d7
|
||||
* 检查秒杀活动申请列表参数信息
|
||||
*
|
||||
* @param hours 秒杀活动时间段
|
||||
|
||||
@@ -132,6 +132,7 @@ public class SeckillServiceImpl extends AbstractPromotionsServiceImpl<SeckillMap
|
||||
}
|
||||
|
||||
/**
|
||||
<<<<<<< HEAD
|
||||
* 通用促销更新
|
||||
* 调用顺序:
|
||||
* 1. checkStatus 检查促销状态
|
||||
|
||||
@@ -97,10 +97,11 @@ public class Store extends BaseEntity {
|
||||
@ApiModelProperty(value = "腾讯云智服小程序唯一标识")
|
||||
private String yzfMpSign;
|
||||
|
||||
|
||||
@ApiModelProperty(value = "udesk IM标识")
|
||||
private String merchantEuid;
|
||||
|
||||
@ApiModelProperty(value = "默认页面是否开启")
|
||||
private Boolean pageShow;
|
||||
|
||||
public Store(Member member) {
|
||||
this.memberId = member.getId();
|
||||
|
||||
@@ -184,7 +184,6 @@ public class StoreDetail extends BaseIdEntity {
|
||||
@ApiModelProperty(value = "福禄appKEY商户key")
|
||||
private String appMerchantKey;
|
||||
|
||||
|
||||
public StoreDetail(Store store, AdminStoreApplyDTO adminStoreApplyDTO) {
|
||||
this.storeId = store.getId();
|
||||
//设置店铺公司信息、设置店铺银行信息、设置店铺其他信息
|
||||
|
||||
@@ -33,4 +33,7 @@ public class StoreSettingDTO {
|
||||
@ApiModelProperty(value = "经纬度")
|
||||
private String storeCenter;
|
||||
|
||||
@ApiModelProperty(value = "默认页面是否开启")
|
||||
private Boolean pageShow;
|
||||
|
||||
}
|
||||
|
||||
@@ -58,4 +58,7 @@ public class StoreBasicInfoVO {
|
||||
@ApiModelProperty(value = "udesk标识")
|
||||
private String merchantEuid;
|
||||
|
||||
@ApiModelProperty
|
||||
private String pageShow;
|
||||
|
||||
}
|
||||
|
||||
@@ -61,7 +61,6 @@ public interface StoreDetailMapper extends BaseMapper<StoreDetail> {
|
||||
"from li_store_detail s where s.store_id=#{storeId}")
|
||||
StoreAfterSaleAddressDTO getStoreAfterSaleAddressDTO(String storeId);
|
||||
|
||||
|
||||
/**
|
||||
* 获取店铺福禄配置DTO
|
||||
*
|
||||
@@ -71,7 +70,6 @@ public interface StoreDetailMapper extends BaseMapper<StoreDetail> {
|
||||
@Select("select s.app_secret_key,s.merchant_number,s.app_merchant_key from li_store_detail s where s.store_id =#{storeId}")
|
||||
FuLuConfigureDTO getFuLuConfigureDTO(String storeId);
|
||||
|
||||
|
||||
/**
|
||||
* 获取待结算店铺列表
|
||||
*
|
||||
|
||||
@@ -76,6 +76,7 @@ public interface StoreDetailService extends IService<StoreDetail> {
|
||||
* @return 店铺福禄配置
|
||||
*/
|
||||
FuLuConfigureDTO getFuLuConfigureDTO();
|
||||
|
||||
/**
|
||||
* 获取某一个店铺的退货收件地址信息
|
||||
*
|
||||
@@ -93,6 +94,7 @@ public interface StoreDetailService extends IService<StoreDetail> {
|
||||
boolean editStoreAfterSaleAddressDTO(StoreAfterSaleAddressDTO storeAfterSaleAddressDTO);
|
||||
|
||||
/**
|
||||
<<<<<<< HEAD
|
||||
* 修改当前登录店铺福禄配置
|
||||
*
|
||||
* @param fuLuConfigureDTO 店铺福禄配置DTO
|
||||
@@ -101,6 +103,8 @@ public interface StoreDetailService extends IService<StoreDetail> {
|
||||
boolean editFuLuConfigureDTO(FuLuConfigureDTO fuLuConfigureDTO);
|
||||
|
||||
/**
|
||||
=======
|
||||
>>>>>>> ae0c4aea12996d3d72eca7c6ccdc97922373e4d7
|
||||
* 修改店铺库存预警数量
|
||||
*
|
||||
* @param stockWarning 库存预警数量
|
||||
|
||||
@@ -21,13 +21,9 @@ public enum SettingEnum {
|
||||
KUAIDI_SETTING,
|
||||
//订单配置
|
||||
ORDER_SETTING,
|
||||
|
||||
|
||||
//阿里OSS配置
|
||||
OSS_SETTING,
|
||||
|
||||
|
||||
//阿里短信配置
|
||||
//阿里短信配置
|
||||
SMS_SETTING,
|
||||
//积分设置
|
||||
POINT_SETTING,
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
package cn.lili.modules.verification.service.impl;
|
||||
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import cn.lili.cache.Cache;
|
||||
import cn.lili.modules.system.mapper.VerificationSourceMapper;
|
||||
import cn.lili.modules.verification.entity.dos.VerificationSource;
|
||||
|
||||
Reference in New Issue
Block a user