Skip to content

Commit 3425f13

Browse files
928255095gitee-org
authored andcommitted
解决水电抄表 报表没有业主信息的问题
Signed-off-by: java110 <[email protected]>
1 parent e4b421a commit 3425f13

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

service-fee/src/main/java/com/java110/fee/cmd/meterWater/SaveMeterWaterCmd.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -193,17 +193,14 @@ public void doCmd(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONOb
193193
reqJson.put("feeId", payFeePo.getFeeId());
194194
addMeterWater(reqJson, roomList.get(0));
195195

196-
int flag = payFeeV1InnerServiceSMOImpl.savePayFee(payFeePo);
197-
if (flag < 1) {
198-
throw new CmdException("保存数据失败");
199-
}
196+
200197
FeeAttrPo feeAttrPo = new FeeAttrPo();
201198
feeAttrPo.setCommunityId(reqJson.getString("communityId"));
202199
feeAttrPo.setSpecCd(FeeAttrDto.SPEC_CD_ONCE_FEE_DEADLINE_TIME);
203200
feeAttrPo.setValue(reqJson.getString("curReadingTime"));
204201
feeAttrPo.setFeeId(payFeePo.getFeeId());
205202
feeAttrPo.setAttrId(GenerateCodeFactory.getGeneratorId(GenerateCodeFactory.CODE_PREFIX_attrId));
206-
flag = feeAttrInnerServiceSMOImpl.saveFeeAttr(feeAttrPo);
203+
int flag = feeAttrInnerServiceSMOImpl.saveFeeAttr(feeAttrPo);
207204
if (flag < 1) {
208205
throw new CmdException("保存数据失败");
209206
}
@@ -215,7 +212,7 @@ public void doCmd(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONOb
215212
feeAttrPo.setValue(roomList.get(0).getFloorNum() + "-" + roomList.get(0).getUnitNum() + "-" + roomList.get(0).getRoomNum());
216213
feeAttrPo.setFeeId(payFeePo.getFeeId());
217214
feeAttrPo.setAttrId(GenerateCodeFactory.getGeneratorId(GenerateCodeFactory.CODE_PREFIX_attrId));
218-
flag = feeAttrInnerServiceSMOImpl.saveFeeAttr(feeAttrPo);
215+
flag = feeAttrInnerServiceSMOImpl.saveFeeAttr(feeAttrPo);
219216
if (flag < 1) {
220217
throw new CmdException("保存数据失败");
221218
}
@@ -225,7 +222,7 @@ public void doCmd(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONOb
225222
ownerDto.setRoomId(reqJson.getString("objId"));
226223
List<OwnerDto> ownerDtos = ownerInnerServiceSMOImpl.queryOwnersByRoom(ownerDto);
227224

228-
if (ownerDtos != null && ownerDtos.size() > 0) {
225+
if (!ListUtil.isNull(ownerDtos)) {
229226
feeAttrPo = new FeeAttrPo();
230227
feeAttrPo.setCommunityId(reqJson.getString("communityId"));
231228
feeAttrPo.setSpecCd(FeeAttrDto.SPEC_CD_OWNER_ID);
@@ -259,7 +256,10 @@ public void doCmd(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONOb
259256
throw new CmdException("保存数据失败");
260257
}
261258
}
262-
259+
flag = payFeeV1InnerServiceSMOImpl.savePayFee(payFeePo);
260+
if (flag < 1) {
261+
throw new CmdException("保存数据失败");
262+
}
263263
}
264264
cmdDataFlowContext.setResponseEntity(ResultVo.success());
265265
}

0 commit comments

Comments
 (0)