101captain
2022-08-16 6ab2595b2f029e133e61b2aa52639cff7c94eb24
bug修改
3个文件已修改
10 ■■■■■ 已修改文件
springcloud_k8s_panzhihuazhihuishequ/community_backstage/src/main/java/com/panzhihua/community_backstage/api/ComBatteryStoreApi.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComBatteryStoreServiceImpl.java 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComBatteryStoreMapper.xml 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/community_backstage/src/main/java/com/panzhihua/community_backstage/api/ComBatteryStoreApi.java
@@ -54,7 +54,7 @@
    @GetMapping("/store/detail")
    @ApiOperation(value = "商家后台-获取维修换电商家详情",response = ComBatteryStoreVo.class)
    public R storeDetailById() {
        return this.comBatteryStoreService.detailById(this.getUserId());
        return this.comBatteryStoreService.detailById(this.getCommunityId());
    }
}
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComBatteryStoreServiceImpl.java
@@ -14,6 +14,7 @@
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource;
@@ -54,6 +55,7 @@
     * @author lyq
     * @date 2022-03-28 13:44:45
     */
    @Transactional
    @Override
    public R insert(AddComBatteryStoreDto comBatteryStore) {
        ComBatteryStore entity = new ComBatteryStore();
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComBatteryStoreMapper.xml
@@ -25,9 +25,9 @@
    <!--查询单个-->
    <select id="queryById" resultType="com.panzhihua.common.model.vos.common.ComBatteryStoreVo">
        select
          id, name, reg_phone, phone, account, status, is_del, logo, introduction, address, detail_address, longitude, latitude, create_at, create_by, update_at, update_by
            id, name, reg_phone, phone, account, status, is_del, logo, introduction, address, detail_address, longitude, latitude, create_at, create_by, update_at, update_by
        from com_battery_store
        where sys_user_id = #{id}
        where id = #{id}
    </select>
    <!--查询指定行数据-->
@@ -115,7 +115,7 @@
    </select>
    <delete id="deleteStoreUserByStoreId">
        delete sys_user where `type` = 20 and community_id = #{storeId}
        delete from sys_user where `type` = 20 and community_id = #{storeId}
    </delete>
</mapper>