| | |
| | | @GetMapping("/store/detail") |
| | | @ApiOperation(value = "商家后台-获取维修换电商家详情",response = ComBatteryStoreVo.class) |
| | | public R storeDetailById() { |
| | | return this.comBatteryStoreService.detailById(this.getUserId()); |
| | | return this.comBatteryStoreService.detailById(this.getCommunityId()); |
| | | } |
| | | |
| | | } |
| | |
| | | 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; |
| | | |
| | |
| | | * @author lyq |
| | | * @date 2022-03-28 13:44:45 |
| | | */ |
| | | @Transactional |
| | | @Override |
| | | public R insert(AddComBatteryStoreDto comBatteryStore) { |
| | | ComBatteryStore entity = new ComBatteryStore(); |
| | |
| | | <!--查询单个--> |
| | | <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> |
| | | |
| | | <!--查询指定行数据--> |
| | |
| | | </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> |