|
|
@@ -3,9 +3,9 @@
|
|
|
<mapper namespace="com.goafanti.common.dao.TOrderBonusMapper">
|
|
|
<resultMap id="BaseResultMap" type="com.goafanti.common.model.TOrderBonus">
|
|
|
<!--
|
|
|
- WARNING - @mbggenerated
|
|
|
+ WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Fri Nov 23 16:33:27 CST 2018.
|
|
|
+ This element was generated on Tue Nov 27 11:15:28 CST 2018.
|
|
|
-->
|
|
|
<id column="id" jdbcType="VARCHAR" property="id" />
|
|
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
|
|
@@ -15,12 +15,13 @@
|
|
|
<result column="grant_target" jdbcType="VARCHAR" property="grantTarget" />
|
|
|
<result column="grant_by" jdbcType="VARCHAR" property="grantBy" />
|
|
|
<result column="grant_time" jdbcType="DATE" property="grantTime" />
|
|
|
+ <result column="grant_type" jdbcType="INTEGER" property="grantType" />
|
|
|
</resultMap>
|
|
|
<sql id="Example_Where_Clause">
|
|
|
<!--
|
|
|
- WARNING - @mbggenerated
|
|
|
+ WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Fri Nov 23 16:33:27 CST 2018.
|
|
|
+ This element was generated on Tue Nov 27 11:15:28 CST 2018.
|
|
|
-->
|
|
|
<where>
|
|
|
<foreach collection="oredCriteria" item="criteria" separator="or">
|
|
|
@@ -52,9 +53,9 @@
|
|
|
</sql>
|
|
|
<sql id="Update_By_Example_Where_Clause">
|
|
|
<!--
|
|
|
- WARNING - @mbggenerated
|
|
|
+ WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Fri Nov 23 16:33:27 CST 2018.
|
|
|
+ This element was generated on Tue Nov 27 11:15:28 CST 2018.
|
|
|
-->
|
|
|
<where>
|
|
|
<foreach collection="example.oredCriteria" item="criteria" separator="or">
|
|
|
@@ -86,17 +87,18 @@
|
|
|
</sql>
|
|
|
<sql id="Base_Column_List">
|
|
|
<!--
|
|
|
- WARNING - @mbggenerated
|
|
|
+ WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Fri Nov 23 16:33:27 CST 2018.
|
|
|
+ This element was generated on Tue Nov 27 11:15:28 CST 2018.
|
|
|
-->
|
|
|
- id, create_time, order_no, bonus_subject, grant_status, grant_target, grant_by, grant_time
|
|
|
+ id, create_time, order_no, bonus_subject, grant_status, grant_target, grant_by, grant_time,
|
|
|
+ grant_type
|
|
|
</sql>
|
|
|
<select id="selectByExample" parameterType="com.goafanti.common.model.TOrderBonusExample" resultMap="BaseResultMap">
|
|
|
<!--
|
|
|
- WARNING - @mbggenerated
|
|
|
+ WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Fri Nov 23 16:33:27 CST 2018.
|
|
|
+ This element was generated on Tue Nov 27 11:15:28 CST 2018.
|
|
|
-->
|
|
|
select
|
|
|
<if test="distinct">
|
|
|
@@ -113,9 +115,9 @@
|
|
|
</select>
|
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
|
|
|
<!--
|
|
|
- WARNING - @mbggenerated
|
|
|
+ WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Fri Nov 23 16:33:27 CST 2018.
|
|
|
+ This element was generated on Tue Nov 27 11:15:28 CST 2018.
|
|
|
-->
|
|
|
select
|
|
|
<include refid="Base_Column_List" />
|
|
|
@@ -124,18 +126,18 @@
|
|
|
</select>
|
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
|
|
<!--
|
|
|
- WARNING - @mbggenerated
|
|
|
+ WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Fri Nov 23 16:33:27 CST 2018.
|
|
|
+ This element was generated on Tue Nov 27 11:15:28 CST 2018.
|
|
|
-->
|
|
|
delete from t_order_bonus
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
</delete>
|
|
|
<delete id="deleteByExample" parameterType="com.goafanti.common.model.TOrderBonusExample">
|
|
|
<!--
|
|
|
- WARNING - @mbggenerated
|
|
|
+ WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Fri Nov 23 16:33:27 CST 2018.
|
|
|
+ This element was generated on Tue Nov 27 11:15:28 CST 2018.
|
|
|
-->
|
|
|
delete from t_order_bonus
|
|
|
<if test="_parameter != null">
|
|
|
@@ -144,22 +146,24 @@
|
|
|
</delete>
|
|
|
<insert id="insert" parameterType="com.goafanti.common.model.TOrderBonus">
|
|
|
<!--
|
|
|
- WARNING - @mbggenerated
|
|
|
+ WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Fri Nov 23 16:33:27 CST 2018.
|
|
|
+ This element was generated on Tue Nov 27 11:15:28 CST 2018.
|
|
|
-->
|
|
|
insert into t_order_bonus (id, create_time, order_no,
|
|
|
bonus_subject, grant_status, grant_target,
|
|
|
- grant_by, grant_time)
|
|
|
+ grant_by, grant_time, grant_type
|
|
|
+ )
|
|
|
values (#{id,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{orderNo,jdbcType=VARCHAR},
|
|
|
#{bonusSubject,jdbcType=INTEGER}, #{grantStatus,jdbcType=INTEGER}, #{grantTarget,jdbcType=VARCHAR},
|
|
|
- #{grantBy,jdbcType=VARCHAR}, #{grantTime,jdbcType=DATE})
|
|
|
+ #{grantBy,jdbcType=VARCHAR}, #{grantTime,jdbcType=DATE}, #{grantType,jdbcType=INTEGER}
|
|
|
+ )
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.goafanti.common.model.TOrderBonus">
|
|
|
<!--
|
|
|
- WARNING - @mbggenerated
|
|
|
+ WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Fri Nov 23 16:33:27 CST 2018.
|
|
|
+ This element was generated on Tue Nov 27 11:15:28 CST 2018.
|
|
|
-->
|
|
|
insert into t_order_bonus
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
@@ -187,6 +191,9 @@
|
|
|
<if test="grantTime != null">
|
|
|
grant_time,
|
|
|
</if>
|
|
|
+ <if test="grantType != null">
|
|
|
+ grant_type,
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="id != null">
|
|
|
@@ -213,13 +220,16 @@
|
|
|
<if test="grantTime != null">
|
|
|
#{grantTime,jdbcType=DATE},
|
|
|
</if>
|
|
|
+ <if test="grantType != null">
|
|
|
+ #{grantType,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
- <select id="countByExample" parameterType="com.goafanti.common.model.TOrderBonusExample" resultType="java.lang.Integer">
|
|
|
+ <select id="countByExample" parameterType="com.goafanti.common.model.TOrderBonusExample" resultType="java.lang.Long">
|
|
|
<!--
|
|
|
- WARNING - @mbggenerated
|
|
|
+ WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Fri Nov 23 16:33:27 CST 2018.
|
|
|
+ This element was generated on Tue Nov 27 11:15:28 CST 2018.
|
|
|
-->
|
|
|
select count(*) from t_order_bonus
|
|
|
<if test="_parameter != null">
|
|
|
@@ -228,9 +238,9 @@
|
|
|
</select>
|
|
|
<update id="updateByExampleSelective" parameterType="map">
|
|
|
<!--
|
|
|
- WARNING - @mbggenerated
|
|
|
+ WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Fri Nov 23 16:33:27 CST 2018.
|
|
|
+ This element was generated on Tue Nov 27 11:15:28 CST 2018.
|
|
|
-->
|
|
|
update t_order_bonus
|
|
|
<set>
|
|
|
@@ -258,6 +268,9 @@
|
|
|
<if test="record.grantTime != null">
|
|
|
grant_time = #{record.grantTime,jdbcType=DATE},
|
|
|
</if>
|
|
|
+ <if test="record.grantType != null">
|
|
|
+ grant_type = #{record.grantType,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
<if test="_parameter != null">
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
@@ -265,9 +278,9 @@
|
|
|
</update>
|
|
|
<update id="updateByExample" parameterType="map">
|
|
|
<!--
|
|
|
- WARNING - @mbggenerated
|
|
|
+ WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Fri Nov 23 16:33:27 CST 2018.
|
|
|
+ This element was generated on Tue Nov 27 11:15:28 CST 2018.
|
|
|
-->
|
|
|
update t_order_bonus
|
|
|
set id = #{record.id,jdbcType=VARCHAR},
|
|
|
@@ -277,16 +290,17 @@
|
|
|
grant_status = #{record.grantStatus,jdbcType=INTEGER},
|
|
|
grant_target = #{record.grantTarget,jdbcType=VARCHAR},
|
|
|
grant_by = #{record.grantBy,jdbcType=VARCHAR},
|
|
|
- grant_time = #{record.grantTime,jdbcType=DATE}
|
|
|
+ grant_time = #{record.grantTime,jdbcType=DATE},
|
|
|
+ grant_type = #{record.grantType,jdbcType=INTEGER}
|
|
|
<if test="_parameter != null">
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
</if>
|
|
|
</update>
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.model.TOrderBonus">
|
|
|
<!--
|
|
|
- WARNING - @mbggenerated
|
|
|
+ WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Fri Nov 23 16:33:27 CST 2018.
|
|
|
+ This element was generated on Tue Nov 27 11:15:28 CST 2018.
|
|
|
-->
|
|
|
update t_order_bonus
|
|
|
<set>
|
|
|
@@ -311,14 +325,17 @@
|
|
|
<if test="grantTime != null">
|
|
|
grant_time = #{grantTime,jdbcType=DATE},
|
|
|
</if>
|
|
|
+ <if test="grantType != null">
|
|
|
+ grant_type = #{grantType,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
</update>
|
|
|
<update id="updateByPrimaryKey" parameterType="com.goafanti.common.model.TOrderBonus">
|
|
|
<!--
|
|
|
- WARNING - @mbggenerated
|
|
|
+ WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Fri Nov 23 16:33:27 CST 2018.
|
|
|
+ This element was generated on Tue Nov 27 11:15:28 CST 2018.
|
|
|
-->
|
|
|
update t_order_bonus
|
|
|
set create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
|
@@ -327,7 +344,8 @@
|
|
|
grant_status = #{grantStatus,jdbcType=INTEGER},
|
|
|
grant_target = #{grantTarget,jdbcType=VARCHAR},
|
|
|
grant_by = #{grantBy,jdbcType=VARCHAR},
|
|
|
- grant_time = #{grantTime,jdbcType=DATE}
|
|
|
+ grant_time = #{grantTime,jdbcType=DATE},
|
|
|
+ grant_type = #{grantType,jdbcType=INTEGER}
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
</update>
|
|
|
<!-- 财务专员统计技术员的奖金 -->
|
|
|
@@ -347,20 +365,20 @@
|
|
|
<if test="b.grantBy != null">
|
|
|
and b.grant_by = #{b.grantBy,jdbcType=VARCHAR}
|
|
|
</if>
|
|
|
- <if test='b.targetName != null and b.targetName != ""'>
|
|
|
- <bind name="tn" value="'%' + b.targetName + '%'"/>
|
|
|
+ <if test="b.targetName != null and b.targetName != """>
|
|
|
+ <bind name="tn" value="'%' + b.targetName + '%'" />
|
|
|
and a.name like #{tn,jdbcType=VARCHAR}
|
|
|
</if>
|
|
|
- <if test='b.salesName != null and b.salesName != ""'>
|
|
|
- <bind name="sn" value="'%' + b.salesName + '%'"/>
|
|
|
+ <if test="b.salesName != null and b.salesName != """>
|
|
|
+ <bind name="sn" value="'%' + b.salesName + '%'" />
|
|
|
and oa.name like #{sn,jdbcType=VARCHAR}
|
|
|
</if>
|
|
|
- <if test='b.departmentId != null and b.departmentId !=""'>
|
|
|
+ <if test="b.departmentId != null and b.departmentId !=""">
|
|
|
and a.department_id = #{b.departmentId,jdbcType=VARCHAR}
|
|
|
</if>
|
|
|
- <if test='b.startTime != null and b.startTime != "" and b.endTime != null and b.endTime != ""'>
|
|
|
- <bind name="a" value="b.startTime + ' 00:00:00'"/>
|
|
|
- <bind name="e" value="b.endTime + ' 23:59:59'"/>
|
|
|
+ <if test="b.startTime != null and b.startTime != "" and b.endTime != null and b.endTime != """>
|
|
|
+ <bind name="a" value="b.startTime + ' 00:00:00'" />
|
|
|
+ <bind name="e" value="b.endTime + ' 23:59:59'" />
|
|
|
and o.sign_time between #{a,jdbcType=VARCHAR} and #{e,jdbcType=VARCHAR}
|
|
|
</if>
|
|
|
order by b.grant_status ,b.create_time
|
|
|
@@ -379,20 +397,20 @@
|
|
|
<if test="b.grantBy != null">
|
|
|
and b.grant_by = #{b.grantBy,jdbcType=VARCHAR}
|
|
|
</if>
|
|
|
- <if test='b.targetName != null and b.targetName != ""'>
|
|
|
- <bind name="tn" value="'%' + b.targetName + '%'"/>
|
|
|
+ <if test="b.targetName != null and b.targetName != """>
|
|
|
+ <bind name="tn" value="'%' + b.targetName + '%'" />
|
|
|
and a.name like #{tn,jdbcType=VARCHAR}
|
|
|
</if>
|
|
|
- <if test='b.salesName != null and b.salesName != ""'>
|
|
|
- <bind name="sn" value="'%' + b.salesName + '%'"/>
|
|
|
+ <if test="b.salesName != null and b.salesName != """>
|
|
|
+ <bind name="sn" value="'%' + b.salesName + '%'" />
|
|
|
and oa.name like #{sn,jdbcType=VARCHAR}
|
|
|
</if>
|
|
|
- <if test='b.departmentId != null and b.departmentId !=""'>
|
|
|
+ <if test="b.departmentId != null and b.departmentId !=""">
|
|
|
and a.department_id = #{b.departmentId,jdbcType=VARCHAR}
|
|
|
</if>
|
|
|
- <if test='b.startTime != null and b.startTime != "" and b.endTime != null and b.endTime != ""'>
|
|
|
- <bind name="a" value="b.startTime + ' 00:00:00'"/>
|
|
|
- <bind name="e" value="b.endTime + ' 23:59:59'"/>
|
|
|
+ <if test="b.startTime != null and b.startTime != "" and b.endTime != null and b.endTime != """>
|
|
|
+ <bind name="a" value="b.startTime + ' 00:00:00'" />
|
|
|
+ <bind name="e" value="b.endTime + ' 23:59:59'" />
|
|
|
and o.sign_time between #{a,jdbcType=VARCHAR} and #{e,jdbcType=VARCHAR}
|
|
|
</if>
|
|
|
</select>
|
|
|
@@ -413,16 +431,16 @@
|
|
|
<if test="b.grantBy != null">
|
|
|
and b.grant_by = #{b.grantBy,jdbcType=VARCHAR}
|
|
|
</if>
|
|
|
- <if test='b.salesName != null and b.salesName != ""'>
|
|
|
- <bind name="sn" value="'%' + b.salesName + '%'"/>
|
|
|
+ <if test="b.salesName != null and b.salesName != """>
|
|
|
+ <bind name="sn" value="'%' + b.salesName + '%'" />
|
|
|
and a.name like #{sn,jdbcType=VARCHAR}
|
|
|
</if>
|
|
|
- <if test='b.departmentId != null and b.departmentId !=""'>
|
|
|
+ <if test="b.departmentId != null and b.departmentId !=""">
|
|
|
and a.department_id = #{b.departmentId,jdbcType=VARCHAR}
|
|
|
</if>
|
|
|
- <if test='b.startTime != null and b.startTime != "" and b.endTime != null and b.endTime != ""'>
|
|
|
- <bind name="a" value="b.startTime + ' 00:00:00'"/>
|
|
|
- <bind name="e" value="b.endTime + ' 23:59:59'"/>
|
|
|
+ <if test="b.startTime != null and b.startTime != "" and b.endTime != null and b.endTime != """>
|
|
|
+ <bind name="a" value="b.startTime + ' 00:00:00'" />
|
|
|
+ <bind name="e" value="b.endTime + ' 23:59:59'" />
|
|
|
and o.sign_time between #{a,jdbcType=VARCHAR} and #{e,jdbcType=VARCHAR}
|
|
|
</if>
|
|
|
order by b.grant_status , b.create_time
|
|
|
@@ -441,16 +459,16 @@
|
|
|
<if test="b.grantBy != null">
|
|
|
and b.grant_by = #{b.grantBy,jdbcType=VARCHAR}
|
|
|
</if>
|
|
|
- <if test='b.salesName != null and b.salesName != ""'>
|
|
|
- <bind name="sn" value="'%' + b.salesName + '%'"/>
|
|
|
+ <if test="b.salesName != null and b.salesName != """>
|
|
|
+ <bind name="sn" value="'%' + b.salesName + '%'" />
|
|
|
and a.name like #{sn,jdbcType=VARCHAR}
|
|
|
</if>
|
|
|
- <if test='b.departmentId != null and b.departmentId !=""'>
|
|
|
+ <if test="b.departmentId != null and b.departmentId !=""">
|
|
|
and a.department_id = #{b.departmentId,jdbcType=VARCHAR}
|
|
|
</if>
|
|
|
- <if test='b.startTime != null and b.startTime != "" and b.endTime != null and b.endTime != ""'>
|
|
|
- <bind name="a" value="b.startTime + ' 00:00:00'"/>
|
|
|
- <bind name="e" value="b.endTime + ' 23:59:59'"/>
|
|
|
+ <if test="b.startTime != null and b.startTime != "" and b.endTime != null and b.endTime != """>
|
|
|
+ <bind name="a" value="b.startTime + ' 00:00:00'" />
|
|
|
+ <bind name="e" value="b.endTime + ' 23:59:59'" />
|
|
|
and o.sign_time between #{a,jdbcType=VARCHAR} and #{e,jdbcType=VARCHAR}
|
|
|
</if>
|
|
|
</select>
|
|
|
@@ -467,16 +485,16 @@
|
|
|
<if test="grantBy != null">
|
|
|
and b.grant_by = #{grantBy,jdbcType=VARCHAR}
|
|
|
</if>
|
|
|
- <if test='salesName != null and salesName != ""'>
|
|
|
- <bind name="sn" value="'%' + salesName + '%'"/>
|
|
|
+ <if test="salesName != null and salesName != """>
|
|
|
+ <bind name="sn" value="'%' + salesName + '%'" />
|
|
|
and a.name like #{sn,jdbcType=VARCHAR}
|
|
|
</if>
|
|
|
- <if test='departmentId != null and departmentId !=""'>
|
|
|
+ <if test="departmentId != null and departmentId !=""">
|
|
|
and a.department_id = #{departmentId,jdbcType=VARCHAR}
|
|
|
</if>
|
|
|
- <if test='startTime != null and startTime != "" and endTime != null and endTime != ""'>
|
|
|
- <bind name="a" value="startTime + ' 00:00:00'"/>
|
|
|
- <bind name="e" value="endTime + ' 23:59:59'"/>
|
|
|
+ <if test="startTime != null and startTime != "" and endTime != null and endTime != """>
|
|
|
+ <bind name="a" value="startTime + ' 00:00:00'" />
|
|
|
+ <bind name="e" value="endTime + ' 23:59:59'" />
|
|
|
and o.sign_time between #{a,jdbcType=VARCHAR} and #{e,jdbcType=VARCHAR}
|
|
|
</if>
|
|
|
</select>
|
|
|
@@ -497,20 +515,20 @@
|
|
|
<if test="grantBy != null">
|
|
|
and b.grant_by = #{grantBy,jdbcType=VARCHAR}
|
|
|
</if>
|
|
|
- <if test='targetName != null and targetName != ""'>
|
|
|
- <bind name="tn" value="'%' + targetName + '%'"/>
|
|
|
+ <if test="targetName != null and targetName != """>
|
|
|
+ <bind name="tn" value="'%' + targetName + '%'" />
|
|
|
and a.name like #{tn,jdbcType=VARCHAR}
|
|
|
</if>
|
|
|
- <if test='salesName != null and salesName != ""'>
|
|
|
- <bind name="sn" value="'%' + salesName + '%'"/>
|
|
|
+ <if test="salesName != null and salesName != """>
|
|
|
+ <bind name="sn" value="'%' + salesName + '%'" />
|
|
|
and oa.name like #{sn,jdbcType=VARCHAR}
|
|
|
</if>
|
|
|
- <if test='departmentId != null and departmentId !=""'>
|
|
|
+ <if test="departmentId != null and departmentId !=""">
|
|
|
and a.department_id = #{departmentId,jdbcType=VARCHAR}
|
|
|
</if>
|
|
|
- <if test='startTime != null and startTime != "" and endTime != null and endTime != ""'>
|
|
|
- <bind name="a" value="b.startTime + ' 00:00:00'"/>
|
|
|
- <bind name="e" value="b.endTime + ' 23:59:59'"/>
|
|
|
+ <if test="startTime != null and startTime != "" and endTime != null and endTime != """>
|
|
|
+ <bind name="a" value="b.startTime + ' 00:00:00'" />
|
|
|
+ <bind name="e" value="b.endTime + ' 23:59:59'" />
|
|
|
and o.sign_time between #{a,jdbcType=VARCHAR} and #{e,jdbcType=VARCHAR}
|
|
|
</if>
|
|
|
order by b.grant_status ,b.create_time
|