|
@@ -27,10 +27,37 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="stationLongitude" column="station_longitude" />
|
|
|
<result property="stationLatitude" column="station_latitude" />
|
|
|
<result property="mno" column="mno" />
|
|
|
+ <result property="discountSetting" column="discount_setting" />
|
|
|
+ <result property="cardEnabledFlag" column="card_enabled_flag" />
|
|
|
+ <result property="appId" column="app_id" />
|
|
|
+ <result property="appSecret" column="app_secret" />
|
|
|
+ <result property="gzhAppId" column="gzh_app_id" />
|
|
|
+ <result property="gzhAppSecret" column="gzh_app_secret" />
|
|
|
+ <result property="aliAppId" column="ali_app_id" />
|
|
|
+ <result property="aliPublicKey" column="ali_public_key" />
|
|
|
+ <result property="aliPrivateKey" column="ali_private_key" />
|
|
|
+ <result property="aliEncryptKey" column="ali_encrypt_key" />
|
|
|
+ <result property="image1" column="image1" />
|
|
|
+ <result property="image2" column="image2" />
|
|
|
+ <result property="image3" column="image3" />
|
|
|
+ <result property="image4" column="image4" />
|
|
|
+ <result property="image5" column="image5" />
|
|
|
+ <result property="wsPrintFlag" column="ws_print_flag" />
|
|
|
+ <result property="printSetting" column="print_setting" />
|
|
|
+ <result property="notice" column="notice" />
|
|
|
+ <result property="integralPrintFlag" column="integral_print_flag" />
|
|
|
+ <result property="integralFlag" column="integral_flag" />
|
|
|
+ <result property="integralRuleFlag" column="integral_rule_flag" />
|
|
|
+ <result property="cardRuleFlag" column="card_rule_flag" />
|
|
|
+ <result property="couponFlag" column="coupon_flag" />
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectDeptVo">
|
|
|
- select d.dept_id, d.parent_id, d.ancestors, d.dept_name, d.order_num, d.leader, d.phone, d.email, d.status, d.del_flag, d.create_by, d.create_time ,d.ji_bie, d.dept_address, d.oil_gun_num, d.station_pic, d.station_longitude, d.station_latitude, d.mno, d.app_id, d.app_secret
|
|
|
+ select d.dept_id, d.parent_id, d.ancestors, d.dept_name, d.order_num, d.leader, d.phone, d.email, d.status,
|
|
|
+ d.del_flag, d.create_by, d.create_time ,d.ji_bie, d.dept_address, d.oil_gun_num, d.station_pic, d.station_longitude,
|
|
|
+ d.station_latitude, d.mno, discount_setting,card_enabled_flag,d.app_id, d.app_secret,gzh_app_id,gzh_app_secret,ali_app_id,gzh_app_secret
|
|
|
+ ali_app_id,ali_public_key,ali_private_key,ali_encrypt_key,image1,image2,image3,image4,image5,ws_print_flag,print_setting,notice,integral_print_flag,
|
|
|
+ d.integral_flag,d.integral_rule_flag,d.card_rule_flag,d.coupon_flag
|
|
|
from sys_dept d
|
|
|
</sql>
|
|
|
|
|
@@ -125,6 +152,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<select id="selectDeptListTree" statementType="CALLABLE" useCache="false">
|
|
|
{call deptinfo()};
|
|
|
</select>
|
|
|
+ <select id="getGroupInfo" resultMap="SysDeptResult">
|
|
|
+ <include refid="selectDeptVo"/>
|
|
|
+ where dept_id = #{deptId} and ji_bie = "1"
|
|
|
+ </select>
|
|
|
+
|
|
|
<insert id="insertDept" parameterType="SysDept">
|
|
|
insert into sys_dept(
|
|
|
<if test="deptId != null and deptId != 0">dept_id,</if>
|
|
@@ -146,6 +178,27 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="mno != null">mno,</if>
|
|
|
<if test="appId != null">app_id,</if>
|
|
|
<if test="appSecret != null">app_secret,</if>
|
|
|
+ <if test="discountSetting != null">discount_setting,</if>
|
|
|
+ <if test="cardEnabledFlag != null">card_enabled_flag,</if>
|
|
|
+ <if test="gzhAppId != null">gzh_app_id,</if>
|
|
|
+ <if test="gzhAppSecret != null">gzh_app_secret,</if>
|
|
|
+ <if test="aliAppId != null">ali_app_id,</if>
|
|
|
+ <if test="aliPublicKey != null">ali_public_key,</if>
|
|
|
+ <if test="aliPrivateKey != null">ali_private_key,</if>
|
|
|
+ <if test="aliEncryptKey != null">ali_encrypt_key,</if>
|
|
|
+ <if test="image1 != null">image1,</if>
|
|
|
+ <if test="image2 != null">image2,</if>
|
|
|
+ <if test="image3 != null">image3,</if>
|
|
|
+ <if test="image4 != null">image4,</if>
|
|
|
+ <if test="image5 != null">image5,</if>
|
|
|
+ <if test="wsPrintFlag != null">ws_print_flag,</if>
|
|
|
+ <if test="printSetting != null">print_setting,</if>
|
|
|
+ <if test="notice != null">notice,</if>
|
|
|
+ <if test="integralPrintFlag != null">integral_print_flag,</if>
|
|
|
+ <if test="integralFlag != null">integral_flag,</if>
|
|
|
+ <if test="integralRuleFlag != null">integral_rule_flag,</if>
|
|
|
+ <if test="cardRuleFlag != null">card_rule_flag,</if>
|
|
|
+ <if test="couponFlag != null">coupon_flag,</if>
|
|
|
create_time
|
|
|
)values(
|
|
|
<if test="deptId != null and deptId != 0">#{deptId},</if>
|
|
@@ -167,6 +220,27 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="mno != null">#{mno},</if>
|
|
|
<if test="appId != null">#{appId},</if>
|
|
|
<if test="appSecret != null">#{appSecret},</if>
|
|
|
+ <if test="discountSetting != null">#{discountSetting},</if>
|
|
|
+ <if test="cardEnabledFlag != null">#{cardEnabledFlag},</if>
|
|
|
+ <if test="gzhAppId != null">#{gzhAppId},</if>
|
|
|
+ <if test="gzhAppSecret != null">#{gzhAppSecret},</if>
|
|
|
+ <if test="aliAppId != null">#{aliAppId},</if>
|
|
|
+ <if test="aliPublicKey != null">#{aliPublicKey},</if>
|
|
|
+ <if test="aliPrivateKey != null">#{aliPrivateKey},</if>
|
|
|
+ <if test="aliEncryptKey != null">#{aliEncryptKey},</if>
|
|
|
+ <if test="image1 != null">#{image1},</if>
|
|
|
+ <if test="image2 != null">#{image2},</if>
|
|
|
+ <if test="image3 != null">#{image3},</if>
|
|
|
+ <if test="image4 != null">#{image4},</if>
|
|
|
+ <if test="image5 != null">#{image5},</if>
|
|
|
+ <if test="wsPrintFlag != null">#{wsPrintFlag},</if>
|
|
|
+ <if test="printSetting != null">#{printSetting},</if>
|
|
|
+ <if test="notice != null">#{notice},</if>
|
|
|
+ <if test="integralPrintFlag != null">#{integralPrintFlag},</if>
|
|
|
+ <if test="integralFlag != null">#{integralFlag},</if>
|
|
|
+ <if test="integralRuleFlag != null">#{integralRuleFlag},</if>
|
|
|
+ <if test="cardRuleFlag != null">#{cardRuleFlag},</if>
|
|
|
+ <if test="couponFlag != null">#{couponFlag},</if>
|
|
|
sysdate()
|
|
|
)
|
|
|
</insert>
|
|
@@ -192,6 +266,27 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="mno != null">mno = #{mno},</if>
|
|
|
<if test="appId != null">app_id = #{appId},</if>
|
|
|
<if test="appSecret != null">app_secret = #{appSecret},</if>
|
|
|
+ <if test="discountSetting != null">discount_setting= #{discountSetting},</if>
|
|
|
+ <if test="cardEnabledFlag != null">card_enabled_flag= #{cardEnabledFlag},</if>
|
|
|
+ <if test="gzhAppId != null">gzh_app_id= #{gzhAppId},</if>
|
|
|
+ <if test="gzhAppSecret != null">gzh_app_secret= #{gzhAppSecret},</if>
|
|
|
+ <if test="aliAppId != null">ali_app_id= #{aliAppId},</if>
|
|
|
+ <if test="aliPublicKey != null">ali_public_key= #{aliPublicKey},</if>
|
|
|
+ <if test="aliPrivateKey != null">ali_private_key= #{aliPrivateKey},</if>
|
|
|
+ <if test="aliEncryptKey != null">ali_encrypt_key= #{aliEncryptKey},</if>
|
|
|
+ <if test="image1 != null">image1= #{image1},</if>
|
|
|
+ <if test="image2 != null">image2= #{image2},</if>
|
|
|
+ <if test="image3 != null">image3= #{image3},</if>
|
|
|
+ <if test="image4 != null">image4= #{image4},</if>
|
|
|
+ <if test="image5 != null">image5= #{image5},</if>
|
|
|
+ <if test="wsPrintFlag != null">ws_print_flag= #{wsPrintFlag},</if>
|
|
|
+ <if test="printSetting != null">print_setting= #{printSetting},</if>
|
|
|
+ <if test="notice != null">notice= #{notice},</if>
|
|
|
+ <if test="integralPrintFlag != null">integral_print_flag= #{integralPrintFlag},</if>
|
|
|
+ <if test="integralFlag != null">integral_flag= #{integralFlag},</if>
|
|
|
+ <if test="integralRuleFlag != null">integral_rule_flag= #{integralRuleFlag},</if>
|
|
|
+ <if test="cardRuleFlag != null">card_rule_flag= #{cardRuleFlag},</if>
|
|
|
+ <if test="couponFlag != null">coupon_flag= #{couponFlag},</if>
|
|
|
update_time = sysdate()
|
|
|
</set>
|
|
|
where dept_id = #{deptId}
|