| | |
| | | select |
| | | yes.*, |
| | | yfi.name as firmName, |
| | | ys.per_in_cha as personInCha,ys.per_in_cha_pho as personInChaPhone, |
| | | ys.per_in_cha as personInCha,ys.per_in_cha_pho as personInChaPhone,ys.address supAdd, |
| | | bdb.dict_value as emeSupType, |
| | | concat(yes.num,bdb1.dict_value) as numUnit |
| | | from |
| | |
| | | <if test="emergencySupplies.type!=null"> |
| | | and yes.type = #{emergencySupplies.type} |
| | | </if> |
| | | <if test="emergencySupplies.ownership!=null"> |
| | | <if test="emergencySupplies.ownership==1"> |
| | | and yes.firm_id is null |
| | | </if> |
| | | <if test="emergencySupplies.ownership==2"> |
| | | and yes.firm_id is not null |
| | | </if> |
| | | </if> |
| | | </select> |
| | | |
| | | </mapper> |