Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
@ -108,7 +108,7 @@ public class DesSchemeController extends BaseController {
|
||||
/**
|
||||
* 新增设计方案文件
|
||||
*/
|
||||
@SaCheckPermission("design:scheme:add")
|
||||
@SaCheckPermission("design:scheme:upload")
|
||||
@Log(title = "设计方案", businessType = BusinessType.INSERT)
|
||||
@RepeatSubmit()
|
||||
@PostMapping("/upload")
|
||||
@ -119,7 +119,7 @@ public class DesSchemeController extends BaseController {
|
||||
/**
|
||||
* 修改设计方案文件
|
||||
*/
|
||||
@SaCheckPermission("design:scheme:edit")
|
||||
@SaCheckPermission("design:scheme:update")
|
||||
@Log(title = "设计方案", businessType = BusinessType.UPDATE)
|
||||
@RepeatSubmit()
|
||||
@PostMapping("/update/{id}")
|
||||
|
@ -25,6 +25,7 @@ import org.dromara.out.service.IOutConstructionValueService;
|
||||
import org.dromara.progress.domain.PgsProgressCategory;
|
||||
import org.dromara.progress.domain.vo.progresscategory.PgsProgressCategoryVo;
|
||||
import org.dromara.progress.service.IPgsProgressCategoryService;
|
||||
import org.dromara.project.domain.BusProject;
|
||||
import org.dromara.project.domain.vo.project.BusProjectVo;
|
||||
import org.dromara.project.service.IBusProjectService;
|
||||
import org.springframework.context.event.EventListener;
|
||||
@ -54,6 +55,8 @@ public class OutConstructionValueServiceImpl extends ServiceImpl<OutConstruction
|
||||
|
||||
private final IPgsProgressCategoryService pgsProgressCategoryService;
|
||||
|
||||
private final IBusProjectService projectService;
|
||||
|
||||
/**
|
||||
* 查询施工产值
|
||||
*
|
||||
@ -100,7 +103,14 @@ public class OutConstructionValueServiceImpl extends ServiceImpl<OutConstruction
|
||||
Map<String, Object> params = bo.getParams();
|
||||
LambdaQueryWrapper<OutConstructionValue> lqw = Wrappers.lambdaQuery();
|
||||
lqw.orderByDesc(OutConstructionValue::getId);
|
||||
lqw.eq(bo.getProjectId() != null, OutConstructionValue::getProjectId, bo.getProjectId());
|
||||
Long projectId = bo.getProjectId();
|
||||
if (projectId != null) {
|
||||
// 获取子项目列表
|
||||
List<BusProject> subProjectIds = projectService.lambdaQuery()
|
||||
.eq(BusProject::getPId, projectId)
|
||||
.list();
|
||||
lqw.in(OutConstructionValue::getProjectId, projectId, subProjectIds);
|
||||
}
|
||||
lqw.eq(bo.getMatrixId() != null, OutConstructionValue::getMatrixId, bo.getMatrixId());
|
||||
lqw.eq(bo.getProgressCategoryId() != null, OutConstructionValue::getProgressCategoryId, bo.getProgressCategoryId());
|
||||
lqw.eq(bo.getArtificialNum() != null, OutConstructionValue::getArtificialNum, bo.getArtificialNum());
|
||||
|
@ -63,7 +63,6 @@ public class BusUserProjectRelevancyController extends BaseController {
|
||||
/**
|
||||
* 查询登录用户与项目关联分页
|
||||
*/
|
||||
@SaCheckPermission("project:projectRelevancy:loginPage")
|
||||
@GetMapping("/login/page")
|
||||
public TableDataInfo<BusUserProjectRelevancyVo> pageByLoginUser(BusUserProjectRelevancyQueryReq req, PageQuery pageQuery) {
|
||||
Long userId = LoginHelper.getUserId();
|
||||
|
@ -128,7 +128,7 @@ public class BusBiddingPlanServiceImpl extends ServiceImpl<BusBiddingPlanMapper,
|
||||
lqw.eq(bo.getPrice() != null, BusBiddingPlan::getPrice, bo.getPrice());
|
||||
lqw.eq(bo.getContractPrice() != null, BusBiddingPlan::getContractPrice, bo.getContractPrice());
|
||||
lqw.eq(StringUtils.isNotBlank(bo.getContent()), BusBiddingPlan::getContent, bo.getContent());
|
||||
lqw.eq((bo.getStatus()!= null), BusBiddingPlan::getStatus, bo.getStatus());
|
||||
lqw.isNotNull(("1".equals(bo.getStatus())), BusBiddingPlan::getWinningBidderId);
|
||||
return lqw;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user