Commit aae3334d authored by 韩桐桐's avatar 韩桐桐

Merge branch 'refs/heads/develop_tzs_bugfix' into develop_tzs_register

parents ac39cd03 ece8f24a
......@@ -2943,6 +2943,7 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
// 注册登记
IdxBizJgRegisterInfo registerInfo = new IdxBizJgRegisterInfo();
BeanUtils.copyProperties(data, registerInfo);
registerInfo.setEquCode("2".equals(data.getEquCodeType()) ? "" : registerInfo.getEquCode());
registerInfo.setRecord(record);
registerInfo.setRecDate(new Date());
registerInfo.setEquCategory(equipInfoDto.getEquCategoryCode());
......
......@@ -336,14 +336,14 @@ public class JgUseRegistrationManageServiceImpl extends BaseService<JgUseRegistr
}
/**
* 根据证的sequenceNbr,查询证下面的所有设备
* 根据证的sequenceNbr,查询证下面的所有【已认领】设备
*/
public List<JSONObject> queryEquByCertificateSeq(Long sequenceNbr) {
return queryEquByCertificateSeqList(Collections.singletonList(sequenceNbr));
}
/**
* 根据证的sequenceNbr集合,批量查询证下面的所有设备
* 根据证的sequenceNbr集合,批量查询证下面的所有【已认领】设备
*/
public List<JSONObject> queryEquByCertificateSeqList(List<Long> sequenceNbrList) {
List<JgUseRegistrationManage> jgUseRegistrationManageList = this.baseMapper.selectList(new LambdaQueryWrapper<JgUseRegistrationManage>()
......@@ -367,6 +367,12 @@ public class JgUseRegistrationManageServiceImpl extends BaseService<JgUseRegistr
// builder.query(boolQuery);
// builder.size(useOrgCodes.size());
// request.source(builder);
BoolQueryBuilder meBuilder = QueryBuilders.boolQuery();
meBuilder.should(QueryBuilders.matchQuery("STATUS", "已认领"));
meBuilder.should(QueryBuilders.boolQuery().mustNot(QueryBuilders.existsQuery("STATUS")));
meBuilder.should(QueryBuilders.boolQuery().must(QueryBuilders.matchPhraseQuery("STATUS", "")));
meBuilder.minimumShouldMatch(1);
boolQuery.must(meBuilder);
List<JSONObject> result = Collections.emptyList();
try {
......
......@@ -337,7 +337,6 @@
thur.receive_company_org_code LIKE CONCAT ( #{orgCode}, '%' )
AND thur.audit_pass_date &lt; #{time}
AND ibjri."EQU_LIST" = '3000'
AND ibjri.is_delete = 0
AND thur.is_delete = 0
</select>
<select id="constructionNoticeCount" resultType="java.lang.Long">
......
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