| | |
| | | package com.whyc.service; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.whyc.mapper.ProductSoftwareApprovingMapper; |
| | | import com.whyc.pojo.ProductSoftwareApproving; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.List; |
| | | |
| | | @Service |
| | | public class ProductSoftwareApprovingService { |
| | |
| | | public void insert(ProductSoftwareApproving approving) { |
| | | mapper.insert(approving); |
| | | } |
| | | |
| | | public ProductSoftwareApproving getByMainId(Integer mainId) { |
| | | QueryWrapper<ProductSoftwareApproving> query = Wrappers.query(); |
| | | query.eq("main_id",mainId).last(" limit 1"); |
| | | return mapper.selectOne(query); |
| | | } |
| | | |
| | | public List<ProductSoftwareApproving> getAll() { |
| | | return mapper.selectList(null); |
| | | } |
| | | } |