|
@@ -364,7 +364,7 @@ public class SubRptContServiceImpl implements SubRptContService {
|
|
|
|
|
|
@Override
|
|
@Override
|
|
@Transactional
|
|
@Transactional
|
|
- @TargetDataSource("secondary")
|
|
|
|
|
|
+ //@TargetDataSource("secondary")
|
|
public void saveFgwReport(WeekContentVO vo, LoginUserVO loginUserVO, RptContKindEnum contKindEnum) {
|
|
public void saveFgwReport(WeekContentVO vo, LoginUserVO loginUserVO, RptContKindEnum contKindEnum) {
|
|
BigDecimal bl = new BigDecimal("0.00");
|
|
BigDecimal bl = new BigDecimal("0.00");
|
|
String week = "";
|
|
String week = "";
|
|
@@ -388,6 +388,7 @@ public class SubRptContServiceImpl implements SubRptContService {
|
|
SubInfo subInfo = subInfoMapper.findByFgwId(vo.getSubId());
|
|
SubInfo subInfo = subInfoMapper.findByFgwId(vo.getSubId());
|
|
if (subInfo != null && vo.getContent() != null) {
|
|
if (subInfo != null && vo.getContent() != null) {
|
|
subInfo.setYbContent(vo.getContent());
|
|
subInfo.setYbContent(vo.getContent());
|
|
|
|
+ HttpClientUtil.fgwPostRequest("/outApi/remote/updateContent", subInfo);
|
|
subInfoMapper.update(subInfo);
|
|
subInfoMapper.update(subInfo);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -399,7 +400,6 @@ public class SubRptContServiceImpl implements SubRptContService {
|
|
RptCont cont = new RptCont();
|
|
RptCont cont = new RptCont();
|
|
cont.setId(Identities.uuid());
|
|
cont.setId(Identities.uuid());
|
|
//开始时间 结束时间
|
|
//开始时间 结束时间
|
|
-
|
|
|
|
//设置类型
|
|
//设置类型
|
|
cont.setKind(contKindEnum.getCode());
|
|
cont.setKind(contKindEnum.getCode());
|
|
cont.setBeginDate(vo.getBeginDate());
|
|
cont.setBeginDate(vo.getBeginDate());
|
|
@@ -414,11 +414,11 @@ public class SubRptContServiceImpl implements SubRptContService {
|
|
cont.setSubId(vo.getSubId());
|
|
cont.setSubId(vo.getSubId());
|
|
cont.setSubPlanId(vo.getSubPlanId());
|
|
cont.setSubPlanId(vo.getSubPlanId());
|
|
cont.setAmt(vo.getAmt());
|
|
cont.setAmt(vo.getAmt());
|
|
- /* cont.setAssignAmt(vo.getAssignAmt());*/
|
|
|
|
cont.setCreateTime(new Date());
|
|
cont.setCreateTime(new Date());
|
|
cont.setLogicDeleteFlag(0);
|
|
cont.setLogicDeleteFlag(0);
|
|
cont.setCreateUserId(loginUserVO.getId());
|
|
cont.setCreateUserId(loginUserVO.getId());
|
|
cont.setKjMonth(moth);
|
|
cont.setKjMonth(moth);
|
|
|
|
+ HttpClientUtil.fgwPostRequest("/outApi/remote/saveRptCont", cont);
|
|
rptContMapper.save(cont);
|
|
rptContMapper.save(cont);
|
|
mainId =cont.getId();
|
|
mainId =cont.getId();
|
|
if (RptContKindEnum.MONTH.getCode().equals(contKindEnum.getCode())){
|
|
if (RptContKindEnum.MONTH.getCode().equals(contKindEnum.getCode())){
|
|
@@ -483,14 +483,13 @@ public class SubRptContServiceImpl implements SubRptContService {
|
|
old.setReason(vo.getReason());
|
|
old.setReason(vo.getReason());
|
|
old.setContent(vo.getContent());
|
|
old.setContent(vo.getContent());
|
|
old.setAmtLast(vo.getAmtLast());
|
|
old.setAmtLast(vo.getAmtLast());
|
|
-// old.setAmtRt(vo.getAmtRt());
|
|
|
|
old.setNumBl(bl);
|
|
old.setNumBl(bl);
|
|
old.setAmt(vo.getAmt());
|
|
old.setAmt(vo.getAmt());
|
|
old.setSubPlanId(vo.getSubPlanId());
|
|
old.setSubPlanId(vo.getSubPlanId());
|
|
old.setLastUpdateTime(new Date());
|
|
old.setLastUpdateTime(new Date());
|
|
old.setLastUpdateUserId(loginUserVO.getId());
|
|
old.setLastUpdateUserId(loginUserVO.getId());
|
|
old.setKjMonth(moth);
|
|
old.setKjMonth(moth);
|
|
- /* old.setAssignAmt(vo.getAssignAmt());*/
|
|
|
|
|
|
+ HttpClientUtil.fgwPostRequest("/outApi/remote/updateRptCont", old);
|
|
rptContMapper.update(old);
|
|
rptContMapper.update(old);
|
|
mainId= old.getId();
|
|
mainId= old.getId();
|
|
}
|
|
}
|
|
@@ -505,10 +504,16 @@ public class SubRptContServiceImpl implements SubRptContService {
|
|
}
|
|
}
|
|
SubInfo info = subInfoMapper.findByFgwId(vo.getSubId());
|
|
SubInfo info = subInfoMapper.findByFgwId(vo.getSubId());
|
|
info.setAmtComp(totalMoney);
|
|
info.setAmtComp(totalMoney);
|
|
|
|
+ HttpClientUtil.fgwPostRequest("/outApi/remote/updateContent", info);
|
|
subInfoMapper.update(info);
|
|
subInfoMapper.update(info);
|
|
}
|
|
}
|
|
//保存附件信息
|
|
//保存附件信息
|
|
if(CollectionUtil.isNotEmpty(vo.getListFile())) {
|
|
if(CollectionUtil.isNotEmpty(vo.getListFile())) {
|
|
|
|
+ RemoteRequestDto requestDto = new RemoteRequestDto();
|
|
|
|
+ requestDto.setListFile(vo.getListFile());
|
|
|
|
+ requestDto.setMainId(mainId);
|
|
|
|
+ requestDto.setLoginName(loginUserVO.getLoginName());
|
|
|
|
+ HttpClientUtil.fgwPostRequest("/outApi/remote/saveOrUpdateWeekAndMonthFile", requestDto);
|
|
weekAndMonthFileService.saveOrUpdateFgw(vo.getListFile(), loginUserVO.getLoginName(), mainId);
|
|
weekAndMonthFileService.saveOrUpdateFgw(vo.getListFile(), loginUserVO.getLoginName(), mainId);
|
|
}
|
|
}
|
|
}
|
|
}
|