1.controller
import com.chint.common.CommonPage;
import com.chint.common.ResponseData;
import com.chint.entity.dto.DeliverInfoParam;
import com.chint.entity.dto.DeliverTaskResultDTO;
import com.chint.entity.dto.PhotoResultDTO;
import com.chint.service.DeliverGpsTrajectoryService;
import com.chint.service.ISmallProgramService;
import com.chint.service.ITransTaskService;
import com.chint.util.ZiamUtil;
import com.chint.ziam.library.AuthenticationContext;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest;
import java.util.List;
/**
*
*
*
**/
@Api(tags = "小程序")
@Slf4j
@RestController
@RequestMapping("/smallProgram")
public class SmallProgramController {
@Autowired
ISmallProgramService smallProgramService;
@ApiOperation("运单列表查询")
@RequestMapping(value = "/listDeliver", method = RequestMethod.POST)
@ResponseBody
public ResponseData<CommonPage<DeliverTaskResultDTO>> listDeliver(@RequestBody DeliverInfoParam deliverInfoParam,
@RequestParam(value = "pageSize", defaultValue = "5") Integer pageSize,
@RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum){
List<DeliverTaskResultDTO> deliverTaskList = smallProgramService.listDeliver(deliverInfoParam,pageSize,pageNum);
return ResponseData.success(CommonPage.restPage(deliverTaskList));
}
}
2.service
import com.baomidou.mybatisplus.extension.service.IService;
import com.chint.entity.DeliveryTaskInfo;
import com.chint.entity.dto.*;
import org.springframework.web.bind.annotation.RequestParam;
import java.util.List;
/**
* <p>
public
mybatis之IN多条件查询,查询status=多个值的数据
最新推荐文章于 2024-07-07 16:45:38 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)