| | |
| | | import com.ruoyi.basic.pojo.*; |
| | | import com.ruoyi.basic.service.*; |
| | | import com.ruoyi.common.core.domain.entity.SysUser; |
| | | import com.ruoyi.system.domain.vo.UserVo; |
| | | import com.ruoyi.system.mapper.SysUserMapper; |
| | | import com.ruoyi.system.service.UserService; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | |
| | | |
| | | private IfsInventoryQuantityMapper ifsInventoryQuantityMapper; |
| | | |
| | | private SysUserMapper sysUserMapper; |
| | | private UserService userService; |
| | | |
| | | @Override |
| | | public int addIfsInventory(IfsInventoryQuantity ifsInventoryQuantity) { |
| | | // ifsInventoryQuantity.setDeclareUser(sysUserMapper.sel); |
| | | UserVo userNow = userService.getUserNow(); |
| | | ifsInventoryQuantity.setDeclareUser(userNow.getName()); |
| | | ifsInventoryQuantity.setDeclareDate(LocalDateTime.now()); |
| | | if (ifsInventoryQuantity.getId() ==null){ |
| | | ifsInventoryQuantity.setState(0); |