bug 修复: 专业录入时,根据总包工程查询失败
This commit is contained in:
parent
f7abff4d92
commit
777e6c9168
|
|
@ -76,6 +76,11 @@ public class ProjectController {
|
|||
// Map<String, Object> params = request.getParams();
|
||||
// params.put("companyId",companyId);
|
||||
|
||||
request.getParams().put("generalProId", request.getParams().get("orgId"));
|
||||
|
||||
String orgIdStr = SecurityUtils.getLoginUser().getSysUser().getOrgId();
|
||||
request.getParams().put("orgId", orgIdStr);
|
||||
|
||||
SelfPermissionSettingUtils.getSelfPermission(request);
|
||||
|
||||
String orgId = (String) request.getParams().get("orgId");
|
||||
|
|
|
|||
|
|
@ -88,6 +88,9 @@
|
|||
<if test="params.orgId != null and params.orgId != '' and params.roleLevel > 3">
|
||||
AND bp.company_id = #{params.orgId}
|
||||
</if>
|
||||
<if test="params.generalProId != null and params.generalProId != ''">
|
||||
AND bp.project_general_id in (${params.generalProId})
|
||||
</if>
|
||||
<if test="params.subId != null and params.subId !='' ">
|
||||
AND bsc.sub_id = #{params.subId}
|
||||
</if>
|
||||
|
|
|
|||
Loading…
Reference in New Issue