mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-22 03:55:17 +08:00
后管站点充电接口页面新增 车位号字段
This commit is contained in:
@@ -444,6 +444,8 @@ public class MemberService {
|
||||
// 不为空说明该用户绑定过此车牌号
|
||||
throw new BusinessException(ReturnCodeEnum.CODE_THIS_CARNO_HAS_BEEN_BINDING);
|
||||
}
|
||||
// 校验该车牌号是否为新能源车牌
|
||||
|
||||
relation.setPhoneNumber(dto.getPhoneNumber());
|
||||
if (StringUtils.isNotBlank(dto.getVinCode())) {
|
||||
// 判断当前vin是否被绑定
|
||||
|
||||
@@ -5,10 +5,12 @@ import com.jsowell.common.annotation.Log;
|
||||
import com.jsowell.common.core.controller.BaseController;
|
||||
import com.jsowell.common.core.page.TableDataInfo;
|
||||
import com.jsowell.common.enums.BusinessType;
|
||||
import com.jsowell.common.response.RestApiResponse;
|
||||
import com.jsowell.common.util.poi.ExcelUtil;
|
||||
import com.jsowell.pile.domain.PileConnectorInfo;
|
||||
import com.jsowell.pile.dto.QueryConnectorDTO;
|
||||
import com.jsowell.pile.dto.QueryConnectorListDTO;
|
||||
import com.jsowell.pile.dto.UpdateConnectorParkNoDTO;
|
||||
import com.jsowell.pile.service.IPileConnectorInfoService;
|
||||
import com.jsowell.pile.vo.web.PileConnectorInfoVO;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
@@ -70,6 +72,26 @@ public class PileConnectorInfoController extends BaseController {
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改车位号
|
||||
* @param dto
|
||||
* @return
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('pile:connector:edit')")
|
||||
@Log(title = "充电桩枪口信息", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/updateParkNo")
|
||||
public RestApiResponse<?> updateParkNo(@RequestBody UpdateConnectorParkNoDTO dto) {
|
||||
RestApiResponse<?> response = null;
|
||||
try {
|
||||
int i = pileConnectorInfoService.updateConnectorParkNo(dto);
|
||||
response = new RestApiResponse<>(i);
|
||||
} catch (Exception e) {
|
||||
logger.error("修改车位号 error,", e);
|
||||
response = new RestApiResponse<>(e);
|
||||
}
|
||||
return response;
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取充电桩枪口信息详细信息
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user