| | |
| | | package com.whyc.service; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.whyc.mapper.ComponentProductApprovingMapper; |
| | | import com.whyc.pojo.ComponentProductApproving; |
| | | import org.springframework.stereotype.Service; |
| | |
| | | public void insert(List<ComponentProductApproving> approvingList) { |
| | | mapper.insertBatchSomeColumn(approvingList); |
| | | } |
| | | |
| | | public List<ComponentProductApproving> getListByMainId(Integer mainId) { |
| | | QueryWrapper<ComponentProductApproving> query = Wrappers.query(); |
| | | query.eq("main_id",mainId); |
| | | return mapper.selectList(query); |
| | | } |
| | | } |