Dockerfile

master
Cui YongXing 2024-07-25 21:01:25 +08:00
parent fc9a826f90
commit 4722a0b64e
2 changed files with 24 additions and 5 deletions

15
Dockerfile 100644
View File

@ -0,0 +1,15 @@
#指定构建镜像的起始镜像
FROM anolis-registry.cn-zhangjiakou.cr.aliyuncs.com/openanolis/dragonwell:17.0.4.0.4.8-standard-ga-8.6
#定义时区参数
ENV TZ=Asia/Shanghai
#设置时区
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo '$TZ' > /etc/timezone
#挂载目录
VOLUME ["/home/logs/cloud-modules-system"]
#拷贝执行jar报
COPY ./target/cloud-modules-system.jar /home/app.jar
ENTRYPOINT ["java","-jar"]
CMD ["/home/app.jar"]

View File

@ -65,17 +65,21 @@
</select> </select>
<select id="findList" resultMap="SysNoticeVoResult"> <select id="findList" resultMap="SysNoticeVoResult">
SELECT * FROM sys_notice n LEFT JOIN sys_inform i on n.notice_id = i.notice_id SELECT * FROM sys_notice n LEFT JOIN sys_inform i on n.notice_id = i.notice_id
WHERE user_id = #{userId} <where>
<if test="noticeType==2"> and notice_type=#{noticeType} and n.start_time &lt; now() and n.end_time &gt; now() </if> <if test="noticeType==0"> and ( ( user_id = #{userId} and notice_type=1 ) or (user_id = #{userId} and notice_type=2
<if test="noticeType==1"> and notice_type=#{noticeType} </if> and n.start_time &lt; now() and n.end_time &gt; now()))</if>
<if test="noticeType==2"> and user_id = #{userId} and notice_type=#{noticeType} and n.start_time &lt; now() and n.end_time &gt; now() </if>
<if test="noticeType==1"> and user_id = #{userId} and notice_type=#{noticeType} </if>
<if test="state!=0"> and i.state=#{state}</if> <if test="state!=0"> and i.state=#{state}</if>
</where>
</select> </select>
<select id="look" resultMap="SysNoticeVoResult"> <select id="look" resultMap="SysNoticeVoResult">
SELECT * FROM sys_notice n LEFT JOIN sys_inform i on n.notice_id = i.notice_id SELECT * FROM sys_notice n LEFT JOIN sys_inform i on n.notice_id = i.notice_id
WHERE i.id = #{id} WHERE i.id = #{id}
</select> </select>
<select id="NoticeCount" resultType="java.lang.Integer"> <select id="NoticeCount" resultType="java.lang.Integer">
SELECT count(i.notice_id) FROM sys_notice n LEFT JOIN sys_inform i on n.notice_id = i.notice_id where i.notice_id=#{id} SELECT count(i.notice_id) FROM sys_notice n LEFT JOIN sys_inform i on n.notice_i d = i.notice_id where i.notice_id=#{id}
</select> </select>
<select id="NoticePageview" resultType="java.lang.Integer"> <select id="NoticePageview" resultType="java.lang.Integer">
SELECT count(i.notice_id) FROM sys_notice n LEFT JOIN sys_inform i on n.notice_id = i.notice_id where i.notice_id=#{id} and state=2 SELECT count(i.notice_id) FROM sys_notice n LEFT JOIN sys_inform i on n.notice_id = i.notice_id where i.notice_id=#{id} and state=2