id, agent_id, agent_name, user_id, user_name, position_id, de_type, de_amt, de_summary, add_time, add_ip, add_address, is_read delete from user_cash_detail where id = #{id,jdbcType=INTEGER} insert into user_cash_detail (id, agent_id, agent_name, user_id, user_name, position_id, de_type, de_amt, de_summary, add_time, add_ip, add_address, is_read) values (#{id,jdbcType=INTEGER}, #{agentId,jdbcType=INTEGER}, #{agentName,jdbcType=VARCHAR}, #{userId,jdbcType=INTEGER}, #{userName,jdbcType=VARCHAR}, #{positionId,jdbcType=INTEGER}, #{deType,jdbcType=VARCHAR}, #{deAmt,jdbcType=DECIMAL}, #{deSummary,jdbcType=VARCHAR}, #{addTime,jdbcType=TIMESTAMP}, #{addIp,jdbcType=VARCHAR}, #{addAddress,jdbcType=VARCHAR}, #{isRead,jdbcType=INTEGER}) insert into user_cash_detail id, agent_id, agent_name, user_id, user_name, position_id, de_type, de_amt, de_summary, add_time, add_ip, add_address, is_read, #{id,jdbcType=INTEGER}, #{agentId,jdbcType=INTEGER}, #{agentName,jdbcType=VARCHAR}, #{userId,jdbcType=INTEGER}, #{userName,jdbcType=VARCHAR}, #{positionId,jdbcType=INTEGER}, #{deType,jdbcType=VARCHAR}, #{deAmt,jdbcType=DECIMAL}, #{deSummary,jdbcType=VARCHAR}, #{addTime,jdbcType=TIMESTAMP}, #{addIp,jdbcType=VARCHAR}, #{addAddress,jdbcType=VARCHAR}, #{isRead,jdbcType=INTEGER}, update user_cash_detail agent_id = #{agentId,jdbcType=INTEGER}, agent_name = #{agentName,jdbcType=VARCHAR}, user_id = #{userId,jdbcType=INTEGER}, user_name = #{userName,jdbcType=VARCHAR}, position_id = #{positionId,jdbcType=INTEGER}, de_type = #{deType,jdbcType=VARCHAR}, de_amt = #{deAmt,jdbcType=DECIMAL}, de_summary = #{deSummary,jdbcType=VARCHAR}, add_time = #{addTime,jdbcType=TIMESTAMP}, add_ip = #{addIp,jdbcType=VARCHAR}, add_address = #{addAddress,jdbcType=VARCHAR}, is_read = #{isRead,jdbcType=INTEGER}, where id = #{id,jdbcType=INTEGER} update user_cash_detail set agent_id = #{agentId,jdbcType=INTEGER}, agent_name = #{agentName,jdbcType=VARCHAR}, user_id = #{userId,jdbcType=INTEGER}, user_name = #{userName,jdbcType=VARCHAR}, position_id = #{positionId,jdbcType=INTEGER}, de_type = #{deType,jdbcType=VARCHAR}, de_amt = #{deAmt,jdbcType=DECIMAL}, de_summary = #{deSummary,jdbcType=VARCHAR}, add_time = #{addTime,jdbcType=TIMESTAMP}, add_ip = #{addIp,jdbcType=VARCHAR}, add_address = #{addAddress,jdbcType=VARCHAR}, is_read = #{isRead,jdbcType=INTEGER} where id = #{id,jdbcType=INTEGER} DELETE FROM user_cash_detail WHERE user_id = #{userId}