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