项目库详情,统计相关对接。
This commit is contained in:
+19
-1
@@ -156,6 +156,18 @@
|
||||
</foreach>
|
||||
) temp
|
||||
<include refid="BaseQuerySql"/>
|
||||
<if test="params.orderByField != null and params.orderByField != ''">
|
||||
order by temp.${params.orderByField}
|
||||
<if test="params.orderBy == '1'">
|
||||
asc
|
||||
</if>
|
||||
<if test="params.orderBy == '2'">
|
||||
desc
|
||||
</if>
|
||||
</if>
|
||||
<if test="params.orderByField == null or params.orderByField == ''">
|
||||
order by temp.serial_number desc
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<sql id="BaseQuerySql">
|
||||
@@ -167,7 +179,13 @@
|
||||
and temp.title like CONCAT(CONCAT('%',#{params.title}),'%')
|
||||
</if>
|
||||
<if test="params.dutyTerritory != null and params.dutyTerritory !=''">
|
||||
and temp.duty_territory = #{params.dutyTerritory}
|
||||
and temp.duty_territory like CONCAT(CONCAT('%',#{params.dutyTerritory}),'%')
|
||||
<!--and (
|
||||
temp.duty_territory = #{params.dutyTerritory} or
|
||||
<foreach collection="params.dutyTerritory.split(',')" index="" item="item" open="(" close=")" separator="or">
|
||||
temp.duty_territory like CONCAT(CONCAT('%',#{item}),'%')
|
||||
</foreach>
|
||||
)-->
|
||||
</if>
|
||||
</where>
|
||||
</sql>
|
||||
|
||||
+9
@@ -12598,6 +12598,15 @@ public class ProjectLawsInventoryEOServiceImpl extends ServiceImpl<ProjectLawsIn
|
||||
dataMap.put("flowTypeName",FlowTypeEnum.getTextByValue(flowType,cut));
|
||||
}
|
||||
|
||||
// 返回符合性流程的流程实例id
|
||||
QueryWrapper<ProcessInfoDetailEO> processInfoDetailEOQueryWrapper = new QueryWrapper<>();
|
||||
processInfoDetailEOQueryWrapper.lambda().eq(ProcessInfoDetailEO::getProjectLawsInventoryId,(String)dataMap.get("id"));
|
||||
processInfoDetailEOQueryWrapper.lambda().eq(ProcessInfoDetailEO::getFlowType,flowType);
|
||||
processInfoDetailEOQueryWrapper.orderByDesc("create_time");
|
||||
List<ProcessInfoDetailEO> processInfoDetailEOS = this.processInfoDetailEOService.list(processInfoDetailEOQueryWrapper);
|
||||
if(CollectionUtils.isNotEmpty(processInfoDetailEOS)){
|
||||
dataMap.put("actiProcInstId",processInfoDetailEOS.get(0).getActiProcInstId());
|
||||
}
|
||||
}
|
||||
}
|
||||
return result;
|
||||
|
||||
@@ -8,8 +8,8 @@
|
||||
<div class="title-text" :title="$t('standard')">
|
||||
<span>{{$t('standard')}}</span>
|
||||
</div>
|
||||
<j-input class="box-input" :placeholder="$t('PleaseEnter')+$t('standard')"
|
||||
v-model="queryParam.serialNumber"></j-input>
|
||||
<a-input class="box-input" :placeholder="$t('PleaseEnter')+$t('standard')"
|
||||
v-model="queryParam.serialNumber"></a-input>
|
||||
</div>
|
||||
</a-col>
|
||||
<a-col :md="6" :sm="8">
|
||||
@@ -17,8 +17,8 @@
|
||||
<div class="title-text" :title="$t('title')">
|
||||
<span>{{$t('title')}}</span>
|
||||
</div>
|
||||
<j-input class="box-input" :placeholder="$t('PleaseEnter')+$t('title')"
|
||||
v-model="queryParam.title"></j-input>
|
||||
<a-input class="box-input" :placeholder="$t('PleaseEnter')+$t('title')"
|
||||
v-model="queryParam.title"></a-input>
|
||||
</div>
|
||||
</a-col>
|
||||
<a-col :md="6" :sm="8">
|
||||
@@ -168,7 +168,7 @@
|
||||
pageNo: 1,
|
||||
url: {
|
||||
page: '/project/projectLawsInventoryEO/queryNotComplianList',
|
||||
exportData: '/project/ncrTrackController/exportDataInfo'
|
||||
exportData: '/project/projectLawsInventoryEO/exportNotComplianList'
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -231,9 +231,9 @@
|
||||
let query = {
|
||||
...this.queryParam,
|
||||
projectLibraryId: this.$route.query.id,
|
||||
ncrTrackVOList: this.content
|
||||
// ncrTrackVOList: this.content
|
||||
}
|
||||
downloadFilePost(this.url.exportData, this.$t('NonConformance') + '.xls', query, this.Deselect)
|
||||
downloadFile(this.url.exportData, this.$t('NonConformance') + '.xls', query, this.Deselect)
|
||||
},
|
||||
tableOnChange(pagination, filters, sorter) {
|
||||
this.orderBy = sorter.order == 'ascend' ? '1' : '2'
|
||||
|
||||
Reference in New Issue
Block a user