mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-21 19:45:09 +08:00
update 设置dept等级
This commit is contained in:
@@ -2,7 +2,9 @@ package com.jsowell.pile.mapper;
|
||||
|
||||
import com.jsowell.pile.domain.MemberWalletInfo;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
@Repository
|
||||
public interface MemberWalletInfoMapper {
|
||||
/**
|
||||
* delete by primary key
|
||||
|
||||
@@ -5,9 +5,11 @@ import com.jsowell.pile.dto.UniAppQueryMemberBalanceDTO;
|
||||
import com.jsowell.pile.vo.uniapp.MemberBalanceVO;
|
||||
import com.jsowell.pile.vo.uniapp.MemberWalletLogVO;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Repository
|
||||
public interface MemberWalletLogMapper {
|
||||
/**
|
||||
* delete by primary key
|
||||
|
||||
@@ -104,4 +104,6 @@ public interface PileStationInfoMapper {
|
||||
* @return
|
||||
*/
|
||||
List<PileStationVO> getStationSelectList(@Param("dto") QueryStationDTO dto);
|
||||
|
||||
PileStationInfo queryInfoByDeptId(@Param("deptId") String deptId);
|
||||
}
|
||||
|
||||
@@ -119,4 +119,6 @@ public interface IPileStationInfoService {
|
||||
* 查询充电站下拉列表
|
||||
*/
|
||||
List<PileStationVO> getStationSelectList(QueryStationDTO dto);
|
||||
|
||||
PileStationInfo queryInfoByDeptId(String valueOf);
|
||||
}
|
||||
|
||||
@@ -20,10 +20,7 @@ import com.jsowell.pile.mapper.MemberBasicInfoMapper;
|
||||
import com.jsowell.pile.mapper.MemberPlateNumberRelationMapper;
|
||||
import com.jsowell.pile.mapper.MemberWalletInfoMapper;
|
||||
import com.jsowell.pile.mapper.MemberWalletLogMapper;
|
||||
import com.jsowell.pile.service.IMemberBasicInfoService;
|
||||
import com.jsowell.pile.service.IMemberTransactionRecordService;
|
||||
import com.jsowell.pile.service.IPileBasicInfoService;
|
||||
import com.jsowell.pile.service.IPileMerchantInfoService;
|
||||
import com.jsowell.pile.service.*;
|
||||
import com.jsowell.pile.vo.base.MerchantInfoVO;
|
||||
import com.jsowell.pile.vo.uniapp.MemberBalanceVO;
|
||||
import com.jsowell.pile.vo.uniapp.MemberVO;
|
||||
@@ -75,6 +72,9 @@ public class MemberBasicInfoServiceImpl implements IMemberBasicInfoService {
|
||||
@Autowired
|
||||
private IMemberTransactionRecordService memberTransactionRecordService;
|
||||
|
||||
@Autowired
|
||||
private IPileStationInfoService pileStationInfoService;
|
||||
|
||||
/**
|
||||
* 查询会员基础信息
|
||||
*
|
||||
@@ -452,6 +452,8 @@ public class MemberBasicInfoServiceImpl implements IMemberBasicInfoService {
|
||||
return resultList;
|
||||
}
|
||||
// 根据部门id查询对应的运营商
|
||||
PileMerchantInfo merchantInfo = pileMerchantInfoService.queryInfoByDeptId(String.valueOf(deptId));
|
||||
PileStationInfo stationInfo = pileStationInfoService.queryInfoByDeptId(String.valueOf(deptId));
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
@@ -122,6 +122,7 @@ public class PileMerchantInfoServiceImpl implements IPileMerchantInfoService {
|
||||
dept.setDeptName(dto.getMerchantName());
|
||||
dept.setLeader(dto.getManagerName());
|
||||
dept.setPhone(dto.getManagerPhone());
|
||||
dept.setDeptLevel("2");
|
||||
dept.setStatus("0");
|
||||
sysDeptService.insertDept(dept);
|
||||
|
||||
|
||||
@@ -18,7 +18,6 @@ import com.jsowell.common.util.StringUtils;
|
||||
import com.jsowell.common.util.ip.AddressUtils;
|
||||
import com.jsowell.pile.domain.PileBasicInfo;
|
||||
import com.jsowell.pile.domain.PileStationInfo;
|
||||
import com.jsowell.pile.domain.ThirdPartyPlatformConfig;
|
||||
import com.jsowell.pile.domain.ThirdpartyParkingConfig;
|
||||
import com.jsowell.pile.dto.FastCreateStationDTO;
|
||||
import com.jsowell.pile.dto.QueryStationDTO;
|
||||
@@ -566,5 +565,13 @@ public class PileStationInfoServiceImpl implements IPileStationInfoService {
|
||||
return pileStationInfoMapper.getStationSelectList(dto);
|
||||
}
|
||||
|
||||
@Override
|
||||
public PileStationInfo queryInfoByDeptId(String deptId) {
|
||||
if (StringUtils.isBlank(deptId)) {
|
||||
return null;
|
||||
}
|
||||
return pileStationInfoMapper.queryInfoByDeptId(deptId);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user