| | |
| | | <insert id="saveParkingSpaceInfoInstance" parameterType="Map"> |
| | | insert into parking_space( |
| | | area,num,ps_id,pa_id,remark,status_cd,state,community_id,b_id |
| | | ) select t.area,t.t.num,t.ps_id,t.pa_id,t.remark,'0',t.state,t.community_id,t.b_id from |
| | | ) select t.area,t.num,t.ps_id,t.pa_id,t.remark,'0',t.state,t.community_id,t.b_id from |
| | | business_parking_space t where 1=1 |
| | | <if test="area !=null and area != ''"> |
| | | and t.area= #{area} |
| | |
| | | t.b_id, |
| | | t.b_id bId, |
| | | td.name stateName, |
| | | pa.num areaNum |
| | | pa.num areaNum, |
| | | pa.type_cd typeCd |
| | | FROM |
| | | parking_space t,t_dict td,parking_area pa |
| | | |
| | | <where> |
| | | t.state = td.status_cd |
| | | and td.table_name='parking_space' |
| | |
| | | </if> |
| | | <if test="num !=null and num != ''"> |
| | | and t.num= #{num} |
| | | </if> |
| | | <if test="areaNum !=null and areaNum != ''"> |
| | | and pa.num= #{areaNum} |
| | | </if> |
| | | <if test="psId !=null and psId != ''"> |
| | | and t.ps_id= #{psId} |
| | |
| | | <if test="num !=null and num != ''"> |
| | | and t.num= #{num} |
| | | </if> |
| | | <if test="areaNum !=null and areaNum != ''"> |
| | | and pa.num= #{areaNum} |
| | | </if> |
| | | <if test="psId !=null and psId != ''"> |
| | | and t.ps_id= #{psId} |
| | | </if> |