| | |
| | | package com.whyc.service; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.whyc.mapper.ProductLockLogMapper; |
| | | import com.whyc.pojo.ProductLockLog; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.List; |
| | | |
| | | @Service |
| | | public class ProductLockLogService { |
| | |
| | | public void insert(ProductLockLog lockLog) { |
| | | mapper.insert(lockLog); |
| | | } |
| | | |
| | | public List<ProductLockLog> getListByParentCodeAndCustomCode(String parentCode, String customCode) { |
| | | QueryWrapper<ProductLockLog> query = Wrappers.query(); |
| | | query.eq("parent_code",parentCode).eq("custom_code",customCode); |
| | | return mapper.selectList(query); |
| | | } |
| | | } |