mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-30 08:00:00 +08:00
Merge branch 'dev' into feature-integrated_with_JCPP
This commit is contained in:
@@ -151,4 +151,5 @@ public class BusinessStationInfoController extends BaseController {
|
|||||||
return response;
|
return response;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -189,8 +189,8 @@ public class MemberService {
|
|||||||
String requestId = IdUtils.fastUUID();
|
String requestId = IdUtils.fastUUID();
|
||||||
Boolean isLock = false;
|
Boolean isLock = false;
|
||||||
try {
|
try {
|
||||||
// 获取锁,防止注册创建重复账户,锁超时时间10秒
|
// 获取锁,防止注册创建重复账户,锁超时时间60秒(足够覆盖业务执行时间)
|
||||||
isLock = redisCache.lock(lockKey, requestId, 10);
|
isLock = redisCache.lock(lockKey, requestId, 60);
|
||||||
if (!isLock) {
|
if (!isLock) {
|
||||||
// 获取锁失败,说明有其他请求正在处理,提示用户稍候
|
// 获取锁失败,说明有其他请求正在处理,提示用户稍候
|
||||||
log.warn("获取注册锁失败,可能有并发请求正在处理, phoneNumber:{}", phoneNumber);
|
log.warn("获取注册锁失败,可能有并发请求正在处理, phoneNumber:{}", phoneNumber);
|
||||||
|
|||||||
@@ -335,6 +335,7 @@ public class CacheConstants {
|
|||||||
*/
|
*/
|
||||||
public static final String PILE_HARDWARE_FAULT = "pile_hardware_fault:";
|
public static final String PILE_HARDWARE_FAULT = "pile_hardware_fault:";
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 充电桩sn生成 key
|
* 充电桩sn生成 key
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -706,16 +706,16 @@ public class TransactionRecordsRequestHandler extends AbstractYkcHandler {
|
|||||||
// }, thirdpartyTaskExecutor);
|
// }, thirdpartyTaskExecutor);
|
||||||
|
|
||||||
// TODO 异步推送充电订单算法平台
|
// TODO 异步推送充电订单算法平台
|
||||||
// CompletableFuture.runAsync(() -> {
|
CompletableFuture.runAsync(() -> {
|
||||||
// try {
|
try {
|
||||||
// // 1-web端
|
// 1-web端
|
||||||
// getReportUrlByOrderCode(finalOrderBasicInfo.getOrderCode(), Constants.ONE);
|
getReportUrlByOrderCode(finalOrderBasicInfo.getOrderCode(), Constants.ONE);
|
||||||
// // 2-pdf端
|
// 2-pdf端
|
||||||
// getReportUrlByOrderCode(finalOrderBasicInfo.getOrderCode(), Constants.TWO);
|
getReportUrlByOrderCode(finalOrderBasicInfo.getOrderCode(), Constants.TWO);
|
||||||
// }catch (Exception e) {
|
}catch (Exception e) {
|
||||||
// log.error("异步推送充电订单算法平台 error", e);
|
log.error("异步推送充电订单算法平台 error", e);
|
||||||
// }
|
}
|
||||||
// }, thirdpartyTaskExecutor);
|
}, thirdpartyTaskExecutor);
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
// CompletableFuture.runAsync(() -> {
|
// CompletableFuture.runAsync(() -> {
|
||||||
|
|||||||
@@ -80,7 +80,7 @@ public interface MemberGroupMapper {
|
|||||||
|
|
||||||
MemberGroupVO queryByGroupCodeAndMemberId(@Param("groupCode") String groupCode, @Param("memberId") String memberId);
|
MemberGroupVO queryByGroupCodeAndMemberId(@Param("groupCode") String groupCode, @Param("memberId") String memberId);
|
||||||
|
|
||||||
List<MemberVO> queryMemberList(@Param("groupCode") String groupCode);
|
List<MemberVO> queryMemberList(MemberGroupDTO dto);
|
||||||
|
|
||||||
MemberGroup selectByGroupCode(String groupCode);
|
MemberGroup selectByGroupCode(String groupCode);
|
||||||
|
|
||||||
|
|||||||
@@ -215,4 +215,6 @@ public interface PileStationInfoService {
|
|||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
PageResponse queryUserFrequentedStation(QueryStationDTO dto);
|
PageResponse queryUserFrequentedStation(QueryStationDTO dto);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -386,7 +386,10 @@ public class MemberGroupServiceImpl implements MemberGroupService {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<MemberVO> queryMemberList(MemberGroupDTO dto) {
|
public List<MemberVO> queryMemberList(MemberGroupDTO dto) {
|
||||||
List<MemberVO> list = memberGroupMapper.queryMemberList(dto.getGroupCode());
|
if (dto.getGroupCode().isEmpty()){
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
List<MemberVO> list = memberGroupMapper.queryMemberList(dto);
|
||||||
return list;
|
return list;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -773,6 +773,7 @@ public class PileConnectorInfoServiceImpl implements PileConnectorInfoService {
|
|||||||
deleteRedisByPileSnOrPileConnectorCode(pileSn, pileConnectorCode);
|
deleteRedisByPileSnOrPileConnectorCode(pileSn, pileConnectorCode);
|
||||||
redisCache.setCacheObject(redisKey, status, CacheConstants.cache_expire_time_6m);
|
redisCache.setCacheObject(redisKey, status, CacheConstants.cache_expire_time_6m);
|
||||||
|
|
||||||
|
|
||||||
// 异步放缓存
|
// 异步放缓存
|
||||||
CompletableFuture.runAsync(() -> statusChange(pileConnectorCode), executor);
|
CompletableFuture.runAsync(() -> statusChange(pileConnectorCode), executor);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -36,7 +36,6 @@ import com.jsowell.pile.vo.uniapp.business.StationBusinessAnalyzeInfoVO;
|
|||||||
import com.jsowell.pile.vo.uniapp.business.StationOrderQuantityInfoVO;
|
import com.jsowell.pile.vo.uniapp.business.StationOrderQuantityInfoVO;
|
||||||
import com.jsowell.pile.vo.uniapp.business.StationStatisticsInfosVO;
|
import com.jsowell.pile.vo.uniapp.business.StationStatisticsInfosVO;
|
||||||
import com.jsowell.pile.vo.uniapp.customer.CurrentTimePriceDetails;
|
import com.jsowell.pile.vo.uniapp.customer.CurrentTimePriceDetails;
|
||||||
import com.jsowell.pile.vo.web.BillingTemplateVO;
|
|
||||||
import com.jsowell.pile.vo.web.PileStationVO;
|
import com.jsowell.pile.vo.web.PileStationVO;
|
||||||
import com.jsowell.pile.vo.web.StationSelectVO;
|
import com.jsowell.pile.vo.web.StationSelectVO;
|
||||||
import com.jsowell.system.service.SysDeptService;
|
import com.jsowell.system.service.SysDeptService;
|
||||||
@@ -1623,4 +1622,5 @@ public class PileStationInfoServiceImpl implements PileStationInfoService {
|
|||||||
}
|
}
|
||||||
return uniAppQueryStationInfoListV2(dto);
|
return uniAppQueryStationInfoListV2(dto);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -165,8 +165,14 @@
|
|||||||
FROM
|
FROM
|
||||||
member_basic_info t1
|
member_basic_info t1
|
||||||
JOIN member_group_relation t2 ON t2.member_id = t1.member_id and t2.del_flag = '0'
|
JOIN member_group_relation t2 ON t2.member_id = t1.member_id and t2.del_flag = '0'
|
||||||
where
|
WHERE t1.del_flag = '0'
|
||||||
t2.group_code = #{groupCode,jdbcType=VARCHAR}
|
AND t2.group_code = #{groupCode}
|
||||||
|
<if test="phoneNumber != null and phoneNumber != ''">
|
||||||
|
AND t1.mobile_number LIKE CONCAT('%', #{phoneNumber}, '%')
|
||||||
|
</if>
|
||||||
|
<if test="memberId != null and memberId != ''">
|
||||||
|
AND t2.member_id = #{memberId}
|
||||||
|
</if>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="selectByGroupCode" resultMap="MemberGroupResult">
|
<select id="selectByGroupCode" resultMap="MemberGroupResult">
|
||||||
|
|||||||
Reference in New Issue
Block a user