Compare commits

..

No commits in common. '6a6c4c5095e27beacc5ea2fefd4405de9194a050' and 'e051cd04ccd1df5f20aa9d413f2863e45dadd1f4' have entirely different histories.

  1. 2
      ALOps_sys_backend/alops-framework/src/main/java/com/alops/framework/web/service/SysLoginService.java
  2. 2
      ALOps_sys_backend/alops-framework/src/main/java/com/alops/framework/web/service/SysRegisterService.java
  3. 10
      ALOps_sys_backend/alops-system/src/main/java/com/alops/system/domain/EquManu.java
  4. 6
      ALOps_sys_backend/alops-system/src/main/java/com/alops/system/domain/EquType.java
  5. 1
      ALOps_sys_backend/alops-system/src/main/java/com/alops/system/domain/dto/EquSupplierAddDto.java
  6. 1
      ALOps_sys_backend/alops-system/src/main/java/com/alops/system/domain/dto/EquSupplierUpdateDto.java
  7. 2
      ALOps_sys_backend/alops-system/src/main/java/com/alops/system/service/impl/EquManuServiceImpl.java
  8. 7
      ALOps_sys_backend/alops-system/src/main/java/com/alops/system/service/impl/EquSupplierServiceImpl.java
  9. 2
      ALOps_sys_backend/alops-system/src/main/java/com/alops/system/service/impl/EquTypeServiceImpl.java
  10. 1
      ALOps_sys_backend/alops-system/src/main/resources/mapper/system/EquManuMapper.xml

@ -29,8 +29,6 @@ import com.alops.framework.security.context.AuthenticationContextHolder;
import com.alops.system.service.ISysConfigService;
import com.alops.system.service.ISysUserService;
import java.util.Date;
/**
* 登录校验方法
*

@ -19,8 +19,6 @@ import com.alops.framework.manager.factory.AsyncFactory;
import com.alops.system.service.ISysConfigService;
import com.alops.system.service.ISysUserService;
import java.util.Date;
/**
* 注册校验方法
*

@ -31,8 +31,8 @@ public class EquManu
@Excel(name = "厂商简介")
private String description;
/** 联系人*/
@Excel(name = "联系人")
/** 联系人ID */
@Excel(name = "联系人ID")
private String contactBy;
/** 联系方式 */
@ -50,7 +50,7 @@ public class EquManu
private Long status;
//@JsonIgnore
private Long createBy; // 新增
private String createBy; // 新增
public EquManu() {}
@ -144,11 +144,11 @@ public class EquManu
return status;
}
public Long getCreateBy() {
public String getCreateBy() {
return createBy;
}
public void setCreateBy(Long createBy) {
public void setCreateBy(String createBy) {
this.createBy = createBy;
}

@ -43,7 +43,7 @@ public class EquType
private Date createDate;
//@JsonIgnore
private Long createBy;
private String createBy;
public EquType() {}
@ -106,11 +106,11 @@ public class EquType
return createDate;
}
public Long getCreateBy() {
public String getCreateBy() {
return createBy;
}
public void setCreateBy(Long createBy) {
public void setCreateBy(String createBy) {
this.createBy = createBy;
}

@ -13,5 +13,6 @@ public class EquSupplierAddDto {
private String description;
private String contactBy;
private String contactWay;
private Long createBy;
private Long status;
}

@ -6,6 +6,7 @@ import lombok.Data;
public class EquSupplierUpdateDto {
private String contactBy;
private String contactWay;
private Long createBy;
private String description;
private String id;
private String name;

@ -60,7 +60,6 @@ public class EquManuServiceImpl implements IEquManuService
equManu.setId(UUID.randomUUID().toString());
equManu.setCreateDate(new Date());
Long userId = SecurityUtils.getLoginUser().getUserId();
equManu.setCreateBy(userId);
return equManuMapper.insertEquManu(equManu);
}
@ -74,7 +73,6 @@ public class EquManuServiceImpl implements IEquManuService
public int updateEquManu(EquManu equManu)
{
Long userId = SecurityUtils.getLoginUser().getUserId();
equManu.setCreateBy(userId);
return equManuMapper.updateEquManu(equManu);
}

@ -5,7 +5,6 @@ import java.util.List;
import java.util.UUID;
import com.alops.common.utils.DateUtils;
import com.alops.common.utils.SecurityUtils;
import com.alops.system.domain.dto.EquSupplierAddDto;
import com.alops.system.domain.dto.EquSupplierUpdateDto;
import org.springframework.beans.factory.annotation.Autowired;
@ -71,12 +70,11 @@ public class EquSupplierServiceImpl implements IEquSupplierService
equSupplier.setDescription(dto.getDescription());
equSupplier.setContactBy(dto.getContactBy());
equSupplier.setContactWay(dto.getContactWay());
equSupplier.setCreateBy(dto.getCreateBy());
equSupplier.setCreateTime(new Date()); // 自动生成创建时间
equSupplier.setStatus(dto.getStatus());
Long userId = SecurityUtils.getLoginUser().getUserId();
equSupplier.setCreateBy(userId);
return equSupplierMapper.insertEquSupplier(equSupplier);
}
@ -96,13 +94,12 @@ public class EquSupplierServiceImpl implements IEquSupplierService
equSupplier.setDescription(updateDto.getDescription());
equSupplier.setContactBy(updateDto.getContactBy());
equSupplier.setContactWay(updateDto.getContactWay());
equSupplier.setCreateBy(updateDto.getCreateBy());
equSupplier.setStatus(updateDto.getStatus());
// 后端自动设置修改时间
equSupplier.setCreateTime(new Date());
Long userId = SecurityUtils.getLoginUser().getUserId();
equSupplier.setCreateBy(userId);
return equSupplierMapper.updateEquSupplier(equSupplier);
}

@ -57,7 +57,6 @@ public class EquTypeServiceImpl implements IEquTypeService
{
equType.setId(UUID.randomUUID().toString());
Long userId = SecurityUtils.getLoginUser().getUserId();
equType.setCreateBy(userId);
return equTypeMapper.insertEquType(equType);
}
@ -71,7 +70,6 @@ public class EquTypeServiceImpl implements IEquTypeService
public int updateEquType(EquType equType)
{
Long userId = SecurityUtils.getLoginUser().getUserId();
equType.setCreateBy(userId);
return equTypeMapper.updateEquType(equType);
}

@ -36,7 +36,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="contactWay != null and contactWay != ''"> and contact_way = #{contactWay}</if>
<if test="createDate != null "> and create_date = #{createDate}</if>
<if test="status != null "> and status = #{status}</if>
<if test="createBy != null "> and create_by = #{createBy}</if>
</where>
</select>

Loading…
Cancel
Save