项目库详情,统计相关对接。
This commit is contained in:
+19
-1
@@ -156,6 +156,18 @@
|
|||||||
</foreach>
|
</foreach>
|
||||||
) temp
|
) temp
|
||||||
<include refid="BaseQuerySql"/>
|
<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>
|
</select>
|
||||||
|
|
||||||
<sql id="BaseQuerySql">
|
<sql id="BaseQuerySql">
|
||||||
@@ -167,7 +179,13 @@
|
|||||||
and temp.title like CONCAT(CONCAT('%',#{params.title}),'%')
|
and temp.title like CONCAT(CONCAT('%',#{params.title}),'%')
|
||||||
</if>
|
</if>
|
||||||
<if test="params.dutyTerritory != null and params.dutyTerritory !=''">
|
<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>
|
</if>
|
||||||
</where>
|
</where>
|
||||||
</sql>
|
</sql>
|
||||||
|
|||||||
+9
@@ -12598,6 +12598,15 @@ public class ProjectLawsInventoryEOServiceImpl extends ServiceImpl<ProjectLawsIn
|
|||||||
dataMap.put("flowTypeName",FlowTypeEnum.getTextByValue(flowType,cut));
|
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;
|
return result;
|
||||||
|
|||||||
@@ -8,8 +8,8 @@
|
|||||||
<div class="title-text" :title="$t('standard')">
|
<div class="title-text" :title="$t('standard')">
|
||||||
<span>{{$t('standard')}}</span>
|
<span>{{$t('standard')}}</span>
|
||||||
</div>
|
</div>
|
||||||
<j-input class="box-input" :placeholder="$t('PleaseEnter')+$t('standard')"
|
<a-input class="box-input" :placeholder="$t('PleaseEnter')+$t('standard')"
|
||||||
v-model="queryParam.serialNumber"></j-input>
|
v-model="queryParam.serialNumber"></a-input>
|
||||||
</div>
|
</div>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :md="6" :sm="8">
|
<a-col :md="6" :sm="8">
|
||||||
@@ -17,8 +17,8 @@
|
|||||||
<div class="title-text" :title="$t('title')">
|
<div class="title-text" :title="$t('title')">
|
||||||
<span>{{$t('title')}}</span>
|
<span>{{$t('title')}}</span>
|
||||||
</div>
|
</div>
|
||||||
<j-input class="box-input" :placeholder="$t('PleaseEnter')+$t('title')"
|
<a-input class="box-input" :placeholder="$t('PleaseEnter')+$t('title')"
|
||||||
v-model="queryParam.title"></j-input>
|
v-model="queryParam.title"></a-input>
|
||||||
</div>
|
</div>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :md="6" :sm="8">
|
<a-col :md="6" :sm="8">
|
||||||
@@ -168,7 +168,7 @@
|
|||||||
pageNo: 1,
|
pageNo: 1,
|
||||||
url: {
|
url: {
|
||||||
page: '/project/projectLawsInventoryEO/queryNotComplianList',
|
page: '/project/projectLawsInventoryEO/queryNotComplianList',
|
||||||
exportData: '/project/ncrTrackController/exportDataInfo'
|
exportData: '/project/projectLawsInventoryEO/exportNotComplianList'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -231,9 +231,9 @@
|
|||||||
let query = {
|
let query = {
|
||||||
...this.queryParam,
|
...this.queryParam,
|
||||||
projectLibraryId: this.$route.query.id,
|
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) {
|
tableOnChange(pagination, filters, sorter) {
|
||||||
this.orderBy = sorter.order == 'ascend' ? '1' : '2'
|
this.orderBy = sorter.order == 'ascend' ? '1' : '2'
|
||||||
|
|||||||
Reference in New Issue
Block a user