fix:菜品统计修改
This commit is contained in:
1 parent
b80cdede7b
commit
1334476077
3 files changed
+10
No files matched your search
+3
@@ -4,6 +4,7 @@ import com.bsd.pjcloud.hard.api.entity.order.HardCarEntity;
|
||||
import lombok.Data;
|
||||
|
||||
import java.time.LocalDate;
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
public class HardCarDto extends HardCarEntity {
|
||||
@@ -14,6 +15,8 @@ public class HardCarDto extends HardCarEntity {
|
||||
|
||||
private LocalDate[] createTimeList;
|
||||
|
||||
private List<String> orderStatusCodes;
|
||||
|
||||
private String hourType;
|
||||
|
||||
}
|
||||
+1
@@ -44,6 +44,7 @@ public class HardCanteenTotalServiceImpl implements HardCanteenTotalService {
|
||||
*/
|
||||
@Override
|
||||
public Page<HardCarVo> proudctQuery(Page page, HardCarDto dto) {
|
||||
dto.setOrderStatusCodes(HardOrderStatusEnum.getPaySuccessCodes());
|
||||
return hardCarMapper.proudctQuery(page, dto);
|
||||
}
|
||||
}
|
||||
+6
@@ -129,6 +129,12 @@
|
||||
inner join hard_order o on o.parent_car_id = p.id and o.del_flag = '0' and o.hour_type is not null
|
||||
<where>
|
||||
<include refid="whereA"/>
|
||||
<if test="dto.orderStatusCodes != null and dto.orderStatusCodes.size() != 0">
|
||||
and o.order_status in
|
||||
<foreach collection="dto.orderStatusCodes" item="v" open="(" close=")" separator=",">
|
||||
#{v}
|
||||
</foreach>
|
||||
</if>
|
||||
<if test="dto.hourType != null and dto.hourType != '' ">
|
||||
and o.hour_type = #{dto.hourType}
|
||||
</if>
|
||||
|
||||
Reference in new issue
Block a user