|
|
@@ -665,6 +665,14 @@ public class WelcomeStudentController implements WelcomeStudentControllerAPI {
|
|
|
if(!(ws.getIsPay() != null && ws.getIsPay().intValue() == 1)){
|
|
|
System.out.println("进支付比较");
|
|
|
List<JsonPayVo> payInfos = WelcomePayController.queryStudentPayInfo(ws.getAdmissNum(),TimeExchange.getYear());
|
|
|
+ BigDecimal payAmount = new BigDecimal(BigInteger.ZERO);//实缴金额
|
|
|
+ BigDecimal yjPayAmount = new BigDecimal(BigInteger.ZERO);//应缴金额
|
|
|
+ for (JsonPayVo pi:payInfos) {
|
|
|
+ payAmount = payAmount.add(pi.getSJJE());
|
|
|
+ yjPayAmount = yjPayAmount.add(pi.getYJJE());
|
|
|
+ }
|
|
|
+ ws.setPayAmount(payAmount);
|
|
|
+ ws.setAmountPayable(yjPayAmount);
|
|
|
System.out.println("进支付比较1"+JSON.toJSON(payInfos));
|
|
|
if(payInfos != null && payInfos.size() > 0){
|
|
|
System.out.println("进支付比较2");
|
|
|
@@ -1554,6 +1562,14 @@ public class WelcomeStudentController implements WelcomeStudentControllerAPI {
|
|
|
WelcomeStudent student = welcomeStudentService.getManageById(Integer.valueOf(userId));
|
|
|
if(!(student.getIsPay() != null && student.getIsPay().intValue() == 1)){
|
|
|
List<JsonPayVo> payInfos = WelcomePayController.queryStudentPayInfo(student.getAdmissNum(), TimeExchange.getYear());
|
|
|
+ BigDecimal payAmount = new BigDecimal(BigInteger.ZERO);//实缴金额
|
|
|
+ BigDecimal yjPayAmount = new BigDecimal(BigInteger.ZERO);//应缴金额
|
|
|
+ for (JsonPayVo pi:payInfos) {
|
|
|
+ payAmount = payAmount.add(pi.getSJJE());
|
|
|
+ yjPayAmount = yjPayAmount.add(pi.getYJJE());
|
|
|
+ }
|
|
|
+ student.setPayAmount(payAmount);
|
|
|
+ student.setAmountPayable(yjPayAmount);
|
|
|
if(payInfos != null && payInfos.size() > 0){
|
|
|
List<WelcomePaySetting> paySettings = welcomePaySettingService.queryPaySettings(student.getSchool());
|
|
|
if(paySettings != null && paySettings.size() > 0){
|
|
|
@@ -1582,7 +1598,7 @@ public class WelcomeStudentController implements WelcomeStudentControllerAPI {
|
|
|
}else{
|
|
|
student.setIsPay(0);
|
|
|
}
|
|
|
- if(student.getIsPay().intValue() == 1){
|
|
|
+ if(payInfos != null && payInfos.size() > 0){
|
|
|
int update = welcomeStudentService.updateWelcomeStudent(student);
|
|
|
if(update < 0){
|
|
|
logger.error("获取支付信息导致学校信息查询失败");
|