|
@@ -11,6 +11,7 @@ sb.financing_no_five,
|
|
|
name, model_id,
|
|
|
is_child,
|
|
|
is_show,
|
|
|
+is_financing,
|
|
|
type_id, level, initial_value, current_value, cut_value,
|
|
|
producer_id, source_type, source_sb_id, parent_id, unit, position_id,
|
|
|
use_area,
|
|
@@ -87,6 +88,7 @@ sb.financing_no,
|
|
|
sb.name, sb.initial_value,
|
|
|
sb.current_value, sb.cut_value,
|
|
|
sb.is_child,
|
|
|
+sb.is_financing,
|
|
|
sb.parent_id,
|
|
|
sb.is_show,
|
|
|
sb.unit, sb.position_id,
|
|
@@ -164,7 +166,8 @@ sb.apply_time,
|
|
|
sb.remark,
|
|
|
sb.apply_comment,
|
|
|
sb.scrap_user_id,
|
|
|
-sb.scrap_user_name
|
|
|
+sb.scrap_user_name,
|
|
|
+user.real_name as saveUserName
|
|
|
</sql>
|
|
|
|
|
|
<sql id="deptSql">
|
|
@@ -181,6 +184,7 @@ sb.scrap_user_name
|
|
|
left join t_sb_type sbType on sb.type_id = sbType.id
|
|
|
left join t_firm_producer producer on sb.producer_id = producer.id
|
|
|
left join t_sb_position position on sb.position_id = position.id
|
|
|
+ left join t_sys_user user on sb.save_user = user.user_id
|
|
|
left join t_sys_dept sdDept on sb.save_dept = sdDept.dept_id
|
|
|
where
|
|
|
1 = 1
|
|
@@ -221,6 +225,9 @@ sb.scrap_user_name
|
|
|
<if test="isShow != null">
|
|
|
and sb.is_show = #{isShow}
|
|
|
</if>
|
|
|
+ <if test="isFinancing != null">
|
|
|
+ and sb.is_financing = #{isFinancing}
|
|
|
+ </if>
|
|
|
<if test="useArea != null">
|
|
|
and sb.use_area = #{useArea}
|
|
|
</if>
|
|
@@ -326,6 +333,9 @@ sb.scrap_user_name
|
|
|
<if test="isChild != null">
|
|
|
and sb.is_child = #{isChild}
|
|
|
</if>
|
|
|
+ <if test="isFinancing != null">
|
|
|
+ and sb.is_financing = #{isFinancing}
|
|
|
+ </if>
|
|
|
<if test="isShow != null">
|
|
|
and sb.is_show = #{isShow}
|
|
|
</if>
|
|
@@ -398,6 +408,7 @@ sb.scrap_user_name
|
|
|
left join t_sb_type sbType on sb.type_id = sbType.id
|
|
|
left join t_firm_producer producer on sb.producer_id = producer.id
|
|
|
left join t_sb_position position on sb.position_id = position.id
|
|
|
+ left join t_sys_user user on sb.save_user = user.user_id
|
|
|
left join t_sys_dept sdDept on sb.save_dept = sdDept.dept_id
|
|
|
where
|
|
|
TIMESTAMPDIFF( DAY, CURDATE( ), sb.next_check_date ) <![CDATA[ <= ]]> sb.seat_number
|
|
@@ -432,6 +443,9 @@ sb.scrap_user_name
|
|
|
<if test="isChild != null">
|
|
|
and sb.is_child = #{isChild}
|
|
|
</if>
|
|
|
+ <if test="isFinancing != null">
|
|
|
+ and sb.is_financing = #{isFinancing}
|
|
|
+ </if>
|
|
|
<if test="isShow != null">
|
|
|
and sb.is_show = #{isShow}
|
|
|
</if>
|
|
@@ -504,6 +518,7 @@ sb.scrap_user_name
|
|
|
left join t_sb_type sbType on sb.type_id = sbType.id
|
|
|
left join t_firm_producer producer on sb.producer_id = producer.id
|
|
|
left join t_sb_position position on sb.position_id = position.id
|
|
|
+ left join t_sys_user user on sb.save_user = user.user_id
|
|
|
where sb.id = #{value}
|
|
|
</select>
|
|
|
<select id="getByNo" parameterType="java.lang.Object" resultType="com.platform.dao.vo.sb.SbInfoVO">
|
|
@@ -513,6 +528,7 @@ sb.scrap_user_name
|
|
|
left join t_sb_type sbType on sb.type_id = sbType.id
|
|
|
left join t_firm_producer producer on sb.producer_id = producer.id
|
|
|
left join t_sb_position position on sb.position_id = position.id
|
|
|
+ left join t_sys_user user on sb.save_user = user.user_id
|
|
|
where sb.no = #{value}
|
|
|
</select>
|
|
|
|