|
@@ -87,9 +87,9 @@ class MepSystemCalcController {
|
|
|
val projectId = SPageContext.getHeader("projectId").toString()
|
|
|
val mems = mepSystemCalc.mepSourceTypeService.select(SFilter.eq("projectId", projectId), SFilter.eq("calcName", calcName!!)).order("calcName").exec()
|
|
|
for (mem in mems) {
|
|
|
- val eCounts = EquipmentService.select(SFilter.eq("projectId", projectId),SFilter.eq("classCode", mem.sourceType!!)).count
|
|
|
+ val eCounts = EquipmentService.select(SFilter.eq("projectId", projectId),SFilter.eq("classCode", mem.sourceType!!)).execCount()
|
|
|
if(eCounts != null){
|
|
|
- mem.sourceCount = eCounts
|
|
|
+ mem.sourceCount = eCounts.toInt()
|
|
|
}else {
|
|
|
mem.sourceCount = 0
|
|
|
}
|