数据库版本更新,语法修改,数据库连接更新,华为云内网连接

master v2.0
chen 3 years ago
parent 43d91b09f1
commit 9b2240cbd3
  1. 2
      src/main/resources/application-prod.properties
  2. 6
      src/main/resources/mapper/tms/ProjectRecordDao.xml

@ -2,7 +2,7 @@ server.port=9090
server.servlet.context-path=/evaluation server.servlet.context-path=/evaluation
#\u6B63\u5F0F\u6570\u636E\u5E93\u8FDE\u63A5 #\u6B63\u5F0F\u6570\u636E\u5E93\u8FDE\u63A5
spring.datasource.url=jdbc:mysql://rm-wz90d92p0pf083nxzno.mysql.rds.aliyuncs.com:3306/huoran?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=Asia/Shanghai spring.datasource.url=jdbc:mysql://192.168.0.245:3306/huoran?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=Asia/Shanghai
spring.datasource.username=root spring.datasource.username=root
spring.datasource.password=HuoRan@2021 spring.datasource.password=HuoRan@2021
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver

@ -64,7 +64,7 @@
<if test="systemId!=null and systemId!=''"> <if test="systemId!=null and systemId!=''">
and t.systemId = #{systemId} and t.systemId = #{systemId}
</if> </if>
GROUP BY c.recordId desc GROUP BY c.recordId
</select> </select>
<!-- 考核记录 --> <!-- 考核记录 -->
@ -235,7 +235,7 @@
INNER JOIN tms_experimental_report re ON re.eventId = r.recordId INNER JOIN tms_experimental_report re ON re.eventId = r.recordId
WHERE c.userId = #{userId} WHERE c.userId = #{userId}
AND projectPermissions = 0 AND projectPermissions = 0
GROUP BY c.recordId DESC; GROUP BY c.recordId
</select> </select>
<!-- 考核记录 --> <!-- 考核记录 -->
@ -261,7 +261,7 @@
AND tp.projectPermissions != 0 AND tp.projectPermissions != 0
AND ter.eventId = tpr.recordId AND ter.eventId = tpr.recordId
ORDER BY ORDER BY
tpr.recordId DESC; tpr.recordId DESC
</select> </select>
</mapper> </mapper>
Loading…
Cancel
Save