21 次代碼提交 c82750b596 ... 1d47ecbdd2

作者 SHA1 備註 提交日期
  wutt 1d47ecbdd2 修改最后开合时间 5 年之前
  wutt ed6b37647e Merge branch 'master' of http://47.100.37.243:10080/ZHOU/yunsu 5 年之前
  wutt 106c83c010 Merge branch 'master' of http://47.100.37.243:10080/ZHOU/yunsu 5 年之前
  wutt d725958232 Merge branch 'master' of http://47.100.37.243:10080/ZHOU/yunsu 5 年之前
  wutt da4fb052f8 Merge branch 'master' of http://47.100.37.243:10080/ZHOU/yunsu 5 年之前
  wutt f308894b81 Merge branch 'master' of http://47.100.37.243:10080/ZHOU/yunsu 5 年之前
  wutt ac2666b855 Merge branch 'master' of http://47.100.37.243:10080/ZHOU/yunsu 5 年之前
  wutt e166c09807 Merge branch 'master' of http://47.100.37.243:10080/ZHOU/yunsu 5 年之前
  wutt f8a6d13d53 Merge branch 'master' of http://47.100.37.243:10080/ZHOU/yunsu 5 年之前
  wutt 47de5ecaa7 Merge branch 'master' of http://47.100.37.243:10080/ZHOU/yunsu 5 年之前
  wutt d0a2453450 Merge branch 'master' of http://47.100.37.243:10080/ZHOU/yunsu 5 年之前
  wutt c618966c95 Merge branch 'master' of http://47.100.37.243:10080/ZHOU/yunsu 5 年之前
  wutt f976a15838 Merge branch 'master' of http://47.100.37.243:10080/ZHOU/yunsu 5 年之前
  wutt bf7b953ff0 Merge branch 'master' of http://47.100.37.243:10080/ZHOU/yunsu 5 年之前
  wutt 414b0dc8e3 Merge branch 'master' of http://47.100.37.243:10080/ZHOU/yunsu 5 年之前
  wutt 033787dbc6 Merge branch 'master' of http://47.100.37.243:10080/ZHOU/yunsu 5 年之前
  wutt 5193bcd423 Merge branch 'master' of http://47.100.37.243:10080/ZHOU/yunsu 5 年之前
  wutt bcdf861626 Merge branch 'master' of http://47.100.37.243:10080/ZHOU/yunsu 5 年之前
  wutt dd9a64cce1 Merge branch 'master' of http://47.100.37.243:10080/ZHOU/yunsu 5 年之前
  wutt 9123c692a7 Merge branch 'master' of http://47.100.37.243:10080/ZHOU/yunsu 5 年之前
  wutt 2d5c296bba 修改website的配置文件 5 年之前

+ 2 - 2
cloud-model/src/main/resources/mapper/MouldMapper.xml

@@ -90,7 +90,7 @@
         tbmp.end_time endTime,tbm.state state,tbp.project_name projectName,tbc.company_name companyName,tbco.company_name produceCompany,tbm.pre_update_id,
         tbp.manager mangerName,tbco.company_address area,tbm.oc_cycle oc_cycle,tbp.manager_id managerId,tbmp.equipment_name equipmentName,
         tbmp.equipment_no equipmentNo,tbm.setting_life setting_life,tbp.owner_company_name ownerCompanyName,tbm.run_times run_times,
-        tbmp.lng,tbmp.lat,tbmp.stage,(SELECT indate FROM `mould_history` WHERE equipment_no=equipmentNo ORDER BY indate DESC LIMIT 1) lastopentime
+        tbmp.lng,tbmp.lat,tbmp.stage,(SELECT indate FROM `mould_history_time` WHERE equipment_no=equipmentNo ORDER BY indate DESC LIMIT 1) lastopentime
         ,tbmp.curhill_number hillNumber,tbmp.curtemperature temperature
         from
         tb_mould tbm
@@ -140,7 +140,7 @@
         tbmp.end_time endTime,tbm.state state,tbp.project_name projectName,tbc.company_name companyName,tbm.holes,tbm.pre_update_id,tbco.company_name produceCompany,
         tbp.manager mangerName,tbco.company_address area,tbm.oc_cycle oc_cycle,tbm.creator_id creator_id,tbmp.equipment_name equipmentName,
         tbmp.equipment_no equipmentNo,tbm.setting_life setting_life,tbp.owner_company_name ownerCompanyName,tbm.run_times run_times,
-        tbmp.lng,tbmp.lat,tbmp.stage,(SELECT indate FROM `mould_history` WHERE equipment_no=equipmentNo ORDER BY indate DESC LIMIT 1) lastopentime,
+        tbmp.lng,tbmp.lat,tbmp.stage,(SELECT indate FROM `mould_history_time` WHERE equipment_no=equipmentNo ORDER BY indate DESC LIMIT 1) lastopentime,
         tbmp.curhill_number hillNumber,
         tbmp.curtemperature temperature
         from

+ 1 - 0
cloud-socket/.settings/org.eclipse.core.resources.prefs

@@ -1,3 +1,4 @@
 eclipse.preferences.version=1
 encoding//WebContent/bind_weixin.jsp=UTF-8
 encoding//src/com/tenpay=GBK
+encoding/<project>=UTF-8

+ 5 - 5
cloud-socket/src/com/js/kbt/socket/UserHandler.java

@@ -359,10 +359,10 @@ public class UserHandler extends SimpleChannelInboundHandler<String> {
 			logger.info("非法云模盒编号,不作下发处理");
 			return;
 		}
-		// List<TimeCalibrationRecord> count =
-		// timeCalibrationRecordMapper.selectCountByToday(equipmentNo);
-		// if (count.size() == 0) {
-		// 时间一直进行校准
+		 List<TimeCalibrationRecord> count =
+		 timeCalibrationRecordMapper.selectCountByToday(equipmentNo);
+		 //今天未校准时间,下发时间校准,已经校准过了,则不再校准
+		 if (count.size() == 0) {
 		Date date = new Date();
 		SimpleDateFormat sdf = new SimpleDateFormat("yy-MM-dd,HH:mm:ss");
 		String dateStr = sdf.format(date);
@@ -377,7 +377,7 @@ public class UserHandler extends SimpleChannelInboundHandler<String> {
 		timeCalibrationRecord.setIndate(new Date());
 		timeCalibrationRecord.setEquipmentNo(equipmentNo);
 		timeCalibrationRecordMapper.insertSelective(timeCalibrationRecord);
-		// }
+		 }
 	}
 
 	private void handleModLogic(MouldHistory item, int avgTime) {

+ 8 - 8
website/src/main/resources/application-prod.properties

@@ -19,15 +19,15 @@ spring.resources.static-locations=classpath:/META-INF/resources/,classpath:/reso
 # 数据源配置
 spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
 # 云模服务器对应的数据库
-spring.datasource.url=jdbc:mysql://118.190.47.230:3306/cloud_model_website?useUnicode=true&characterEncoding=utf8&serverTimezone=GMT%2B8
-spring.datasource.username=root
-spring.datasource.password=p011430seya1026
-# 我们测试的自己服务器数据库
-#spring.datasource.url=jdbc:mysql://127.0.0.1:3306/cloud_model_website?useUnicode=true&characterEncoding=utf8&serverTimezone=GMT%2B8
+#spring.datasource.url=jdbc:mysql://118.190.47.230:3306/cloud_mould?useUnicode=true&characterEncoding=utf8&serverTimezone=GMT%2B8
 #spring.datasource.username=root
-#spring.datasource.password=Hssx2019.!
-#spring.datasource.druid.test-on-borrow=true
-#spring.datasource.druid.test-while-idle=true
+#spring.datasource.password=p011430seya1026
+# 我们测试的自己服务器数据库
+spring.datasource.url=jdbc:mysql://127.0.0.1:3306/cloud_model_website?useUnicode=true&characterEncoding=utf8&serverTimezone=GMT%2B8
+spring.datasource.username=root
+spring.datasource.password=Hssx2019.!
+spring.datasource.druid.test-on-borrow=true
+spring.datasource.druid.test-while-idle=true
 # ####################################################################################################
 # MyBatis 配置
 mybatis.mapper-locations=mappers/*Mapper.xml