liding
2025-04-11 804c80b0fd284c7464066efbd5e5833ddacfb635
basic-server/src/main/java/com/ruoyi/basic/service/impl/IfsInventoryQuantityServiceImpl.java
@@ -4,6 +4,8 @@
import com.ruoyi.basic.mapper.*;
import com.ruoyi.basic.pojo.*;
import com.ruoyi.basic.service.*;
import com.ruoyi.common.core.domain.entity.SysUser;
import com.ruoyi.system.mapper.SysUserMapper;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;
@@ -16,8 +18,11 @@
    private IfsInventoryQuantityMapper ifsInventoryQuantityMapper;
    private SysUserMapper sysUserMapper;
    @Override
    public int addIfsInventory(IfsInventoryQuantity ifsInventoryQuantity) {
//        ifsInventoryQuantity.setDeclareUser(sysUserMapper.sel);
        ifsInventoryQuantity.setDeclareDate(LocalDateTime.now());
        if (ifsInventoryQuantity.getId() ==null){
            ifsInventoryQuantity.setState(0);