diff --git a/src/main/java/com/gxwebsoft/shop/mapper/xml/CashierMapper.xml b/src/main/java/com/gxwebsoft/shop/mapper/xml/CashierMapper.xml index e68d541..a2e0236 100644 --- a/src/main/java/com/gxwebsoft/shop/mapper/xml/CashierMapper.xml +++ b/src/main/java/com/gxwebsoft/shop/mapper/xml/CashierMapper.xml @@ -52,7 +52,7 @@ AND a.cashier_id LIKE CONCAT('%', #{param.cashierId}, '%') - AND a.group_id LIKE CONCAT('%', #{param.groupId}, '%') + AND a.group_id = #{param.groupId} AND a.create_time >= #{param.createTimeStart} diff --git a/src/main/java/com/gxwebsoft/shop/service/impl/CashierServiceImpl.java b/src/main/java/com/gxwebsoft/shop/service/impl/CashierServiceImpl.java index ad52bcb..0c7e522 100644 --- a/src/main/java/com/gxwebsoft/shop/service/impl/CashierServiceImpl.java +++ b/src/main/java/com/gxwebsoft/shop/service/impl/CashierServiceImpl.java @@ -1,16 +1,12 @@ package com.gxwebsoft.shop.service.impl; -import cn.hutool.core.util.ObjectUtil; -import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.gxwebsoft.shop.entity.Cart; -import com.gxwebsoft.shop.mapper.CashierMapper; -import com.gxwebsoft.shop.service.CashierService; -import com.gxwebsoft.shop.entity.Cashier; -import com.gxwebsoft.shop.param.CashierParam; import com.gxwebsoft.common.core.web.PageParam; import com.gxwebsoft.common.core.web.PageResult; -import com.gxwebsoft.shop.vo.CartVo; +import com.gxwebsoft.shop.entity.Cashier; +import com.gxwebsoft.shop.mapper.CashierMapper; +import com.gxwebsoft.shop.param.CashierParam; +import com.gxwebsoft.shop.service.CashierService; import com.gxwebsoft.shop.vo.CashierVo; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional;