|
@@ -19,7 +19,6 @@ import com.fjhx.sale.service.pack.PackShipmentService;
|
|
|
import com.ruoyi.common.exception.ServiceException;
|
|
|
import com.ruoyi.common.utils.StringUtils;
|
|
|
import com.ruoyi.common.utils.wrapper.IWrapper;
|
|
|
-import com.ruoyi.common.utils.wrapper.SqlField;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
@@ -53,13 +52,14 @@ public class PackDetailServiceImpl extends ServiceImpl<PackDetailMapper, PackDet
|
|
|
public Page<PackDetailVo> getPage(PackDetailSelectDto dto) {
|
|
|
IWrapper<PackDetail> wrapper = getWrapper();
|
|
|
if (ObjectUtil.isNotEmpty(dto.getShipmentStatus())) {
|
|
|
- wrapper.eq("t1", PackDetailVo::getShipmentStatus, dto.getShipmentStatus());
|
|
|
+ wrapper.eq("pd", PackDetailVo::getShipmentStatus, dto.getShipmentStatus());
|
|
|
}
|
|
|
if (StringUtils.isNotEmpty(dto.getKeyword())) {
|
|
|
- wrapper.keyword(dto.getKeyword(), new SqlField("t3.`code`"), new SqlField("t2.`product_name`"));
|
|
|
+// wrapper.keyword(dto.getKeyword(), new SqlField("t3.`code`"), new SqlField("t2.`product_name`"));
|
|
|
+ wrapper.like("pd.codeAPName", dto.getKeyword());
|
|
|
}
|
|
|
- wrapper.groupBy("t1.pack_id");
|
|
|
- wrapper.orderByDesc("t1.create_time");
|
|
|
+// wrapper.groupBy("t1.pack_id");
|
|
|
+// wrapper.orderByDesc("t1.create_time");
|
|
|
Page<PackDetailVo> page = this.baseMapper.getPage(dto.getPage(), wrapper);
|
|
|
return page;
|
|
|
}
|