|
|
|
|
@ -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); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|