Przeglądaj źródła

新增用户联系电话

anderx 7 lat temu
rodzic
commit
ba9e76e5ab

+ 1 - 1
GeneratorConfig.xml

@@ -10,6 +10,6 @@
     <javaModelGenerator targetPackage="com.goafanti.common.model" targetProject="AFT" />
     <sqlMapGenerator targetPackage="com.goafanti.common.mapper" targetProject="AFT" />
     <javaClientGenerator targetPackage="com.goafanti.common.dao" targetProject="AFT" type="XMLMAPPER" />
-    <table schema="aft" tableName="role_resources"/> 
+    <table schema="aft" tableName="admin"/> 
   </context>
 </generatorConfiguration>

+ 62 - 7
src/main/java/com/goafanti/common/dao/AdminMapper.java

@@ -9,19 +9,74 @@ import com.goafanti.app.bo.AppAdminListBo;
 import com.goafanti.common.model.Admin;
 import com.goafanti.common.model.Role;
 import com.goafanti.core.mybatis.page.Pagination;
+import com.goafanti.common.model.AdminExample;
 
 public interface AdminMapper {
-    int deleteByPrimaryKey(String id);
+    /**
+	 * This method was generated by MyBatis Generator. This method corresponds to the database table admin
+	 * @mbg.generated  Wed Jun 13 10:27:07 CST 2018
+	 */
+	long countByExample(AdminExample example);
 
-    int insert(Admin record);
+	/**
+	 * This method was generated by MyBatis Generator. This method corresponds to the database table admin
+	 * @mbg.generated  Wed Jun 13 10:27:07 CST 2018
+	 */
+	int deleteByExample(AdminExample example);
 
-    int insertSelective(Admin record);
+	/**
+	 * This method was generated by MyBatis Generator. This method corresponds to the database table admin
+	 * @mbg.generated  Wed Jun 13 10:27:07 CST 2018
+	 */
+	int deleteByPrimaryKey(String id);
+
+	/**
+	 * This method was generated by MyBatis Generator. This method corresponds to the database table admin
+	 * @mbg.generated  Wed Jun 13 10:27:07 CST 2018
+	 */
+	int insert(Admin record);
 
-    Admin selectByPrimaryKey(String id);
+	/**
+	 * This method was generated by MyBatis Generator. This method corresponds to the database table admin
+	 * @mbg.generated  Wed Jun 13 10:27:07 CST 2018
+	 */
+	int insertSelective(Admin record);
 
-    int updateByPrimaryKeySelective(Admin record);
+	/**
+	 * This method was generated by MyBatis Generator. This method corresponds to the database table admin
+	 * @mbg.generated  Wed Jun 13 10:27:07 CST 2018
+	 */
+	List<Admin> selectByExample(AdminExample example);
 
-    int updateByPrimaryKey(Admin record);
+	/**
+	 * This method was generated by MyBatis Generator. This method corresponds to the database table admin
+	 * @mbg.generated  Wed Jun 13 10:27:07 CST 2018
+	 */
+	Admin selectByPrimaryKey(String id);
+
+	/**
+	 * This method was generated by MyBatis Generator. This method corresponds to the database table admin
+	 * @mbg.generated  Wed Jun 13 10:27:07 CST 2018
+	 */
+	int updateByExampleSelective(@Param("record") Admin record, @Param("example") AdminExample example);
+
+	/**
+	 * This method was generated by MyBatis Generator. This method corresponds to the database table admin
+	 * @mbg.generated  Wed Jun 13 10:27:07 CST 2018
+	 */
+	int updateByExample(@Param("record") Admin record, @Param("example") AdminExample example);
+
+	/**
+	 * This method was generated by MyBatis Generator. This method corresponds to the database table admin
+	 * @mbg.generated  Wed Jun 13 10:27:07 CST 2018
+	 */
+	int updateByPrimaryKeySelective(Admin record);
+
+	/**
+	 * This method was generated by MyBatis Generator. This method corresponds to the database table admin
+	 * @mbg.generated  Wed Jun 13 10:27:07 CST 2018
+	 */
+	
 
 	List<Admin> selectAllAdmin();
 
@@ -101,7 +156,7 @@ public interface AdminMapper {
 	List<AdminListBo> selectSubList(@Param("adminId")String adminId);
 	
 	/**
-	 * 查询订单变更信息通知
+	 * 查询订单变更信息通知�?
 	 * @param orderNo
 	 * @return
 	 */

Plik diff jest za duży
+ 599 - 111
src/main/java/com/goafanti/common/mapper/AdminMapper.xml


+ 37 - 5
src/main/java/com/goafanti/common/model/Admin.java

@@ -13,12 +13,12 @@ public class Admin extends BaseModel implements AftUser {
 	private String				id;
 
 	/**
-	 * 手机(登录帐号)
+	 * 手机�?(登录帐号)
 	 */
 	private String				mobile;
 
 	/**
-	 * 用户
+	 * 用户�?
 	 */
 	private String				name;
 
@@ -43,7 +43,7 @@ public class Admin extends BaseModel implements AftUser {
 	private Integer				number;
 
 	/**
-	 * 所在省份
+	 * �?在省�?
 	 */
 	private Integer				province;
 	/**
@@ -62,7 +62,7 @@ public class Admin extends BaseModel implements AftUser {
 	private String	superior;
 
 	/**
-	 * 在市
+	 * �?在市
 	 */
 	private Integer				city;
 	
@@ -71,7 +71,7 @@ public class Admin extends BaseModel implements AftUser {
 	 */
 	private String 				departmentId;
 	/**
-	 * 用户状
+	 * 用户状�??
 	 */
 	private String 				status;
 	/**
@@ -92,6 +92,38 @@ public class Admin extends BaseModel implements AftUser {
 	 * 用户头像
 	 */
 	private String 				headPortraitUrl;	
+
+	/**
+	 * This field was generated by MyBatis Generator. This field corresponds to the database column admin.contact_mobile
+	 * @mbg.generated  Wed Jun 13 10:27:07 CST 2018
+	 */
+	private String contactMobile;
+
+	/**
+	 * This method was generated by MyBatis Generator. This method returns the value of the database column admin.id
+	 * @return  the value of admin.id
+	 * @mbg.generated  Wed Jun 13 10:27:07 CST 2018
+	 */
+
+	/**
+	 * This method was generated by MyBatis Generator. This method returns the value of the database column admin.contact_mobile
+	 * @return  the value of admin.contact_mobile
+	 * @mbg.generated  Wed Jun 13 10:27:07 CST 2018
+	 */
+	public String getContactMobile() {
+		return contactMobile;
+	}
+
+	/**
+	 * This method was generated by MyBatis Generator. This method sets the value of the database column admin.contact_mobile
+	 * @param contactMobile  the value for admin.contact_mobile
+	 * @mbg.generated  Wed Jun 13 10:27:07 CST 2018
+	 */
+	public void setContactMobile(String contactMobile) {
+		this.contactMobile = contactMobile;
+	}
+
+	
 	
 	public String getSuperior() {
 		return superior;