规则分组
This commit is contained in:
parent
4ded5800f8
commit
860e5e9aa4
|
|
@ -3,14 +3,12 @@ package com.nflg.product.bomnew.api.user;
|
|||
import com.nflg.product.base.core.api.BaseApi;
|
||||
import com.nflg.product.bomnew.pojo.dto.BomFactorySplitRuleDTO;
|
||||
import com.nflg.product.bomnew.pojo.dto.BomPDTO;
|
||||
import com.nflg.product.bomnew.pojo.vo.BomFactoryRuleGroupSimpleVO;
|
||||
import com.nflg.product.bomnew.pojo.vo.BomFactorySplitRuleVO;
|
||||
import com.nflg.product.bomnew.service.BomFactorySplitRuleService;
|
||||
import io.swagger.annotations.Api;
|
||||
import nflg.product.common.vo.ResultVO;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
|
@ -77,5 +75,10 @@ public class BomFactorySplitRuleApi extends BaseApi {
|
|||
return bomFactorySplitRuleService.createOrUpdate(requestList);
|
||||
}
|
||||
|
||||
@GetMapping("ruleGroupList")
|
||||
public ResultVO<List<BomFactoryRuleGroupSimpleVO>> ruleGroupList() {
|
||||
return ResultVO.success(bomFactorySplitRuleService.ruleGroupList()) ;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -21,6 +21,7 @@ import com.nflg.product.bomnew.pojo.entity.BomFactoryRuleGroupEntity;
|
|||
import com.nflg.product.bomnew.pojo.entity.BomFactorySplitRuleEntity;
|
||||
|
||||
import com.nflg.product.bomnew.pojo.entity.MaterialCategoryEntity;
|
||||
import com.nflg.product.bomnew.pojo.vo.BomFactoryRuleGroupSimpleVO;
|
||||
import com.nflg.product.bomnew.pojo.vo.BomFactorySplitRuleExcelVO;
|
||||
import com.nflg.product.bomnew.pojo.vo.BomFactorySplitRuleVO;
|
||||
import com.nflg.product.bomnew.util.EecExcelUtil;
|
||||
|
|
@ -478,5 +479,14 @@ public class BomFactorySplitRuleService extends ServiceImpl<BomFactorySplitRuleM
|
|||
updateWrapper.lambda().set(BomFactorySplitRuleEntity::getUpdatedTime, new Date());
|
||||
this.update(updateWrapper);
|
||||
}
|
||||
|
||||
|
||||
|
||||
public List<BomFactoryRuleGroupSimpleVO> ruleGroupList() {
|
||||
List<BomFactoryRuleGroupEntity> list = bomFactoryRuleGroupService.lambdaQuery().list();
|
||||
List<BomFactoryRuleGroupSimpleVO> childList = Convert.convert(new TypeReference<List<BomFactoryRuleGroupSimpleVO>>() {
|
||||
}, list);
|
||||
return childList;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue