1
0
Code Issues Pull Requests Packages Projects Releases Wiki Activity GitHub Gitee

后端用户登录接口完成

This commit is contained in:
2022-11-23 20:37:35 +08:00
parent 46743b31b5
commit ac885b813f
64 changed files with 282 additions and 419 deletions

View File

@@ -1,4 +1,4 @@
package com.cxyxiaomo.epp;
package com.cxyxiaomo.epp.miniprogram;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

View File

@@ -1,8 +1,8 @@
package com.cxyxiaomo.epp.index.controller;
package com.cxyxiaomo.epp.miniprogram.index.controller;
import com.cxyxiaomo.epp.pojo.Apply;
import com.cxyxiaomo.epp.common.Res;
import com.cxyxiaomo.epp.index.service.ApplyService;
import com.cxyxiaomo.epp.common.response.Res;
import com.cxyxiaomo.epp.common.pojo.Apply;
import com.cxyxiaomo.epp.miniprogram.index.service.ApplyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

View File

@@ -1,8 +1,8 @@
package com.cxyxiaomo.epp.index.controller;
package com.cxyxiaomo.epp.miniprogram.index.controller;
import com.cxyxiaomo.epp.pojo.Notice;
import com.cxyxiaomo.epp.common.Res;
import com.cxyxiaomo.epp.index.service.NoticeService;
import com.cxyxiaomo.epp.common.response.Res;
import com.cxyxiaomo.epp.common.pojo.Notice;
import com.cxyxiaomo.epp.miniprogram.index.service.NoticeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

View File

@@ -1,7 +1,7 @@
package com.cxyxiaomo.epp.index.controller;
package com.cxyxiaomo.epp.miniprogram.index.controller;
import com.cxyxiaomo.epp.common.Res;
import com.cxyxiaomo.epp.index.service.OtherService;
import com.cxyxiaomo.epp.common.response.Res;
import com.cxyxiaomo.epp.miniprogram.index.service.OtherService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

View File

@@ -1,8 +1,8 @@
package com.cxyxiaomo.epp.index.controller;
package com.cxyxiaomo.epp.miniprogram.index.controller;
import com.cxyxiaomo.epp.pojo.Report;
import com.cxyxiaomo.epp.common.Res;
import com.cxyxiaomo.epp.index.service.ReportService;
import com.cxyxiaomo.epp.common.response.Res;
import com.cxyxiaomo.epp.common.pojo.Report;
import com.cxyxiaomo.epp.miniprogram.index.service.ReportService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

View File

@@ -1,4 +1,4 @@
package com.cxyxiaomo.epp.index.controller;
package com.cxyxiaomo.epp.miniprogram.index.controller;
import java.awt.image.BufferedImage;

View File

@@ -1,6 +1,6 @@
package com.cxyxiaomo.epp.index.dao;
package com.cxyxiaomo.epp.miniprogram.index.dao;
import com.cxyxiaomo.epp.pojo.Apply;
import com.cxyxiaomo.epp.common.pojo.Apply;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;

View File

@@ -1,6 +1,6 @@
package com.cxyxiaomo.epp.index.dao;
package com.cxyxiaomo.epp.miniprogram.index.dao;
import com.cxyxiaomo.epp.pojo.Notice;
import com.cxyxiaomo.epp.common.pojo.Notice;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;

View File

@@ -1,6 +1,6 @@
package com.cxyxiaomo.epp.index.dao;
package com.cxyxiaomo.epp.miniprogram.index.dao;
import com.cxyxiaomo.epp.pojo.Feedback;
import com.cxyxiaomo.epp.common.pojo.Feedback;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;

View File

@@ -1,6 +1,6 @@
package com.cxyxiaomo.epp.index.dao;
package com.cxyxiaomo.epp.miniprogram.index.dao;
import com.cxyxiaomo.epp.pojo.Report;
import com.cxyxiaomo.epp.common.pojo.Report;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;

View File

@@ -1,6 +1,6 @@
package com.cxyxiaomo.epp.index.service;
package com.cxyxiaomo.epp.miniprogram.index.service;
import com.cxyxiaomo.epp.pojo.Apply;
import com.cxyxiaomo.epp.common.pojo.Apply;
import java.util.List;

View File

@@ -1,7 +1,7 @@
package com.cxyxiaomo.epp.index.service;
package com.cxyxiaomo.epp.miniprogram.index.service;
import com.cxyxiaomo.epp.index.dao.ApplyDao;
import com.cxyxiaomo.epp.pojo.Apply;
import com.cxyxiaomo.epp.common.pojo.Apply;
import com.cxyxiaomo.epp.miniprogram.index.dao.ApplyDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

View File

@@ -1,6 +1,6 @@
package com.cxyxiaomo.epp.index.service;
package com.cxyxiaomo.epp.miniprogram.index.service;
import com.cxyxiaomo.epp.pojo.Notice;
import com.cxyxiaomo.epp.common.pojo.Notice;
import java.util.List;

View File

@@ -1,7 +1,7 @@
package com.cxyxiaomo.epp.index.service;
package com.cxyxiaomo.epp.miniprogram.index.service;
import com.cxyxiaomo.epp.index.dao.NoticeDao;
import com.cxyxiaomo.epp.pojo.Notice;
import com.cxyxiaomo.epp.common.pojo.Notice;
import com.cxyxiaomo.epp.miniprogram.index.dao.NoticeDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

View File

@@ -1,6 +1,6 @@
package com.cxyxiaomo.epp.index.service;
package com.cxyxiaomo.epp.miniprogram.index.service;
import com.cxyxiaomo.epp.pojo.Feedback;
import com.cxyxiaomo.epp.common.pojo.Feedback;
import java.util.List;

View File

@@ -1,7 +1,7 @@
package com.cxyxiaomo.epp.index.service;
package com.cxyxiaomo.epp.miniprogram.index.service;
import com.cxyxiaomo.epp.index.dao.OtherDao;
import com.cxyxiaomo.epp.pojo.Feedback;
import com.cxyxiaomo.epp.common.pojo.Feedback;
import com.cxyxiaomo.epp.miniprogram.index.dao.OtherDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

View File

@@ -1,6 +1,6 @@
package com.cxyxiaomo.epp.index.service;
package com.cxyxiaomo.epp.miniprogram.index.service;
import com.cxyxiaomo.epp.pojo.Report;
import com.cxyxiaomo.epp.common.pojo.Report;
import java.util.List;

View File

@@ -1,12 +1,10 @@
package com.cxyxiaomo.epp.index.service;
package com.cxyxiaomo.epp.miniprogram.index.service;
import com.cxyxiaomo.epp.index.dao.ReportDao;
import com.cxyxiaomo.epp.pojo.Report;
import com.cxyxiaomo.epp.common.pojo.Report;
import com.cxyxiaomo.epp.miniprogram.index.dao.ReportDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;
@Service

View File

@@ -1,8 +1,8 @@
package com.cxyxiaomo.epp.visitor.controller;
package com.cxyxiaomo.epp.miniprogram.visitor.controller;
import com.cxyxiaomo.epp.common.Res;
import com.cxyxiaomo.epp.visitor.service.VisitorService;
import com.cxyxiaomo.epp.pojo.Visitor;
import com.cxyxiaomo.epp.common.response.Res;
import com.cxyxiaomo.epp.miniprogram.visitor.service.VisitorService;
import com.cxyxiaomo.epp.common.pojo.Visitor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

View File

@@ -1,6 +1,6 @@
package com.cxyxiaomo.epp.visitor.dao;
package com.cxyxiaomo.epp.miniprogram.visitor.dao;
import com.cxyxiaomo.epp.pojo.Visitor;
import com.cxyxiaomo.epp.common.pojo.Visitor;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;

View File

@@ -1,6 +1,6 @@
package com.cxyxiaomo.epp.visitor.service;
package com.cxyxiaomo.epp.miniprogram.visitor.service;
import com.cxyxiaomo.epp.pojo.Visitor;
import com.cxyxiaomo.epp.common.pojo.Visitor;
import java.util.List;

View File

@@ -1,8 +1,8 @@
package com.cxyxiaomo.epp.visitor.service.impl;
package com.cxyxiaomo.epp.miniprogram.visitor.service.impl;
import com.cxyxiaomo.epp.pojo.Visitor;
import com.cxyxiaomo.epp.visitor.service.VisitorService;
import com.cxyxiaomo.epp.visitor.dao.VisitorDao;
import com.cxyxiaomo.epp.common.pojo.Visitor;
import com.cxyxiaomo.epp.miniprogram.visitor.service.VisitorService;
import com.cxyxiaomo.epp.miniprogram.visitor.dao.VisitorDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

View File

@@ -15,12 +15,12 @@
<select id="lastApply" resultType="java.lang.Integer">
select * from apply where stu_id = #{id} and state = 0 limit 1
</select>
<select id="applyListNoReplay" resultType="com.cxyxiaomo.epp.pojo.Apply">
<select id="applyListNoReplay" resultType="com.cxyxiaomo.epp.common.pojo.Apply">
select a.*,u.name,u.stu_id as stuId from apply a
left join user u on a.stu_id = u.id
where a.state = 0
</select>
<select id="myApply" resultType="com.cxyxiaomo.epp.pojo.Apply">
<select id="myApply" resultType="com.cxyxiaomo.epp.common.pojo.Apply">
select a.*,u.name,u.stu_id as stuId from apply a
left join user u on a.stu_id = u.id
where a.stu_id = #{id}

View File

@@ -10,7 +10,7 @@
<delete id="delNotice">
delete from notice where id = #{id}
</delete>
<select id="noticeList" resultType="com.cxyxiaomo.epp.pojo.Notice">
<select id="noticeList" resultType="com.cxyxiaomo.epp.common.pojo.Notice">
select * from notice order by time desc
<if test="limit!= ''">
limit ${limit}

View File

@@ -11,7 +11,7 @@
update feedback set reply = #{replay}
where id = #{id}
</update>
<select id="feedbackList" resultType="com.cxyxiaomo.epp.pojo.Feedback">
<select id="feedbackList" resultType="com.cxyxiaomo.epp.common.pojo.Feedback">
select * from feedback
<where>
<if test="id != null">
@@ -19,7 +19,7 @@
</if>
</where>
</select>
<select id="feedbackListNoReplay" resultType="com.cxyxiaomo.epp.pojo.Feedback">
<select id="feedbackListNoReplay" resultType="com.cxyxiaomo.epp.common.pojo.Feedback">
select * from feedback where reply is null
</select>
</mapper>

View File

@@ -11,7 +11,7 @@
(#{user_id},#{name},#{address},#{time},#{normal},#{yes_noon_temp},
#{yes_night_temp},#{today_morning_temp},#{isolation})
</insert>
<select id="myReport" resultType="com.cxyxiaomo.epp.pojo.Report">
<select id="myReport" resultType="com.cxyxiaomo.epp.common.pojo.Report">
select name,time,normal,address from report where user_id = #{id}
order by time desc
</select>

View File

@@ -19,7 +19,7 @@
<select id="showMyVisitor" resultType="java.lang.Integer">
select state from visitor where phone = #{phone} and TO_DAYS(NOW( )) - TO_DAYS(time) = 0
</select>
<select id="showVisitorList" resultType="com.cxyxiaomo.epp.pojo.Visitor">
<select id="showVisitorList" resultType="com.cxyxiaomo.epp.common.pojo.Visitor">
select * from visitor where state = 0
</select>
</mapper>