| | |
| | | import lombok.Data; |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | @Data |
| | | public class QueryJhyOrderListDto { |
| | |
| | | private String accountPhone; |
| | | |
| | | @ApiModelProperty(value="状态 1-待接单2-服务中3-已收款4-待入库5-已完成6-已取消") |
| | | private Integer status; |
| | | private List<Integer> status; |
| | | |
| | | @JsonFormat(shape=JsonFormat.Shape.STRING,pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") |
| | | @ApiModelProperty(value="预约开始时间") |
| | |
| | | String name = model.getAccount(); |
| | | model.setAccount(name); |
| | | model.setAccountPhone(accountPhone); |
| | | List<Integer> status = new ArrayList<>(); |
| | | if(CollUtil.isEmpty(model.getStatus())){ |
| | | status.add(1); |
| | | status.add(2); |
| | | status.add(3); |
| | | status.add(4); |
| | | status.add(5); |
| | | status.add(6); |
| | | model.setStatus(status); |
| | | } |
| | | |
| | | List<QueryJhyOrderListVo> maps = jhyOrderMapper.queryOrderList(model); |
| | | if(CollUtil.isNotEmpty(maps)){ |
| | | for(QueryJhyOrderListVo queryJhyOrderListVo : maps){ |
| | |
| | | <if test="record.orderNo != null and record.orderNo != ''"> |
| | | and a.order_no like concat('%',#{record.orderNo},'%') |
| | | </if> |
| | | <if test="record.status != null and record.status != ''"> |
| | | and a.status = #{record.status} |
| | | <if test="record.status.size > 0"> |
| | | and a.status in |
| | | <foreach collection="record.status" item="sta" open="(" separator="," close=")"> |
| | | #{sta} |
| | | </foreach> |
| | | </if> |
| | | <if test="record.jwyName != null and record.jwyName != ''"> |
| | | and d.username like concat('%',#{record.jwyName},'%') |