|
|
|
@@ -142,6 +142,20 @@ public class WxRentContractServiceImpl implements WxRentContractService { |
|
|
|
return new ResultData(Result.SUCCESS, "操作成功"); |
|
|
|
} |
|
|
|
|
|
|
|
@Transactional(rollbackFor = {Exception.class}) |
|
|
|
@Override |
|
|
|
public ResultData updateMerchant(WxRentContract wxRentContract) { |
|
|
|
WxRentContract record =wxRentContractMapper.selectByPrimaryKey(wxRentContract); |
|
|
|
record.setMerchantId(wxRentContract.getMerchantId()); |
|
|
|
try{ |
|
|
|
wxRentContractMapper.updateByPrimaryKeySelective(record); |
|
|
|
}catch (MallinkException e){ |
|
|
|
logger.info("关联合同商户失败:"+e.getMessage()); |
|
|
|
throw new MallinkException(ErrorCode.DB_FAIL.getCode(), "DB FAILD " + e.getMessage()); |
|
|
|
} |
|
|
|
return new ResultData(Result.SUCCESS, "操作成功"); |
|
|
|
} |
|
|
|
|
|
|
|
public Map<String,Object> updateStatus(String tenantId){ |
|
|
|
Map<String,Object> resultData=new HashMap(); |
|
|
|
WxRentContract wxRentContract = new WxRentContract(); |
|
|
|
|