mitao
7 天以前 21488a55ba76ae4f1296b608fbcdf1f06036db64
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package com.panzhihua.sangeshenbian.service.impl;
 
import com.panzhihua.sangeshenbian.model.entity.ComAct;
import com.panzhihua.sangeshenbian.dao.ComActMapper;
import com.panzhihua.sangeshenbian.service.IComActService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
 
/**
 * <p>
 * 社区表 服务实现类
 * </p>
 *
 * @author 
 * @since 2025-02-23
 */
@Service
public class ComActServiceImpl extends ServiceImpl<ComActMapper, ComAct> implements IComActService {
    /**
     * 根据社区名字和街道id查询社区信息
     * @param communityName
     * @param streetId
     * @return
     */
    @Override
    public ComAct getCommunityByNameAndStreet(String communityName, String streetId) {
        return this.lambdaQuery().eq(ComAct::getName, communityName).eq(ComAct::getStreetId, streetId).last("LIMIT 1").one();
    }
}