修改新用户 审核问题

master
wangwei 2 years ago
parent 3d53838777
commit d252711651

@ -1,5 +1,6 @@
package com.glxp.api.controller.auth;
import cn.hutool.core.util.IdUtil;
import cn.hutool.core.util.ReUtil;
import cn.hutool.core.util.StrUtil;
import com.alibaba.fastjson.JSONObject;
@ -351,6 +352,7 @@ public class RegisterController {
if (registerCheckRequest.getCheckType() == 1) {
//注册时新增到往来单位字典
BasicUnitMaintainEntity basicUnitMaintainEntity1 = new BasicUnitMaintainEntity();
basicUnitMaintainEntity1.setId(IdUtil.getSnowflakeNextId());
basicUnitMaintainEntity1.setName(userRegisterEntity.getCompanyName());
basicUnitMaintainEntity1.setErpId(generateUserId() + "");
basicUnitMaintainEntity1.setCorpType(2);

@ -8,7 +8,7 @@ import java.util.Date;
@Data
public class BasicUnitMaintainEntity {
private Integer id;
private Long id;
private String erpId;
@NotBlank(message = "往来单位名称不能为空!")

@ -72,11 +72,11 @@
parameterType="com.glxp.api.entity.basic.BasicUnitMaintainEntity">
REPLACE
INTO basic_corp
(thirdId,erpId,`name`,spell,
(id,thirdId,erpId,`name`,spell,
addr,status,`type`,creditNo,contact,mobile,thirdId1,thirdId2,thirdId3,thirdId4,
thirdName,thirdName1,thirdName2,thirdName3,thirdName4,updateTime,corpType,outType)
values
(
(#{id},
#{thirdId},
#{erpId},
#{name},

Loading…
Cancel
Save