Commit 1aace73e authored by 刘林's avatar 刘林

Merge remote-tracking branch 'origin/develop_tzs_main' into develop_tzs_main

parents 66b4fdb8 ab38ec30
......@@ -240,7 +240,7 @@
</if>
<choose>
<when test="identity == 'apply'">
and res.application_unit_code = #{jyjcInspectionResultModel.companyCode}
and (res.application_unit_code = #{jyjcInspectionResultModel.companyCode} or res.inspection_unit_code = #{jyjcInspectionResultModel.companyCode})
</when>
<when test="identity == 'receive'">
and res.inspection_unit_code = #{jyjcInspectionResultModel.companyCode}
......@@ -257,7 +257,7 @@
and (res.biz_type in ('firstinspect','entrust', 'detection') or res.biz_type = 'useUnitEntry')
</when>
<when test="companyType == '安装改造维修单位'">
and res.biz_type = 'supervise'
and res.biz_type in ('supervise','detection')
</when>
<when test="companyType == '检验机构'">
and res.biz_type != 'detection'
......
......@@ -216,6 +216,7 @@ public class JyjcInspectionResultServiceImpl extends BaseService<JyjcInspectionR
if (ResultStatusEnum.YES_RESULT.getCode().equals(v.getResultStatus())) {
v.setResultStatusName(ResultStatusEnum.YES_RESULT.getName());
}
v.setCompanyCode(CommonServiceImpl.getUnitCode(reginParams.getCompany()));
v.setSourceResult(ResultTypeEnum.getNameByCode(v.getResultType()));
v.setIdentity(identity);
v.setUseInnerCode("null".equals(v.getUseInnerCode()) ? "" : v.getUseInnerCode());
......
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