| | |
| | | package com.doumee.service.business.impl; |
| | | |
| | | import com.doumee.core.utils.Constants; |
| | | import com.doumee.dao.business.model.*; |
| | | import com.doumee.service.business.third.model.PageData; |
| | | import com.doumee.service.business.third.model.PageWrap; |
| | | import com.doumee.core.utils.Utils; |
| | | import com.doumee.dao.business.JkSketchLineMapper; |
| | | import com.doumee.dao.business.model.JkSketchLine; |
| | | import com.doumee.service.business.JkSketchLineService; |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.github.yulichang.wrapper.MPJLambdaWrapper; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.util.CollectionUtils; |
| | |
| | | |
| | | @Override |
| | | public List<JkSketchLine> findList(JkSketchLine jkSketchLine) { |
| | | QueryWrapper<JkSketchLine> wrapper = new QueryWrapper<>(jkSketchLine); |
| | | return jkSketchLineMapper.selectList(wrapper); |
| | | MPJLambdaWrapper<JkSketchLine> wrapper = new MPJLambdaWrapper<>(); |
| | | wrapper.selectAll(JkSketchLine.class ) |
| | | .selectAs(Member::getName,JkSketchLine::getMemberName) |
| | | .selectAs(Cars::getCode,JkSketchLine::getCarCode) |
| | | .selectAs(JkLine::getName,JkSketchLine::getLineName) |
| | | .selectAs(Category::getId,JkSketchLine::getCategoryId) |
| | | .selectAs(Category::getName,JkSketchLine::getCategoryName) |
| | | .leftJoin(JkLine.class,JkLine::getId,JkOrders::getLineId ) |
| | | .leftJoin(Cars.class,Cars::getId,JkLine::getCarId ) |
| | | .leftJoin(Member.class,Member::getId,Cars::getMemberId ) |
| | | .leftJoin(Category.class,Category::getId,JkLine::getCategoryId ); |
| | | wrapper.eq( jkSketchLine.getSketchId()!=null,JkSketchLine::getSketchId, jkSketchLine.getSketchId()) |
| | | .eq( JkSketchLine::getIsdeleted,Constants.ZERO); |
| | | |
| | | return jkSketchLineMapper.selectJoinList(JkSketchLine.class,wrapper); |
| | | } |
| | | |
| | | @Override |