INSERT INTO sys_suggestion (mobile_no_,title_,content_,user_id_,create_time_,client_type_,type_,url_)
VALUES(#{mobileNo},#{title},#{content},#{userId},now(),#{clientType},#{type, typeHandler=com.yonge.toolset.mybatis.dal.CustomEnumTypeHandler},#{url})
UPDATE sys_suggestion
url_ = #{url},
client_type_ = #{clientType},
user_id_ = #{userId},
title_ = #{title},
content_ = #{content},
mobile_no_ = #{mobileNo},
type_ = #{type, typeHandler=com.yonge.toolset.mybatis.dal.CustomEnumTypeHandler},
WHERE id_ = #{id}
DELETE FROM sys_suggestion WHERE id_ = #{id}
su.del_flag_ = 0
AND ss.type_ = #{type, typeHandler=com.yonge.toolset.mybatis.dal.CustomEnumTypeHandler}
AND ss.client_type_ = #{clientType}
AND DATE_FORMAT(ss.create_time_,'%Y-%m-%d') >= #{startTime}
AND DATE_FORMAT(ss.create_time_,'%Y-%m-%d') <= #{endTime}
AND (su.real_name_ LIKE CONCAT('%', #{search}, '%') OR su.username_ LIKE CONCAT('%', #{search}, '%') OR ss.user_id_=#{search} OR su.phone_=#{search})