修改了新增流量方用户接口,使其能够往数据库中的operator_id_evcs字段中添加值

This commit is contained in:
wen 2021-09-22 16:45:54 +08:00
parent ee36497251
commit 71de09076e
4 changed files with 27 additions and 3 deletions

View File

@ -97,7 +97,7 @@ public class XhpcChargingPileController extends BaseController {
*/
@PostMapping(value = "/downloadsTerminalImgs")
public AjaxResult downloadsTerminalImgs(@RequestBody List<Integer> terminalIds){
List<Map<String,Object>> xhpcImgs = xhpcChargingPileService.downloadsTerminalImgs(terminalIds);
List<Map<String,Object>> xhpcImgs = xhpcChargingPileService.downloadsTerminalImgs(terminalIds);
return AjaxResult.success(xhpcImgs);
}

View File

@ -58,6 +58,8 @@ public class XhpcInternetUserController extends BaseController {
if (iXhpcUserService.checkUserNameUnique(sysUser.getUserName()) > 0) {
return AjaxResult.error("新增用户'" + sysUser.getUserName() + "'失败,登录账号已存在");
}
iXhpcInternetUserService.insert(xhpcInternetUser);
sysUser.setInternetUserId(xhpcInternetUser.getInternetUserId());
iXhpcUserService.insertUser(sysUser);

View File

@ -132,6 +132,21 @@ public class XhpcInternetUser extends BaseEntity {
*/
private String delFlag;
/**
* 对接第三方平台及监管平台的operatorId
*/
private String operatorIdEvcs;
public String getOperatorIdEvcs() {
return operatorIdEvcs;
}
public void setOperatorIdEvcs(String operatorIdEvcs) {
this.operatorIdEvcs = operatorIdEvcs;
}
public Long getInternetUserId() {
return internetUserId;
}

View File

@ -29,6 +29,7 @@
<result column="update_by" property="updateBy"/>
<result column="update_time" property="updateTime"/>
<result column="remark" property="remark"/>
<!-- <result column="operator_id_evcs" property="operatorIdEvcs"/>-->
</resultMap>
@ -104,7 +105,10 @@
update_time,
</if>
<if test="null != remark and '' != remark">
remark
remark,
</if>
<if test="null != operatorIdEvcs and '' != operatorIdEvcs">
operator_id_evcs
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
@ -175,7 +179,10 @@
#{updateTime},
</if>
<if test="null != remark and '' != remark">
#{remark}
#{remark},
</if>
<if test="null != operatorIdEvcs and '' != operatorIdEvcs">
#{operatorIdEvcs}
</if>
</trim>
</insert>