|
|
@@ -47,7 +47,7 @@ public class ERPServiceImpl implements ERPService {
|
|
|
@Override
|
|
|
public Map<String, Object> pushInvoiceOrder(String master, int id) {
|
|
|
Map<String, Object> map = new HashMap<String, Object>();
|
|
|
- Object[] obs = baseDao.getFieldsDataByCondition("YITOA_DATACENTER.dock_invoice_config", new String[]{"appKey", "appSecret", "token", "taxnum"}, "username='" + master + "'");
|
|
|
+ Object[] obs = baseDao.getFieldsDataByCondition("DATACENTER.dock_invoice_config", new String[]{"appKey", "appSecret", "token", "taxnum"}, "username='" + master + "'");
|
|
|
String url = donlimConfig.getRoute();
|
|
|
System.out.println(url);
|
|
|
String appKey = donlimConfig.getAppKey();
|
|
|
@@ -63,7 +63,7 @@ public class ERPServiceImpl implements ERPService {
|
|
|
logger.info("pushInvoiceOrder begin: master {} ,id {} ", master, id);
|
|
|
SpObserver.putSp(master);
|
|
|
SqlRowList rs_main = baseDao.queryForRowSet("select * from invoiceOrder left join customer on io_cucode=cu_code " +
|
|
|
- " left join YITOA_DATACENTER.custinvoicemsg on ci_cucode = cu_code " +
|
|
|
+ " left join custinvoicemsg on ci_cucode = cu_code " +
|
|
|
" where io_id=" + id);
|
|
|
if (rs_main.next()) {
|
|
|
//String autoInvoiceFlag= baseDao.isDBSetting("InvoiceOrder", "autoInvoice")?"true":"false";
|
|
|
@@ -151,7 +151,7 @@ public class ERPServiceImpl implements ERPService {
|
|
|
|
|
|
@Override
|
|
|
public Map<String, Object> invoiceOrderSubmitKp(String master, int id) {
|
|
|
- Object[] obs = baseDao.getFieldsDataByCondition("YITOA_DATACENTER.dock_invoice_config", new String[]{"appKey", "appSecret", "token", "taxnum"}, "username='" + master + "'");
|
|
|
+ Object[] obs = baseDao.getFieldsDataByCondition("DATACENTER.dock_invoice_config", new String[]{"appKey", "appSecret", "token", "taxnum"}, "username='" + master + "'");
|
|
|
String url = donlimConfig.getRoute();
|
|
|
System.out.println(url);
|
|
|
String appKey = donlimConfig.getAppKey();
|
|
|
@@ -186,7 +186,7 @@ public class ERPServiceImpl implements ERPService {
|
|
|
@Override
|
|
|
public Map<String, Object> findOrderState(String master, int id) {
|
|
|
Map<String, Object> map = new HashMap<String, Object>();
|
|
|
- Object[] obs = baseDao.getFieldsDataByCondition("YITOA_DATACENTER.dock_invoice_config", new String[]{"appKey", "appSecret", "token", "taxnum"}, "username='" + master + "'");
|
|
|
+ Object[] obs = baseDao.getFieldsDataByCondition("DATACENTER.dock_invoice_config", new String[]{"appKey", "appSecret", "token", "taxnum"}, "username='" + master + "'");
|
|
|
if (obs == null) {
|
|
|
return null;//对接信息为配置
|
|
|
}
|
|
|
@@ -238,7 +238,7 @@ public class ERPServiceImpl implements ERPService {
|
|
|
@Override
|
|
|
public Map<String, Object> cancelInvoiceOrder(String master, int id) {
|
|
|
Map<String, Object> map = new HashMap<String, Object>();
|
|
|
- Object[] obs = baseDao.getFieldsDataByCondition("YITOA_DATACENTER.dock_invoice_config", new String[]{"appKey", "appSecret", "token", "taxnum"}, "username='" + master + "'");
|
|
|
+ Object[] obs = baseDao.getFieldsDataByCondition("DATACENTER.dock_invoice_config", new String[]{"appKey", "appSecret", "token", "taxnum"}, "username='" + master + "'");
|
|
|
if (obs == null) {
|
|
|
return null;//对接信息为配置
|
|
|
}
|
|
|
@@ -296,7 +296,7 @@ public class ERPServiceImpl implements ERPService {
|
|
|
@Override
|
|
|
public Map<String, Object> getElecInvoicesById(String master, Integer id) {
|
|
|
Map<String, Object> map = new HashMap<String, Object>();
|
|
|
- Object[] obs = baseDao.getFieldsDataByCondition("YITOA_DATACENTER.dock_invoice_config", new String[]{"appKey", "appSecret", "token", "taxnum"}, "username='" + master + "'");
|
|
|
+ Object[] obs = baseDao.getFieldsDataByCondition("DATACENTER.dock_invoice_config", new String[]{"appKey", "appSecret", "token", "taxnum"}, "username='" + master + "'");
|
|
|
if (obs == null) {
|
|
|
return null;//对接信息为配置
|
|
|
}
|
|
|
@@ -415,7 +415,7 @@ public class ERPServiceImpl implements ERPService {
|
|
|
@Override
|
|
|
public Map<String, Object> rushRed(String master, int id) {
|
|
|
Map<String, Object> map = new HashMap<String, Object>();
|
|
|
- Object[] obs = baseDao.getFieldsDataByCondition("YITOA_DATACENTER.dock_invoice_config", new String[]{"appKey", "appSecret", "token", "taxnum"}, "username='" + master + "'");
|
|
|
+ Object[] obs = baseDao.getFieldsDataByCondition("DATACENTER.dock_invoice_config", new String[]{"appKey", "appSecret", "token", "taxnum"}, "username='" + master + "'");
|
|
|
String url = donlimConfig.getRoute();
|
|
|
String appKey = donlimConfig.getAppKey();
|
|
|
String appSecret = donlimConfig.getAppSecret();
|