id, `uid`, aid, `status`, distribution_time, create_time, remarks, `recovery` delete from user_channel where id = #{id,jdbcType=INTEGER} insert into user_channel (id, `uid`, aid, `status`, distribution_time, create_time, remarks, `recovery`) values (#{id,jdbcType=INTEGER}, #{uid,jdbcType=VARCHAR}, #{aid,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER}, #{distributionTime,jdbcType=TIMESTAMP}, #{createTime,jdbcType=TIMESTAMP}, #{remarks,jdbcType=VARCHAR}, #{recovery,jdbcType=INTEGER}) insert into user_channel id, `uid`, aid, `status`, distribution_time, create_time, remarks, `recovery`, #{id,jdbcType=INTEGER}, #{uid,jdbcType=VARCHAR}, #{aid,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER}, #{distributionTime,jdbcType=TIMESTAMP}, #{createTime,jdbcType=TIMESTAMP}, #{remarks,jdbcType=VARCHAR}, #{recovery,jdbcType=INTEGER}, update user_channel `uid` = #{uid,jdbcType=VARCHAR}, aid = #{aid,jdbcType=VARCHAR}, `status` = #{status,jdbcType=INTEGER}, distribution_time = #{distributionTime,jdbcType=TIMESTAMP}, create_time = #{createTime,jdbcType=TIMESTAMP}, remarks = #{remarks,jdbcType=VARCHAR}, `recovery` = #{recovery,jdbcType=INTEGER}, where id = #{id,jdbcType=INTEGER} update user_channel aid = #{aid,jdbcType=VARCHAR}, `status` = #{status,jdbcType=INTEGER}, distribution_time = #{distributionTime,jdbcType=TIMESTAMP}, create_time = #{createTime,jdbcType=TIMESTAMP}, remarks = #{remarks,jdbcType=VARCHAR}, `recovery` = #{recovery,jdbcType=INTEGER}, where uid = #{uid,jdbcType=VARCHAR} and status in (1,2) update user_channel set `uid` = #{uid,jdbcType=VARCHAR}, aid = #{aid,jdbcType=VARCHAR}, `status` = #{status,jdbcType=INTEGER}, distribution_time = #{distributionTime,jdbcType=TIMESTAMP}, create_time = #{createTime,jdbcType=TIMESTAMP}, remarks = #{remarks,jdbcType=VARCHAR}, `recovery` = #{recovery,jdbcType=INTEGER} where id = #{id,jdbcType=INTEGER} insert into user_channel ( `uid`, aid, `status`,remarks)VALUES (#{item.uid,jdbcType=VARCHAR}, #{item.aid,jdbcType=VARCHAR},#{item.status}, #{item.remarks}) update user_channel set status = #{status} ,recovery=1 ,distribution_time= #{date} ,maid= #{maid} where 1=1 and status in (0,1,2) and status in (0,1,2,6) and uid in( #{item} ) delete from user_channel where id in ( #{item} ) delete user_channel ,user , organization_identity ,organization_contact_book from user_channel ,user , organization_identity ,organization_contact_book where user_channel.id in ( #{item} ) and user_channel.uid =user.id and user.status =1 and user.id=organization_identity.uid and user.id=organization_contact_book.uid