|
|
|
|
|
|
|
|
<result property="questionCode" column="question_code" /> |
|
|
<result property="questionCode" column="question_code" /> |
|
|
<result property="source" column="source" /> |
|
|
<result property="source" column="source" /> |
|
|
<result property="questionName" column="question_name" /> |
|
|
<result property="questionName" column="question_name" /> |
|
|
<result property="questionContent" column="question_content" /> |
|
|
|
|
|
<result property="questionDesc" column="question_desc" /> |
|
|
<result property="questionDesc" column="question_desc" /> |
|
|
<result property="status" column="status" /> |
|
|
<result property="status" column="status" /> |
|
|
<result property="checkUser" column="check_user" /> |
|
|
<result property="checkUser" column="check_user" /> |
|
|
|
|
|
|
|
|
<result property="questionCode" column="question_code" /> |
|
|
<result property="questionCode" column="question_code" /> |
|
|
<result property="source" column="source" /> |
|
|
<result property="source" column="source" /> |
|
|
<result property="questionName" column="question_name" /> |
|
|
<result property="questionName" column="question_name" /> |
|
|
<result property="questionContent" column="question_content" /> |
|
|
|
|
|
<result property="questionDesc" column="question_desc" /> |
|
|
<result property="questionDesc" column="question_desc" /> |
|
|
<result property="status" column="status" /> |
|
|
<result property="status" column="status" /> |
|
|
<result property="checkUser" column="check_user" /> |
|
|
<result property="checkUser" column="check_user" /> |
|
|
|
|
|
|
|
|
</resultMap> |
|
|
</resultMap> |
|
|
|
|
|
|
|
|
<sql id="Base_Column_List"> |
|
|
<sql id="Base_Column_List"> |
|
|
id, tenant_id, file_code, inspection_id, file_type, file_name, file_thumbnail, file_original, file_image, file_size, latitude, longitude, location, gaode_longitude, gaode_latitude, gaode_address, question_code, source, question_name, question_content, question_desc, status, check_user, check_time, create_user, create_time, update_user, update_time, mark |
|
|
|
|
|
|
|
|
id, tenant_id, file_code, inspection_id, file_type, file_name, file_thumbnail, file_original, file_image, file_size, latitude, longitude, location, gaode_longitude, gaode_latitude, gaode_address, question_code, source, question_name, question_desc, status, check_user, check_time, create_user, create_time, update_user, update_time, mark |
|
|
</sql> |
|
|
</sql> |
|
|
|
|
|
|
|
|
<sql id="selectThInspectionFileVo"> |
|
|
<sql id="selectThInspectionFileVo"> |
|
|
select id, tenant_id, file_code, inspection_id, file_type, file_name, file_thumbnail, file_original, file_image, file_size, latitude, longitude, location, gaode_longitude, gaode_latitude, gaode_address, question_code, source, question_name, question_content, question_desc, status, check_user, check_time, create_user, create_time, update_user, update_time, mark from th_inspection_file |
|
|
|
|
|
|
|
|
select id, tenant_id, file_code, inspection_id, file_type, file_name, file_thumbnail, file_original, file_image, file_size, latitude, longitude, location, gaode_longitude, gaode_latitude, gaode_address, question_code, source, question_name, question_desc, status, check_user, check_time, create_user, create_time, update_user, update_time, mark from th_inspection_file |
|
|
</sql> |
|
|
</sql> |
|
|
|
|
|
|
|
|
<sql id="Base_Extend_Column_List"> |
|
|
<sql id="Base_Extend_Column_List"> |
|
|
tif.id, tif.tenant_id, tif.file_code, tif.inspection_id, tif.file_type, tif.file_name, tif.file_thumbnail, tif.file_original, tif.file_image, tif.file_size, |
|
|
tif.id, tif.tenant_id, tif.file_code, tif.inspection_id, tif.file_type, tif.file_name, tif.file_thumbnail, tif.file_original, tif.file_image, tif.file_size, |
|
|
tif.latitude, tif.longitude, tif.location, tif.gaode_longitude, tif.gaode_latitude, tif.gaode_address, tif.source, tif.question_code, tif.question_name, tif.question_content, tif.question_desc, tif.status, |
|
|
|
|
|
|
|
|
tif.latitude, tif.longitude, tif.location, tif.gaode_longitude, tif.gaode_latitude, tif.gaode_address, tif.source, tif.question_code, tif.question_name, tif.question_desc, tif.status, |
|
|
tif.check_user, tif.check_time, tif.create_user, tif.create_time, tif.update_user, tif.update_time, tif.mark, |
|
|
tif.check_user, tif.check_time, tif.create_user, tif.create_time, tif.update_user, tif.update_time, tif.mark, |
|
|
ti.code as inspection_code, ti.name as inspection_name, ti.road_id, ti.dept_id |
|
|
ti.code as inspection_code, ti.name as inspection_name, ti.road_id, ti.dept_id |
|
|
</sql> |
|
|
</sql> |
|
|
|
|
|
|
|
|
<insert id="addBatch" parameterType="com.tuoheng.admin.entity.InspectionFile"> |
|
|
<insert id="addBatch" parameterType="com.tuoheng.admin.entity.InspectionFile"> |
|
|
insert into th_inspection_file (id,file_code, inspection_id, file_type, file_name, |
|
|
insert into th_inspection_file (id,file_code, inspection_id, file_type, file_name, |
|
|
file_thumbnail, file_original, file_image, file_size, latitude, longitude, `location`, gaode_longitude, gaode_latitude, |
|
|
file_thumbnail, file_original, file_image, file_size, latitude, longitude, `location`, gaode_longitude, gaode_latitude, |
|
|
gaode_address, `source`, question_code, question_name, question_content, question_desc, `status`, check_user, check_time, create_user, tenant_id) |
|
|
|
|
|
|
|
|
gaode_address, `source`, question_code, question_name, question_desc, `status`, check_user, check_time, create_user, tenant_id) |
|
|
values |
|
|
values |
|
|
<foreach collection="list" item="item" separator=","> |
|
|
<foreach collection="list" item="item" separator=","> |
|
|
( |
|
|
( |
|
|
|
|
|
|
|
|
#{item.source,jdbcType=BOOLEAN}, |
|
|
#{item.source,jdbcType=BOOLEAN}, |
|
|
#{item.questionCode,jdbcType=VARCHAR}, |
|
|
#{item.questionCode,jdbcType=VARCHAR}, |
|
|
#{item.questionName,jdbcType=VARCHAR}, |
|
|
#{item.questionName,jdbcType=VARCHAR}, |
|
|
#{item.questionContent,jdbcType=VARCHAR}, |
|
|
|
|
|
#{item.questionDesc,jdbcType=VARCHAR}, |
|
|
#{item.questionDesc,jdbcType=VARCHAR}, |
|
|
#{item.status,jdbcType=TINYINT}, |
|
|
#{item.status,jdbcType=TINYINT}, |
|
|
#{item.checkUser,jdbcType=INTEGER}, |
|
|
#{item.checkUser,jdbcType=INTEGER}, |