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
*/
@DeleteMapping("delById/{ids}")
public ResponseObject delete(@PathVariable Long ids) {
public ResponseObject delete(@PathVariable Integer ids) {
return getSuccessResult(this.activeFullminusService.removeById(ids));
}
/**

View File

@ -1,5 +1,6 @@
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.metadata.IPage;
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.store.service.StoreService;
import com.fuint.business.userManager.service.LJUserGradeService;
import com.fuint.common.service.AccountService;
import com.fuint.common.util.TokenUtil;
import com.fuint.repository.model.TAccount;
import org.apache.commons.lang3.ObjectUtils;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
@ -51,6 +54,8 @@ public class ActiveFullminusServiceImpl extends ServiceImpl<ActiveFullminusMappe
private LJUserGradeService userGradeService;
@Resource
private OilNameService oilNameService;
@Resource
private AccountService accountService;
/**
* 新增数据
* @param activeFullminusDTO
@ -151,6 +156,8 @@ public class ActiveFullminusServiceImpl extends ServiceImpl<ActiveFullminusMappe
activeFullminusVO.setDieselUserLevel(str.split(","));
}
activeFullminusVO.setActiveDiscountChildList(activeDiscountChildList);
TAccount accountInfoById = accountService.getAccountInfoById(Integer.parseInt(s.getCreateBy()));
if (ObjectUtil.isNotEmpty(accountInfoById)) activeFullminusVO.setCreateBy(accountInfoById.getRealName());
return activeFullminusVO;
}).collect(Collectors.toList());
page1.setRecords(activeFullminusVOList);