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

修改package

This commit is contained in:
程序员小墨 2022-11-05 20:22:30 +08:00
parent 530d32f2af
commit 40a4d3e8c5
41 changed files with 98 additions and 98 deletions

View File

@ -2,7 +2,7 @@
<configuration default="false" name="MiniProgram" type="SpringBootApplicationConfigurationType" factoryName="Spring Boot">
<option name="ACTIVE_PROFILES" />
<module name="microservice-provider-miniprogram-8080" />
<option name="SPRING_BOOT_MAIN_CLASS" value="com.cxyxiaomo.Application" />
<option name="SPRING_BOOT_MAIN_CLASS" value="com.cxyxiaomo.epp.Application" />
<method v="2">
<option name="Make" enabled="true" />
</method>

View File

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

View File

@ -1,8 +1,8 @@
package com.cxyxiaomo.index.controller;
package com.cxyxiaomo.epp.index.controller;
import com.cxyxiaomo.index.pojo.Apply;
import com.cxyxiaomo.index.pojo.Res;
import com.cxyxiaomo.index.service.ApplyService;
import com.cxyxiaomo.epp.index.pojo.Apply;
import com.cxyxiaomo.epp.index.pojo.Res;
import com.cxyxiaomo.epp.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.index.controller;
package com.cxyxiaomo.epp.index.controller;
import com.cxyxiaomo.index.pojo.Notice;
import com.cxyxiaomo.index.pojo.Res;
import com.cxyxiaomo.index.service.NoticeService;
import com.cxyxiaomo.epp.index.pojo.Notice;
import com.cxyxiaomo.epp.index.pojo.Res;
import com.cxyxiaomo.epp.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.index.controller;
package com.cxyxiaomo.epp.index.controller;
import com.cxyxiaomo.index.pojo.Res;
import com.cxyxiaomo.index.service.OtherService;
import com.cxyxiaomo.epp.index.pojo.Res;
import com.cxyxiaomo.epp.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.index.controller;
package com.cxyxiaomo.epp.index.controller;
import com.cxyxiaomo.index.pojo.Report;
import com.cxyxiaomo.index.pojo.Res;
import com.cxyxiaomo.index.service.ReportService;
import com.cxyxiaomo.epp.index.pojo.Report;
import com.cxyxiaomo.epp.index.pojo.Res;
import com.cxyxiaomo.epp.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,8 +1,8 @@
package com.cxyxiaomo.index.controller;
package com.cxyxiaomo.epp.index.controller;
import com.cxyxiaomo.index.pojo.Res;
import com.cxyxiaomo.index.pojo.User;
import com.cxyxiaomo.index.service.UserService;
import com.cxyxiaomo.epp.index.pojo.Res;
import com.cxyxiaomo.epp.index.pojo.User;
import com.cxyxiaomo.epp.index.service.UserService;
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.index.dao;
package com.cxyxiaomo.epp.index.dao;
import com.cxyxiaomo.index.pojo.Apply;
import com.cxyxiaomo.epp.index.pojo.Apply;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;

View File

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

View File

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

View File

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

View File

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

View File

@ -1,4 +1,4 @@
package com.cxyxiaomo.index.pojo;
package com.cxyxiaomo.epp.index.pojo;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,8 +1,8 @@
package com.cxyxiaomo.index.service;
package com.cxyxiaomo.epp.index.service;
import com.cxyxiaomo.index.dao.ReportDao;
import com.cxyxiaomo.index.dao.UserDao;
import com.cxyxiaomo.index.pojo.Report;
import com.cxyxiaomo.epp.index.dao.ReportDao;
import com.cxyxiaomo.epp.index.dao.UserDao;
import com.cxyxiaomo.epp.index.pojo.Report;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

View File

@ -1,13 +1,13 @@
package com.cxyxiaomo.index.service;
package com.cxyxiaomo.epp.index.service;
import com.cxyxiaomo.index.pojo.User;
import com.cxyxiaomo.epp.index.pojo.User;
import java.util.List;
public interface UserService {
User getUser(String username,String role);
User getUser(String username, String role);
User getUserByUsername(String username);

View File

@ -1,7 +1,7 @@
package com.cxyxiaomo.index.service;
package com.cxyxiaomo.epp.index.service;
import com.cxyxiaomo.index.dao.UserDao;
import com.cxyxiaomo.index.pojo.User;
import com.cxyxiaomo.epp.index.dao.UserDao;
import com.cxyxiaomo.epp.index.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@ -14,7 +14,7 @@ public class UserServiceImpl implements UserService {
private UserDao userDao;
@Override
public User getUser(String username,String role) {
public User getUser(String username, String role) {
return userDao.getUser(username, role);
}

View File

@ -1,8 +1,8 @@
package com.cxyxiaomo.visitor.controller;
package com.cxyxiaomo.epp.visitor.controller;
import com.cxyxiaomo.index.pojo.Res;
import com.cxyxiaomo.visitor.pojo.Visitor;
import com.cxyxiaomo.visitor.service.VisitorService;
import com.cxyxiaomo.epp.index.pojo.Res;
import com.cxyxiaomo.epp.visitor.service.VisitorService;
import com.cxyxiaomo.epp.visitor.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.visitor.dao;
package com.cxyxiaomo.epp.visitor.dao;
import com.cxyxiaomo.visitor.pojo.Visitor;
import com.cxyxiaomo.epp.visitor.pojo.Visitor;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;

View File

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

View File

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

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.cxyxiaomo.index.dao.ApplyDao">
<mapper namespace="com.cxyxiaomo.epp.index.dao.ApplyDao">
<insert id="applySub">
insert into apply
@ -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.index.pojo.Apply">
<select id="applyListNoReplay" resultType="com.cxyxiaomo.epp.index.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.index.pojo.Apply">
<select id="myApply" resultType="com.cxyxiaomo.epp.index.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

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.cxyxiaomo.index.dao.NoticeDao">
<mapper namespace="com.cxyxiaomo.epp.index.dao.NoticeDao">
<insert id="addNotice">
insert into notice (title, content , time) values
@ -10,7 +10,7 @@
<delete id="delNotice">
delete from notice where id = #{id}
</delete>
<select id="noticeList" resultType="com.cxyxiaomo.index.pojo.Notice">
<select id="noticeList" resultType="com.cxyxiaomo.epp.index.pojo.Notice">
select * from notice order by time desc
<if test="limit!= ''">
limit ${limit}

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.cxyxiaomo.index.dao.OtherDao">
<mapper namespace="com.cxyxiaomo.epp.index.dao.OtherDao">
<insert id="subFeedback">
insert into feedback (title, content, time, user_id) values
@ -11,7 +11,7 @@
update feedback set reply = #{replay}
where id = #{id}
</update>
<select id="feedbackList" resultType="com.cxyxiaomo.index.pojo.Feedback">
<select id="feedbackList" resultType="com.cxyxiaomo.epp.index.pojo.Feedback">
select * from feedback
<where>
<if test="id != null">
@ -19,7 +19,7 @@
</if>
</where>
</select>
<select id="feedbackListNoReplay" resultType="com.cxyxiaomo.index.pojo.Feedback">
<select id="feedbackListNoReplay" resultType="com.cxyxiaomo.epp.index.pojo.Feedback">
select * from feedback where reply is null
</select>
</mapper>

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.cxyxiaomo.index.dao.ReportDao">
<mapper namespace="com.cxyxiaomo.epp.index.dao.ReportDao">
<insert id="doReport">
insert into report
@ -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.index.pojo.Report">
<select id="myReport" resultType="com.cxyxiaomo.epp.index.pojo.Report">
select name,time,normal,address from report where user_id = #{id}
order by time desc
</select>

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.cxyxiaomo.index.dao.UserDao">
<mapper namespace="com.cxyxiaomo.epp.index.dao.UserDao">
<insert id="addUser">
insert into user
(username, name, password, role, stu_id) values
@ -19,20 +19,20 @@
update user set state = #{date}
where id = #{id}
</update>
<select id="selectAll" resultType="com.cxyxiaomo.index.pojo.User">
<select id="selectAll" resultType="com.cxyxiaomo.epp.index.pojo.User">
select * from `user`
</select>
<select id="getUserByUsername" resultType="com.cxyxiaomo.index.pojo.User">
<select id="getUserByUsername" resultType="com.cxyxiaomo.epp.index.pojo.User">
select * from user where username = #{username}
</select>
<select id="getUser" resultType="com.cxyxiaomo.index.pojo.User">
<select id="getUser" resultType="com.cxyxiaomo.epp.index.pojo.User">
select * from user where username = #{username} and role_id = #{role}
</select>
<select id="redCodeList" resultType="com.cxyxiaomo.index.pojo.User">
<select id="redCodeList" resultType="com.cxyxiaomo.epp.index.pojo.User">
select name,stu_id from user where TO_DAYS(NOW( )) != TO_DAYS(state) and role = 2
</select>
<select id="redCodeList2" resultType="com.cxyxiaomo.index.pojo.User">
<select id="redCodeList2" resultType="com.cxyxiaomo.epp.index.pojo.User">
select name,stu_id from user where state = "1999-01-01"
</select>
</mapper>

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.cxyxiaomo.visitor.dao.VisitorDao">
<mapper namespace="com.cxyxiaomo.epp.visitor.dao.VisitorDao">
<insert id="visitorApply">
insert into visitor
(time,phone,issue,meet_name,create_time) values
@ -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.visitor.pojo.Visitor">
<select id="showVisitorList" resultType="com.cxyxiaomo.epp.visitor.pojo.Visitor">
select * from visitor where state = 0
</select>
</mapper>

View File

@ -1,7 +1,7 @@
package com.cxyxiaomo.epp.controller;
import com.cxyxiaomo.epp.pojo.User;
import com.cxyxiaomo.epp.service.UserServiceImpl;
import com.cxyxiaomo.epp.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;