|
|
|
@@ -5,6 +5,7 @@ import com.iformall.common.Result; |
|
|
|
import com.iformall.common.ResultData; |
|
|
|
import com.iformall.domain.po.WxCreditHistory; |
|
|
|
import com.iformall.domain.vo.WxCreditHistoryVo; |
|
|
|
import com.iformall.exception.MallinkException; |
|
|
|
import com.iformall.service.WxCreditHistoryService; |
|
|
|
import io.swagger.annotations.ApiImplicitParam; |
|
|
|
import io.swagger.annotations.ApiImplicitParams; |
|
|
|
@@ -51,8 +52,13 @@ public class WxCreditHistoryController extends BaseController |
|
|
|
logger.debug("[" + getIpAddr() + "] WxCreditHistoryController::add"); |
|
|
|
wxCreditHistory.setTenantId(getTenantId()); |
|
|
|
wxCreditHistory.setOperatorId(getUser().getId()); |
|
|
|
WxCreditHistory credit = wxCreditHistoryService.saveOrUpdate(wxCreditHistory); |
|
|
|
return new ResultData(Result.SUCCESS,"操作成功",credit); |
|
|
|
try { |
|
|
|
WxCreditHistory credit = wxCreditHistoryService.saveOrUpdate(wxCreditHistory); |
|
|
|
return new ResultData(Result.SUCCESS, "操作成功", credit); |
|
|
|
} catch (MallinkException e) { |
|
|
|
logger.error(e.getMessage()); |
|
|
|
return new ResultData(e.getErrorCode(), e.getMessage()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation("根据id查询接口") |
|
|
|
|