Crunchy
2024-04-28 71a860affbf97e7be13a2059b6cb001bfd368adb
cnas-server/src/main/java/com/yuanchu/mom/service/impl/StandardMethodServiceImpl.java
@@ -5,10 +5,10 @@
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yuanchu.mom.common.GetLook;
import com.yuanchu.mom.common.PrintChina;
import com.yuanchu.mom.pojo.StandardMethod;
import com.yuanchu.mom.pojo.StructureItemParameter;
import com.yuanchu.mom.service.StandardMethodService;
import com.yuanchu.mom.mapper.StandardMethodMapper;
import com.yuanchu.mom.pojo.StandardMethod;
import com.yuanchu.mom.service.StandardMethodService;
import com.yuanchu.mom.service.StandardTreeService;
import com.yuanchu.mom.utils.QueryWrappers;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;
@@ -31,6 +31,8 @@
    private StandardMethodMapper standardMethodMapper;
    private StandardTreeService standardTreeService;
    @Override
    public Map<String, Object> selectStandardMethodList(Page page, StandardMethod standardMethod) {
        Map<String, Object> map = new HashMap<>();
@@ -48,17 +50,20 @@
    @Override
    public int addStandardMethod(StandardMethod standardMethod) {
        return standardMethodMapper.insert(standardMethod);
        int insert = standardMethodMapper.insert(standardMethod);
        return insert;
    }
    @Override
    public int delStandardMethod(Integer id) {
        return standardMethodMapper.deleteById(id);
        int i = standardMethodMapper.deleteById(id);
        return i;
    }
    @Override
    public int upStandardMethod(StandardMethod standardMethod) {
        return standardMethodMapper.updateById(standardMethod);
        int i = standardMethodMapper.updateById(standardMethod);
        return i;
    }
}