| | |
| | | /** 数据来源 */ |
| | | private String dataSource; |
| | | |
| | | /** 图片路径 */ |
| | | private String url; |
| | | |
| | | public String getUrl() { |
| | | return url; |
| | | } |
| | | |
| | | public void settianUrl(String url) { |
| | | this.url = url; |
| | | } |
| | | |
| | | public Integer getHoleNum() { |
| | | return holeNum; |
| | |
| | | <result property="lat" column="lat" /> |
| | | <result property="rate" column="rate" /> |
| | | <result property="createTime" column="create_time" /> |
| | | <result property="url" column="url" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectProjectVo"> |
| | | select ids, address, city, code, company_id,start_time,end_time, district, full_name, labor_unit, leader, owner, province, serial_number, 'describe', status, is_deleted, status_change_user, status_change_reason, data_source,lng,lat,rate,create_time from js_project |
| | | select ids, address, city, code, company_id,start_time,end_time, district, full_name, labor_unit, leader, owner, province, serial_number, 'describe', status, is_deleted, status_change_user, status_change_reason, data_source,lng,lat,rate,create_time,url from js_project |
| | | </sql> |
| | | |
| | | <select id="selectProjectList" parameterType="Project" resultMap="ProjectResult"> |
| | |
| | | <if test="lat != null">lat,</if> |
| | | <if test="rate != null and rate != ''">rate,</if> |
| | | <if test="createTime != null ">create_time,</if> |
| | | <if test="url != null and url != ''">url,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="ids != null and ids != ''">#{ids},</if> |
| | |
| | | <if test="lat != null">#{lat},</if> |
| | | <if test="rate != null and rate != ''">#{rate},</if> |
| | | <if test="createTime != null ">#{createTime},</if> |
| | | <if test="url != null and url != ''">#{url},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | |
| | | <if test="lat != null">lat = #{lat},</if> |
| | | <if test="rate != null and rate != ''">rate = #{rate},</if> |
| | | <if test="createTime != null ">create_time = #{createTime},</if> |
| | | <if test="url != null ">url = #{url},</if> |
| | | </trim> |
| | | where ids = #{ids} |
| | | </update> |