XiaoRuby
2023-07-21 2086b1f359f4a59c1f6de67b38dd29be88f2c7bf
standard-server/src/main/java/com/yuanchu/limslaboratory/service/impl/SpecificationsServiceImpl.java
@@ -9,6 +9,7 @@
import com.yuanchu.limslaboratory.mapper.SpecificationsMapper;
import com.yuanchu.limslaboratory.service.*;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yuanchu.limslaboratory.vo.UpdateSpeStateSpecifications;
import io.swagger.models.auth.In;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@@ -116,4 +117,12 @@
        }
        return list;
    }
    @Override
    public Integer updateSpeStateSpecifications(UpdateSpeStateSpecifications updateSpeStateSpecifications) {
        LambdaUpdateWrapper<Specifications> updateWrapper = new LambdaUpdateWrapper<>();
        updateWrapper.eq(Specifications::getId, updateSpeStateSpecifications.getId());
        updateWrapper.set(Specifications::getSpe_state, updateSpeStateSpecifications.getSpe_state());
        return specificationsMapper.update(new Specifications(), updateWrapper);
    }
}