Просмотр исходного кода

[物业合同][修改][查询关联租赁合同的店铺]

release_toaliyun_real
gongbiao 7 лет назад
Родитель
Сommit
7decd13b3d
3 измененных файлов: 6 добавлений и 5 удалений
  1. +1
    -1
      mallinkService/src/main/java/com/iformall/mapper/WxPropertyContractMapper.java
  2. +3
    -2
      mallinkService/src/main/java/com/iformall/service/impl/WxPropertyContractServiceImpl.java
  3. +2
    -2
      mallinkService/src/main/resources/mapper/WxPropertyContractMapper.xml

+ 1
- 1
mallinkService/src/main/java/com/iformall/mapper/WxPropertyContractMapper.java Просмотреть файл

@@ -34,7 +34,7 @@ public interface WxPropertyContractMapper extends CommonMapper<WxPropertyContrac

void updateRentInvalidStatus(WxPropertyContract wxRentContract);

List<WxRentContract> getRentContractList(String tenantId);
List<WxRentContract> getRentContractList(Map<String, Object> params);



+ 3
- 2
mallinkService/src/main/java/com/iformall/service/impl/WxPropertyContractServiceImpl.java Просмотреть файл

@@ -355,8 +355,9 @@ public class WxPropertyContractServiceImpl implements WxPropertyContractService

@Override
public Object getRentContractList(String tenantId) {

return wxPropertyContractMapper.getRentContractList(tenantId);
Map<String,Object> params =new HashMap<>();
params.put("tenantId",tenantId);
return wxPropertyContractMapper.getRentContractList(params);
}

public Map<String, Object> updateStatus(String tenantId) {


+ 2
- 2
mallinkService/src/main/resources/mapper/WxPropertyContractMapper.xml Просмотреть файл

@@ -144,10 +144,10 @@
)s) and merchant_id is null and tenant_id=#{tenantId}
</update>
<select id="getRentContractList" parameterType="String" resultType="com.iformall.domain.po.WxRentContract">
<select id="getRentContractList" parameterType="hashmap" resultType="com.iformall.domain.po.WxRentContract">
select rc.*,s.shop_number from wx_rent_contract rc left join wx_shop s on rc.shop_id=s.id
where rc.status not in(1,6,7) and rc.tenant_id=#{tenantId}
and rc.id not in (select pc.rent_contract_id form (
and rc.id not in (select pc.rent_contract_id from (
select rent_contract_id from wx_property_contract where status not in(1,6,7) and tenant_id=#{tenantId}
) pc)
</select>


Загрузка…
Отмена
Сохранить