This commit is contained in:
cun-nan 2024-03-07 11:06:57 +08:00
parent 8fb0f54ce4
commit d9d69baff5
2 changed files with 8 additions and 1 deletions

View File

@ -108,7 +108,7 @@ public class ActiveFullminusController extends BaseController {
* @return * @return
*/ */
@DeleteMapping("delById/{ids}") @DeleteMapping("delById/{ids}")
public ResponseObject delete(@PathVariable Long ids) { public ResponseObject delete(@PathVariable Integer ids) {
return getSuccessResult(this.activeFullminusService.removeById(ids)); return getSuccessResult(this.activeFullminusService.removeById(ids));
} }
/** /**

View File

@ -1,5 +1,6 @@
package com.fuint.business.marketingActivity.activeFullminus.service.impl; package com.fuint.business.marketingActivity.activeFullminus.service.impl;
import cn.hutool.core.util.ObjectUtil;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.CollectionUtils; import com.baomidou.mybatisplus.core.toolkit.CollectionUtils;
@ -20,7 +21,9 @@ import com.fuint.business.petrolStationManagement.entity.OilName;
import com.fuint.business.petrolStationManagement.service.OilNameService; import com.fuint.business.petrolStationManagement.service.OilNameService;
import com.fuint.business.store.service.StoreService; import com.fuint.business.store.service.StoreService;
import com.fuint.business.userManager.service.LJUserGradeService; import com.fuint.business.userManager.service.LJUserGradeService;
import com.fuint.common.service.AccountService;
import com.fuint.common.util.TokenUtil; import com.fuint.common.util.TokenUtil;
import com.fuint.repository.model.TAccount;
import org.apache.commons.lang3.ObjectUtils; import org.apache.commons.lang3.ObjectUtils;
import org.springframework.beans.BeanUtils; import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
@ -51,6 +54,8 @@ public class ActiveFullminusServiceImpl extends ServiceImpl<ActiveFullminusMappe
private LJUserGradeService userGradeService; private LJUserGradeService userGradeService;
@Resource @Resource
private OilNameService oilNameService; private OilNameService oilNameService;
@Resource
private AccountService accountService;
/** /**
* 新增数据 * 新增数据
* @param activeFullminusDTO * @param activeFullminusDTO
@ -151,6 +156,8 @@ public class ActiveFullminusServiceImpl extends ServiceImpl<ActiveFullminusMappe
activeFullminusVO.setDieselUserLevel(str.split(",")); activeFullminusVO.setDieselUserLevel(str.split(","));
} }
activeFullminusVO.setActiveDiscountChildList(activeDiscountChildList); activeFullminusVO.setActiveDiscountChildList(activeDiscountChildList);
TAccount accountInfoById = accountService.getAccountInfoById(Integer.parseInt(s.getCreateBy()));
if (ObjectUtil.isNotEmpty(accountInfoById)) activeFullminusVO.setCreateBy(accountInfoById.getRealName());
return activeFullminusVO; return activeFullminusVO;
}).collect(Collectors.toList()); }).collect(Collectors.toList());
page1.setRecords(activeFullminusVOList); page1.setRecords(activeFullminusVOList);