Browse Source

tt

release_toaliyun_real
xhxu 5 years ago
parent
commit
d27f0e6de1
3 changed files with 9 additions and 1 deletions
  1. +3
    -0
      mallinkService/src/main/java/com/iformall/service/tt/impl/TtCouponServiceImpl.java
  2. +1
    -1
      mallinkService/src/main/resources/mapper/TtCouponMapper.xml
  3. +5
    -0
      mallinkTTAdmin/src/main/java/com/iformall/controller/tt/TtCouponController.java

+ 3
- 0
mallinkService/src/main/java/com/iformall/service/tt/impl/TtCouponServiceImpl.java View File

@@ -22,6 +22,8 @@ import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import java.math.BigDecimal;
import java.util.*;
@@ -54,6 +56,7 @@ public class TtCouponServiceImpl implements TtCouponService {


@Override
@Transactional(propagation = Propagation.REQUIRED, readOnly = false, rollbackFor = {Exception.class})
public ResultData saveOrUpdate(TtCoupon record) {

if (StringUtils.isNotEmpty(record.getSalePriceStr())) {


+ 1
- 1
mallinkService/src/main/resources/mapper/TtCouponMapper.xml View File

@@ -57,7 +57,7 @@
</sql>

<sql id="dynamicWhereConditions">
where c.`is_del` = 0
where c.`is_del` = 0 and c.`type` != 3

<if test=" null != id ">
and c.`id` = #{id}


+ 5
- 0
mallinkTTAdmin/src/main/java/com/iformall/controller/tt/TtCouponController.java View File

@@ -69,6 +69,11 @@ public class TtCouponController extends BaseController {
logger.debug("[" + getIpAddr() + "] TtCouponController::list");
if (record == null) record = new TtCoupon();
record.updateTenantInfo(getTenantInfo());
// if(record.getType() == null || record.getType().equals(EnumTtCouponType.COUPON_SINGLE.getCode())){
// record.setType(EnumTtCouponType.COUPON_SINGLE.getCode());
// }else{
// record.setType(EnumTtCouponType.COUPON_COLUMN.getCode());
// }
return new ResultData(ttCouponService.listAsPage(record, pageNum, pageSize));
}



Loading…
Cancel
Save