| | |
| | | SysUsers user = WebUtil.getSessionAttribute(MatrixConstance.LOGIN_KEY); |
| | | shoppingGoodsListDto.setShopId(user.getShopId()); |
| | | PaginationVO pageVo = new PaginationVO(); |
| | | int offset = (shoppingGoodsListDto.getPageNum() - 1) + shoppingGoodsListDto.getPageSize(); |
| | | int offset = (shoppingGoodsListDto.getPageNum() - 1) * shoppingGoodsListDto.getPageSize(); |
| | | int limit = shoppingGoodsListDto.getPageSize(); |
| | | pageVo.setOffset(offset); |
| | | pageVo.setLimit(limit); |
| | |
| | | |
| | | <select id="selectShopppingGoodsAipTotal" resultType="java.lang.Integer"> |
| | | select count(1) |
| | | from shopping_goods |
| | | from shopping_goods a |
| | | where 1=1 |
| | | <if test="record.queryKey != null and record.queryKey != ''"> |
| | | and (instr(name,#{record.queryKey}) or instr(code ,#{record.queryKey}) or instr(zjm ,#{record.queryKey})) |