|  | @@ -15,7 +15,7 @@
 | 
	
		
			
				|  |  |  		<result column="operator_id_" property="operatorId" />
 | 
	
		
			
				|  |  |  		<result column="del_flag_" property="delFlag" />
 | 
	
		
			
				|  |  |  		<result column="organ_name_" property="organName" />
 | 
	
		
			
				|  |  | -		<result column="organ_name_" property="organName" />
 | 
	
		
			
				|  |  | +		<result column="user_id_" property="userId" />
 | 
	
		
			
				|  |  |  	</resultMap>
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  	<!-- 根据主键查询一条记录 -->
 | 
	
	
		
			
				|  | @@ -32,8 +32,8 @@
 | 
	
		
			
				|  |  |  	<insert id="insert" parameterType="com.ym.mec.biz.dal.entity.SporadicChargeInfo"
 | 
	
		
			
				|  |  |  		useGeneratedKeys="true" keyColumn="id" keyProperty="id">
 | 
	
		
			
				|  |  |  		INSERT INTO sporadic_charge_info
 | 
	
		
			
				|  |  | -		(title_,charge_type_,organ_id_,amount_,detail_,create_time_,update_time_,operator_id_)
 | 
	
		
			
				|  |  | -		VALUES(#{title},#{chargeType},#{organId},#{amount},#{detail},now(),now(),#{operatorId})
 | 
	
		
			
				|  |  | +		(title_,charge_type_,organ_id_,amount_,detail_,create_time_,update_time_,operator_id_,user_id_)
 | 
	
		
			
				|  |  | +		VALUES(#{title},#{chargeType},#{organId},#{amount},#{detail},now(),now(),#{operatorId},#{userId})
 | 
	
		
			
				|  |  |  	</insert>
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  	<!-- 根据主键查询一条记录 -->
 | 
	
	
		
			
				|  | @@ -61,6 +61,9 @@
 | 
	
		
			
				|  |  |  			<if test="operatorId != null">
 | 
	
		
			
				|  |  |  				operator_id_ = #{operatorId},
 | 
	
		
			
				|  |  |  			</if>
 | 
	
		
			
				|  |  | +			<if test="userId != null">
 | 
	
		
			
				|  |  | +				user_id_ = #{userId},
 | 
	
		
			
				|  |  | +			</if>
 | 
	
		
			
				|  |  |  		</set>
 | 
	
		
			
				|  |  |  		WHERE id_ = #{id}
 | 
	
		
			
				|  |  |  	</update>
 | 
	
	
		
			
				|  | @@ -73,6 +76,7 @@
 | 
	
		
			
				|  |  |  	<!-- 分页查询 -->
 | 
	
		
			
				|  |  |  	<select id="queryPage" resultMap="SporadicChargeInfo" parameterType="map">
 | 
	
		
			
				|  |  |  		SELECT * FROM sporadic_charge_info sci
 | 
	
		
			
				|  |  | +		LEFT JOIN sys_user su ON su.id_ = sci.user_id_
 | 
	
		
			
				|  |  |  		<include refid="queryPageSql"/>
 | 
	
		
			
				|  |  |  		ORDER BY id_ DESC
 | 
	
		
			
				|  |  |  		<include refid="global.limit" />
 | 
	
	
		
			
				|  | @@ -88,7 +92,7 @@
 | 
	
		
			
				|  |  |  				AND sci.charge_type_ = #{chargeType}
 | 
	
		
			
				|  |  |  			</if>
 | 
	
		
			
				|  |  |  			<if test="search != null">
 | 
	
		
			
				|  |  | -				AND sci.title_ LIKE CONCAT('%',#{search},'%')
 | 
	
		
			
				|  |  | +				AND (sci.title_ LIKE CONCAT('%',#{search},'%') OR su.username LIKE CONCAT('%',#{search},'%'))
 | 
	
		
			
				|  |  |  			</if>
 | 
	
		
			
				|  |  |  		</where>
 | 
	
		
			
				|  |  |  	</sql>
 |