|
@@ -35,7 +35,7 @@ public class OLDSystemServiceImpl implements OLDSystemService {
|
|
|
@Override
|
|
|
public List<Map<String, Object>> getRequests(String tableName, int type) {
|
|
|
List<Map<String, Object>> result;
|
|
|
-
|
|
|
+
|
|
|
if(type==1) {
|
|
|
//家用空调、热水器
|
|
|
result = jdbcTemplate.queryForList(
|
|
@@ -62,6 +62,19 @@ public class OLDSystemServiceImpl implements OLDSystemService {
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
+ public List<Map<String, Object>> getRequeststest(String tableName, int type) {
|
|
|
+ List<Map<String, Object>> result;
|
|
|
+
|
|
|
+ //维修
|
|
|
+ result = jdbcTemplate.queryForList(
|
|
|
+ "SELECT * FROM " + tableName + " where worker_order_no= ? order by syn_req_time,stat ",
|
|
|
+ new Object[] {"B474759509881157"});
|
|
|
+
|
|
|
+ return result;
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ @Override
|
|
|
public List<Map<String, Object>> getTableDatasJoinParent(String tableName, String synTaskNo, String parentTableName,
|
|
|
String parentId, String childeIdName) {
|
|
|
if (childeIdName == null || childeIdName.trim().length() == 0) {
|
|
@@ -77,7 +90,7 @@ public class OLDSystemServiceImpl implements OLDSystemService {
|
|
|
if(tableName.trim().equalsIgnoreCase("itf_tblazwgmxsykttmmxls")
|
|
|
|| tableName.trim().equalsIgnoreCase("itf_tblazwgmxsyktfj")
|
|
|
|| tableName.trim().equalsIgnoreCase("itf_tblazwgmxjyktFj")
|
|
|
- || tableName.trim().equalsIgnoreCase("itf_tblAzWgmxQitaFj")
|
|
|
+ || tableName.trim().equalsIgnoreCase("itf_tblazwgmxqitafj")
|
|
|
) {
|
|
|
log.info("SELECT a.* FROM " + tableName + " a," + parentTableName
|
|
|
+ " b where a.syn_task_no=b.syn_task_no and a.syn_task_no="+synTaskNo+" and a." + childeIdName + "="+parentId);
|