1.修改企业审核保存
2.baseEntity返回update_time
This commit is contained in:
@@ -6,7 +6,6 @@ import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import com.ruoyi.cms.domain.Company;
|
||||
import com.ruoyi.cms.service.ICompanyService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.apache.commons.lang3.ArrayUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
@@ -268,13 +267,19 @@ public class SysUserController extends BaseController
|
||||
{
|
||||
Company company1 = companyService.approval(company);
|
||||
SysUser sysUser = new SysUser();
|
||||
sysUser.setUserName(company1.getContactPersonPhone());
|
||||
sysUser.setNickName(company1.getContactPerson());
|
||||
sysUser.setPhonenumber(company1.getContactPersonPhone());
|
||||
sysUser.setDeptId(101L);
|
||||
String contactPersonPhone = company1.getContactPersonPhone();
|
||||
String lastSixDigits = contactPersonPhone.substring(contactPersonPhone.length() - 6);
|
||||
sysUser.setPassword(lastSixDigits);
|
||||
if(StringUtils.isNotEmpty(contactPersonPhone)){
|
||||
String lastSixDigits = contactPersonPhone.substring(contactPersonPhone.length() - 6);
|
||||
sysUser.setPassword(lastSixDigits);
|
||||
sysUser.setUserName(company1.getContactPersonPhone());
|
||||
sysUser.setPhonenumber(company1.getContactPersonPhone());
|
||||
sysUser.setNickName(company1.getContactPersonPhone());
|
||||
}else{
|
||||
sysUser.setUserName(company1.getName());
|
||||
sysUser.setNickName(company1.getName());
|
||||
}
|
||||
sysUser.setPhonenumber(getUsername());
|
||||
Long[] postIds = {1L};
|
||||
Long[] roleIds = {100L};
|
||||
|
@@ -284,8 +284,10 @@ public class CompanyServiceImpl extends ServiceImpl<CompanyMapper,Company> imple
|
||||
if(company1==null){
|
||||
throw new ServiceException("企业不存在");
|
||||
}
|
||||
if(company1.getStatus()!=0){
|
||||
throw new ServiceException("企业已审核");
|
||||
if(company1.getStatus()!=null){
|
||||
if(company1.getStatus()!=0){
|
||||
throw new ServiceException("企业已审核");
|
||||
}
|
||||
}
|
||||
companyMapper.updateById(company);
|
||||
//创建账号
|
||||
|
@@ -50,7 +50,7 @@ public class BaseEntity implements Serializable
|
||||
/** 更新时间 */
|
||||
// @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@TableField(fill = FieldFill.INSERT_UPDATE)
|
||||
@JsonIgnore
|
||||
// @JsonIgnore
|
||||
@ApiModelProperty(hidden = true)
|
||||
private String updateTime;
|
||||
|
||||
|
Reference in New Issue
Block a user