张天森
2022-09-27 bfb0a140f12a509693ece6589be76eb804ee60c9
update
2个文件已修改
12 ■■■■ 已修改文件
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComSanShuoExpertServiceImpl.java 9 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComMediaTypeMapper.xml 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComSanShuoExpertServiceImpl.java
@@ -66,7 +66,7 @@
        if (nonNull(comSanshuoExpertDTO.getUnit())){
            String id = comSanshuoExpertDTO.getUnit();
            String[] split = id.split(",");
            comSanshuoExpertDTO.setUnitId(split[split.length]);
            comSanshuoExpertDTO.setUnitId(split[split.length-1]);
        }
        expert.setId(Snowflake.getId());
        expert.setCreateTime(new Date());
@@ -77,6 +77,8 @@
        }else if(expert.getLevel()==4){
            expert.setCommunityId(Long.parseLong(comSanshuoExpertDTO.getUnitId()));
        }
        expert.setStatus(1);
        expert.setDelFlag(1);
        int insert = comSanshuoExpertDao.insert(expert);
        if (insert>0){
            try {
@@ -173,10 +175,15 @@
                    if (i==2){
                        //设置行业分中心为childList
                        vo.setChildList(comSanshuoIndustryCenterDao.indstryList());
                        vo.setName("行业分中心");
                    }else if (i==3){
                        vo.setChildList(comSanshuoIndustryCenterDao.streetList());
                        vo.setName("街道调解站");
                    }else if (i==4){
                        vo.setChildList(comSanshuoIndustryCenterDao.communityList());
                        vo.setName("社区调解站");
                    }else if(i==1){
                        vo.setName("三说话会堂");
                    }
                    list.add(vo);
                }
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComMediaTypeMapper.xml
@@ -3,8 +3,9 @@
<mapper namespace="com.panzhihua.service_community.dao.ComMediateTypeDao">
    <select id="eventList" resultType="com.panzhihua.service_community.entity.ComMediateType">
        select * from com_mediate_type
        where delete_flag=0
        <if test="keyWord != null and keyWord != ''">
            where name like concat('%',#{keyWord},'%')
            and name like concat('%',#{keyWord},'%')
        </if>
    </select>
</mapper>