已重命名1个文件
已添加4个文件
已修改10个文件
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.dzhwk.data; |
| | | |
| | | import com.bstek.dorado.annotation.PropertyDef; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import lombok.Data; |
| | | |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * @Description è´§ä½å¡ä¿¡æ¯-å°è£
|
| | | * @Author CZT |
| | | * @Date 2025/06/06 15:39 |
| | | */ |
| | | @Data |
| | | public class HwkDepotDto implements Serializable { |
| | | |
| | | @PropertyDef(label = "å»é´å") |
| | | private String granary; |
| | | |
| | | @PropertyDef(label = "è´§ä½å") |
| | | private String depot; |
| | | |
| | | @PropertyDef(label = "仿¸©") |
| | | private Double inTemp; |
| | | |
| | | @PropertyDef(label = "仿¹¿") |
| | | private Double inHumidity; |
| | | |
| | | @PropertyDef(label = "æ°§æ°") |
| | | private String perO2; |
| | | |
| | | @PropertyDef(label = "ç£·åæ°¢") |
| | | private String perPh3; |
| | | |
| | | @PropertyDef(label = "ä»åºç±»å") |
| | | private String depotType; |
| | | |
| | | @PropertyDef(label = "ä»åºç¶æ") |
| | | private String depotStatus; |
| | | |
| | | @PropertyDef(label = "ç²®é£åç§") |
| | | private String foodVariety; |
| | | |
| | | @PropertyDef(label = "ç²®é£ç级") |
| | | private String foodLevel; |
| | | |
| | | @PropertyDef(label = "ç²®é£æ§è´¨") |
| | | private String foodType; |
| | | |
| | | @PropertyDef(label = "å
¥åºæ¶é´") |
| | | @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8") |
| | | private Date storeDate; |
| | | |
| | | @PropertyDef(label = "ç²®é£å¹´ä»½") |
| | | private String foodYear; |
| | | |
| | | @PropertyDef(label = "ä¿ç®¡å", description = "䏿åç§°") |
| | | private String storeKeeperName; |
| | | |
| | | @PropertyDef(label = "ä¿ç®¡åçµè¯") |
| | | private String storeKeeperPhone = "---"; |
| | | |
| | | @PropertyDef(label = "ä¿ç®¡å头åè·¯å¾") |
| | | private String userImgPath; |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.dzhwk.domain; |
| | | |
| | | import com.bstek.dorado.annotation.PropertyDef; |
| | | import lombok.Data; |
| | | import org.apache.commons.lang3.time.DateFormatUtils; |
| | | import javax.persistence.*; |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * @Description AIå³çåæ |
| | | * @Author CZT |
| | | * @Date 2025/6/06 10:59 |
| | | */ |
| | | @Data |
| | | @Entity |
| | | @Table(name = "H_AI_ANALYSIS") |
| | | public class AiAnalysis implements Serializable { |
| | | |
| | | /** |
| | | * |
| | | */ |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | public static String SORT_PROP = "id"; |
| | | |
| | | @Id |
| | | @Column(name = "ID_") |
| | | private String id; |
| | | |
| | | @Column(name = "COMPANY_ID_", length = 10) |
| | | @PropertyDef(label = "ç»ç»ç¼ç ") |
| | | private String companyId; |
| | | |
| | | @Column(name = "DEPT_ID_", length = 30) |
| | | @PropertyDef(label = "æå±ååº") |
| | | private String deptId; |
| | | |
| | | @Column(name = "DEPOT_ID_", length = 50) |
| | | @PropertyDef(label = "æå±ä»åº") |
| | | private String depotId; |
| | | |
| | | @Column(name = "TYPE_", length = 50) |
| | | @PropertyDef(label = "åæç±»å", description = "01-ç²®æ
åæï¼02-ä½ä¸åæï¼03-å
¶ä»") |
| | | private String type; |
| | | |
| | | @Column(name = "MODE_", length = 50) |
| | | @PropertyDef(label = "åææ¹å¼", description = "01-ç²®æ
å¤§æ°æ®å¯¹æ¯ï¼02-ä½ä¸æ°æ®å¯¹æ¯ï¼03-å
¶ä»") |
| | | private String mode; |
| | | |
| | | @Column(name = "TIME_") |
| | | @PropertyDef(label = "åææ¶é´") |
| | | private Date time; |
| | | |
| | | @Column(name = "RESULT_", length = 50) |
| | | @PropertyDef(label = "åæç»æ") |
| | | private String result; |
| | | |
| | | @Column(name = "INFO_", length = 254) |
| | | @PropertyDef(label = "åæè¯¦æ
") |
| | | private String info; |
| | | |
| | | @Column(name = "UPDATE_TIME_") |
| | | @PropertyDef(label = "æ´æ°æ¶é´") |
| | | private Date updateTime; |
| | | |
| | | @Transient |
| | | private String timeStr; |
| | | |
| | | public String getTimeStr() { |
| | | if(null == this.time){ |
| | | return ""; |
| | | } |
| | | return DateFormatUtils.format(this.time, "yy-MM-dd HH:mm"); |
| | | } |
| | | } |
| | |
| | | @PropertyDef(label = "ä¿ç®¡åç级") |
| | | private String storeKeeperPhone = "####"; |
| | | |
| | | @Transient |
| | | @PropertyDef(label = "ä¿ç®¡å头åè·¯å¾") |
| | | private String userImgPath; |
| | | |
| | | public String getFoodLevelName() { |
| | | if (null != this.foodLevel) { |
| | | return FoodLevel.getMsg(this.foodLevel); |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.dzhwk.domain; |
| | | |
| | | import com.bstek.dorado.annotation.PropertyDef; |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | import lombok.Data; |
| | | import org.apache.commons.lang3.time.DateFormatUtils; |
| | | |
| | | import javax.persistence.*; |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * @Description é¨ç¦è®°å½ |
| | | * @Author CZT |
| | | * @Date 2025/6/06 09:23 |
| | | */ |
| | | @Data |
| | | @Entity |
| | | @Table(name = "H_DOOR_RECORD") |
| | | public class DoorRecord implements Serializable { |
| | | |
| | | /** |
| | | * |
| | | */ |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | public static String SORT_PROP = "id"; |
| | | |
| | | @Id |
| | | @Column(name = "ID_") |
| | | private String id; |
| | | |
| | | @Column(name = "COMPANY_ID_", length = 10) |
| | | @PropertyDef(label = "ç»ç»ç¼ç ") |
| | | private String companyId; |
| | | |
| | | @Column(name = "DEPT_ID_", length = 30) |
| | | @PropertyDef(label = "æå±ååº") |
| | | private String deptId; |
| | | |
| | | @Column(name = "DEPOT_ID_", length = 50) |
| | | @PropertyDef(label = "æå±ä»åº", description = "ä»åºç¼å·") |
| | | private String depotId; |
| | | |
| | | @Column(name = "DOOR_ID_", length = 50) |
| | | @PropertyDef(label = "é¨ç¦è®¾å¤ID") |
| | | private String doorId; |
| | | |
| | | @Column(name = "USER_NAME_", length = 30) |
| | | @PropertyDef(label = "å¼é¨äºº") |
| | | private String userName; |
| | | |
| | | @Column(name = "DOOR_TYPE_", length = 10) |
| | | @PropertyDef(label = "å¼é¨æ¹å¼", description = "01-å·å¡ï¼02-æçº¹è¯å«ï¼03-人è¸è¯å«ï¼04-å¯ç è¾å
¥ï¼05-è¿ç¨ææï¼09-å
¶ä»") |
| | | private String doorType; |
| | | |
| | | @Column(name = "TIME_") |
| | | @PropertyDef(label = "å¼é¨æ¶é´") |
| | | private Date time; |
| | | |
| | | @Column(name = "INFO_", length = 100) |
| | | @PropertyDef(label = "å¼é¨è¯´æ") |
| | | private String info; |
| | | |
| | | @Column(name = "IS_NORMAL", length = 10) |
| | | @PropertyDef(label = "æ¯å¦æ£å¸¸å¼é¨", description = "01-æ£å¸¸ï¼02-è¦å") |
| | | private String isNormal; |
| | | |
| | | @Column(name = "UPDATE_TIME_") |
| | | @PropertyDef(label = "æ´æ°æ¶é´") |
| | | private Date updateTime; |
| | | |
| | | @Transient |
| | | private String doorTypeName; |
| | | |
| | | @Transient |
| | | private String timeStr; |
| | | |
| | | public String getTimeStr() { |
| | | if(null == this.time){ |
| | | return ""; |
| | | } |
| | | return DateFormatUtils.format(this.time, "MM/dd HH:mm"); |
| | | } |
| | | |
| | | public String getDoorTypeName() { |
| | | if(StringUtils.isEmpty(doorType)){ |
| | | return "å
¶ä»"; |
| | | } |
| | | if("01".equals(doorType)){ |
| | | return "å·å¡"; |
| | | } |
| | | if("02".equals(doorType)){ |
| | | return "æçº¹è¯å«"; |
| | | } |
| | | if("03".equals(doorType)){ |
| | | return "人è¸è¯å«"; |
| | | } |
| | | if("04".equals(doorType)){ |
| | | return "å¯ç è¾å
¥"; |
| | | } |
| | | if("05".equals(doorType)){ |
| | | return "è¿ç¨ææ"; |
| | | } |
| | | return "å
¶ä»"; |
| | | } |
| | | } |
ÎļþÃû´Ó igds-dzhwk-core/src/main/java/com/fzzy/igds/dzhwk/domain/ScreenSer.java ÐÞ¸Ä |
| | |
| | | package com.fzzy.igds.dzhwk.domain; |
| | | |
| | | import com.bstek.dorado.annotation.PropertyDef; |
| | | import com.fzzy.igds.dzhwk.constant.Constant; |
| | | import lombok.Data; |
| | | import javax.persistence.Column; |
| | | import javax.persistence.Entity; |
| | |
| | | @Data |
| | | @Entity |
| | | @Table(name = "H_SCREEN_SER") |
| | | public class ScreenSer implements Serializable { |
| | | public class HScreenSer implements Serializable { |
| | | |
| | | public static String SORT_PROP = "id"; |
| | | public static String SORT_PROP = "sn"; |
| | | |
| | | @Id |
| | | @PropertyDef(label = "主é®ID") |
| | | @Column(name = "ID_", length = 40) |
| | | private String id; |
| | | @PropertyDef(label = "è´§ä½å¡SN") |
| | | @Column(name = "SN_", length = 100) |
| | | private String sn; |
| | | |
| | | @Column(name = "COMPANY_ID_", length = 10) |
| | | @PropertyDef(label = "ç»ç»ç¼ç ") |
| | |
| | | @PropertyDef(label = "æå±ååº") |
| | | private String deptId; |
| | | |
| | | @PropertyDef(label = "è´§ä½å¡SN") |
| | | @Column(name = "SN_", length = 100) |
| | | private String sn; |
| | | |
| | | @PropertyDef(label = "设å¤åç§°") |
| | | @Column(name = "NAME_", length = 100) |
| | | private String name; |
| | |
| | | @Column(name = "ajdh", length = 25) |
| | | private String ajdh; |
| | | |
| | | @PropertyDef(label = "æ¯å¦å¼å¯", description = "é¨å¼ç¯äº®") |
| | | @Column(name = "IS_OPEN1_", length = 25) |
| | | private String isOpen1 = Constant.YN_Y; |
| | | |
| | | @PropertyDef(label = "æ¯å¦å¼å¯", description = "é¨å
³çç") |
| | | @Column(name = "IS_OPEN2_", length = 25) |
| | | private String isOPen2 = Constant.YN_Y; |
| | | |
| | | @PropertyDef(label = "æ¯å¦å¼å¯", description = "å®å
¨è¿ä»æé") |
| | | @Column(name = "IS_OPEN3", length = 25) |
| | | private String isOpen3 = Constant.YN_Y; |
| | | |
| | | @Column(name = "REMARK_", length = 200) |
| | | @PropertyDef(label = "夿³¨", description = "夿³¨ä¿¡æ¯") |
| | | private String remark; |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.dzhwk.domain; |
| | | |
| | | import com.bstek.dorado.annotation.PropertyDef; |
| | | import lombok.Data; |
| | | import org.apache.commons.lang3.time.DateFormatUtils; |
| | | |
| | | import javax.persistence.*; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * @Description å·¡æ£ä»»å¡ |
| | | */ |
| | | @Data |
| | | @Entity |
| | | @Table(name = "H_PATROL_TASK") |
| | | public class PatrolTask { |
| | | |
| | | public static String SORT_PROP = "id"; |
| | | |
| | | @Id |
| | | @Column(name = "ID_", length = 40) |
| | | @PropertyDef(label = "主é®ID") |
| | | private String id; |
| | | |
| | | @Column(name = "COMPANY_ID_", length = 20) |
| | | @PropertyDef(label = "ç»ç»ç¼ç ", description = "") |
| | | private String companyId; |
| | | |
| | | @Column(name = "DEPT_ID_", length = 50) |
| | | @PropertyDef(label = "æå±åºåº") |
| | | private String deptId; |
| | | |
| | | @Column(name = "TYPE_", length = 50) |
| | | @PropertyDef(label = "å·¡æ£ç±»å") |
| | | private String type; |
| | | |
| | | @Column(name = "CHECK_USER_", length = 50) |
| | | @PropertyDef(label = "å·¡æ£äºº") |
| | | private String checkUser; |
| | | |
| | | @Column(name = "CHECK_TIME_") |
| | | @PropertyDef(label = "å·¡æ£æ¶é´") |
| | | private Date checkTime; |
| | | |
| | | @Column(name = "LOCATION_", length = 50) |
| | | @PropertyDef(label = "å·¡æ£ä½ç½®") |
| | | private String location; |
| | | |
| | | @Column(name = "FILE_ID_", length = 30) |
| | | @PropertyDef(label = "å·¡æ£äººç
§çid") |
| | | private String fileId; |
| | | |
| | | @Column(name = "FILE_NAME_", length = 50) |
| | | @PropertyDef(label = "å·¡æ£äººç
§ç") |
| | | private String fileName; |
| | | |
| | | @Column(name = "INFO_", length = 200) |
| | | @PropertyDef(label = "å·¡æ£è¯´æ") |
| | | private String info; |
| | | |
| | | @Column(name = "REMARK_", length = 250) |
| | | @PropertyDef(label = "夿³¨", description = "夿³¨ä¿¡æ¯") |
| | | private String remark; |
| | | |
| | | @Transient |
| | | @PropertyDef(label = "å·¡æ£æ¶é´", description = "æ´æ°æ¶é´ï¼yyyy-MM-dd HH:mm") |
| | | private String checkTimeStr; |
| | | |
| | | public String getCheckTimeStr() { |
| | | if(null == this.checkTime){ |
| | | return ""; |
| | | } |
| | | return DateFormatUtils.format(this.checkTime, "yy/MM/dd HH:mm"); |
| | | } |
| | | } |
| | |
| | | package com.fzzy.igds.dzhwk.service; |
| | | |
| | | import com.fzzy.igds.dzhwk.domain.Granary; |
| | | import com.fzzy.igds.dzhwk.domain.ScreenSer; |
| | | import com.fzzy.igds.dzhwk.domain.HScreenSer; |
| | | import com.fzzy.igds.dzhwk.service.repository.ScreenSerRepository; |
| | | import com.fzzy.igds.sys.repository.GranaryRepository; |
| | | import com.fzzy.igds.util.ContextUtil; |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | import lombok.extern.slf4j.Slf4j; |
| | |
| | | @Resource |
| | | private ScreenSerRepository screenSerRepository; |
| | | |
| | | public List<ScreenSer> listData(String companyId, String deptId) { |
| | | public List<HScreenSer> listData(String companyId, String deptId) { |
| | | |
| | | if (StringUtils.isEmpty(companyId)) { |
| | | companyId = ContextUtil.getCompanyId(); |
| | |
| | | return screenSerRepository.listData(companyId, deptId); |
| | | } |
| | | |
| | | public void saveOrUpdate(ScreenSer data) { |
| | | /** |
| | | * |
| | | * @param sn |
| | | * @return |
| | | */ |
| | | public HScreenSer getDataBySn(String sn) { |
| | | if(StringUtils.isEmpty(sn)){ |
| | | return null; |
| | | } |
| | | return screenSerRepository.getDataBySn(sn); |
| | | } |
| | | |
| | | public void saveOrUpdate(HScreenSer data) { |
| | | if (StringUtils.isEmpty(data.getCompanyId())) { |
| | | data.setCompanyId(ContextUtil.getCompanyId()); |
| | | } |
| | | if (StringUtils.isEmpty(data.getDeptId())) { |
| | | data.setDeptId(ContextUtil.subDeptId(null)); |
| | | } |
| | | if (StringUtils.isEmpty(data.getId())) { |
| | | if (StringUtils.isEmpty(data.getSn())) { |
| | | data.setDeptId(ContextUtil.getUUID()); |
| | | } |
| | | data.setUpdateTime(new Date()); |
| | | screenSerRepository.save(data); |
| | | } |
| | | |
| | | public String delData(ScreenSer data) { |
| | | public String delData(HScreenSer data) { |
| | | screenSerRepository.delete(data); |
| | | return null; |
| | | } |
| | |
| | | package com.fzzy.igds.dzhwk.service.repository; |
| | | |
| | | import com.fzzy.igds.dzhwk.domain.ScreenSer; |
| | | import com.fzzy.igds.dzhwk.domain.HScreenSer; |
| | | import org.springframework.data.jpa.repository.JpaRepository; |
| | | import org.springframework.data.jpa.repository.Query; |
| | | import org.springframework.data.repository.query.Param; |
| | |
| | | * @Date 2025/06/03 17:45 |
| | | */ |
| | | @Service |
| | | public interface ScreenSerRepository extends JpaRepository<ScreenSer, String> { |
| | | public interface ScreenSerRepository extends JpaRepository<HScreenSer, String> { |
| | | |
| | | /** |
| | | * æ ¹æ®ç»ç»ç¼ç ååºåºç¼ç è·åå»é´ä¿¡æ¯ |
| | |
| | | * @param deptId |
| | | * @return |
| | | */ |
| | | @Query("from ScreenSer where companyId =:companyId and deptId =:deptId order by ajdh") |
| | | List<ScreenSer> listData(@Param("companyId") String companyId, @Param("deptId") String deptId); |
| | | @Query("from HScreenSer where companyId =:companyId and deptId =:deptId order by ajdh") |
| | | List<HScreenSer> listData(@Param("companyId") String companyId, @Param("deptId") String deptId); |
| | | |
| | | /** |
| | | * æ ¹æ®ç»ç»ç¼ç ååºåºç¼ç è·åå»é´ä¿¡æ¯ |
| | | * |
| | | * @param sn |
| | | * @return |
| | | */ |
| | | @Query("from HScreenSer where sn =:sn") |
| | | HScreenSer getDataBySn(@Param("sn") String sn); |
| | | |
| | | } |
| | |
| | | } |
| | | |
| | | /** |
| | | * æ ¹æ®å½åå»é´ç¼ç è·åä¸å±ææä»åºä¿¡æ¯ |
| | | * @param companyId |
| | | * @param ajdh |
| | | * @return |
| | | */ |
| | | public List<Depot> getCacheByAjdn(String companyId, String ajdh) { |
| | | //è¥ä»åºæªé
ç½®ä»æ¿ç¼ç ï¼åç´æ¥è¿å对åºä»åº |
| | | List<Depot> list = getCacheDepotList(companyId); |
| | | |
| | | if(null == list || list.isEmpty()){ |
| | | return null; |
| | | } |
| | | List<Depot> result = new ArrayList<>(); |
| | | for (Depot depot : list) { |
| | | if (StringUtils.isNotEmpty(depot.getGranaryId()) && ajdh.equals(depot.getGranaryId())) { |
| | | result.add(depot); |
| | | } |
| | | } |
| | | //éæ°æåº |
| | | Collections.sort(result, (p1, p2) -> p1.getOrderNum() - p2.getOrderNum()); |
| | | return result; |
| | | } |
| | | |
| | | /** |
| | | * æ ¹æ®åºåä¿¡æ¯æ´æ°ä»åºä¿¡æ¯ |
| | | * @param data |
| | | */ |
| | |
| | | <Context/> |
| | | <Model> |
| | | <DataType name="dtMain"> |
| | | <Property name="creationType">com.fzzy.igds.dzhwk.domain.ScreenSer</Property> |
| | | <PropertyDef name="id"> |
| | | <Property></Property> |
| | | <Property name="label">主é®ID</Property> |
| | | </PropertyDef> |
| | | <Property name="creationType">com.fzzy.igds.dzhwk.domain.HScreenSer</Property> |
| | | <PropertyDef name="companyId"> |
| | | <Property></Property> |
| | | <Property name="label">ç»ç»ç¼ç </Property> |
| | |
| | | import com.bstek.dorado.annotation.DataProvider; |
| | | import com.bstek.dorado.annotation.DataResolver; |
| | | import com.bstek.dorado.annotation.Expose; |
| | | import com.fzzy.igds.dzhwk.domain.ScreenSer; |
| | | import com.fzzy.igds.dzhwk.domain.HScreenSer; |
| | | import com.fzzy.igds.dzhwk.service.ScreenSerService; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.stereotype.Component; |
| | |
| | | * @return |
| | | */ |
| | | @DataProvider |
| | | public List<ScreenSer> listData() { |
| | | public List<HScreenSer> listData() { |
| | | return screenSerService.listData(null, null); |
| | | } |
| | | |
| | |
| | | * @param data |
| | | */ |
| | | @DataResolver |
| | | public void saveData(ScreenSer data) { |
| | | ScreenSer item = new ScreenSer(); |
| | | public void saveData(HScreenSer data) { |
| | | HScreenSer item = new HScreenSer(); |
| | | BeanUtils.copyProperties(data, item); |
| | | screenSerService.saveOrUpdate(item); |
| | | } |
| | |
| | | * @param data |
| | | */ |
| | | @Expose |
| | | public String delData(ScreenSer data){ |
| | | ScreenSer item = new ScreenSer(); |
| | | public String delData(HScreenSer data){ |
| | | HScreenSer item = new HScreenSer(); |
| | | BeanUtils.copyProperties(data, item); |
| | | return screenSerService.delData(item); |
| | | } |
| | |
| | | package com.fzzy.igds.dzhwk.controller; |
| | | |
| | | import com.fzzy.igds.dzhwk.data.DzhwkConfigData; |
| | | import com.fzzy.igds.dzhwk.domain.Depot; |
| | | import com.fzzy.igds.dzhwk.domain.Dept; |
| | | import com.fzzy.igds.dzhwk.manager.WebManager; |
| | | import com.ruoyi.common.utils.StringUtils; |
| | |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | import javax.annotation.Resource; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @Description |
| | |
| | | private static final String prefix = "dzhwk/"; |
| | | |
| | | @Resource |
| | | private DzhwkConfigData dzhwkConfigData; |
| | | @Resource |
| | | private WebManager webManager; |
| | | |
| | | /** |
| | | * é¦é¡µ |
| | | * @param gid å»é´id |
| | | * @param sid è´§ä½å¡è®¾å¤SN |
| | | * @param view |
| | | * @return |
| | | */ |
| | | @RequestMapping("/index") |
| | | public String index(@RequestParam(value = "gid", required = false) String gid, ModelMap view) { |
| | | public String index(@RequestParam(value = "sid", required = false) String sid, ModelMap view) { |
| | | |
| | | String videoUrl = dzhwkConfigData.getDzhwkVideo().replace(dzhwkConfigData.getProfile(),"/profile/"); |
| | | view.put("videoUrl", videoUrl); |
| | | //è·ååºåºä¿¡æ¯ï¼æ¥çè§é¢è·¯å¾åé¸ç°å¾è·¯å¾ |
| | | Dept dept = webManager.getDeptFile("1000001001"); |
| | | view.put("videoUrl", dept.getVideoFilePath()); |
| | | view.put("imgUrl", dept.getImgFilePath()); |
| | | |
| | | //æ ¹æ®è´§ä½å¡SNï¼è·å对åºå»é´ä¸çè´§ä½åè¡¨ä¿¡æ¯ |
| | | if(StringUtils.isEmpty(sid)){ |
| | | sid = "FZZY0001"; |
| | | } |
| | | List<Depot> list = webManager.getDepotsByGid(sid); |
| | | view.put("depotList", list); |
| | | |
| | | view.put("flag", "index"); |
| | | return prefix + "index"; |
| | | } |
| | | |
| | |
| | | package com.fzzy.igds.dzhwk.manager; |
| | | |
| | | import com.fzzy.igds.dzhwk.data.DzhwkConfigData; |
| | | import com.fzzy.igds.dzhwk.data.HwkDepotDto; |
| | | import com.fzzy.igds.dzhwk.domain.Depot; |
| | | import com.fzzy.igds.dzhwk.domain.Dept; |
| | | import com.fzzy.igds.dzhwk.domain.HScreenSer; |
| | | import com.fzzy.igds.dzhwk.service.ScreenSerService; |
| | | import com.fzzy.igds.file.FileService; |
| | | import com.fzzy.igds.sys.CoreDeptService; |
| | | import com.fzzy.igds.sys.DepotService; |
| | | import com.ruoyi.common.config.FrameworkConfig; |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | import lombok.extern.slf4j.Slf4j; |
| | |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.io.File; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @Description |
| | |
| | | private FileService fileService; |
| | | @Resource |
| | | private DzhwkConfigData dzhwkConfigData; |
| | | @Resource |
| | | private ScreenSerService screenSerService; |
| | | @Resource |
| | | private DepotService depotService; |
| | | |
| | | |
| | | /** |
| | | * æ ¹æ®åä½IDè·ååä½ä¿¡æ¯ |
| | | * |
| | |
| | | } |
| | | return dept; |
| | | } |
| | | |
| | | /** |
| | | * |
| | | * @param sid |
| | | * @return |
| | | */ |
| | | public List<Depot> getDepotsByGid(String sid) { |
| | | |
| | | if(StringUtils.isEmpty(sid)){ |
| | | return null; |
| | | } |
| | | //è·åsid对åºçå»é´ä¿¡æ¯ï¼ |
| | | HScreenSer screenSer = screenSerService.getDataBySn(sid); |
| | | |
| | | if(null == screenSer || StringUtils.isEmpty(screenSer.getAjdh())){ |
| | | return null; |
| | | } |
| | | List<Depot> list = depotService.getCacheByAjdn(screenSer.getCompanyId(), screenSer.getAjdh()); |
| | | if(null == list || list.isEmpty()){ |
| | | return null; |
| | | } |
| | | |
| | | return list; |
| | | } |
| | | } |
| | |
| | | console.log('ç¨æ·æ²¡ææä½'); |
| | | // å¦ææ²¡ææä½è¶
è¿1åéï¼è·³è½¬å°éå±é¡µé¢ |
| | | window.location.href = "../dzhwk/lock?flag=" + flag; |
| | | }, 1000*60); // 1åé |
| | | }, 1000*60*60); // 1åé |
| | | } |
| | | |
| | | /** |
| | |
| | | <div class="videobox"> |
| | | <!-- <video src="http://player.alicdn.com/video/aliyunmedia.mp4" class="img"--> |
| | | <video th:src="${videoUrl}" style="width: 100%;height: 100%;" |
| | | poster="/img/dzhwk/imgl4.jpg" muted preload controls |
| | | th:poster="${imgUrl}" muted preload controls |
| | | webkit-playsinline="true" playsinline="true">æ¨çæµè§å¨ä¸æ¯ævideoæ ç¾ |
| | | </video> |
| | | </div> |
| | |
| | | <div class="col-r g-boxl1"> |
| | | <div class="m-swiperl1"> |
| | | <div class="swiper"> |
| | | <div class="swiper-wrapper"> |
| | | <div class="swiper-wrapper" id="depotList"> |
| | | <div class="swiper-slide"> |
| | | <div class="top"> |
| | | <div class="tit">è´§ä½åç§° <em>P01-01</em></div> |
| | |
| | | <script th:src="@{/dzhwk/common.js}"></script> |
| | | <script th:inline="javascript"> |
| | | var flag = [[${flag}]]; |
| | | var depotList = [[${depotList}]]; |
| | | var html = ""; |
| | | if(depotList){ |
| | | $.each(depotList, function (index, item) { |
| | | html += '<div class="swiper-slide"><div class="top"><div class="tit">è´§ä½åç§° <em>'+item.name+'</em></div><div class="store">ä»å»--</div></div><ul class="ul-listl3">'; |
| | | html += '<li><div class="con" style="background-color: rgba(3,77,146,.3);"><div class="icon"><img src="/img/dzhwk/iconl18.png" alt=""></div><div class="txt"><div class="num"><em>--</em>°C</div><div class="tt">仿¸©</div></div></div></li>'; |
| | | html += '<li><div class="con" style="background-color: rgba(91,104,225,.25);"><div class="icon"><img src="/img/dzhwk/iconl19.png" alt=""></div><div class="txt"><div class="num"><em>--</em>%</div><div class="tt">仿¹¿</div></div></div></li>'; |
| | | html += '<li><div class="con" style="background-color: rgba(31,133,78,.15);"><div class="icon"><img src="/img/dzhwk/iconl20.png" alt=""></div><div class="txt"><div class="num"><em>--</em>%</div><div class="tt">æ°§æ°</div></div></div></li>'; |
| | | html += '<li><div class="con" style="background-color: rgba(2,175,255,.15);"><div class="icon"><img src="/img/dzhwk/iconl21.png" alt=""></div><div class="txt"><div class="num"><em>--</em>ppm</div><div class="tt">ç£·åæ°¢</div></div></div></li></ul>'; |
| | | html += '<div class="m-infol"><div class="item"><div class="box" style="background-color: rgba(79,158,254,.23);"><ul class="ul-listl4">'; |
| | | html += '<li><div class="con"><div class="ll">è´§ä½åç§°</div><div class="rr">'+item.name+'</div></div></li><li><div class="con"><div class="ll">仿¿ç±»å</div><div class="rr">--</div></div></li>'; |
| | | html += '<li><div class="con"><div class="ll">è´§ä½ç¶æ</div><div class="rr"><div class="btn g-statel"><div class="icon"><img src="/img/dzhwk/iconl22.png" alt=""></div>'+item.depotStatusName+'</div></div></div> </li>'; |
| | | html += '<li><div class="con"><div class="ll">ç²®é£å¨é</div><div class="rr">'+item.storageReal+'å¨</div></div></li><li><div class="con"><div class="ll">ç²®é£åç§</div><div class="rr">'+item.foodVarietyName+'</div></div></li>'; |
| | | html += '<li><div class="con"><div class="ll">ç²®é£ç级</div><div class="rr">'+item.foodLevelName+'</div></div></li><li><div class="con"><div class="ll">ä»å¨æ§è´¨</div><div class="rr">'+item.foodTypeName+'</div> </div></li>'; |
| | | html += '<li><div class="con"><div class="ll">å
¥ä»æ¶é´</div><div class="rr">'+item.storeDate+'</div></div></li><li><div class="con"><div class="ll">ç²®é£å¹´ä»½</div><div class="rr">'+item.foodYear+'</div></div></li></ul>'; |
| | | html += '</div></div><div class="item"><div class="box" style="background-color: rgba(3,129,255,.23);"><div class="bgpic" style="background-image: url(/img/dzhwk/imgl5.jpg);"></div><div class="pic"><img src="/img/dzhwk/imgl6.jpg" alt=""></div>'; |
| | | html += '<ul class="ul-intel"><li><div class="con"><div class="ll"><div class="ico"><img src="/img/dzhwk/iconl23.png" alt=""></div>ä¿ç®¡å</div><div class="rr">'+item.storeKeeperName+'</div></div></li>'; |
| | | html += '<li><div class="con"><div class="ll"><div class="ico"><img src="/img/dzhwk/iconl24.png" alt=""></div>çµè¯</div><div class="rr">--</div></div></li></ul></div></div></div></div>'; |
| | | |
| | | }) |
| | | }else{ |
| | | html += '<div class="swiper-slide"><div class="top"><div class="tit">è´§ä½åç§° <em>--</em></div><div class="store">ä»å»--</div></div><ul class="ul-listl3">'; |
| | | html += '<li><div class="con" style="background-color: rgba(3,77,146,.3);"><div class="icon"><img src="/img/dzhwk/iconl18.png" alt=""></div><div class="txt"><div class="num"><em>--</em>°C</div><div class="tt">仿¸©</div></div></div></li>'; |
| | | html += '<li><div class="con" style="background-color: rgba(91,104,225,.25);"><div class="icon"><img src="/img/dzhwk/iconl19.png" alt=""></div><div class="txt"><div class="num"><em>--</em>%</div><div class="tt">仿¹¿</div></div></div></li>'; |
| | | html += '<li><div class="con" style="background-color: rgba(31,133,78,.15);"><div class="icon"><img src="/img/dzhwk/iconl20.png" alt=""></div><div class="txt"><div class="num"><em>--</em>%</div><div class="tt">æ°§æ°</div></div></div></li>'; |
| | | html += '<li><div class="con" style="background-color: rgba(2,175,255,.15);"><div class="icon"><img src="/img/dzhwk/iconl21.png" alt=""></div><div class="txt"><div class="num"><em>--</em>ppm</div><div class="tt">ç£·åæ°¢</div></div></div></li></ul>'; |
| | | html += '<div class="m-infol"><div class="item"><div class="box" style="background-color: rgba(79,158,254,.23);"><ul class="ul-listl4">'; |
| | | html += '<li><div class="con"><div class="ll">è´§ä½åç§°</div><div class="rr">--</div></div></li><li><div class="con"><div class="ll">仿¿ç±»å</div><div class="rr">--</div></div></li>'; |
| | | html += '<li><div class="con"><div class="ll">è´§ä½ç¶æ</div><div class="rr"><div class="btn g-statel"><div class="icon"><img src="/img/dzhwk/iconl22.png" alt=""></div>--</div></div></div> </li>'; |
| | | html += '<li><div class="con"><div class="ll">ç²®é£å¨é</div><div class="rr">--å¨</div></div></li><li><div class="con"><div class="ll">ç²®é£åç§</div><div class="rr">--</div></div></li>'; |
| | | html += '<li><div class="con"><div class="ll">ç²®é£ç级</div><div class="rr">--</div></div></li><li><div class="con"><div class="ll">ä»å¨æ§è´¨</div><div class="rr">--</div> </div></li>'; |
| | | html += '<li><div class="con"><div class="ll">å
¥ä»æ¶é´</div><div class="rr">--</div></div></li><li><div class="con"><div class="ll">ç²®é£å¹´ä»½</div><div class="rr">--</div></div></li></ul>'; |
| | | html += '</div></div><div class="item"><div class="box" style="background-color: rgba(3,129,255,.23);"><div class="bgpic" style="background-image: url(/img/dzhwk/imgl5.jpg);"></div><div class="pic"><img src="/img/dzhwk/imgl6.jpg" alt=""></div>'; |
| | | html += '<ul class="ul-intel"><li><div class="con"><div class="ll"><div class="ico"><img src="/img/dzhwk/iconl23.png" alt=""></div>ä¿ç®¡å</div><div class="rr">--</div></div></li>'; |
| | | html += '<li><div class="con"><div class="ll"><div class="ico"><img src="/img/dzhwk/iconl24.png" alt=""></div>çµè¯</div><div class="rr">--</div></div></li></ul></div></div></div></div>'; |
| | | } |
| | | $("#depotList").html(html); |
| | | |
| | | var swiper = new Swiper('.m-swiperl1 .swiper', { |
| | | slidesPerView: 1, |
| | | // autoplay: { |
| | |
| | | // disableOnInteraction: false, |
| | | // }, |
| | | loop: true, |
| | | autoplay:{ |
| | | delay: 3000, |
| | | disableOnInteraction: false |
| | | }, |
| | | pagination: { |
| | | el: '.m-swiperl1 .swiper-pagination', |
| | | type: 'fraction', |