소스 검색

fix card

release_toaliyun_real
lin 3 년 전
부모
커밋
43d3759139
3개의 변경된 파일10개의 추가작업 그리고 5개의 파일을 삭제
  1. +1
    -1
      mallinkService/src/main/java/com/iformall/mapper/WxCouponPasswordMapper.java
  2. +1
    -1
      mallinkService/src/main/java/com/iformall/service/WxCouponPasswordService.java
  3. +8
    -3
      mallinkService/src/main/java/com/iformall/service/impl/WxCouponPasswordServiceImpl.java

+ 1
- 1
mallinkService/src/main/java/com/iformall/mapper/WxCouponPasswordMapper.java 파일 보기

@@ -30,6 +30,6 @@ public interface WxCouponPasswordMapper extends CommonMapper<WxCouponPassword, L
void updateIsStop(@Param("tenantId")String tenantId,@Param("id")Long Id,@Param("isStop")Integer isStop);
void setPrice(WxCouponPassword wxCouponPassword);
Integer setPrice(WxCouponPassword wxCouponPassword);

}

+ 1
- 1
mallinkService/src/main/java/com/iformall/service/WxCouponPasswordService.java 파일 보기

@@ -80,7 +80,7 @@ public interface WxCouponPasswordService {
void startOrStop(WxCouponPassword wxCouponPassword);
void setPrice(WxCouponPassword wxCouponPassword);
Integer setPrice(WxCouponPassword wxCouponPassword);
void exportTemplate(HttpServletRequest request, HttpServletResponse response);
void importPrice(MallUserInfo user,String importKey, WxCardPriceTemplate template);


+ 8
- 3
mallinkService/src/main/java/com/iformall/service/impl/WxCouponPasswordServiceImpl.java 파일 보기

@@ -322,8 +322,8 @@ public class WxCouponPasswordServiceImpl implements WxCouponPasswordService {
}

@Override
public void setPrice(WxCouponPassword wxCouponPassword) {
wxCouponPasswordMapper.setPrice(wxCouponPassword);
public Integer setPrice(WxCouponPassword wxCouponPassword) {
return wxCouponPasswordMapper.setPrice(wxCouponPassword);
}

@Override
@@ -365,7 +365,12 @@ public class WxCouponPasswordServiceImpl implements WxCouponPasswordService {
password.updateTenantInfo(user);
password.setId(Long.parseLong(template.getCouponPasswordId()));
password.setPrice(new BigDecimal(template.getPrice()).multiply(new BigDecimal(100)).intValue());
setPrice(password);
Integer count = setPrice(password);
if (null != count && count > 0 ) {
}else {
stringRedisTemplate.opsForHash().increment(importKey, "processCount", 1);
return ;
}
}catch(Exception e) {
stringRedisTemplate.opsForHash().increment(importKey, "processCount", 1);
logger.error("import price error.",e);


불러오는 중...
취소
저장