Commit 7499e1f7 authored by wangyihao's avatar wangyihao

店铺表 新增字段 店铺管理员ID 店铺管理员名称

parent 859045c4
......@@ -28,7 +28,7 @@ public class Store extends Entity<String> {
//省份
private String province;
//祖籍
private String ancestral;
private String administratorsId;
//区县
private String county;
//位置
......@@ -89,6 +89,8 @@ public class Store extends Entity<String> {
private Integer isDeleted;
//是否启用(0不启用1 启用)
private Integer isAvailable;
//店铺管理员名称
private String administratorsName;
/*Auto generated properties end*/
......@@ -101,6 +103,14 @@ public class Store extends Entity<String> {
/*Auto generated methods start*/
public String getAdministratorsName() {
return administratorsName;
}
public void setAdministratorsName(String administratorsName) {
this.administratorsName = administratorsName;
}
public Integer getIsDeleted() {
return isDeleted;
}
......@@ -178,12 +188,12 @@ public class Store extends Entity<String> {
this.province = province;
}
public String getAncestral(){
return ancestral;
public String getAdministratorsId(){
return administratorsId;
}
public void setAncestral(String ancestral){
this.ancestral = ancestral;
public void setAdministratorsId(String administratorsId){
this.administratorsId = administratorsId;
}
public String getCounty(){
......@@ -424,7 +434,7 @@ public class Store extends Entity<String> {
public String toString() {
return "Store [storeId=" + storeId + ", storeName=" + storeName + ", contactNumber=" + contactNumber
+ ", contacts=" + contacts + ", qq=" + qq + ", wechat=" + wechat + ", province=" + province
+ ", ancestral=" + ancestral + ", county=" + county + ", storePosition=" + storePosition
+ ", administratorsId=" + administratorsId + ", county=" + county + ", storePosition=" + storePosition
+ ", storeBusinessTimeStart=" + storeBusinessTimeStart + ", storeBusinessTimeEnd="
+ storeBusinessTimeEnd + ", consumeInterval=" + consumeInterval + ", storeDetails=" + storeDetails
+ ", qrCode=" + qrCode + ", storeHomePic=" + storeHomePic + ", storePic=" + storePic + ", isAuditing="
......@@ -435,6 +445,6 @@ public class Store extends Entity<String> {
+ ", createTimeEnd=" + createTimeEnd + ", updateTime=" + updateTime + ", updateTimeStart="
+ updateTimeStart + ", updateTimeEnd=" + updateTimeEnd + ", operatorId=" + operatorId
+ ", operatorType=" + operatorType + ", serialNumber=" + serialNumber + ", isDeleted=" + isDeleted
+ ", isAvailable=" + isAvailable + "]";
+ ", isAvailable=" + isAvailable + ", administratorsName=" + administratorsName + "]";
}
}
......@@ -10,7 +10,7 @@
<result column="QQ" property="qq" javaType="java.lang.String" jdbcType="VARCHAR"/>
<result column="WECHAT" property="wechat" javaType="java.lang.String" jdbcType="VARCHAR"/>
<result column="PROVINCE" property="province" javaType="java.lang.String" jdbcType="VARCHAR"/>
<result column="ANCESTRAL" property="ancestral" javaType="java.lang.String" jdbcType="VARCHAR"/>
<result column="ADMINISTRATORS_ID" property="administratorsId" javaType="java.lang.String" jdbcType="VARCHAR"/>
<result column="COUNTY" property="county" javaType="java.lang.String" jdbcType="VARCHAR"/>
<result column="STORE_POSITION" property="storePosition" javaType="java.lang.String" jdbcType="VARCHAR"/>
<result column="STORE_BUSINESS_TIME_START" property="storeBusinessTimeStart" javaType="java.lang.String" jdbcType="VARCHAR"/>
......@@ -33,25 +33,26 @@
<result column="SERIAL_NUMBER" property="serialNumber" javaType="java.lang.Integer" jdbcType="INTEGER"/>
<result column="IS_DELETED" property="isDeleted" javaType="java.lang.Integer" jdbcType="TINYINT"/>
<result column="IS_AVAILABLE" property="isAvailable" javaType="java.lang.Integer" jdbcType="TINYINT"/>
<result column="ADMINISTRATORS_NAME" property="administratorsName" javaType="java.lang.String" jdbcType="VARCHAR"/>
</resultMap>
<!-- 全部字段,一般用于明细查询 -->
<sql id="AllColumnlist">
STORE_ID,STORE_NAME,CONTACT_NUMBER,CONTACTS,QQ,WECHAT,PROVINCE,
ANCESTRAL,COUNTY,STORE_POSITION,STORE_BUSINESS_TIME_START,STORE_BUSINESS_TIME_END,CONSUME_INTERVAL,
ADMINISTRATORS_ID,COUNTY,STORE_POSITION,STORE_BUSINESS_TIME_START,STORE_BUSINESS_TIME_END,CONSUME_INTERVAL,
STORE_DETAILS,QR_CODE,STORE_HOME_PIC,STORE_PIC,IS_AUDITING,IS_SHOPPING,
UPLOAD_TIME,MATURE_TIME,CLICKS,IS_RECOMMEND,CREATE_TIME,UPDATE_TIME,
OPERATOR_ID,OPERATOR_TYPE,SERIAL_NUMBER,IS_DELETED,IS_AVAILABLE
OPERATOR_ID,OPERATOR_TYPE,SERIAL_NUMBER,IS_DELETED,IS_AVAILABLE,ADMINISTRATORS_NAME
</sql>
<!-- 常见字段,一般用于列表查询,可能不包含备注之类的字段 -->
<sql id="CommonColumnlist">
STORE_ID,STORE_NAME,CONTACT_NUMBER,CONTACTS,QQ,WECHAT,PROVINCE,
ANCESTRAL,COUNTY,STORE_POSITION,STORE_BUSINESS_TIME_START,STORE_BUSINESS_TIME_END,CONSUME_INTERVAL,
ADMINISTRATORS_ID,COUNTY,STORE_POSITION,STORE_BUSINESS_TIME_START,STORE_BUSINESS_TIME_END,CONSUME_INTERVAL,
STORE_DETAILS,QR_CODE,STORE_HOME_PIC,STORE_PIC,IS_AUDITING,IS_SHOPPING,
UPLOAD_TIME,MATURE_TIME,CLICKS,IS_RECOMMEND,CREATE_TIME,UPDATE_TIME,
OPERATOR_ID,OPERATOR_TYPE,SERIAL_NUMBER,IS_DELETED,IS_AVAILABLE
OPERATOR_ID,OPERATOR_TYPE,SERIAL_NUMBER,IS_DELETED,IS_AVAILABLE,ADMINISTRATORS_NAME
</sql>
<insert id="add" parameterType="Store" useGeneratedKeys="true" keyProperty="storeId">
......@@ -65,7 +66,7 @@ OPERATOR_ID,OPERATOR_TYPE,SERIAL_NUMBER,IS_DELETED,IS_AVAILABLE
QQ,
WECHAT,
PROVINCE,
ANCESTRAL,
ADMINISTRATORS_ID,
COUNTY,
STORE_POSITION,
STORE_BUSINESS_TIME_START,
......@@ -87,7 +88,8 @@ OPERATOR_ID,OPERATOR_TYPE,SERIAL_NUMBER,IS_DELETED,IS_AVAILABLE
OPERATOR_TYPE,
SERIAL_NUMBER,
IS_DELETED,
IS_AVAILABLE
IS_AVAILABLE,
ADMINISTRATORS_NAME
) values (
<if test="storeId!=null">
#{storeId,jdbcType = VARCHAR},
......@@ -98,7 +100,7 @@ OPERATOR_ID,OPERATOR_TYPE,SERIAL_NUMBER,IS_DELETED,IS_AVAILABLE
#{qq,jdbcType = VARCHAR},
#{wechat,jdbcType = VARCHAR},
#{province,jdbcType = VARCHAR},
#{ancestral,jdbcType = VARCHAR},
#{administratorsId,jdbcType = VARCHAR},
#{county,jdbcType = VARCHAR},
#{storePosition,jdbcType = VARCHAR},
#{storeBusinessTimeStart,jdbcType = VARCHAR},
......@@ -120,7 +122,8 @@ OPERATOR_ID,OPERATOR_TYPE,SERIAL_NUMBER,IS_DELETED,IS_AVAILABLE
#{operatorType,jdbcType = TINYINT},
#{serialNumber,jdbcType = INTEGER},
#{isDeleted,jdbcType = TINYINT},
#{isAvailable,jdbcType = TINYINT}
#{isAvailable,jdbcType = TINYINT},
#{administratorsName,jdbcType = VARCHAR}
)
</insert>
......@@ -145,8 +148,8 @@ OPERATOR_ID,OPERATOR_TYPE,SERIAL_NUMBER,IS_DELETED,IS_AVAILABLE
<if test="province!=null and province!=''">
PROVINCE=#{province,jdbcType = VARCHAR},
</if>
<if test="ancestral!=null and ancestral!=''">
ANCESTRAL=#{ancestral,jdbcType = VARCHAR},
<if test="administratorsId!=null and administratorsId!=''">
ADMINISTRATORS_ID=#{administratorsId,jdbcType = VARCHAR},
</if>
<if test="county!=null and county!=''">
COUNTY=#{county,jdbcType = VARCHAR},
......@@ -214,6 +217,9 @@ OPERATOR_ID,OPERATOR_TYPE,SERIAL_NUMBER,IS_DELETED,IS_AVAILABLE
<if test="isAvailable!=null ">
IS_AVAILABLE=#{isAvailable,jdbcType = TINYINT},
</if>
<if test="administratorsName!=null and administratorsName!=''">
ADMINISTRATORS_NAME=#{administratorsName,jdbcType = VARCHAR},
</if>
</set>
<where>
AND STORE_ID=#{storeId}
......@@ -288,8 +294,8 @@ OPERATOR_ID,OPERATOR_TYPE,SERIAL_NUMBER,IS_DELETED,IS_AVAILABLE
<if test="q.province!=null and q.province!=''">
AND PROVINCE=#{q.province}
</if>
<if test="q.ancestral!=null and q.ancestral!=''">
AND ANCESTRAL=#{q.ancestral}
<if test="q.administratorsId!=null and q.administratorsId!=''">
AND ADMINISTRATORS_ID=#{q.administratorsId}
</if>
<if test="q.county!=null and q.county!=''">
AND COUNTY=#{q.county}
......@@ -381,6 +387,9 @@ OPERATOR_ID,OPERATOR_TYPE,SERIAL_NUMBER,IS_DELETED,IS_AVAILABLE
<if test="q.isAvailable!=null ">
AND IS_AVAILABLE=#{q.isAvailable}
</if>
<if test="q.administratorsName!=null and q.administratorsName!=''">
AND ADMINISTRATORS_NAME=#{q.administratorsName}
</if>
</if>
</sql>
......@@ -410,8 +419,8 @@ OPERATOR_ID,OPERATOR_TYPE,SERIAL_NUMBER,IS_DELETED,IS_AVAILABLE
<if test="q.province!=null and q.province!=''">
AND PROVINCE=#{q.province}
</if>
<if test="q.ancestral!=null and q.ancestral!=''">
AND ANCESTRAL=#{q.ancestral}
<if test="q.administratorsId!=null and q.administratorsId!=''">
AND ADMINISTRATORS_ID=#{q.administratorsId}
</if>
<if test="q.county!=null and q.county!=''">
AND COUNTY LIKE '%${q.county}%'
......@@ -503,6 +512,9 @@ OPERATOR_ID,OPERATOR_TYPE,SERIAL_NUMBER,IS_DELETED,IS_AVAILABLE
<if test="q.isAvailable!=null ">
AND IS_AVAILABLE=#{q.isAvailable}
</if>
<if test="q.administratorsName!=null and q.administratorsName!=''">
AND ADMINISTRATORS_NAME=#{q.administratorsName}
</if>
</if>
</sql>
</mapper>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment