Commit 0f3b8a34 authored by hongguangwu's avatar hongguangwu

MVP1.7.17-税友优化

parent 26b5b289
...@@ -102,6 +102,7 @@ public class TSocialFriendPushServiceImpl extends ServiceImpl<TSocialFriendMappe ...@@ -102,6 +102,7 @@ public class TSocialFriendPushServiceImpl extends ServiceImpl<TSocialFriendMappe
@Autowired @Autowired
private TDispatchInfoMapper dispatchInfoMapper; private TDispatchInfoMapper dispatchInfoMapper;
private final static String AND_STR = "&";
/** /**
* @Description: 推送到税友 * @Description: 推送到税友
* @Author: hgw * @Author: hgw
...@@ -1532,7 +1533,7 @@ public class TSocialFriendPushServiceImpl extends ServiceImpl<TSocialFriendMappe ...@@ -1532,7 +1533,7 @@ public class TSocialFriendPushServiceImpl extends ServiceImpl<TSocialFriendMappe
} }
if (key.contains(CommonConstants.QIAN_MING)) { if (key.contains(CommonConstants.QIAN_MING)) {
// 签名样式 // 签名样式
qianMingArr = key.split("&"); qianMingArr = key.split(AND_STR);
if (qianMingArr.length>1) { if (qianMingArr.length>1) {
key = qianMingArr[1]; key = qianMingArr[1];
} else { } else {
...@@ -1542,11 +1543,18 @@ public class TSocialFriendPushServiceImpl extends ServiceImpl<TSocialFriendMappe ...@@ -1542,11 +1543,18 @@ public class TSocialFriendPushServiceImpl extends ServiceImpl<TSocialFriendMappe
setQianMingStyle(cell, newValue); setQianMingStyle(cell, newValue);
} else if (key.contains(CommonConstants.GU_DING)) { } else if (key.contains(CommonConstants.GU_DING)) {
// 固定文字 // 固定文字
qianMingArr = key.split("&"); qianMingArr = key.split(AND_STR);
if (qianMingArr.length>1) { if (qianMingArr.length>1) {
key = qianMingArr[1]; key = qianMingArr[1];
cell.setCellValue(key); cell.setCellValue(key);
} }
} else if (key.contains(AND_STR)) {
qianMingArr = key.split(AND_STR);
newValue = "";
for (String s : qianMingArr) {
newValue += getFieldValue(vo, s);
}
cell.setCellValue(newValue);
} else { } else {
newValue = getFieldValue(vo, key); newValue = getFieldValue(vo, key);
cell.setCellValue(newValue); cell.setCellValue(newValue);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment