| | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.yuanchu.mom.common.GetLook; |
| | | import com.yuanchu.mom.common.PrintChina; |
| | | import com.yuanchu.mom.excel.StructureTestObjectData; |
| | | import com.yuanchu.mom.mapper.ProductMapper; |
| | | import com.yuanchu.mom.pojo.Product; |
| | | import com.yuanchu.mom.service.ProductService; |
| | |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | |
| | | map.put("head", PrintChina.printChina(Product.class)); |
| | | Map<String, Integer> map1 = getLook.selectPowerByMethodAndUserId("selectProductListByObjectId"); |
| | | if(map1.get("look")==1) product.setCreateUser(map1.get("userId")); |
| | | map.put("body", productMapper.selectPage(page, QueryWrappers.queryWrappers(product))); |
| | | map.put("body", productMapper.selectPage(page, QueryWrappers.queryWrappers(product).eq("object_id", product.getObjectId()))); |
| | | return map; |
| | | } |
| | | |
| | |
| | | public int delProduct(Integer id) { |
| | | return productMapper.deleteById(id); |
| | | } |
| | | |
| | | @Override |
| | | public void importPartExcel(List<StructureTestObjectData> list) { |
| | | System.out.println(list); |
| | | } |
| | | } |
| | | |
| | | |