Commit f4fe5804 authored by 高滢's avatar 高滢

数据权限

parent 6962eba4
...@@ -45,6 +45,7 @@ public class TTestPlanRecordServiceImpl extends ServiceImpl<TTestPlanRecordMappe ...@@ -45,6 +45,7 @@ public class TTestPlanRecordServiceImpl extends ServiceImpl<TTestPlanRecordMappe
@Override @Override
public List<TTestPlanRecord> selectTestPlanRecordPage(TestPlanRecordPageRequest testPlanRecordPageRequest){ public List<TTestPlanRecord> selectTestPlanRecordPage(TestPlanRecordPageRequest testPlanRecordPageRequest){
testPlanRecordPageRequest.setTestOrganizationId(SecurityUtils.getDeptId());
return tTestPlanRecordMapper.selectTestPlanRecordPage(testPlanRecordPageRequest); return tTestPlanRecordMapper.selectTestPlanRecordPage(testPlanRecordPageRequest);
} }
......
...@@ -38,4 +38,7 @@ public class TestPlanRecordPageRequest extends PageDomain { ...@@ -38,4 +38,7 @@ public class TestPlanRecordPageRequest extends PageDomain {
*/ */
@ApiModelProperty("文件路径") @ApiModelProperty("文件路径")
private String fileUrl; private String fileUrl;
@ApiModelProperty("检测机构")
private Long testOrganizationId;
} }
...@@ -65,7 +65,8 @@ ...@@ -65,7 +65,8 @@
<include refid="selectTestPlanRecordVo"/> <include refid="selectTestPlanRecordVo"/>
<where> <where>
<if test="carModel != null and carModel != ''"> and pr.car_model like concat('%', #{carModel}, '%')</if> <if test="carModel != null and carModel != ''"> and pr.car_model like concat('%', #{carModel}, '%')</if>
<if test="inspectCarCompanyId != null and inspectCarCompanyId != ''"> and pr.inspectCarCompanyId= #{inspectCarCompanyId}</if> <if test="inspectCarCompanyId != null and inspectCarCompanyId != ''"> and pr.inspect_car_company_id= #{inspectCarCompanyId}</if>
<if test="testOrganizationId != null and testOrganizationId != ''"> and pr.test_organization_id= #{testOrganizationId}</if>
</where> </where>
ORDER BY pr.car_model,pr.create_time desc ORDER BY pr.car_model,pr.create_time desc
</select> </select>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment