|
|
|
@@ -69,7 +69,7 @@ public class TtCouponController extends BaseController { |
|
|
|
public ResultData list(@ModelAttribute TtCoupon record, Integer pageNum, Integer pageSize, Integer dataType) { |
|
|
|
logger.debug("[" + getIpAddr() + "] TtCouponController::list"); |
|
|
|
if (record == null) record = new TtCoupon(); |
|
|
|
record.updateTenantInfo(getTenantInfo()); |
|
|
|
record.updateTenantInfo(ifParentUpdateTenantInfo()); |
|
|
|
// if(record.getType() == null || record.getType().equals(EnumTtCouponType.COUPON_SINGLE.getCode())){ |
|
|
|
// record.setType(EnumTtCouponType.COUPON_SINGLE.getCode()); |
|
|
|
// }else{ |
|
|
|
@@ -93,7 +93,7 @@ public class TtCouponController extends BaseController { |
|
|
|
if(record == null){ |
|
|
|
return new ResultData(ErrorCode.SYS_PARAMETER_ERROR); |
|
|
|
} |
|
|
|
TenantEntity tenantEntity = getTenantInfo(); |
|
|
|
TenantEntity tenantEntity = ifParentUpdateAloneTenantInfo(); |
|
|
|
record.updateTenantInfo(tenantEntity); |
|
|
|
|
|
|
|
if(record.getId() != null){ |
|
|
|
@@ -198,7 +198,7 @@ public class TtCouponController extends BaseController { |
|
|
|
if (record.getId() == null) { |
|
|
|
return new ResultData(ResultData.ERROR, "缺少id"); |
|
|
|
} |
|
|
|
TenantEntity tenantEntity = getTenantInfo(); |
|
|
|
TenantEntity tenantEntity = ifParentUpdateAloneTenantInfo(); |
|
|
|
record.updateTenantInfo(tenantEntity); |
|
|
|
|
|
|
|
TtCoupon coupon = ttCouponService.getById(record.getId()); |
|
|
|
@@ -317,6 +317,7 @@ public class TtCouponController extends BaseController { |
|
|
|
if (id == null) { |
|
|
|
return new ResultData(ResultData.ERROR, "缺少id"); |
|
|
|
} |
|
|
|
ifParentTenantInfoAlone(); |
|
|
|
return ttCouponService.auditPass(id); |
|
|
|
} |
|
|
|
|
|
|
|
@@ -329,6 +330,7 @@ public class TtCouponController extends BaseController { |
|
|
|
if (record.getId() == null) { |
|
|
|
return new ResultData(ResultData.ERROR, "缺少id"); |
|
|
|
} |
|
|
|
ifParentTenantInfoAlone(); |
|
|
|
return ttCouponService.auditRejected(record.getId()); |
|
|
|
} |
|
|
|
|
|
|
|
|