Merge remote-tracking branch 'origin/cc_20250325_select' into cc_20250325_select
This commit is contained in:
@@ -76,8 +76,8 @@ public class ShopAccountDAO {
|
||||
* @param status 状态
|
||||
* @return 影响的行数
|
||||
*/
|
||||
public int updateStatusByShopIdAndSystemName(Long shopId, List<String> systemNameList, Integer status){
|
||||
return shopAccountMapper.updateStatusByShopIdAndSystemName(shopId,systemNameList,status);
|
||||
public int updateStatusByShopIdAndSystemName(Long shopId, List<String> systemNameList, Integer status,Date syncTime){
|
||||
return shopAccountMapper.updateStatusByShopIdAndSystemName(shopId,systemNameList,status,syncTime);
|
||||
}
|
||||
|
||||
public int updateEntryStatusByShopIdAndSystemName(Long shopId, List<String> systemNameList, Integer status){
|
||||
|
||||
@@ -35,7 +35,7 @@ public interface ShopAccountMapper extends Mapper<ShopAccountDO> {
|
||||
int updateStatusByShopIdAndSystemName(
|
||||
@Param("shopId") Long shopId,
|
||||
@Param("systemNameList") List<String> systemNameList,
|
||||
@Param("status") Integer status
|
||||
@Param("status") Integer status, @Param("syncTime") Date lastSyncTime
|
||||
);
|
||||
|
||||
int updateEntryStatusByShopIdAndSystemName(
|
||||
|
||||
@@ -75,8 +75,14 @@
|
||||
<update id="updateStatusByShopIdAndSystemName">
|
||||
UPDATE
|
||||
xfsg_shop_account
|
||||
SET
|
||||
status = #{status,jdbcType=BIT}
|
||||
<set>
|
||||
<if test="status != null">
|
||||
status = #{status},
|
||||
</if>
|
||||
<if test="syncTime != null">
|
||||
last_sync_time = #{syncTime},
|
||||
</if>
|
||||
</set>
|
||||
WHERE
|
||||
shop_id = #{shopId}
|
||||
and system_name in
|
||||
|
||||
@@ -42,7 +42,7 @@ public class OpenApiServiceImpl implements OpenApiService {
|
||||
throw new ServiceException(ErrorCodeEnum.SHOP_NOT_EXIST);
|
||||
}
|
||||
Integer openStatus = statusRefreshDTO.getOpenStatus()?OpenStatusEnum.OPENSTATUSENUM_5.getCode():OpenStatusEnum.OPENSTATUSENUM_6.getCode();
|
||||
accountDAO.updateStatusByShopIdAndSystemName(shopInfoDO.getId(), Arrays.asList(statusRefreshDTO.getSystemSource()), openStatus);
|
||||
accountDAO.updateStatusByShopIdAndSystemName(shopInfoDO.getId(), Arrays.asList(statusRefreshDTO.getSystemSource()), openStatus,null);
|
||||
|
||||
//订货系统开通完成
|
||||
if (ShopAccountEnum.YLS.getSystemName().equals(statusRefreshDTO.getSystemSource())){
|
||||
|
||||
@@ -310,7 +310,7 @@ public class PreparationServiceImpl implements PreparationService {
|
||||
Map<Integer, ShopStageInfoDO> shopStageInfoDOMap = shopStageInfo.stream().collect(Collectors.toMap(ShopStageInfoDO::getShopSubStage, data -> data));
|
||||
Boolean flag1 = ShopSubStageStatusEnum.SHOP_SUB_STAGE_STATUS_33.getShopSubStageStatus().
|
||||
equals(shopStageInfoDOMap.get(ShopSubStageEnum.SHOP_STAGE_3.getShopSubStage()).getShopSubStageStatus());
|
||||
Boolean flag2 = ShopSubStageStatusEnum.SHOP_SUB_STAGE_STATUS_112.getShopSubStageStatus().
|
||||
Boolean flag2 = ShopSubStageStatusEnum.SHOP_SUB_STAGE_STATUS_123.getShopSubStageStatus().
|
||||
equals(shopStageInfoDOMap.get(ShopSubStageEnum.SHOP_STAGE_12.getShopSubStage()).getShopSubStageStatus());
|
||||
Boolean flag3 = ShopSubStageStatusEnum.SHOP_SUB_STAGE_STATUS_153.getShopSubStageStatus().
|
||||
equals(shopStageInfoDOMap.get(ShopSubStageEnum.SHOP_STAGE_15.getShopSubStage()).getShopSubStageStatus());
|
||||
@@ -337,7 +337,7 @@ public class PreparationServiceImpl implements PreparationService {
|
||||
log.info("selectSiteAndBuildStoreComplete flag2->{} flag3->{}",flag2,flag3);
|
||||
//都完成了 进件状态修改
|
||||
if (flag2 && flag3) {
|
||||
shopAccountDAO.updateStatusByShopIdAndSystemName(shopId, Arrays.asList(ShopAccountEnum.HUOMA.getSystemName()), OpenStatusEnum.OPENSTATUSENUM_2.getCode());
|
||||
shopAccountDAO.updateStatusByShopIdAndSystemName(shopId, Arrays.asList(ShopAccountEnum.HUOMA.getSystemName()), OpenStatusEnum.OPENSTATUSENUM_2.getCode(),null);
|
||||
}
|
||||
}
|
||||
return Boolean.TRUE;
|
||||
@@ -354,7 +354,7 @@ public class PreparationServiceImpl implements PreparationService {
|
||||
log.info("selectSiteAndBuildStoreComplete flag3->{}",flag3);
|
||||
//建店完成了 状态修改
|
||||
if (flag3) {
|
||||
shopAccountDAO.updateStatusByShopIdAndSystemName(shopId, Arrays.asList(ShopAccountEnum.YLS.getSystemName(),ShopAccountEnum.XZG.getSystemName()), OpenStatusEnum.OPENSTATUSENUM_2.getCode());
|
||||
shopAccountDAO.updateStatusByShopIdAndSystemName(shopId, Arrays.asList(ShopAccountEnum.YLS.getSystemName(),ShopAccountEnum.XZG.getSystemName()), OpenStatusEnum.OPENSTATUSENUM_2.getCode(),null);
|
||||
}
|
||||
}
|
||||
return Boolean.TRUE;
|
||||
|
||||
@@ -103,7 +103,7 @@ public class PushServiceImpl implements PushService {
|
||||
|
||||
@Override
|
||||
public Boolean pushDataToXGJ(ZxjpApiRequest zxjpApiRequest) {
|
||||
String apiUrl = xgjUrl + "XXX";
|
||||
String apiUrl = xgjUrl + "/open/addStore";
|
||||
return executeApiCall(apiUrl, zxjpApiRequest, Boolean.class, xgjUsername, xgjSecret);
|
||||
}
|
||||
|
||||
|
||||
@@ -141,7 +141,7 @@ public class ShopAccountServiceImpl implements ShopAccountService {
|
||||
throw new ServiceException(ErrorCodeEnum.CURRENT_STATUS_NOT_OPERATION);
|
||||
}
|
||||
OpenStatusEnum openStatusEnum = accountAuditDTO.getAuditFlag() == 1 ? OpenStatusEnum.OPENSTATUSENUM_4 : OpenStatusEnum.OPENSTATUSENUM_3;
|
||||
shopAccountDAO.updateStatusByShopIdAndSystemName(accountAuditDTO.getShopId(),Arrays.asList(shopAccountDO.getSystemName()),openStatusEnum.getCode());
|
||||
shopAccountDAO.updateStatusByShopIdAndSystemName(accountAuditDTO.getShopId(),Arrays.asList(shopAccountDO.getSystemName()),openStatusEnum.getCode(),null);
|
||||
return Boolean.TRUE;
|
||||
}
|
||||
|
||||
@@ -206,7 +206,7 @@ public class ShopAccountServiceImpl implements ShopAccountService {
|
||||
if (DownSystemTypeEnum.POS.equals(downSystemTypeEnum)){
|
||||
Boolean successFlag = pushService.pushDataToPOS(data);
|
||||
OpenStatusEnum openStatusEnum = successFlag ? OpenStatusEnum.OPENSTATUSENUM_5 : OpenStatusEnum.OPENSTATUSENUM_6;
|
||||
shopAccountDAO.updateEntryStatusByShopIdAndSystemName(accountAuditDTO.getShopId(),Arrays.asList(ShopAccountEnum.HUOMA.getSystemName()),openStatusEnum.getCode());
|
||||
shopAccountDAO.updateStatusByShopIdAndSystemName(accountAuditDTO.getShopId(),Arrays.asList(ShopAccountEnum.HUOMA.getSystemName()),openStatusEnum.getCode(),new Date());
|
||||
}else {
|
||||
pushService.pushDataToXGJ(data);
|
||||
}
|
||||
|
||||
@@ -288,5 +288,11 @@ public class PCTestController {
|
||||
return ResponseResult.success(pushService.getPosToken(dto));
|
||||
}
|
||||
|
||||
@ApiOperation("获取加密子串")
|
||||
@PostMapping("/getEncryptedSubstring")
|
||||
public ResponseResult<String> getEncryptedSubstring(@RequestBody GetPasswordDTO dto) {
|
||||
return ResponseResult.success(thirdXinGuanJiaService.getPassword(dto));
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -105,7 +105,7 @@ api.auth.username=VA59C0ubfcpcVpl
|
||||
api.auth.secret=H9YKHF6R7N16Fvy
|
||||
|
||||
#新管家账号
|
||||
xgj.api.auth.url=http://117.139.13.24:11180/dmp/one-id/
|
||||
xgj.api.auth.url=http://117.139.13.24:11180/dmp/one-id
|
||||
xgj.api.auth.username=2677a58dd9e24fc6b20e835ef5f19e63
|
||||
xgj.api.auth.secret=3fe724f9607448728ee3393eff75718a
|
||||
|
||||
|
||||
Reference in New Issue
Block a user