mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 11:05:18 +08:00
创建运营商校验输入信息是否重复
This commit is contained in:
@@ -1129,7 +1129,11 @@ public class OrderService {
|
||||
List<PayModeVO> result = Lists.newArrayList();
|
||||
// 查询会员在站点是否是白名单用户
|
||||
PileStationWhitelist whitelist = pileStationWhitelistService.queryWhitelistByMemberId(dto.getStationId(), dto.getMemberId());
|
||||
boolean flag = whitelist != null;
|
||||
boolean flag = false;
|
||||
if (whitelist != null) {
|
||||
flag = true;
|
||||
}
|
||||
|
||||
if (flag) {
|
||||
result.add(
|
||||
PayModeVO.builder()
|
||||
|
||||
@@ -154,6 +154,11 @@ public class MemberBasicInfoController extends BaseController {
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改车牌号信息
|
||||
* @param relation
|
||||
* @return
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('member:info:edit')")
|
||||
@Log(title = "修改车牌号信息", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/updatePlateNumber")
|
||||
@@ -174,4 +179,13 @@ public class MemberBasicInfoController extends BaseController {
|
||||
logger.info("后管解除绑定用户:{} 的车牌号:{}", relation.getMemberId(), relation.getLicensePlateNumber());
|
||||
return toAjax(i);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改平台测试员状态
|
||||
*
|
||||
*/
|
||||
public AjaxResult updatePlatformTester() {
|
||||
AjaxResult result = new AjaxResult();
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,6 +5,7 @@ import com.jsowell.common.core.controller.BaseController;
|
||||
import com.jsowell.common.core.domain.AjaxResult;
|
||||
import com.jsowell.common.core.page.TableDataInfo;
|
||||
import com.jsowell.common.enums.BusinessType;
|
||||
import com.jsowell.common.exception.BusinessException;
|
||||
import com.jsowell.common.util.poi.ExcelUtil;
|
||||
import com.jsowell.pile.domain.PileMerchantInfo;
|
||||
import com.jsowell.pile.dto.CreateMerchantDTO;
|
||||
@@ -79,7 +80,14 @@ public class PileMerchantInfoController extends BaseController {
|
||||
@Log(title = "充电桩运营商信息", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody CreateMerchantDTO pileMerchantInfo) {
|
||||
return toAjax(pileMerchantInfoService.insertPileMerchantInfo(pileMerchantInfo));
|
||||
AjaxResult result;
|
||||
try {
|
||||
int i = pileMerchantInfoService.insertPileMerchantInfo(pileMerchantInfo);
|
||||
result = toAjax(i);
|
||||
} catch (BusinessException e) {
|
||||
result = AjaxResult.error(e.getMessage());
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user