feat:域名切换
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,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())){
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user