修改了新增子运营商接口,使其能够往数据库xhpc_operator表中的operator_id_evcs字段中添加值

This commit is contained in:
wen 2021-09-23 10:30:46 +08:00
parent 961b14176f
commit a1964fed4b
3 changed files with 23 additions and 2 deletions

View File

@ -60,6 +60,7 @@ public class XhpcOperatorController extends BaseController {
return AjaxResult.error("新增用户'" + sysUser.getUserName() + "'失败,登录账号已存在");
}
iXhpcOperatorService.insert(xhpcOperator);
sysUser.setOperatorId(xhpcOperator.getOperatorId());
sysUser = iXhpcUserService.insertUser(sysUser);
return AjaxResult.success();

View File

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

View File

@ -130,7 +130,10 @@
update_by,
</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=",">
@ -213,7 +216,10 @@
#{updateBy},
</if>
<if test="null != remark and '' != remark">
#{remark}
#{remark},
</if>
<if test="null != operatorIdEvcs and '' != operatorIdEvcs">
#{operatorIdEvcs}
</if>
</trim>
</insert>