| | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.jilongda.common.basic.PageInfo; |
| | | import com.jilongda.manage.mapper.SecSettingMapper; |
| | | import com.jilongda.manage.mapper.TAppUserMapper; |
| | | import com.jilongda.manage.mapper.TFrameGoodsMapper; |
| | | import com.jilongda.manage.mapper.TOrderMapper; |
| | | import com.jilongda.manage.model.SecSetting; |
| | | import com.jilongda.manage.model.TAppUser; |
| | | import com.jilongda.manage.model.TFrameGoods; |
| | | import com.jilongda.manage.model.TOrder; |
| | | import com.jilongda.manage.query.TAppUserQuery; |
| | | import com.jilongda.manage.query.TFrameGoodsQuery; |
| | | import com.jilongda.manage.service.TAppUserService; |
| | | import com.jilongda.manage.service.TFrameGoodsService; |
| | | import com.jilongda.manage.vo.TAppUserVO; |
| | | import com.jilongda.manage.vo.TFrameGoodsVO; |
| | | import com.jilongda.manage.vo.TOptometryVO; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.List; |
| | | |
| | | /** |
| | |
| | | public class TFrameGoodsServiceImpl extends ServiceImpl<TFrameGoodsMapper, TFrameGoods> implements TFrameGoodsService { |
| | | |
| | | |
| | | @Resource |
| | | private SecSettingMapper secSettingMapper; |
| | | @Override |
| | | public PageInfo<TFrameGoodsVO> lensReceiptList(TFrameGoodsQuery query) { |
| | | PageInfo<TFrameGoodsVO> pageInfo = new PageInfo<>(query.getPageNum(), query.getPageSize()); |
| | | List<TFrameGoodsVO> list = this.baseMapper.lensReceiptList(query,pageInfo); |
| | | SecSetting secSetting = secSettingMapper.selectOne(null); |
| | | for (TFrameGoodsVO tFrameGoodsVO : list) { |
| | | if (tFrameGoodsVO.getTotal()<secSetting.getFrameThreshold()){ |
| | | tFrameGoodsVO.setIsWarning(1); |
| | | } |
| | | } |
| | | pageInfo.setRecords(list); |
| | | return pageInfo; |
| | | } |
| | | } |