修改体检接口,新增字段,及修复部分bug
This commit is contained in:
@@ -702,17 +702,20 @@ public class XmlUtil {
|
||||
str.append(vo.getPaynature());
|
||||
str.append("</PayNature>");
|
||||
// 当vo.getYbzhamount和ybtcamount都是0的时候,且zfamount>=0则此处用微信,其他情况用医保
|
||||
if ((vo.getYbzhamount() == null || vo.getYbzhamount().compareTo(BigDecimal.valueOf(0.00)) == 0) &&
|
||||
(vo.getYbtcamount() == null || vo.getYbtcamount().compareTo(BigDecimal.valueOf(0.00)) == 0) &&
|
||||
vo.getZfamount().compareTo(BigDecimal.valueOf(0.00)) >= 0) {
|
||||
str.append("<PayType>");
|
||||
str.append("微信");
|
||||
str.append("</PayType>");
|
||||
} else {
|
||||
str.append("<PayType>");
|
||||
str.append("医保");
|
||||
str.append("</PayType>");
|
||||
}
|
||||
// if ((vo.getYbzhamount() == null || vo.getYbzhamount().compareTo(BigDecimal.valueOf(0.00)) == 0) &&
|
||||
// (vo.getYbtcamount() == null || vo.getYbtcamount().compareTo(BigDecimal.valueOf(0.00)) == 0) &&
|
||||
// vo.getZfamount().compareTo(BigDecimal.valueOf(0.00)) >= 0) {
|
||||
// str.append("<PayType>");
|
||||
// str.append("微信");
|
||||
// str.append("</PayType>");
|
||||
// } else {
|
||||
// str.append("<PayType>");
|
||||
// str.append("医保");
|
||||
// str.append("</PayType>");
|
||||
// }
|
||||
str.append("<PayType>");
|
||||
str.append("微信");
|
||||
str.append("</PayType>");
|
||||
str.append("<PowerTranID>");
|
||||
str.append(vo.getPowertranid());
|
||||
str.append("</PowerTranID>");
|
||||
|
||||
Reference in New Issue
Block a user