|
|
|
|
@ -75,8 +75,8 @@ public class EquSupplierServiceImpl implements IEquSupplierService |
|
|
|
|
equSupplier.setCreateTime(new Date()); // 自动生成创建时间
|
|
|
|
|
equSupplier.setStatus(dto.getStatus()); |
|
|
|
|
|
|
|
|
|
Long userId = SecurityUtils.getLoginUser().getUserId(); |
|
|
|
|
equSupplier.setCreateBy(userId); |
|
|
|
|
String userName = SecurityUtils.getLoginUser().getUser().getUserName(); |
|
|
|
|
equSupplier.setCreateBy(userName); |
|
|
|
|
return equSupplierMapper.insertEquSupplier(equSupplier); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@ -101,8 +101,8 @@ public class EquSupplierServiceImpl implements IEquSupplierService |
|
|
|
|
// 后端自动设置修改时间
|
|
|
|
|
equSupplier.setCreateTime(new Date()); |
|
|
|
|
|
|
|
|
|
Long userId = SecurityUtils.getLoginUser().getUserId(); |
|
|
|
|
equSupplier.setCreateBy(userId); |
|
|
|
|
String userName = SecurityUtils.getLoginUser().getUser().getUserName(); |
|
|
|
|
equSupplier.setCreateBy(userName); |
|
|
|
|
return equSupplierMapper.updateEquSupplier(equSupplier); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|