|
|
@@ -46,7 +46,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
46
|
46
|
<resultMap type="InspectionItem" id="InspectionItemResult">
|
|
47
|
47
|
<result property="id" column="id" />
|
|
48
|
48
|
<result property="mainId" column="main_id" />
|
|
49
|
|
- <result property="subitemId" column="subitem_id" />
|
|
|
49
|
+ <result property="subItemId" column="sub_item_id" />
|
|
50
|
50
|
<result property="itemName" column="item_name" />
|
|
51
|
51
|
<result property="isRandom" column="is_random" />
|
|
52
|
52
|
<result property="tag" column="tag" />
|
|
|
@@ -73,7 +73,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
73
|
73
|
<sql id="selectInspectionVo">
|
|
74
|
74
|
select main .id, main .name, main .is_required, main .status, main .create_by, main .update_by, main .update_time, main .create_time, main .del_flag ,
|
|
75
|
75
|
subItem.id,subItem. main_id, subItem.name, subItem.sort_order, subItem.status, subItem.create_by, subItem.update_by, subItem.update_time, subItem.create_time, subItem.del_flag ,
|
|
76
|
|
- item.id, item.main_id, item.subitem_id, item.item_name, item.is_random, item.tag, item.has_input, item.input_content, item.has_photo, item.photo_prompt, item.check_result,item.example_image, item.check_description, item.sort_order, item.status, item.create_by,item. update_by, item.update_time,item. create_time, item.del_flag
|
|
|
76
|
+ item.id, item.main_id, item.sub_item_id, item.item_name, item.is_random, item.tag, item.has_input, item.input_content, item.has_photo, item.photo_prompt, item.check_result,item.example_image, item.check_description, item.sort_order, item.status, item.create_by,item. update_by, item.update_time,item. create_time, item.del_flag
|
|
77
|
77
|
from inspection_main as main
|
|
78
|
78
|
left join inspection_sub_item as subItem on main .id=subItem.main_id and subItem.del_flag=0
|
|
79
|
79
|
left join inspection_item as item on main.id=item .main_id and item.del_flag=0
|