瀏覽代碼

[预览账单][修改][使用枚举值判断]

release_toaliyun_real
luozukai 7 年之前
父節點
當前提交
6408e6376a
共有 1 個檔案被更改,包括 5 行新增4 行删除
  1. +5
    -4
      mallinkAdmin/src/main/java/com/iformall/controller/WxRentContractController.java

+ 5
- 4
mallinkAdmin/src/main/java/com/iformall/controller/WxRentContractController.java 查看文件

@@ -8,6 +8,7 @@ import com.iformall.domain.po.WxBillRent;
import com.iformall.domain.po.WxPayAccountBill; import com.iformall.domain.po.WxPayAccountBill;
import com.iformall.domain.po.WxRentContract; import com.iformall.domain.po.WxRentContract;
import com.iformall.domain.po.WxShop; import com.iformall.domain.po.WxShop;
import com.iformall.enums.EnumRentContractAdjustPeriod;
import com.iformall.enums.EnumRentShopType; import com.iformall.enums.EnumRentShopType;
import com.iformall.enums.EnumShopType; import com.iformall.enums.EnumShopType;
import com.iformall.service.WxBillRentService; import com.iformall.service.WxBillRentService;
@@ -67,7 +68,7 @@ public class WxRentContractController extends BaseController {


//目前只有多经点位租赁合同 //目前只有多经点位租赁合同
WxShop wxShop = wxShopService.getById(wxRentContract.getShopId()); WxShop wxShop = wxShopService.getById(wxRentContract.getShopId());
if(wxRentContract.getMonthHandleType() != null && wxRentContract.getMonthHandleType().intValue()==3
if(wxRentContract.getMonthHandleType() != null && EnumRentContractAdjustPeriod.ADJUST_PERIOD_NAR_MONTH.getCode().equals(wxRentContract.getMonthHandleType().intValue())
&& EnumRentShopType.POINT.getCode().equals(wxShop.getType())){ && EnumRentShopType.POINT.getCode().equals(wxShop.getType())){
wxRentContract.setAdjustPeriod(wxRentContract.getMonthHandleType()); wxRentContract.setAdjustPeriod(wxRentContract.getMonthHandleType());
} }
@@ -81,7 +82,7 @@ public class WxRentContractController extends BaseController {
wxRentContract.setTenantId(getTenantId()); wxRentContract.setTenantId(getTenantId());
//目前只有多经点位租赁合同 //目前只有多经点位租赁合同
WxShop wxShop = wxShopService.getById(wxRentContract.getShopId()); WxShop wxShop = wxShopService.getById(wxRentContract.getShopId());
if(wxRentContract.getMonthHandleType() != null && wxRentContract.getMonthHandleType().intValue()==3
if(wxRentContract.getMonthHandleType() != null && EnumRentContractAdjustPeriod.ADJUST_PERIOD_NAR_MONTH.getCode().equals(wxRentContract.getMonthHandleType().intValue())
&& EnumRentShopType.POINT.getCode().equals(wxShop.getType())){ && EnumRentShopType.POINT.getCode().equals(wxShop.getType())){
wxRentContract.setAdjustPeriod(wxRentContract.getMonthHandleType()); wxRentContract.setAdjustPeriod(wxRentContract.getMonthHandleType());
} }
@@ -95,7 +96,7 @@ public class WxRentContractController extends BaseController {
wxRentContract.setTenantId(getTenantId()); wxRentContract.setTenantId(getTenantId());
//目前只有多经点位租赁合同 //目前只有多经点位租赁合同
WxShop wxShop = wxShopService.getById(wxRentContract.getShopId()); WxShop wxShop = wxShopService.getById(wxRentContract.getShopId());
if(wxRentContract.getMonthHandleType() != null && wxRentContract.getMonthHandleType().intValue()==3
if(wxRentContract.getMonthHandleType() != null &&EnumRentContractAdjustPeriod.ADJUST_PERIOD_NAR_MONTH.getCode().equals(wxRentContract.getMonthHandleType().intValue())
&& EnumRentShopType.POINT.getCode().equals(wxShop.getType())){ && EnumRentShopType.POINT.getCode().equals(wxShop.getType())){
wxRentContract.setAdjustPeriod(wxRentContract.getMonthHandleType()); wxRentContract.setAdjustPeriod(wxRentContract.getMonthHandleType());
} }
@@ -109,7 +110,7 @@ public class WxRentContractController extends BaseController {
wxRentContract.setTenantId(getTenantId()); wxRentContract.setTenantId(getTenantId());
//目前只有多经点位租赁合同 //目前只有多经点位租赁合同
WxShop wxShop = wxShopService.getById(wxRentContract.getShopId()); WxShop wxShop = wxShopService.getById(wxRentContract.getShopId());
if(wxRentContract.getMonthHandleType() != null && wxRentContract.getMonthHandleType().intValue()==3
if(wxRentContract.getMonthHandleType() != null && EnumRentContractAdjustPeriod.ADJUST_PERIOD_NAR_MONTH.getCode().equals(wxRentContract.getMonthHandleType().intValue())
&& EnumRentShopType.POINT.getCode().equals(wxShop.getType())){ && EnumRentShopType.POINT.getCode().equals(wxShop.getType())){
wxRentContract.setAdjustPeriod(wxRentContract.getMonthHandleType()); wxRentContract.setAdjustPeriod(wxRentContract.getMonthHandleType());
} }


Loading…
取消
儲存