|
@@ -33,6 +33,9 @@ public class AftersalesmagAutoRecheckService extends ServiceController {
|
|
|
|
|
|
public void serviceRun() throws YosException {
|
|
|
for (String siteid : siteids) {
|
|
|
+ if (dbConnect.runSqlQuery("SELECT 1 from sys_site WHERE siteid='" + siteid + "'").isEmpty()) {
|
|
|
+ continue;
|
|
|
+ }
|
|
|
Properties yosProperties = properties.getYosProperties();
|
|
|
if (yosProperties.getProperty("system.runmode.debug").equalsIgnoreCase("false")) {
|
|
|
Rows rows = dbConnect.runSqlQuery("select * from sa_aftersalesmag where status='审核' and type='换货单' and siteid='" + siteid + "'");
|