id, `uid`, aid, `status`, distribution_time, create_time, remarks, `recovery`, maid, sign_time, province, city, society_tag, contacts, contact_mobile delete from user_channel where id = #{id,jdbcType=INTEGER} insert into user_channel (id, `uid`, aid, `status`, distribution_time, create_time, remarks, `recovery`, maid, sign_time, province, city, society_tag, contacts, contact_mobile ) 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}, #{maid,jdbcType=VARCHAR}, #{signTime,jdbcType=TIMESTAMP}, #{province,jdbcType=VARCHAR}, #{city,jdbcType=VARCHAR}, #{societyTag,jdbcType=VARCHAR}, #{contacts,jdbcType=VARCHAR}, #{contactMobile,jdbcType=VARCHAR} ) insert into user_channel id, `uid`, aid, `status`, distribution_time, create_time, remarks, `recovery`, maid, sign_time, province, city, society_tag, contacts, contact_mobile, #{id,jdbcType=INTEGER}, #{uid,jdbcType=VARCHAR}, #{aid,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER}, #{distributionTime,jdbcType=TIMESTAMP}, #{createTime,jdbcType=TIMESTAMP}, #{remarks,jdbcType=VARCHAR}, #{recovery,jdbcType=INTEGER}, #{maid,jdbcType=VARCHAR}, #{signTime,jdbcType=TIMESTAMP}, #{province,jdbcType=VARCHAR}, #{city,jdbcType=VARCHAR}, #{societyTag,jdbcType=VARCHAR}, #{contacts,jdbcType=VARCHAR}, #{contactMobile,jdbcType=VARCHAR}, 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}, maid = #{maid,jdbcType=VARCHAR}, sign_time = #{signTime,jdbcType=TIMESTAMP}, province = #{province,jdbcType=VARCHAR}, city = #{city,jdbcType=VARCHAR}, society_tag = #{societyTag,jdbcType=VARCHAR}, contacts = #{contacts,jdbcType=VARCHAR}, contact_mobile = #{contactMobile,jdbcType=VARCHAR}, where id = #{id,jdbcType=INTEGER} 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}, maid = #{maid,jdbcType=VARCHAR}, sign_time = #{signTime,jdbcType=TIMESTAMP}, province = #{province,jdbcType=VARCHAR}, city = #{city,jdbcType=VARCHAR}, society_tag = #{societyTag,jdbcType=VARCHAR}, contacts = #{contacts,jdbcType=VARCHAR}, contact_mobile = #{contactMobile,jdbcType=VARCHAR} 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}, sign_time = #{signTime,jdbcType=TIMESTAMP}, where uid = #{uid,jdbcType=VARCHAR} and status in (1,2) insert into user_channel ( `uid`, aid, `status`,remarks,province,city,society_tag,contacts,contact_mobile)VALUES (#{item.uid,jdbcType=VARCHAR}, #{item.aid,jdbcType=VARCHAR},#{item.status}, #{item.remarks},#{item.provinces},#{item.citys},#{item.societyTags}, #{item.contacts},#{item.contactMobile}) 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