|
@@ -424,26 +424,19 @@ public class TFeeServiceImpl implements ITFeeService {
|
|
|
tFee = tFeeMapper.selectTFeeById(fPid);
|
|
|
tFee.setSrcBillNo(tFee.getfBillno());
|
|
|
// 删除从表
|
|
|
- // tFeeDoMapper.deleteByFPid(fPid);
|
|
|
+ tFeeDoMapper.deleteByFPid(fPid);
|
|
|
}
|
|
|
// 财务从表
|
|
|
if (StringUtils.isNotNull(tfeeDo)) {
|
|
|
JSONArray jsonDrArray = JSONArray.parseArray(tfeeDo);
|
|
|
List<TFeeDo> tFeeDoList = JSONObject.parseArray(jsonDrArray.toJSONString(), TFeeDo.class);
|
|
|
for (TFeeDo tFeeDo : tFeeDoList) {
|
|
|
- if (StringUtils.isNull(tFeeDo.getfId())) {
|
|
|
- tFeeDo.setfPid(fPid);
|
|
|
- tFeeDo.setCreateBy(loginUser.getUser().getUserName());
|
|
|
- tFeeDo.setCreateTime(new Date());
|
|
|
- tFeeDo.setfSrcBillno(tFeeDo.getfBillno());
|
|
|
- tFeeDo.setfStatus("2");
|
|
|
- tFeeDoMapper.insertTFeeDo(tFeeDo);
|
|
|
- } else {
|
|
|
- // 走了修改
|
|
|
- tFeeDo.setUpdateBy(loginUser.getUser().getUserName());
|
|
|
- tFeeDo.setUpdateTime(new Date());
|
|
|
- tFeeDoMapper.updateTFeeDo(tFeeDo);
|
|
|
- }
|
|
|
+ tFeeDo.setfPid(fPid);
|
|
|
+ tFeeDo.setCreateBy(loginUser.getUser().getUserName());
|
|
|
+ tFeeDo.setCreateTime(new Date());
|
|
|
+ tFeeDo.setfSrcBillno(tFeeDo.getfBillno());
|
|
|
+ tFeeDo.setfStatus("2");
|
|
|
+ tFeeDoMapper.insertTFeeDo(tFeeDo);
|
|
|
}
|
|
|
}
|
|
|
List<FinancialTFeeDoExcel> list = tFeeDoMapper.selectFinancialTFeeDo(fPid);
|