| package com.zy.asrs.service.impl; | 
|   | 
| import com.baomidou.mybatisplus.plugins.Page; | 
| import com.baomidou.mybatisplus.service.impl.ServiceImpl; | 
| import com.core.common.R; | 
| import com.zy.asrs.entity.InventoryFlowDto; | 
| import com.zy.asrs.entity.WrkMastLog; | 
| import com.zy.asrs.mapper.WrkMastLogMapper; | 
| import com.zy.asrs.service.WrkMastLogService; | 
| import org.springframework.stereotype.Service; | 
|   | 
| import java.util.Map; | 
|   | 
| @Service("wrkMastLogService") | 
| public class WrkMastLogServiceImpl extends ServiceImpl<WrkMastLogMapper, WrkMastLog> implements WrkMastLogService { | 
|   | 
|     @Override | 
|     public boolean save(Integer workNo) { | 
|         return this.baseMapper.save(workNo) > 0; | 
|     } | 
|   | 
|     @Override | 
|     public R inventoryFlowList(Integer curr, Integer limit, Map<String, Object> param) { | 
|         Page<InventoryFlowDto> page = new Page<>(); | 
|         page.setCurrent(curr); | 
|         page.setSize(limit); | 
|         page.setTotal(this.baseMapper.inventoryFlowListCount(param)); | 
|         page.setRecords(this.baseMapper.inventoryFlowList(curr, limit, param)); | 
|         return R.ok(page); | 
|     } | 
|   | 
| } |