mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-21 11:35:12 +08:00
update 创建运营商新增选择等级
This commit is contained in:
@@ -16,6 +16,16 @@ public class CreateMerchantDTO {
|
||||
*/
|
||||
private String merchantName;
|
||||
|
||||
/**
|
||||
* 运营商等级
|
||||
*/
|
||||
private String merchantLevel;
|
||||
|
||||
/**
|
||||
* 父级id
|
||||
*/
|
||||
private String parentId;
|
||||
|
||||
/**
|
||||
* 地址
|
||||
*/
|
||||
|
||||
@@ -121,10 +121,16 @@ public class PileMerchantInfoServiceImpl implements IPileMerchantInfoService {
|
||||
// dto.setId(deptId);
|
||||
dto.setDeptId(String.valueOf(deptId));
|
||||
dto.setStatus(Constants.ONE);
|
||||
// String appId = StringUtils.isBlank(dto.getAppId())
|
||||
// ? appid
|
||||
// : dto.getAppId();
|
||||
dto.setAppId(dto.getAppId());
|
||||
|
||||
// 一级运营商取前端传来的appid,二级运营商取父级的appid
|
||||
String appId;
|
||||
if (StringUtils.equals(dto.getMerchantLevel(), Constants.TWO)) {
|
||||
PileMerchantInfo firstLevelMerchant = selectPileMerchantInfoById(Long.parseLong(dto.getParentId()));
|
||||
appId = firstLevelMerchant.getAppId();
|
||||
} else {
|
||||
appId = dto.getAppId();
|
||||
}
|
||||
dto.setAppId(appId);
|
||||
|
||||
PileMerchantInfo pileMerchantInfo = new PileMerchantInfo();
|
||||
BeanUtils.copyProperties(dto, pileMerchantInfo);
|
||||
|
||||
Reference in New Issue
Block a user