anderx лет назад: 4
Родитель
Сommit
10e65fb7cb

+ 1 - 1
GeneratorConfig.xml

@@ -43,7 +43,7 @@
     <property name="enableSubPackages" value="false"/>
     <property name="enableSubPackages" value="false"/>
      <property name="nullCatalogMeansCurrent" value="true"/>
      <property name="nullCatalogMeansCurrent" value="true"/>
     </javaClientGenerator>
     </javaClientGenerator>
-    <table schema="aft" tableName="user_names"
+    <table schema="aft" tableName="working_hours"
 	enableCountByExample="false" enableUpdateByExample="false"
 	enableCountByExample="false" enableUpdateByExample="false"
 	enableDeleteByExample="false" enableSelectByExample="false"
 	enableDeleteByExample="false" enableSelectByExample="false"
 	selectByExampleQueryId="false" enableSelectByPrimaryKey="true"
 	selectByExampleQueryId="false" enableSelectByPrimaryKey="true"

+ 86 - 0
src/main/java/com/goafanti/admin/controller/AdminDepartmentApiController.java

@@ -0,0 +1,86 @@
+package com.goafanti.admin.controller;
+
+
+
+import javax.annotation.Resource;
+
+
+
+import org.springframework.stereotype.Controller;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestMethod;
+
+import com.goafanti.admin.service.DepartmentService;
+import com.goafanti.common.bo.Result;
+import com.goafanti.common.constant.ErrorConstants;
+import com.goafanti.common.controller.CertifyApiController;
+import com.goafanti.common.model.WorkingHours;
+import com.goafanti.common.utils.StringUtils;
+
+@Controller
+@RequestMapping(value = "/api/admin/department")
+public class AdminDepartmentApiController extends CertifyApiController {
+	
+	@Resource
+	private DepartmentService 	departmentService;
+	
+	/**
+	 * 新增工作时间
+	 */
+	@RequestMapping(value = "/workingHours/add", method = RequestMethod.POST)
+	public Result add(WorkingHours in) {
+		Result res = new Result();
+		if (in.getType()==null||StringUtils.isBlank(in.getName())||
+				StringUtils.isBlank(in.getStart())||StringUtils.isBlank(in.getRestStart())||
+				StringUtils.isBlank(in.getEnd())||StringUtils.isBlank(in.getRestEnd())) {
+			res.getError().add(buildError(ErrorConstants.PARAM_ERROR, "", ""));
+			return res;
+		}
+		if (departmentService.checkWorkingHoursType(in.getType())) {
+			res.getError().add(buildError(ErrorConstants.PARAM_BEING_ERROR, "", "分类"));
+			return res;
+		}
+		res.setData(departmentService.addWorkingHours(in));
+		return res;
+	}
+	
+	/**
+	 * 删除工作时间
+	 */
+	@RequestMapping(value = "/workingHours/delete", method = RequestMethod.POST)
+	public Result delete(Integer id) {
+		Result res = new Result();
+		if (id==null) {
+			res.getError().add(buildError(ErrorConstants.PARAM_ERROR, "", ""));
+			return res;
+		}
+		res.setData(departmentService.deleteWorkingHours(id));
+		return res;
+	}
+	
+	/**
+	 * 工作时间列表
+	 */
+	@RequestMapping(value = "/workingHours/list", method = RequestMethod.GET)
+	public Result list() {
+		Result res = new Result();
+		res.setData(departmentService.selectWorkingHours());
+		return res;
+	}
+	
+	/**
+	 * 工作时间列表
+	 */
+	@RequestMapping(value = "/workingHours/get", method = RequestMethod.GET)
+	public Result get(String depId) {
+		Result res = new Result();
+		if (depId==null) {
+			res.getError().add(buildError(ErrorConstants.PARAM_ERROR, "", ""));
+			return res;
+		}
+		res.setData(departmentService.getWorkingHours(depId));
+		return res;
+	}
+
+	
+}

+ 17 - 0
src/main/java/com/goafanti/admin/service/DepartmentService.java

@@ -0,0 +1,17 @@
+package com.goafanti.admin.service;
+
+import com.goafanti.common.model.WorkingHours;
+
+public interface DepartmentService {
+
+	int addWorkingHours(WorkingHours in);
+
+	int deleteWorkingHours(Integer id);
+
+	Object selectWorkingHours();
+
+	Object getWorkingHours(String depId);
+
+	boolean checkWorkingHoursType(Integer type);
+
+}

+ 51 - 0
src/main/java/com/goafanti/admin/service/impl/DepartmentServiceImpl.java

@@ -0,0 +1,51 @@
+package com.goafanti.admin.service.impl;
+
+import java.util.List;
+
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+import com.goafanti.admin.service.DepartmentService;
+import com.goafanti.common.dao.WorkingHoursMapper;
+import com.goafanti.common.model.WorkingHours;
+import com.goafanti.core.mybatis.BaseMybatisDao;
+
+@Service
+public class DepartmentServiceImpl extends BaseMybatisDao<WorkingHoursMapper> implements DepartmentService {
+
+	@Autowired
+	private WorkingHoursMapper	workingHoursMapper;
+	
+	@Override
+	public int addWorkingHours(WorkingHours in) {
+		return workingHoursMapper.insertSelective(in);
+	}
+
+	@Override
+	public int deleteWorkingHours(Integer id) {
+		return workingHoursMapper.deleteByPrimaryKey(id);
+	}
+
+	@Override
+	public List<WorkingHours> selectWorkingHours() {
+		return workingHoursMapper.selectList();
+	}
+
+	@Override
+	public WorkingHours getWorkingHours(String depId) {
+		return workingHoursMapper.selectBydepId(depId);
+	}
+
+	@Override
+	public boolean checkWorkingHoursType(Integer type) {
+		int i=workingHoursMapper.getTypeCount(type);
+		if(i>0) {
+			return true;
+		}
+		return false;
+	}
+	
+	
+	
+
+}

+ 52 - 0
src/main/java/com/goafanti/common/dao/WorkingHoursMapper.java

@@ -0,0 +1,52 @@
+package com.goafanti.common.dao;
+
+import java.util.List;
+
+import org.apache.ibatis.annotations.Param;
+
+import com.goafanti.common.model.WorkingHours;
+
+public interface WorkingHoursMapper {
+
+	/**
+	 * This method was generated by MyBatis Generator. This method corresponds to the database table working_hours
+	 * @mbg.generated  Fri Jul 09 11:31:02 CST 2021
+	 */
+	int deleteByPrimaryKey(Integer id);
+
+	/**
+	 * This method was generated by MyBatis Generator. This method corresponds to the database table working_hours
+	 * @mbg.generated  Fri Jul 09 11:31:02 CST 2021
+	 */
+	int insert(WorkingHours record);
+
+	/**
+	 * This method was generated by MyBatis Generator. This method corresponds to the database table working_hours
+	 * @mbg.generated  Fri Jul 09 11:31:02 CST 2021
+	 */
+	int insertSelective(WorkingHours record);
+
+	/**
+	 * This method was generated by MyBatis Generator. This method corresponds to the database table working_hours
+	 * @mbg.generated  Fri Jul 09 11:31:02 CST 2021
+	 */
+	WorkingHours selectByPrimaryKey(Integer id);
+
+	/**
+	 * This method was generated by MyBatis Generator. This method corresponds to the database table working_hours
+	 * @mbg.generated  Fri Jul 09 11:31:02 CST 2021
+	 */
+	int updateByPrimaryKeySelective(WorkingHours record);
+
+	/**
+	 * This method was generated by MyBatis Generator. This method corresponds to the database table working_hours
+	 * @mbg.generated  Fri Jul 09 11:31:02 CST 2021
+	 */
+	int updateByPrimaryKey(WorkingHours record);
+
+	List<WorkingHours> selectList();
+
+	WorkingHours selectBydepId(@Param("depId")String depId);
+
+	int getTypeCount(Integer type);
+}

+ 184 - 0
src/main/java/com/goafanti/common/mapper/WorkingHoursMapper.xml

@@ -0,0 +1,184 @@
+<?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.goafanti.common.dao.WorkingHoursMapper">
+  <resultMap id="BaseResultMap" type="com.goafanti.common.model.WorkingHours">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Fri Jul 09 11:31:02 CST 2021.
+    -->
+    <id column="id" jdbcType="INTEGER" property="id" />
+    <result column="name" jdbcType="VARCHAR" property="name" />
+    <result column="type" jdbcType="INTEGER" property="type" />
+    <result column="start" jdbcType="VARCHAR" property="start" />
+    <result column="rest_start" jdbcType="VARCHAR" property="restStart" />
+    <result column="rest_end" jdbcType="VARCHAR" property="restEnd" />
+    <result column="end" jdbcType="VARCHAR" property="end" />
+    <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
+  </resultMap>
+  <sql id="Base_Column_List">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Fri Jul 09 11:31:02 CST 2021.
+    -->
+    id, `name`, `type`, `start`, rest_start, rest_end, `end`, create_time
+  </sql>
+  <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Fri Jul 09 11:31:02 CST 2021.
+    -->
+    select 
+    <include refid="Base_Column_List" />
+    from working_hours
+    where id = #{id,jdbcType=INTEGER}
+  </select>
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Fri Jul 09 11:31:02 CST 2021.
+    -->
+    delete from working_hours
+    where id = #{id,jdbcType=INTEGER}
+  </delete>
+  <insert id="insert" parameterType="com.goafanti.common.model.WorkingHours">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Fri Jul 09 11:31:02 CST 2021.
+    -->
+    insert into working_hours (id, `name`, `type`, 
+      `start`, rest_start, rest_end, 
+      `end`, create_time)
+    values (#{id,jdbcType=INTEGER}, #{name,jdbcType=VARCHAR}, #{type,jdbcType=INTEGER}, 
+      #{start,jdbcType=VARCHAR}, #{restStart,jdbcType=VARCHAR}, #{restEnd,jdbcType=VARCHAR}, 
+      #{end,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP})
+  </insert>
+  <insert id="insertSelective" parameterType="com.goafanti.common.model.WorkingHours">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Fri Jul 09 11:31:02 CST 2021.
+    -->
+    insert into working_hours
+    <trim prefix="(" suffix=")" suffixOverrides=",">
+      <if test="id != null">
+        id,
+      </if>
+      <if test="name != null">
+        `name`,
+      </if>
+      <if test="type != null">
+        `type`,
+      </if>
+      <if test="start != null">
+        `start`,
+      </if>
+      <if test="restStart != null">
+        rest_start,
+      </if>
+      <if test="restEnd != null">
+        rest_end,
+      </if>
+      <if test="end != null">
+        `end`,
+      </if>
+      <if test="createTime != null">
+        create_time,
+      </if>
+    </trim>
+    <trim prefix="values (" suffix=")" suffixOverrides=",">
+      <if test="id != null">
+        #{id,jdbcType=INTEGER},
+      </if>
+      <if test="name != null">
+        #{name,jdbcType=VARCHAR},
+      </if>
+      <if test="type != null">
+        #{type,jdbcType=INTEGER},
+      </if>
+      <if test="start != null">
+        #{start,jdbcType=VARCHAR},
+      </if>
+      <if test="restStart != null">
+        #{restStart,jdbcType=VARCHAR},
+      </if>
+      <if test="restEnd != null">
+        #{restEnd,jdbcType=VARCHAR},
+      </if>
+      <if test="end != null">
+        #{end,jdbcType=VARCHAR},
+      </if>
+      <if test="createTime != null">
+        #{createTime,jdbcType=TIMESTAMP},
+      </if>
+    </trim>
+  </insert>
+  <update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.model.WorkingHours">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Fri Jul 09 11:31:02 CST 2021.
+    -->
+    update working_hours
+    <set>
+      <if test="name != null">
+        `name` = #{name,jdbcType=VARCHAR},
+      </if>
+      <if test="type != null">
+        `type` = #{type,jdbcType=INTEGER},
+      </if>
+      <if test="start != null">
+        `start` = #{start,jdbcType=VARCHAR},
+      </if>
+      <if test="restStart != null">
+        rest_start = #{restStart,jdbcType=VARCHAR},
+      </if>
+      <if test="restEnd != null">
+        rest_end = #{restEnd,jdbcType=VARCHAR},
+      </if>
+      <if test="end != null">
+        `end` = #{end,jdbcType=VARCHAR},
+      </if>
+      <if test="createTime != null">
+        create_time = #{createTime,jdbcType=TIMESTAMP},
+      </if>
+    </set>
+    where id = #{id,jdbcType=INTEGER}
+  </update>
+  <update id="updateByPrimaryKey" parameterType="com.goafanti.common.model.WorkingHours">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Fri Jul 09 11:31:02 CST 2021.
+    -->
+    update working_hours
+    set `name` = #{name,jdbcType=VARCHAR},
+      `type` = #{type,jdbcType=INTEGER},
+      `start` = #{start,jdbcType=VARCHAR},
+      rest_start = #{restStart,jdbcType=VARCHAR},
+      rest_end = #{restEnd,jdbcType=VARCHAR},
+      `end` = #{end,jdbcType=VARCHAR},
+      create_time = #{createTime,jdbcType=TIMESTAMP}
+    where id = #{id,jdbcType=INTEGER}
+  </update>
+  
+    <select id="selectList" parameterType="java.lang.Integer" resultMap="BaseResultMap">
+    select 
+    <include refid="Base_Column_List" />
+    from working_hours
+  </select>
+  
+  <select id="selectBydepId"  resultType="com.goafanti.common.model.WorkingHours">
+    select 
+    a.id,a.`type`, a.`start`, a.rest_start restStart, a.rest_end restEnd, a.`end`, a.create_time createTime
+    from department d  left join working_hours a on d.working_hours_type =a.type
+    where d.id = #{depId}
+  </select>
+  <select id="getTypeCount" resultType="java.lang.Integer">
+  select count(*) from working_hours where type= #{type}
+  </select>
+</mapper>

+ 220 - 0
src/main/java/com/goafanti/common/model/WorkingHours.java

@@ -0,0 +1,220 @@
+package com.goafanti.common.model;
+
+import java.io.Serializable;
+import java.util.Date;
+
+public class WorkingHours implements Serializable {
+
+	/**
+	 * This field was generated by MyBatis Generator. This field corresponds to the database column working_hours.id
+	 * @mbg.generated  Fri Jul 09 11:31:02 CST 2021
+	 */
+	private Integer id;
+	/**
+	 * This field was generated by MyBatis Generator. This field corresponds to the database column working_hours.name
+	 * @mbg.generated  Fri Jul 09 11:31:02 CST 2021
+	 */
+	private String name;
+	/**
+	 * This field was generated by MyBatis Generator. This field corresponds to the database column working_hours.type
+	 * @mbg.generated  Fri Jul 09 11:31:02 CST 2021
+	 */
+	private Integer type;
+	/**
+	 * This field was generated by MyBatis Generator. This field corresponds to the database column working_hours.start
+	 * @mbg.generated  Fri Jul 09 11:31:02 CST 2021
+	 */
+	private String start;
+	/**
+	 * This field was generated by MyBatis Generator. This field corresponds to the database column working_hours.rest_start
+	 * @mbg.generated  Fri Jul 09 11:31:02 CST 2021
+	 */
+	private String restStart;
+	/**
+	 * This field was generated by MyBatis Generator. This field corresponds to the database column working_hours.rest_end
+	 * @mbg.generated  Fri Jul 09 11:31:02 CST 2021
+	 */
+	private String restEnd;
+	/**
+	 * This field was generated by MyBatis Generator. This field corresponds to the database column working_hours.end
+	 * @mbg.generated  Fri Jul 09 11:31:02 CST 2021
+	 */
+	private String end;
+	/**
+	 * This field was generated by MyBatis Generator. This field corresponds to the database column working_hours.create_time
+	 * @mbg.generated  Fri Jul 09 11:31:02 CST 2021
+	 */
+	private Date createTime;
+	/**
+	 * This field was generated by MyBatis Generator. This field corresponds to the database table working_hours
+	 * @mbg.generated  Fri Jul 09 11:31:02 CST 2021
+	 */
+	private static final long serialVersionUID = 1L;
+
+	/**
+	 * This method was generated by MyBatis Generator. This method returns the value of the database column working_hours.id
+	 * @return  the value of working_hours.id
+	 * @mbg.generated  Fri Jul 09 11:31:02 CST 2021
+	 */
+	public Integer getId() {
+		return id;
+	}
+
+	/**
+	 * This method was generated by MyBatis Generator. This method sets the value of the database column working_hours.id
+	 * @param id  the value for working_hours.id
+	 * @mbg.generated  Fri Jul 09 11:31:02 CST 2021
+	 */
+	public void setId(Integer id) {
+		this.id = id;
+	}
+
+	/**
+	 * This method was generated by MyBatis Generator. This method returns the value of the database column working_hours.name
+	 * @return  the value of working_hours.name
+	 * @mbg.generated  Fri Jul 09 11:31:02 CST 2021
+	 */
+	public String getName() {
+		return name;
+	}
+
+	/**
+	 * This method was generated by MyBatis Generator. This method sets the value of the database column working_hours.name
+	 * @param name  the value for working_hours.name
+	 * @mbg.generated  Fri Jul 09 11:31:02 CST 2021
+	 */
+	public void setName(String name) {
+		this.name = name == null ? null : name.trim();
+	}
+
+	/**
+	 * This method was generated by MyBatis Generator. This method returns the value of the database column working_hours.type
+	 * @return  the value of working_hours.type
+	 * @mbg.generated  Fri Jul 09 11:31:02 CST 2021
+	 */
+	public Integer getType() {
+		return type;
+	}
+
+	/**
+	 * This method was generated by MyBatis Generator. This method sets the value of the database column working_hours.type
+	 * @param type  the value for working_hours.type
+	 * @mbg.generated  Fri Jul 09 11:31:02 CST 2021
+	 */
+	public void setType(Integer type) {
+		this.type = type;
+	}
+
+	/**
+	 * This method was generated by MyBatis Generator. This method returns the value of the database column working_hours.start
+	 * @return  the value of working_hours.start
+	 * @mbg.generated  Fri Jul 09 11:31:02 CST 2021
+	 */
+	public String getStart() {
+		return start;
+	}
+
+	/**
+	 * This method was generated by MyBatis Generator. This method sets the value of the database column working_hours.start
+	 * @param start  the value for working_hours.start
+	 * @mbg.generated  Fri Jul 09 11:31:02 CST 2021
+	 */
+	public void setStart(String start) {
+		this.start = start == null ? null : start.trim();
+	}
+
+	/**
+	 * This method was generated by MyBatis Generator. This method returns the value of the database column working_hours.rest_start
+	 * @return  the value of working_hours.rest_start
+	 * @mbg.generated  Fri Jul 09 11:31:02 CST 2021
+	 */
+	public String getRestStart() {
+		return restStart;
+	}
+
+	/**
+	 * This method was generated by MyBatis Generator. This method sets the value of the database column working_hours.rest_start
+	 * @param restStart  the value for working_hours.rest_start
+	 * @mbg.generated  Fri Jul 09 11:31:02 CST 2021
+	 */
+	public void setRestStart(String restStart) {
+		this.restStart = restStart == null ? null : restStart.trim();
+	}
+
+	/**
+	 * This method was generated by MyBatis Generator. This method returns the value of the database column working_hours.rest_end
+	 * @return  the value of working_hours.rest_end
+	 * @mbg.generated  Fri Jul 09 11:31:02 CST 2021
+	 */
+	public String getRestEnd() {
+		return restEnd;
+	}
+
+	/**
+	 * This method was generated by MyBatis Generator. This method sets the value of the database column working_hours.rest_end
+	 * @param restEnd  the value for working_hours.rest_end
+	 * @mbg.generated  Fri Jul 09 11:31:02 CST 2021
+	 */
+	public void setRestEnd(String restEnd) {
+		this.restEnd = restEnd == null ? null : restEnd.trim();
+	}
+
+	/**
+	 * This method was generated by MyBatis Generator. This method returns the value of the database column working_hours.end
+	 * @return  the value of working_hours.end
+	 * @mbg.generated  Fri Jul 09 11:31:02 CST 2021
+	 */
+	public String getEnd() {
+		return end;
+	}
+
+	/**
+	 * This method was generated by MyBatis Generator. This method sets the value of the database column working_hours.end
+	 * @param end  the value for working_hours.end
+	 * @mbg.generated  Fri Jul 09 11:31:02 CST 2021
+	 */
+	public void setEnd(String end) {
+		this.end = end == null ? null : end.trim();
+	}
+
+	/**
+	 * This method was generated by MyBatis Generator. This method returns the value of the database column working_hours.create_time
+	 * @return  the value of working_hours.create_time
+	 * @mbg.generated  Fri Jul 09 11:31:02 CST 2021
+	 */
+	public Date getCreateTime() {
+		return createTime;
+	}
+
+	/**
+	 * This method was generated by MyBatis Generator. This method sets the value of the database column working_hours.create_time
+	 * @param createTime  the value for working_hours.create_time
+	 * @mbg.generated  Fri Jul 09 11:31:02 CST 2021
+	 */
+	public void setCreateTime(Date createTime) {
+		this.createTime = createTime;
+	}
+
+	/**
+	 * This method was generated by MyBatis Generator. This method corresponds to the database table working_hours
+	 * @mbg.generated  Fri Jul 09 11:31:02 CST 2021
+	 */
+	@Override
+	public String toString() {
+		StringBuilder sb = new StringBuilder();
+		sb.append(getClass().getSimpleName());
+		sb.append(" [");
+		sb.append("Hash = ").append(hashCode());
+		sb.append(", id=").append(id);
+		sb.append(", name=").append(name);
+		sb.append(", type=").append(type);
+		sb.append(", start=").append(start);
+		sb.append(", restStart=").append(restStart);
+		sb.append(", restEnd=").append(restEnd);
+		sb.append(", end=").append(end);
+		sb.append(", createTime=").append(createTime);
+		sb.append(", serialVersionUID=").append(serialVersionUID);
+		sb.append("]");
+		return sb.toString();
+	}
+}

+ 6 - 6
src/main/resources/props/config_local.properties

@@ -2,13 +2,13 @@ dev.name=local
 #Driver
 #Driver
 jdbc.driverClassName=com.mysql.jdbc.Driver
 jdbc.driverClassName=com.mysql.jdbc.Driver
 #本地
 #本地
-#jdbc.url=jdbc\:mysql://localhost:3306/aft20210528?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false
-#jdbc.username=root
-#jdbc.password=123456
-#测试
-jdbc.url=jdbc:mysql://101.37.32.31:3306/aft?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false
+jdbc.url=jdbc\:mysql://localhost:3306/aft?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false
 jdbc.username=root
 jdbc.username=root
-jdbc.password=aftdev
+jdbc.password=123456
+#测试
+#jdbc.url=jdbc:mysql://101.37.32.31:3306/aft?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false
+#jdbc.username=root
+#jdbc.password=aftdev
 #\u68c0\u6d4b\u6570\u636e\u5e93\u94fe\u63a5\u662f\u5426\u6709\u6548\uff0c\u5fc5\u987b\u914d\u7f6e
 #\u68c0\u6d4b\u6570\u636e\u5e93\u94fe\u63a5\u662f\u5426\u6709\u6548\uff0c\u5fc5\u987b\u914d\u7f6e
 jdbc.validationQuery=SELECT 'x'
 jdbc.validationQuery=SELECT 'x'
 #\u521d\u59cb\u8fde\u63a5\u6570
 #\u521d\u59cb\u8fde\u63a5\u6570