|
|
|
@@ -2,6 +2,8 @@ package com.iformall.service.impl; |
|
|
|
|
|
|
|
import com.github.pagehelper.PageHelper; |
|
|
|
import com.github.pagehelper.PageInfo; |
|
|
|
import com.iformall.common.ErrorCode; |
|
|
|
import com.iformall.common.Result; |
|
|
|
import com.iformall.common.ResultData; |
|
|
|
import com.iformall.domain.po.WxMerchantSubsidy; |
|
|
|
import com.iformall.domain.vo.WxMerchantSubsidyVo; |
|
|
|
@@ -11,6 +13,7 @@ import com.iformall.mapper.WxMerchantSubsidyMapper; |
|
|
|
import com.iformall.service.WxMerchantSubsidyService; |
|
|
|
import com.iformall.utils.Constant; |
|
|
|
import org.apache.commons.io.FileUtils; |
|
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
|
import org.apache.poi.ss.usermodel.Cell; |
|
|
|
import org.apache.poi.ss.usermodel.Row; |
|
|
|
import org.apache.poi.xssf.usermodel.XSSFSheet; |
|
|
|
@@ -64,8 +67,13 @@ public class WxMerchantSubsidyServiceImpl implements WxMerchantSubsidyService { |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public int update(WxMerchantSubsidy record) { |
|
|
|
return wxMerchantSubsidyMapper.updateByCond(record); |
|
|
|
public ResultData update(WxMerchantSubsidy record) { |
|
|
|
String idStr = record.getIdStr(); |
|
|
|
if (StringUtils.isEmpty(idStr)) { |
|
|
|
return new ResultData(ErrorCode.SYS_PARAMETER_ERROR.getCode(), "结单数据没有传入"); |
|
|
|
} |
|
|
|
wxMerchantSubsidyMapper.updateByCond(record); |
|
|
|
return new ResultData(Result.SUCCESS, "操作成功"); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
|