|
|
@ -23,12 +23,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
|
|
|
|
<sql id="selectSysProductModelVo"> |
|
|
|
select pid, pcode, equipModel, equipName,engineer,use_status, |
|
|
|
specification, differences, create_by, create_time, udpate_by, |
|
|
|
specification, differences, create_by, create_time, update_by, |
|
|
|
update_time,remark, photoUrl from sys_product_model |
|
|
|
</sql> |
|
|
|
<select id="selectSysProductModelList" parameterType="SysProductModel" resultMap="SysProductModelResult"> |
|
|
|
select s.pid, s.pcode, s.equipModel, s.equipName,s.engineer,s.use_status, |
|
|
|
s.specification, s.differences, s. create_by, s.create_time, s.udpate_by, |
|
|
|
s.specification, s.differences, s. create_by, s.create_time, s.update_by, |
|
|
|
s.update_time,s.remark, s.photoUrl,file.url as photo_url from sys_product_model as s |
|
|
|
left join ( |
|
|
|
select |
|
|
@ -60,7 +60,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
|
|
|
|
<select id="selectSysProductModelById" parameterType="Long" resultMap="SysProductModelResult"> |
|
|
|
select s.pid, s.pcode, s.equipModel, s.equipName,s.engineer,s.use_status, |
|
|
|
s.specification, s.differences, s. create_by, s.create_time, s.udpate_by, |
|
|
|
s.specification, s.differences, s. create_by, s.create_time, s.update_by, |
|
|
|
s.update_time,s.remark, s.photoUrl,att.id as photo_attach_id from sys_product_model as s |
|
|
|
left join sys_attach as att |
|
|
|
on s.pid = att.rel_id and att.source_type = 'sysProductModel' and att.source_sub_type = 'photo' |
|
|
|