广告大屏读图片
This commit is contained in:
parent
f26518cde9
commit
984e955bba
|
|
@ -10,6 +10,8 @@ import java.util.List;
|
||||||
|
|
||||||
@Mapper
|
@Mapper
|
||||||
public interface DatascreenMapper {
|
public interface DatascreenMapper {
|
||||||
|
|
||||||
|
List<String> getDashboardPictures(Long dashboardId);
|
||||||
Integer getDishesNum(@Param("content") DatascreenBaseDTO content, @Param("canteenList") List<DsAuthorityCanteenVO> canteenList);
|
Integer getDishesNum(@Param("content") DatascreenBaseDTO content, @Param("canteenList") List<DsAuthorityCanteenVO> canteenList);
|
||||||
|
|
||||||
List<DishIntervalNum> getIntervalDishNum(@Param("content") DatascreenBaseDTO content, @Param("canteenList") List<DsAuthorityCanteenVO> canteenList);
|
List<DishIntervalNum> getIntervalDishNum(@Param("content") DatascreenBaseDTO content, @Param("canteenList") List<DsAuthorityCanteenVO> canteenList);
|
||||||
|
|
|
||||||
|
|
@ -82,6 +82,12 @@ public class DatascreenServiceImpl implements DatascreenService {
|
||||||
mealtimeVO.setBit(BigDecimal.valueOf(presentNum).divide(BigDecimal.valueOf(capacity), 3, BigDecimal.ROUND_FLOOR));
|
mealtimeVO.setBit(BigDecimal.valueOf(presentNum).divide(BigDecimal.valueOf(capacity), 3, BigDecimal.ROUND_FLOOR));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
List<String> pictures = datascreenMapper.getDashboardPictures(666L);
|
||||||
|
List<String> newPictures = new ArrayList<>();
|
||||||
|
for (String picture : pictures) {
|
||||||
|
newPictures.add(picture.replace("https://10.138.55.103:8888/lnyst", "http://sgwpdm.ah.sgcc.com.cn/canteen/lnyst"));
|
||||||
|
}
|
||||||
|
mealtimeVO.setPictures(newPictures);
|
||||||
list.add(mealtimeVO);
|
list.add(mealtimeVO);
|
||||||
});
|
});
|
||||||
return list;
|
return list;
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,7 @@ import io.swagger.annotations.ApiModelProperty;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
@Data
|
@Data
|
||||||
public class CurrentMealtimeVO {
|
public class CurrentMealtimeVO {
|
||||||
|
|
@ -25,4 +26,6 @@ public class CurrentMealtimeVO {
|
||||||
|
|
||||||
@ApiModelProperty(value = "是否在餐次时段 1-是 2-否")
|
@ApiModelProperty(value = "是否在餐次时段 1-是 2-否")
|
||||||
private Integer ifInMealTime;
|
private Integer ifInMealTime;
|
||||||
|
|
||||||
|
private List<String> pictures;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,10 @@
|
||||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
<mapper namespace="com.bonus.canteen.core.report.datascreen.mapper.DatascreenMapper">
|
<mapper namespace="com.bonus.canteen.core.report.datascreen.mapper.DatascreenMapper">
|
||||||
|
<select id="getDashboardPictures" resultType="String">
|
||||||
|
select picture_url from dashboard_pic where dashboard_id = #{dashboardId}
|
||||||
|
</select>
|
||||||
|
|
||||||
<select id="getDishesNum" resultType="java.lang.Integer">
|
<select id="getDishesNum" resultType="java.lang.Integer">
|
||||||
SELECT
|
SELECT
|
||||||
count( DISTINCT b.dishes_id ) totalNum
|
count( DISTINCT b.dishes_id ) totalNum
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue