添加事务注解

master
wangwei 2 years ago
parent 0aca31a1fe
commit 0177fffd2b

@ -7,12 +7,14 @@ import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.ServletComponentScan; import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer; import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.scheduling.annotation.EnableScheduling; import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;
@SpringBootApplication @SpringBootApplication
@ServletComponentScan @ServletComponentScan
@EnableScheduling @EnableScheduling
@MapperScan("com.glxp.api.dao") @MapperScan("com.glxp.api.dao")
@EnableTransactionManagement
public class ApiAdminApplication extends SpringBootServletInitializer { public class ApiAdminApplication extends SpringBootServletInitializer {

@ -282,7 +282,7 @@ public class SupCertController {
} }
//查询模板文件是否存在 //查询模板文件是否存在
FilterPdfModuleRequest filterPdfModuleRequest = new FilterPdfModuleRequest(); FilterPdfModuleRequest filterPdfModuleRequest = new FilterPdfModuleRequest();
filterPdfModuleRequest.setId(inspectionPDFTemplateRequest.getModuleId()); filterPdfModuleRequest.setModelKey(inspectionPDFTemplateRequest.getModelKey());
SystemPDFModuleEntity systemPDFModule = systemPDFModuleService.findSystemPDFModule(filterPdfModuleRequest); SystemPDFModuleEntity systemPDFModule = systemPDFModuleService.findSystemPDFModule(filterPdfModuleRequest);
if (null == systemPDFModule) { if (null == systemPDFModule) {
return ResultVOUtils.error(ResultEnum.DATA_NOT, "所属模块错误"); return ResultVOUtils.error(ResultEnum.DATA_NOT, "所属模块错误");

@ -16,6 +16,8 @@ public interface SystemPDFModuleDao {
SystemPDFModuleEntity findSystemPDFModule(FilterPdfModuleRequest filterPDFModuleRequest); SystemPDFModuleEntity findSystemPDFModule(FilterPdfModuleRequest filterPDFModuleRequest);
SystemPDFModuleEntity findSystemPDFModuleByKey(FilterPdfModuleRequest filterPDFModuleRequest);
SystemPDFModuleEntity selectById(String id); SystemPDFModuleEntity selectById(String id);
boolean updateById(SysPdfModuleSaveRequest sysPdfModuleSaveRequest); boolean updateById(SysPdfModuleSaveRequest sysPdfModuleSaveRequest);

@ -27,6 +27,7 @@ import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.scheduling.annotation.Async; import org.springframework.scheduling.annotation.Async;
import org.springframework.scheduling.support.CronSequenceGenerator; import org.springframework.scheduling.support.CronSequenceGenerator;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.multipart.MultipartFile; import org.springframework.web.multipart.MultipartFile;
import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSON;
@ -58,6 +59,7 @@ import okhttp3.Response;
/*数据中继数据中心(接收)*/ /*数据中继数据中心(接收)*/
@Slf4j @Slf4j
@Service @Service
@Transactional(rollbackFor = Exception.class)
public class IdcServiceImpl implements IdcService { public class IdcServiceImpl implements IdcService {
private static final Logger logger = LoggerFactory.getLogger(IdcServiceImpl.class); private static final Logger logger = LoggerFactory.getLogger(IdcServiceImpl.class);
@Value("${file_path}") @Value("${file_path}")
@ -117,11 +119,11 @@ public class IdcServiceImpl implements IdcService {
BaseResponse response = JSON.parseObject(json,BaseResponse.class); BaseResponse response = JSON.parseObject(json,BaseResponse.class);
return response; return response;
} }
return ResultVOUtils.success(object); return ResultVOUtils.success(object);
} }
/*UDI系统上传自助平台*/ /*UDI系统上传自助平台*/
@Override @Override
public void asyncUdiTask() { public void asyncUdiTask() {
@ -134,7 +136,7 @@ public class IdcServiceImpl implements IdcService {
logger.info("自助平台同步任务开始--------"); logger.info("自助平台同步任务开始--------");
asyncDataTask(false); asyncDataTask(false);
} }
/*拉取前一级中继服务数据*/ /*拉取前一级中继服务数据*/
@Async @Async
@Override @Override
@ -147,7 +149,7 @@ public class IdcServiceImpl implements IdcService {
fetchTask(true); fetchTask(true);
} }
private void fetchTask(boolean isIdc) { private void fetchTask(boolean isIdc) {
String host = getNextHost(); String host = getNextHost();
if(!isIdc) { if(!isIdc) {
@ -158,7 +160,7 @@ public class IdcServiceImpl implements IdcService {
logger.info("fetch from ip:"+host); logger.info("fetch from ip:"+host);
if(!StringUtils.isEmpty(host)) { if(!StringUtils.isEmpty(host)) {
String result = post(host+"/spssync/common/list",null); String result = post(host+"/spssync/common/list",null);
if(IDCUtils.isJson(result)) { if(IDCUtils.isJson(result)) {
JSONObject json = JSON.parseObject(result); JSONObject json = JSON.parseObject(result);
if(json!=null&&json.getInteger("code")==20000&&json.getString("data")!=null) { if(json!=null&&json.getInteger("code")==20000&&json.getString("data")!=null) {
@ -174,7 +176,7 @@ public class IdcServiceImpl implements IdcService {
} }
} }
} }
@Async @Async
@Override @Override
public void asyncIdcTask() { public void asyncIdcTask() {
@ -184,7 +186,7 @@ public class IdcServiceImpl implements IdcService {
dbDao.save("insert into idc_var (code,content) values ('system_type','IDC')"); dbDao.save("insert into idc_var (code,content) values ('system_type','IDC')");
} }
} }
private void asyncDataTask(boolean isUpload) { private void asyncDataTask(boolean isUpload) {
initTable(); initTable();
@ -206,15 +208,15 @@ public class IdcServiceImpl implements IdcService {
} }
} }
} }
private void syncData(String t,boolean isUpload,String syncIp) { private void syncData(String t,boolean isUpload,String syncIp) {
boolean sync = true; boolean sync = true;
String[] tnames = t.split("/"); String[] tnames = t.split("/");
String lastUpdateTime = getUpdateTime(tnames[3]); String lastUpdateTime = getUpdateTime(tnames[3]);
Date nowUpdateTime = new Date(); Date nowUpdateTime = new Date();
if(!StringUtils.isEmpty(tnames[0])) { if(!StringUtils.isEmpty(tnames[0])) {
List<Map<String, String>> keyList = dbDao.listKeyMysql(tnames[2]); List<Map<String, String>> keyList = dbDao.listKeyMysql(tnames[2]);
String keyColumn = keyList!=null&&keyList.size()>0 ? keyList.get(0).get("columnName").toString() : "id"; String keyColumn = keyList!=null&&keyList.size()>0 ? keyList.get(0).get("columnName").toString() : "id";
Map<String,Object> map = new HashMap<String,Object>(); Map<String,Object> map = new HashMap<String,Object>();
@ -227,7 +229,7 @@ public class IdcServiceImpl implements IdcService {
map.put("isEnd", "1"); map.put("isEnd", "1");
} }
map.put("sqlWhere", sqlWhere); map.put("sqlWhere", sqlWhere);
map.put("tableKey", tnames[0]); map.put("tableKey", tnames[0]);
map.put("tableName", tnames[2]); map.put("tableName", tnames[2]);
map.put("uniqueColumn", tnames[3]); map.put("uniqueColumn", tnames[3]);
@ -241,7 +243,7 @@ public class IdcServiceImpl implements IdcService {
scheduledRequest.setCronName("sync"+WordUtils.capitalizeFully(tnames[2], new char[]{'_'}).replace("_", "")); scheduledRequest.setCronName("sync"+WordUtils.capitalizeFully(tnames[2], new char[]{'_'}).replace("_", ""));
ScheduledEntity scheduledEntity = scheduledDao.findScheduled(scheduledRequest); ScheduledEntity scheduledEntity = scheduledDao.findScheduled(scheduledRequest);
String cron = scheduledEntity!=null ? scheduledEntity.getCron() : ""; String cron = scheduledEntity!=null ? scheduledEntity.getCron() : "";
if(!StringUtils.isEmpty(cron)) { if(!StringUtils.isEmpty(cron)) {
CronSequenceGenerator cronSequenceGenerator = new CronSequenceGenerator(cron); CronSequenceGenerator cronSequenceGenerator = new CronSequenceGenerator(cron);
Date nextTimePoint = cronSequenceGenerator.next(DateUtil.parseDate(lastUpdateTime)); Date nextTimePoint = cronSequenceGenerator.next(DateUtil.parseDate(lastUpdateTime));
@ -254,8 +256,8 @@ public class IdcServiceImpl implements IdcService {
} }
} }
} }
private String fetchData(String host,Map<String,Object> params) { private String fetchData(String host,Map<String,Object> params) {
OkHttpClient client = new OkHttpClient().newBuilder() OkHttpClient client = new OkHttpClient().newBuilder()
@ -274,7 +276,7 @@ public class IdcServiceImpl implements IdcService {
Response response = client.newCall(request).execute(); Response response = client.newCall(request).execute();
result = response.body().string(); result = response.body().string();
JSONObject json = JSONObject.parseObject(result); JSONObject json = JSONObject.parseObject(result);
if(isLastLevel()) { if(isLastLevel()) {
if(json.get("code")!=null) { if(json.get("code")!=null) {
success = analyToDB(host,json.getJSONObject("data"),files,false); success = analyToDB(host,json.getJSONObject("data"),files,false);
@ -290,12 +292,12 @@ public class IdcServiceImpl implements IdcService {
syncAddTaskStatus(json,false,success); syncAddTaskStatus(json,false,success);
} }
} }
if(success) { if(success) {
String ret = post(host+"/spssync/common/success",params); String ret = post(host+"/spssync/common/success",params);
} }
} catch (IOException e) { } catch (IOException e) {
// TODO Auto-generated catch block // TODO Auto-generated catch block
e.printStackTrace(); e.printStackTrace();
@ -351,7 +353,7 @@ public class IdcServiceImpl implements IdcService {
IDCUtils.createDirectory(filePath +filePathSlash +datePath+"/"); IDCUtils.createDirectory(filePath +filePathSlash +datePath+"/");
if(!FileUtils.makeDirectory(backFilePath +backFileSlash +datePath)) if(!FileUtils.makeDirectory(backFilePath +backFileSlash +datePath))
IDCUtils.createDirectory(filePath +backFileSlash +datePath+"/"); IDCUtils.createDirectory(filePath +backFileSlash +datePath+"/");
FileUtils.SaveFileAs(content, fileName); FileUtils.SaveFileAs(content, fileName);
FileUtils.SaveFileAs(content, backFileName); FileUtils.SaveFileAs(content, backFileName);
String[] saveFiles= {}; String[] saveFiles= {};
@ -391,7 +393,7 @@ public class IdcServiceImpl implements IdcService {
} else { } else {
return ResultVOUtils.error(9000, "转发失败"); return ResultVOUtils.error(9000, "转发失败");
} }
} }
} }
return ResultVOUtils.success(); return ResultVOUtils.success();
@ -401,17 +403,17 @@ public class IdcServiceImpl implements IdcService {
/*数据同步,从数据库获取数据下发或上传下级中继服务*/ /*数据同步,从数据库获取数据下发或上传下级中继服务*/
@Override @Override
public BaseResponse send(Map<String,Object> params) { public BaseResponse send(Map<String,Object> params) {
return send(params.get("messageType").toString(),params.get("tableName").toString(),params); return send(params.get("messageType").toString(),params.get("tableName").toString(),params);
} }
@Override @Override
public BaseResponse send(String messageType,String tableName,Map<String,Object> params) { public BaseResponse send(String messageType,String tableName,Map<String,Object> params) {
return ResultVOUtils.error(9999, ""); return ResultVOUtils.error(9999, "");
} }
@Override @Override
public void downloadFile(String fileName,HttpServletResponse response) { public void downloadFile(String fileName,HttpServletResponse response) {
OutputStream os; OutputStream os;
@ -438,7 +440,7 @@ public class IdcServiceImpl implements IdcService {
dbDao.save(sql); dbDao.save(sql);
} }
private void saveExportStatus(Map<String,Object> params) { private void saveExportStatus(Map<String,Object> params) {
Map<String,Object> map = new HashMap<String,Object>(); Map<String,Object> map = new HashMap<String,Object>();
map.put("receiveStatus", "0"); map.put("receiveStatus", "0");
@ -478,8 +480,8 @@ public class IdcServiceImpl implements IdcService {
dbDao.save(sql); dbDao.save(sql);
} }
private boolean syncMasterData(Map<String,Object> params,boolean isUpload,String syncIp) { private boolean syncMasterData(Map<String,Object> params,boolean isUpload,String syncIp) {
boolean success=false; boolean success=false;
String tableName = params.get("tableName").toString(); String tableName = params.get("tableName").toString();
@ -502,13 +504,13 @@ public class IdcServiceImpl implements IdcService {
Map<String,Object> whereParams = new HashMap<String,Object>(); Map<String,Object> whereParams = new HashMap<String,Object>();
whereParams.put("sqlWhere", params.get("sqlWhere")); whereParams.put("sqlWhere", params.get("sqlWhere"));
whereParams.put("dataWhere", params.get("dataWhere")); whereParams.put("dataWhere", params.get("dataWhere"));
Map<String,Object> map = new HashMap<String,Object>(); Map<String,Object> map = new HashMap<String,Object>();
String where = DBAUtils.convertWhere(column,whereParams,""); String where = DBAUtils.convertWhere(column,whereParams,"");
sql+=!StringUtils.isEmpty(where) ? " where "+where : ""; sql+=!StringUtils.isEmpty(where) ? " where "+where : "";
map.put("sql", sql); map.put("sql", sql);
int total = dbDao.count(map); int total = dbDao.count(map);
String isEnd = params.get("isEnd")!=null ? params.get("isEnd").toString() : "0"; String isEnd = params.get("isEnd")!=null ? params.get("isEnd").toString() : "0";
int limit = 50; int limit = 50;
String[] files = new String[limit]; String[] files = new String[limit];
@ -517,13 +519,13 @@ public class IdcServiceImpl implements IdcService {
String messageType = params.get("messageType").toString(); String messageType = params.get("messageType").toString();
saveIdcLog(messageType,"",tableName +">"+where,0,total); saveIdcLog(messageType,"",tableName +">"+where,0,total);
String filePathSlash = filePath.substring(filePath.length() -1).equals("/") ? "" : "/"; String filePathSlash = filePath.substring(filePath.length() -1).equals("/") ? "" : "/";
if(total>0) { if(total>0) {
success = true; success = true;
whereParams.put("page", 0); whereParams.put("page", 0);
whereParams.put("limit", limit); whereParams.put("limit", limit);
List<Map<String, String>> keyList = dbDao.listKeyMysql(tableName); List<Map<String, String>> keyList = dbDao.listKeyMysql(tableName);
String keyColumn = keyList!=null&&keyList.size()>0 ? keyList.get(0).get("columnName").toString() : "id"; String keyColumn = keyList!=null&&keyList.size()>0 ? keyList.get(0).get("columnName").toString() : "id";
for(int i=0;i<Math.ceil(total/limit)+1;i++) { for(int i=0;i<Math.ceil(total/limit)+1;i++) {
@ -559,13 +561,13 @@ public class IdcServiceImpl implements IdcService {
} }
data.replace("data", list); data.replace("data", list);
orderNum++; orderNum++;
if(isUpload) { if(isUpload) {
String result = ""; String result = "";
try { try {
result = relay("",JSON.toJSONString(data),files,syncIp); result = relay("",JSON.toJSONString(data),files,syncIp);
} catch (Exception ex) { } catch (Exception ex) {
} }
if(IDCUtils.isJson(result)) { if(IDCUtils.isJson(result)) {
JSONObject json = JSON.parseObject(result); JSONObject json = JSON.parseObject(result);
@ -594,12 +596,12 @@ public class IdcServiceImpl implements IdcService {
} }
} }
} }
} }
return success; return success;
} }
/*增加同步任务状态*/ /*增加同步任务状态*/
private void syncAddTaskStatus(Map<String,Object> json,boolean isUpload,boolean success) { private void syncAddTaskStatus(Map<String,Object> json,boolean isUpload,boolean success) {
String content = JSON.toJSONString(json); String content = JSON.toJSONString(json);
@ -610,10 +612,10 @@ public class IdcServiceImpl implements IdcService {
IDCUtils.createDirectory(filePath +datePath+"/"); IDCUtils.createDirectory(filePath +datePath+"/");
if(!FileUtils.makeDirectory(backFilePath +datePath)) if(!FileUtils.makeDirectory(backFilePath +datePath))
IDCUtils.createDirectory(filePath +datePath+"/"); IDCUtils.createDirectory(filePath +datePath+"/");
FileUtils.SaveFileAs(content, fileName); FileUtils.SaveFileAs(content, fileName);
FileUtils.SaveFileAs(content, backFileName); FileUtils.SaveFileAs(content, backFileName);
//type,transportType,superiorService,subordinateService,cacheFilePath //type,transportType,superiorService,subordinateService,cacheFilePath
Map<String,Object> map = new HashMap<>(); Map<String,Object> map = new HashMap<>();
map.put("type", json.get("messageType")); map.put("type", json.get("messageType"));
@ -622,16 +624,16 @@ public class IdcServiceImpl implements IdcService {
map.put("taskId", json.get("messageId")); map.put("taskId", json.get("messageId"));
map.put("cacheFilePath", fileName); map.put("cacheFilePath", fileName);
map.put("status", success ? "1" : "0"); map.put("status", success ? "1" : "0");
saveExportStatus(map); saveExportStatus(map);
} }
/*解析到数据库*/ /*解析到数据库*/
private boolean analyToDB(String host,JSONObject jsonObject,MultipartFile[] files,boolean isUpload) { private boolean analyToDB(String host,JSONObject jsonObject,MultipartFile[] files,boolean isUpload) {
if(jsonObject.get("data")!=null) { if(jsonObject.get("data")!=null) {
String tableName = ""; String tableName = "";
String uniqueColumn = ""; String uniqueColumn = "";
@ -705,7 +707,7 @@ public class IdcServiceImpl implements IdcService {
if(!StringUtils.isEmpty(filePathColumn)) { if(!StringUtils.isEmpty(filePathColumn)) {
files[i] = list.get(i).get(filePathColumn) !=null ? list.get(i).get(filePathColumn).toString() : ""; files[i] = list.get(i).get(filePathColumn) !=null ? list.get(i).get(filePathColumn).toString() : "";
} }
if("A,D,U".contains(operateMode)) { if("A,D,U".contains(operateMode)) {
for(int z=0;z<keyColumn.length;z++ ) { for(int z=0;z<keyColumn.length;z++ ) {
if(list.get(i).get(keyColumn[z])!=null&&!StringUtils.isEmpty(list.get(i).get(keyColumn[z]).toString())) { if(list.get(i).get(keyColumn[z])!=null&&!StringUtils.isEmpty(list.get(i).get(keyColumn[z]).toString())) {
@ -715,7 +717,7 @@ public class IdcServiceImpl implements IdcService {
updateWhere+=keyColumn[z]+" = "+(keyDataType[z].equals("C") ? "'" :"") +value +(keyDataType[z].equals("C") ? "'" :""); updateWhere+=keyColumn[z]+" = "+(keyDataType[z].equals("C") ? "'" :"") +value +(keyDataType[z].equals("C") ? "'" :"");
} }
} }
if("A,D".contains(operateMode)&&!StringUtils.isEmpty(updateWhere)) if("A,D".contains(operateMode)&&!StringUtils.isEmpty(updateWhere))
dbDao.delete(del+updateWhere); dbDao.delete(del+updateWhere);
} }
@ -732,7 +734,7 @@ public class IdcServiceImpl implements IdcService {
value = DBAUtils.escape(value); value = DBAUtils.escape(value);
String dataType = columnList.get(k).get("dataType").toLowerCase().contains("char") || columnList.get(k).get("dataType").toLowerCase().contains("text") ? String dataType = columnList.get(k).get("dataType").toLowerCase().contains("char") || columnList.get(k).get("dataType").toLowerCase().contains("text") ?
"C" : columnList.get(k).get("dataType").toLowerCase().contains("date") ? "D" : "N" ; "C" : columnList.get(k).get("dataType").toLowerCase().contains("date") ? "D" : "N" ;
sql+=m>0 ? "," : ""; sql+=m>0 ? "," : "";
boolean ups = list.get(i).containsKey(attrName) ? true : false ; boolean ups = list.get(i).containsKey(attrName) ? true : false ;
updateSet+=ups&&h>0 ? "," : ""; updateSet+=ups&&h>0 ? "," : "";
@ -760,11 +762,11 @@ public class IdcServiceImpl implements IdcService {
dbDao.update(upd + updateSet+" where "+updateWhere); dbDao.update(upd + updateSet+" where "+updateWhere);
h+=ups ? 1 : 0; h+=ups ? 1 : 0;
} }
sql+=")"; sql+=")";
n++; n++;
} }
for(int m=0;m<30;m++) { for(int m=0;m<30;m++) {
if(list.get(i).get("tableName"+m)!=null&&list.get(i).get("data"+m)!=null) { if(list.get(i).get("tableName"+m)!=null&&list.get(i).get("data"+m)!=null) {
Object obj = list.get(i).get("data"+m); Object obj = list.get(i).get("data"+m);
@ -777,7 +779,7 @@ public class IdcServiceImpl implements IdcService {
break; break;
} }
} }
} }
if(n>0) { if(n>0) {
result = (dbDao.save(sql)>0); result = (dbDao.save(sql)>0);
@ -864,20 +866,20 @@ public class IdcServiceImpl implements IdcService {
.addFormDataPart("fileName", fileName) .addFormDataPart("fileName", fileName)
.build(); .build();
Request request = new Request.Builder() Request request = new Request.Builder()
.url(syncIp+"/spssync/common/downloadFile") .url(syncIp+"/spssync/common/downloadFile")
.post(requestBody) .post(requestBody)
.build(); .build();
try { try {
Response result = client.newCall(request).execute(); Response result = client.newCall(request).execute();
if (MediaType.parse("application/force-download").equals(result.body().contentType())) { if (MediaType.parse("application/force-download").equals(result.body().contentType())) {
try (InputStream inputStream = result.body().byteStream()) { try (InputStream inputStream = result.body().byteStream()) {
String filePathSlash = filePath.substring(filePath.length() -1).equals("/") ? "" : "/"; String filePathSlash = filePath.substring(filePath.length() -1).equals("/") ? "" : "/";
FileOutputStream outputStream =new FileOutputStream(filePath +filePathSlash+fileName); FileOutputStream outputStream =new FileOutputStream(filePath +filePathSlash+fileName);
byte b[]=new byte[1024]; byte b[]=new byte[1024];
@ -892,14 +894,14 @@ public class IdcServiceImpl implements IdcService {
outputStream.flush(); outputStream.flush();
} catch (Exception e) { } catch (Exception e) {
} }
} }
} catch (IOException e) { } catch (IOException e) {
// TODO Auto-generated catch block // TODO Auto-generated catch block
e.printStackTrace(); e.printStackTrace();
@ -907,7 +909,7 @@ public class IdcServiceImpl implements IdcService {
return true; return true;
} }
/*获取转发服务地址当前值允许单向只使用参数upper_server_ip*/ /*获取转发服务地址当前值允许单向只使用参数upper_server_ip*/
private String getNextHost() { private String getNextHost() {
SystemParamConfigEntity systemParamConfigEntity = systemParamConfigService.selectByParamKey("upper_server_ip"); SystemParamConfigEntity systemParamConfigEntity = systemParamConfigService.selectByParamKey("upper_server_ip");
@ -921,7 +923,7 @@ public class IdcServiceImpl implements IdcService {
Map<String,Object> map = dbDao.get("select * from idc_var where code='system_type'"); Map<String,Object> map = dbDao.get("select * from idc_var where code='system_type'");
return !(map!=null&&map.get("content")!=null&&map.get("content").toString().equals("IDC")) ; return !(map!=null&&map.get("content")!=null&&map.get("content").toString().equals("IDC")) ;
} }
/*是否需要转发*/ /*是否需要转发*/
private boolean isRelay() { private boolean isRelay() {
String relayHost = getNextHost(); String relayHost = getNextHost();
@ -932,7 +934,7 @@ public class IdcServiceImpl implements IdcService {
private List<Map<String,Object>> getList(String tableName,Map<String,Object> params) { private List<Map<String,Object>> getList(String tableName,Map<String,Object> params) {
String sql = "select "+tableName+".*,'A' as operateMode from "+tableName; String sql = "select "+tableName+".*,'A' as operateMode from "+tableName;
Map<String,Object> column = getColumn(tableName); Map<String,Object> column = getColumn(tableName);
String where = DBAUtils.convertWhere(column,params,""); String where = DBAUtils.convertWhere(column,params,"");
sql+=!StringUtils.isEmpty(where) ? " where "+where : ""; sql+=!StringUtils.isEmpty(where) ? " where "+where : "";
Map<String,Object> map = new HashMap<String,Object>(); Map<String,Object> map = new HashMap<String,Object>();
@ -1032,7 +1034,7 @@ public class IdcServiceImpl implements IdcService {
} else { } else {
//国家库数据 //国家库数据
if(id.equals("productinfo")) { if(id.equals("productinfo")) {
} }
updateTime = "2000-01-01 00:00:00"; updateTime = "2000-01-01 00:00:00";
String sql = "insert into idc_status (id,statusTime) values ('"+id+"',cast('"+updateTime+"' as datetime))"; String sql = "insert into idc_status (id,statusTime) values ('"+id+"',cast('"+updateTime+"' as datetime))";
@ -1062,7 +1064,7 @@ public class IdcServiceImpl implements IdcService {
jdbcTemplate.execute("alter table basic_export_status add column cacheFilePath varchar(255)"); jdbcTemplate.execute("alter table basic_export_status add column cacheFilePath varchar(255)");
jdbcTemplate.execute("alter table basic_upload_status add column cacheFilePath varchar(255)"); jdbcTemplate.execute("alter table basic_upload_status add column cacheFilePath varchar(255)");
} catch (Exception e) { } catch (Exception e) {
} }
} }
private void alterTable(String tableName,String sql) { private void alterTable(String tableName,String sql) {
@ -1072,6 +1074,6 @@ public class IdcServiceImpl implements IdcService {
} }
} }
} }

@ -13,6 +13,7 @@ public class InspectionPDFTemplateRequest {
private String orderId; private String orderId;
private Long customerId; private Long customerId;
private Integer moduleId; private Integer moduleId;
private String modelKey;
} }

@ -19,4 +19,5 @@ public class FilterPdfModuleRequest extends ListPageRequest {
private Date create_time; private Date create_time;
private Integer templateType; private Integer templateType;
private Date update_time; private Date update_time;
private String modelKey;
} }

@ -15,6 +15,7 @@ import com.glxp.api.req.auth.FilterUserRoleRequest;
import com.glxp.api.service.auth.AuthAdminService; import com.glxp.api.service.auth.AuthAdminService;
import com.glxp.api.common.enums.ResultEnum; import com.glxp.api.common.enums.ResultEnum;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.util.ArrayList; import java.util.ArrayList;
@ -23,6 +24,7 @@ import java.util.Date;
import java.util.List; import java.util.List;
@Service @Service
@Transactional(rollbackFor = Exception.class)
public class AuthAdminServiceImpl implements AuthAdminService { public class AuthAdminServiceImpl implements AuthAdminService {
@Resource @Resource

@ -6,12 +6,14 @@ import com.glxp.api.entity.auth.AuthCheckEntity;
import com.glxp.api.req.auth.FilterAuthCheckRequest; import com.glxp.api.req.auth.FilterAuthCheckRequest;
import com.glxp.api.service.auth.AuthCheckService; import com.glxp.api.service.auth.AuthCheckService;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.util.Collections; import java.util.Collections;
import java.util.List; import java.util.List;
@Service @Service
@Transactional(rollbackFor = Exception.class)
public class AuthCheckServiceImpl implements AuthCheckService { public class AuthCheckServiceImpl implements AuthCheckService {
@Resource @Resource
private AuthCheckDao authCheckDao; private AuthCheckDao authCheckDao;

@ -5,6 +5,7 @@ import com.glxp.api.entity.auth.AuthRole;
import com.glxp.api.entity.auth.AuthRoleAdmin; import com.glxp.api.entity.auth.AuthRoleAdmin;
import com.glxp.api.service.auth.AuthRoleAdminService; import com.glxp.api.service.auth.AuthRoleAdminService;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.util.Collections; import java.util.Collections;
@ -12,6 +13,7 @@ import java.util.List;
import java.util.stream.Collectors; import java.util.stream.Collectors;
@Service @Service
@Transactional(rollbackFor = Exception.class)
public class AuthRoleAdminServiceImpl implements AuthRoleAdminService { public class AuthRoleAdminServiceImpl implements AuthRoleAdminService {
@Resource @Resource

@ -8,6 +8,7 @@ import com.glxp.api.entity.basic.BasicBussinessTypeRoleEntity;
import com.glxp.api.req.auth.AuthRoleQueryRequest; import com.glxp.api.req.auth.AuthRoleQueryRequest;
import com.glxp.api.service.auth.AuthRoleService; import com.glxp.api.service.auth.AuthRoleService;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.util.ArrayList; import java.util.ArrayList;
@ -15,6 +16,7 @@ import java.util.Date;
import java.util.List; import java.util.List;
@Service @Service
@Transactional(rollbackFor = Exception.class)
public class AuthRoleServiceImpl implements AuthRoleService { public class AuthRoleServiceImpl implements AuthRoleService {
@Resource @Resource

@ -7,12 +7,14 @@ import com.glxp.api.entity.auth.CustomerInfoEntity;
import com.glxp.api.req.auth.CustomerInfoFilterRequest; import com.glxp.api.req.auth.CustomerInfoFilterRequest;
import com.glxp.api.service.auth.CustomerInfoService; import com.glxp.api.service.auth.CustomerInfoService;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.util.Collections; import java.util.Collections;
import java.util.List; import java.util.List;
@Service @Service
@Transactional(rollbackFor = Exception.class)
public class CustomerInfoServiceImpl implements CustomerInfoService { public class CustomerInfoServiceImpl implements CustomerInfoService {

@ -8,6 +8,7 @@ import com.glxp.api.entity.auth.DeptEntity;
import com.glxp.api.req.auth.FilterInvWarehouseRequest; import com.glxp.api.req.auth.FilterInvWarehouseRequest;
import com.glxp.api.service.auth.DeptService; import com.glxp.api.service.auth.DeptService;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.util.Collections; import java.util.Collections;
@ -15,6 +16,7 @@ import java.util.Date;
import java.util.List; import java.util.List;
@Service @Service
@Transactional(rollbackFor = Exception.class)
public class DeptServiceImpl implements DeptService { public class DeptServiceImpl implements DeptService {
@Resource @Resource

@ -8,11 +8,13 @@ import com.glxp.api.req.auth.FilterDeptUserReqeust;
import com.glxp.api.res.auth.DeptUserResponse; import com.glxp.api.res.auth.DeptUserResponse;
import com.glxp.api.service.auth.DeptUserService; import com.glxp.api.service.auth.DeptUserService;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.util.List; import java.util.List;
@Service @Service
@Transactional(rollbackFor = Exception.class)
public class DeptUserServiceImpl implements DeptUserService { public class DeptUserServiceImpl implements DeptUserService {
@Resource @Resource

@ -9,6 +9,7 @@ import com.glxp.api.req.auth.FilterInvBusUserRequest;
import com.glxp.api.res.auth.InvBusUserResponse; import com.glxp.api.res.auth.InvBusUserResponse;
import com.glxp.api.service.auth.InvBusUserService; import com.glxp.api.service.auth.InvBusUserService;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.util.CollectionUtils; import org.springframework.util.CollectionUtils;
import javax.annotation.Resource; import javax.annotation.Resource;
@ -16,6 +17,7 @@ import java.util.Collections;
import java.util.List; import java.util.List;
@Service @Service
@Transactional(rollbackFor = Exception.class)
public class InvBusUserServiceImpl implements InvBusUserService { public class InvBusUserServiceImpl implements InvBusUserService {
@Resource @Resource

@ -15,6 +15,7 @@ import com.glxp.api.res.auth.InvSubWarehouseResponse;
import com.glxp.api.res.auth.InvWarehouseThirdSysResponse; import com.glxp.api.res.auth.InvWarehouseThirdSysResponse;
import com.glxp.api.service.auth.InvWarehouseService; import com.glxp.api.service.auth.InvWarehouseService;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.util.ArrayList; import java.util.ArrayList;
@ -22,6 +23,7 @@ import java.util.Collections;
import java.util.List; import java.util.List;
@Service @Service
@Transactional(rollbackFor = Exception.class)
public class InvWarehouseServiceImpl implements InvWarehouseService { public class InvWarehouseServiceImpl implements InvWarehouseService {

@ -8,6 +8,7 @@ import com.glxp.api.exception.ServiceException;
import com.glxp.api.req.auth.SysDictDataRequest; import com.glxp.api.req.auth.SysDictDataRequest;
import com.glxp.api.service.auth.ISysDictDataService; import com.glxp.api.service.auth.ISysDictDataService;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.util.List; import java.util.List;
@ -16,6 +17,7 @@ import java.util.List;
* *
*/ */
@Service @Service
@Transactional(rollbackFor = Exception.class)
public class SysDictDataServiceImpl implements ISysDictDataService { public class SysDictDataServiceImpl implements ISysDictDataService {
@Resource @Resource
SysDictDataMapper baseMapper; SysDictDataMapper baseMapper;

@ -25,6 +25,7 @@ import java.util.List;
*/ */
@RequiredArgsConstructor @RequiredArgsConstructor
@Service @Service
@Transactional(rollbackFor = Exception.class)
public class SysDictTypeServiceImpl implements ISysDictTypeService { public class SysDictTypeServiceImpl implements ISysDictTypeService {
private final SysDictTypeMapper baseMapper; private final SysDictTypeMapper baseMapper;

@ -15,6 +15,7 @@ import com.glxp.api.util.TreeBuildUtils;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.BeanUtils; import org.springframework.beans.BeanUtils;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.util.*; import java.util.*;
@ -23,6 +24,7 @@ import java.util.*;
* *
*/ */
@Service @Service
@Transactional(rollbackFor = Exception.class)
public class SysMenuServiceImpl implements ISysMenuService { public class SysMenuServiceImpl implements ISysMenuService {

@ -7,12 +7,14 @@ import com.glxp.api.req.system.DeleteRequest;
import com.glxp.api.req.system.FilterDeviceKeyRequest; import com.glxp.api.req.system.FilterDeviceKeyRequest;
import com.glxp.api.service.auth.SysPdaKeyService; import com.glxp.api.service.auth.SysPdaKeyService;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.util.Collections; import java.util.Collections;
import java.util.List; import java.util.List;
@Service @Service
@Transactional(rollbackFor = Exception.class)
public class SysPdaKeyServiceImpl implements SysPdaKeyService { public class SysPdaKeyServiceImpl implements SysPdaKeyService {
@Resource @Resource

@ -29,6 +29,7 @@ import java.util.*;
*/ */
@RequiredArgsConstructor @RequiredArgsConstructor
@Service @Service
@Transactional(rollbackFor = Exception.class)
public class SysRoleServiceImpl implements ISysRoleService { public class SysRoleServiceImpl implements ISysRoleService {

@ -6,12 +6,14 @@ import com.glxp.api.entity.auth.UserRegisterEntity;
import com.glxp.api.req.auth.UserResisterFilterRequest; import com.glxp.api.req.auth.UserResisterFilterRequest;
import com.glxp.api.service.auth.UserRegisterService; import com.glxp.api.service.auth.UserRegisterService;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.util.Collections; import java.util.Collections;
import java.util.List; import java.util.List;
@Service @Service
@Transactional(rollbackFor = Exception.class)
public class UserRegisterServiceImpl implements UserRegisterService { public class UserRegisterServiceImpl implements UserRegisterService {
@Resource @Resource

@ -10,6 +10,7 @@ import com.glxp.api.res.basic.BasicBussinessTypeResponse;
import com.glxp.api.service.auth.WarehouseBussinessTypeService; import com.glxp.api.service.auth.WarehouseBussinessTypeService;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.util.ArrayList; import java.util.ArrayList;
@ -18,6 +19,7 @@ import java.util.List;
@Slf4j @Slf4j
@Service @Service
@Transactional(rollbackFor = Exception.class)
public class WarehouseBussinessTypeServiceImpl implements WarehouseBussinessTypeService { public class WarehouseBussinessTypeServiceImpl implements WarehouseBussinessTypeService {
@Resource @Resource

@ -10,6 +10,7 @@ import com.glxp.api.req.auth.FilterInvUserRequest;
import com.glxp.api.service.auth.WarehouseUserService; import com.glxp.api.service.auth.WarehouseUserService;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.util.ArrayList; import java.util.ArrayList;
@ -18,6 +19,7 @@ import java.util.List;
@Slf4j @Slf4j
@Service @Service
@Transactional(rollbackFor = Exception.class)
public class WarehouseUserServiceImpl implements WarehouseUserService { public class WarehouseUserServiceImpl implements WarehouseUserService {

@ -8,12 +8,14 @@ import com.glxp.api.entity.basic.BasicCorpsExportLogEntity;
import com.glxp.api.req.basic.FilterCorpExportLogRequest; import com.glxp.api.req.basic.FilterCorpExportLogRequest;
import com.glxp.api.service.basic.BasicCorpExportLogService; import com.glxp.api.service.basic.BasicCorpExportLogService;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.util.Collections; import java.util.Collections;
import java.util.List; import java.util.List;
@Service @Service
@Transactional(rollbackFor = Exception.class)
public class BasicCorpExportLogServiceImpl implements BasicCorpExportLogService { public class BasicCorpExportLogServiceImpl implements BasicCorpExportLogService {
@Resource @Resource

@ -20,6 +20,7 @@ import org.apache.ibatis.session.TransactionIsolationLevel;
import org.springframework.beans.BeanUtils; import org.springframework.beans.BeanUtils;
import org.springframework.scheduling.annotation.Async; import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.util.Collections; import java.util.Collections;
@ -27,6 +28,7 @@ import java.util.List;
@Slf4j @Slf4j
@Service @Service
@Transactional(rollbackFor = Exception.class)
public class BasicCorpImportLogServiceImpl implements BasicCorpImportLogService { public class BasicCorpImportLogServiceImpl implements BasicCorpImportLogService {
@Resource @Resource

@ -9,6 +9,7 @@ import com.glxp.api.res.thrsys.ThrCorpsResponse;
import com.glxp.api.res.thrsys.ThrUnitMaintainResponse; import com.glxp.api.res.thrsys.ThrUnitMaintainResponse;
import com.glxp.api.service.basic.BasicCorpService; import com.glxp.api.service.basic.BasicCorpService;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.util.Collections; import java.util.Collections;
@ -16,6 +17,7 @@ import java.util.Date;
import java.util.List; import java.util.List;
@Service @Service
@Transactional(rollbackFor = Exception.class)
public class BasicCorpServiceImpl implements BasicCorpService { public class BasicCorpServiceImpl implements BasicCorpService {
@Resource @Resource

@ -16,6 +16,7 @@ import com.glxp.api.res.basic.UdiRelevanceResponse;
import com.glxp.api.service.auth.CustomerService; import com.glxp.api.service.auth.CustomerService;
import com.glxp.api.service.basic.BasicHospTypeService; import com.glxp.api.service.basic.BasicHospTypeService;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.util.ArrayList; import java.util.ArrayList;
@ -24,6 +25,7 @@ import java.util.Date;
import java.util.List; import java.util.List;
@Service @Service
@Transactional(rollbackFor = Exception.class)
public class BasicHospTypeServiceImpl implements BasicHospTypeService { public class BasicHospTypeServiceImpl implements BasicHospTypeService {
@Resource @Resource

@ -6,12 +6,14 @@ import com.glxp.api.entity.basic.BasicNewUploadDiEntity;
import com.glxp.api.req.basic.FilterBasicNewUploadDiRequest; import com.glxp.api.req.basic.FilterBasicNewUploadDiRequest;
import com.glxp.api.service.basic.BasicNewUploadDiService; import com.glxp.api.service.basic.BasicNewUploadDiService;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.util.Collections; import java.util.Collections;
import java.util.List; import java.util.List;
@Service @Service
@Transactional(rollbackFor = Exception.class)
public class BasicNewUploadDiServiceImpl implements BasicNewUploadDiService { public class BasicNewUploadDiServiceImpl implements BasicNewUploadDiService {
@Resource @Resource
BasicNewUploadDiDao newUploadDiDao; BasicNewUploadDiDao newUploadDiDao;

@ -7,6 +7,7 @@ import com.glxp.api.entity.basic.BasicProductSetEntity;
import com.glxp.api.req.basic.FilterBasicProductSetrequest; import com.glxp.api.req.basic.FilterBasicProductSetrequest;
import com.glxp.api.service.basic.BasicProductSetService; import com.glxp.api.service.basic.BasicProductSetService;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.util.Collections; import java.util.Collections;
@ -15,6 +16,7 @@ import java.util.List;
import java.util.Map; import java.util.Map;
@Service @Service
@Transactional(rollbackFor = Exception.class)
public class BasicProductSetServiceImpl implements BasicProductSetService { public class BasicProductSetServiceImpl implements BasicProductSetService {
@Resource @Resource
BasicProductSetDao basicProductSetDao; BasicProductSetDao basicProductSetDao;

@ -8,12 +8,14 @@ import com.glxp.api.entity.basic.BasicProductsExportLogEntity;
import com.glxp.api.req.basic.FilterUdiEpLogRequest; import com.glxp.api.req.basic.FilterUdiEpLogRequest;
import com.glxp.api.service.basic.BasicProductsExportLogService; import com.glxp.api.service.basic.BasicProductsExportLogService;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.util.Collections; import java.util.Collections;
import java.util.List; import java.util.List;
@Service @Service
@Transactional(rollbackFor = Exception.class)
public class BasicProductsExportLogServiceImpl implements BasicProductsExportLogService { public class BasicProductsExportLogServiceImpl implements BasicProductsExportLogService {
@Resource @Resource

@ -18,12 +18,14 @@ import org.apache.ibatis.session.SqlSessionFactory;
import org.apache.ibatis.session.TransactionIsolationLevel; import org.apache.ibatis.session.TransactionIsolationLevel;
import org.springframework.scheduling.annotation.Async; import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.util.Collections; import java.util.Collections;
import java.util.List; import java.util.List;
@Service @Service
@Transactional(rollbackFor = Exception.class)
public class BasicProductsImportDetailServiceImpl implements BasicProductsImportDetailService { public class BasicProductsImportDetailServiceImpl implements BasicProductsImportDetailService {
@Resource @Resource

@ -32,11 +32,13 @@ import com.glxp.api.util.HttpClient;
import org.springframework.beans.BeanUtils; import org.springframework.beans.BeanUtils;
import org.springframework.scheduling.annotation.Async; import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.util.*; import java.util.*;
@Service @Service
@Transactional(rollbackFor = Exception.class)
public class BasicProductsImportLogServiceImpl implements BasicProductsImportLogService { public class BasicProductsImportLogServiceImpl implements BasicProductsImportLogService {
@Resource @Resource
BasicProductsImportLogDao udiInfoImportLogDao; BasicProductsImportLogDao udiInfoImportLogDao;

@ -6,12 +6,14 @@ import com.glxp.api.entity.basic.BasicUnitMaintainEntity;
import com.glxp.api.req.basic.BasicUnitMaintainFilterRequest; import com.glxp.api.req.basic.BasicUnitMaintainFilterRequest;
import com.glxp.api.service.basic.BasicUnitMaintainService; import com.glxp.api.service.basic.BasicUnitMaintainService;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.util.Collections; import java.util.Collections;
import java.util.List; import java.util.List;
@Service @Service
@Transactional(rollbackFor = Exception.class)
public class BasicUnitMaintainServiceImpl implements BasicUnitMaintainService { public class BasicUnitMaintainServiceImpl implements BasicUnitMaintainService {
@Resource @Resource

@ -8,12 +8,14 @@ import com.glxp.api.req.basic.CompanyProductRelevanceRequest;
import com.glxp.api.res.basic.CompanyProductRelevanceResponse; import com.glxp.api.res.basic.CompanyProductRelevanceResponse;
import com.glxp.api.service.basic.CompanyProductRelevanceService; import com.glxp.api.service.basic.CompanyProductRelevanceService;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.util.Collections; import java.util.Collections;
import java.util.List; import java.util.List;
@Service @Service
@Transactional(rollbackFor = Exception.class)
public class CompanyProductRelevanceServiceImpl implements CompanyProductRelevanceService { public class CompanyProductRelevanceServiceImpl implements CompanyProductRelevanceService {
@Resource @Resource
CompanyProductRelevanceDao companyProductRelevanceDao; CompanyProductRelevanceDao companyProductRelevanceDao;

@ -10,12 +10,14 @@ import com.glxp.api.req.basic.BasicEntrustRecRequest;
import com.glxp.api.res.basic.EntrustReceResponse; import com.glxp.api.res.basic.EntrustReceResponse;
import com.glxp.api.service.basic.EntrustReceService; import com.glxp.api.service.basic.EntrustReceService;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.util.Collections; import java.util.Collections;
import java.util.List; import java.util.List;
@Service @Service
@Transactional(rollbackFor = Exception.class)
public class EntrustReceServiceImpl implements EntrustReceService { public class EntrustReceServiceImpl implements EntrustReceService {
@Resource @Resource

@ -7,12 +7,14 @@ import com.glxp.api.req.basic.ProductInfoFilterRequest;
import com.glxp.api.service.basic.ProductInfoService; import com.glxp.api.service.basic.ProductInfoService;
import org.springframework.beans.BeanUtils; import org.springframework.beans.BeanUtils;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.util.Collections; import java.util.Collections;
import java.util.List; import java.util.List;
@Service @Service
@Transactional(rollbackFor = Exception.class)
public class ProductInfoServiceImpl implements ProductInfoService { public class ProductInfoServiceImpl implements ProductInfoService {
@Resource @Resource
@ -202,4 +204,4 @@ public class ProductInfoServiceImpl implements ProductInfoService {
public boolean deleteAll(List<String> ids) { public boolean deleteAll(List<String> ids) {
return productInfoDao.deleteAll(ids); return productInfoDao.deleteAll(ids);
} }
} }

@ -6,11 +6,13 @@ import com.glxp.api.entity.basic.UdiCompanyEntity;
import com.glxp.api.req.basic.UdiCompanyRequest; import com.glxp.api.req.basic.UdiCompanyRequest;
import com.glxp.api.service.basic.UdiCompanyService; import com.glxp.api.service.basic.UdiCompanyService;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.util.List; import java.util.List;
@Service @Service
@Transactional(rollbackFor = Exception.class)
public class UdiCompanyServiceImpl implements UdiCompanyService { public class UdiCompanyServiceImpl implements UdiCompanyService {
@Resource @Resource

@ -11,12 +11,14 @@ import com.glxp.api.res.basic.UdiRelevanceResponse;
import com.glxp.api.service.basic.UdiProductService; import com.glxp.api.service.basic.UdiProductService;
import com.glxp.api.util.udi.FilterUdiUtils; import com.glxp.api.util.udi.FilterUdiUtils;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.util.Collections; import java.util.Collections;
import java.util.List; import java.util.List;
@Service @Service
@Transactional(rollbackFor = Exception.class)
public class UdiProductServiceImpl implements UdiProductService { public class UdiProductServiceImpl implements UdiProductService {
@Resource @Resource

@ -14,12 +14,14 @@ import com.glxp.api.service.basic.UdiRelevanceService;
import com.glxp.api.service.thrsys.ThrSystemService; import com.glxp.api.service.thrsys.ThrSystemService;
import com.glxp.api.util.udi.FilterUdiUtils; import com.glxp.api.util.udi.FilterUdiUtils;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.util.Collections; import java.util.Collections;
import java.util.List; import java.util.List;
@Service @Service
@Transactional(rollbackFor = Exception.class)
public class UdiRelevanceServiceImpl implements UdiRelevanceService { public class UdiRelevanceServiceImpl implements UdiRelevanceService {
@Resource @Resource
UdiRelevanceDao udiRelevanceDao; UdiRelevanceDao udiRelevanceDao;

@ -8,12 +8,14 @@ import com.glxp.api.req.basic.FilterCompanyProductRelevanceRequest;
import com.glxp.api.res.basic.UdiRlSupResponse; import com.glxp.api.res.basic.UdiRlSupResponse;
import com.glxp.api.service.basic.UdiRlSupService; import com.glxp.api.service.basic.UdiRlSupService;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.util.Collections; import java.util.Collections;
import java.util.List; import java.util.List;
@Service @Service
@Transactional(rollbackFor = Exception.class)
public class UdiRlSupServiceImpl implements UdiRlSupService { public class UdiRlSupServiceImpl implements UdiRlSupService {
@Resource @Resource

@ -9,10 +9,12 @@ import javax.annotation.Resource;
import com.glxp.api.dao.inout.IoCodeLostMapper; import com.glxp.api.dao.inout.IoCodeLostMapper;
import com.glxp.api.entity.inout.IoCodeLostEntity; import com.glxp.api.entity.inout.IoCodeLostEntity;
import com.glxp.api.service.inout.IoCodeLostService; import com.glxp.api.service.inout.IoCodeLostService;
import org.springframework.transaction.annotation.Transactional;
import java.util.List; import java.util.List;
@Service @Service
@Transactional(rollbackFor = Exception.class)
public class IoCodeLostServiceImpl implements IoCodeLostService { public class IoCodeLostServiceImpl implements IoCodeLostService {
@Resource @Resource

@ -9,12 +9,14 @@ import com.glxp.api.req.inout.IoOrderRelRequest;
import com.glxp.api.res.inout.IoCodeRelResponse; import com.glxp.api.res.inout.IoCodeRelResponse;
import com.glxp.api.service.inout.IoCodeRelService; import com.glxp.api.service.inout.IoCodeRelService;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.util.Collections; import java.util.Collections;
import java.util.List; import java.util.List;
@Service @Service
@Transactional(rollbackFor = Exception.class)
public class IoCodeRelServiceImpl implements IoCodeRelService { public class IoCodeRelServiceImpl implements IoCodeRelService {
@Resource @Resource

@ -17,6 +17,7 @@ import com.glxp.api.res.inout.IoCodeResponse;
import com.glxp.api.res.inout.IoCodeTempResponse; import com.glxp.api.res.inout.IoCodeTempResponse;
import com.glxp.api.service.inout.IoCodeService; import com.glxp.api.service.inout.IoCodeService;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.util.ArrayList; import java.util.ArrayList;
@ -24,6 +25,7 @@ import java.util.Collections;
import java.util.List; import java.util.List;
@Service @Service
@Transactional(rollbackFor = Exception.class)
public class IoCodeServiceImpl implements IoCodeService { public class IoCodeServiceImpl implements IoCodeService {
@Resource @Resource

@ -12,11 +12,13 @@ import com.glxp.api.util.BeanCopyUtils;
import com.glxp.api.util.page.PageQuery; import com.glxp.api.util.page.PageQuery;
import com.glxp.api.util.page.TableDataInfo; import com.glxp.api.util.page.TableDataInfo;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.util.List; import java.util.List;
@Service @Service
@Transactional(rollbackFor = Exception.class)
public class IoCodeTempServiceImpl implements IoCodeTempService { public class IoCodeTempServiceImpl implements IoCodeTempService {
@Resource @Resource

@ -13,12 +13,14 @@ import com.glxp.api.service.inout.IoCheckInoutService;
import com.glxp.api.service.inout.IoOrderDetailBizService; import com.glxp.api.service.inout.IoOrderDetailBizService;
import com.glxp.api.service.inout.IoOrderDetailCodeService; import com.glxp.api.service.inout.IoOrderDetailCodeService;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.util.Collections; import java.util.Collections;
import java.util.List; import java.util.List;
@Service @Service
@Transactional(rollbackFor = Exception.class)
public class IoOrderDetailBizServiceImpl implements IoOrderDetailBizService { public class IoOrderDetailBizServiceImpl implements IoOrderDetailBizService {
@Resource @Resource

@ -15,6 +15,7 @@ import com.glxp.api.service.inout.IoCheckInoutService;
import com.glxp.api.service.inout.IoOrderDetailBizService; import com.glxp.api.service.inout.IoOrderDetailBizService;
import com.glxp.api.service.inout.IoOrderDetailCodeService; import com.glxp.api.service.inout.IoOrderDetailCodeService;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.util.ArrayList; import java.util.ArrayList;
@ -22,6 +23,7 @@ import java.util.Collections;
import java.util.List; import java.util.List;
@Service @Service
@Transactional(rollbackFor = Exception.class)
public class IoOrderDetailCodeServiceImpl implements IoOrderDetailCodeService { public class IoOrderDetailCodeServiceImpl implements IoOrderDetailCodeService {
@Resource @Resource

@ -10,12 +10,14 @@ import com.glxp.api.req.inout.FilterOrderDetailResultRequest;
import com.glxp.api.res.inout.IoOrderDetailResultResponse; import com.glxp.api.res.inout.IoOrderDetailResultResponse;
import com.glxp.api.service.inout.IoOrderDetailResultService; import com.glxp.api.service.inout.IoOrderDetailResultService;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.util.Collections; import java.util.Collections;
import java.util.List; import java.util.List;
@Service @Service
@Transactional(rollbackFor = Exception.class)
public class IoOrderDetailResultServiceImpl implements IoOrderDetailResultService { public class IoOrderDetailResultServiceImpl implements IoOrderDetailResultService {
@Resource @Resource

@ -7,10 +7,12 @@ import org.springframework.beans.BeanUtils;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import com.glxp.api.service.inout.IoOrderInvoiceService; import com.glxp.api.service.inout.IoOrderInvoiceService;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource; import javax.annotation.Resource;
@Service @Service
@Transactional(rollbackFor = Exception.class)
public class IoOrderInvoiceServiceImpl implements IoOrderInvoiceService { public class IoOrderInvoiceServiceImpl implements IoOrderInvoiceService {
@Resource @Resource
IoOrderInvoiceMapper ioOrderInvoiceMapper; IoOrderInvoiceMapper ioOrderInvoiceMapper;

@ -43,6 +43,7 @@ import com.glxp.api.util.udi.UdiCalCountUtil;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.BeanUtils; import org.springframework.beans.BeanUtils;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.lang.reflect.Field; import java.lang.reflect.Field;
@ -51,6 +52,7 @@ import java.util.stream.Collectors;
@Slf4j @Slf4j
@Service @Service
@Transactional(rollbackFor = Exception.class)
public class IoOrderServiceImpl implements IoOrderService { public class IoOrderServiceImpl implements IoOrderService {
@Resource @Resource

@ -10,12 +10,14 @@ import com.glxp.api.res.inout.ReceiveDetailResponse;
import com.glxp.api.service.inout.ReceivedetailService; import com.glxp.api.service.inout.ReceivedetailService;
import org.apache.ibatis.annotations.Select; import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.util.Collections; import java.util.Collections;
import java.util.List; import java.util.List;
@Service @Service
@Transactional(rollbackFor = Exception.class)
public class ReceiveDetailServiceImpl implements ReceivedetailService { public class ReceiveDetailServiceImpl implements ReceivedetailService {
@Resource @Resource

@ -10,12 +10,14 @@ import com.glxp.api.req.inout.FilterReceiveRequest;
import com.glxp.api.res.inout.ReceiveResponse; import com.glxp.api.res.inout.ReceiveResponse;
import com.glxp.api.service.inout.ReceiveService; import com.glxp.api.service.inout.ReceiveService;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.util.Collections; import java.util.Collections;
import java.util.List; import java.util.List;
@Service @Service
@Transactional(rollbackFor = Exception.class)
public class ReceiveServiceImpl implements ReceiveService { public class ReceiveServiceImpl implements ReceiveService {
@Resource @Resource

@ -7,12 +7,14 @@ import com.glxp.api.req.inv.InnerOrderDetailRequest;
import com.glxp.api.res.inv.innerOrderDetailResponse; import com.glxp.api.res.inv.innerOrderDetailResponse;
import com.glxp.api.service.inv.InnerOrderDetailService; import com.glxp.api.service.inv.InnerOrderDetailService;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.util.Collections; import java.util.Collections;
import java.util.List; import java.util.List;
@Service @Service
@Transactional(rollbackFor = Exception.class)
public class InnerOrderDetailServiceImpl implements InnerOrderDetailService { public class InnerOrderDetailServiceImpl implements InnerOrderDetailService {
@Resource @Resource
InnerOrderDetailDao innerOrderDetailDao; InnerOrderDetailDao innerOrderDetailDao;

@ -7,12 +7,14 @@ import com.glxp.api.entity.inv.InnerOrderEntity;
import com.glxp.api.req.inv.InnerOrderRequest; import com.glxp.api.req.inv.InnerOrderRequest;
import com.glxp.api.service.inv.InnerOrderService; import com.glxp.api.service.inv.InnerOrderService;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.util.Collections; import java.util.Collections;
import java.util.List; import java.util.List;
@Service @Service
@Transactional(rollbackFor = Exception.class)
public class InnerOrderServiceImpl implements InnerOrderService { public class InnerOrderServiceImpl implements InnerOrderService {
@Resource @Resource

@ -16,6 +16,7 @@ import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
import org.springframework.scheduling.annotation.Async; import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletRequest;
import java.util.Date; import java.util.Date;
@ -27,6 +28,7 @@ import java.util.List;
@RequiredArgsConstructor @RequiredArgsConstructor
@Slf4j @Slf4j
@Service @Service
@Transactional(rollbackFor = Exception.class)
public class SysLogininforServiceImpl implements ISysLogininforService, LogininforService { public class SysLogininforServiceImpl implements ISysLogininforService, LogininforService {
private final SysLogininforMapper baseMapper; private final SysLogininforMapper baseMapper;

@ -12,6 +12,7 @@ import com.glxp.api.util.AddressUtils;
import lombok.RequiredArgsConstructor; import lombok.RequiredArgsConstructor;
import org.springframework.scheduling.annotation.Async; import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.Arrays; import java.util.Arrays;
import java.util.Date; import java.util.Date;
@ -22,6 +23,7 @@ import java.util.List;
*/ */
@RequiredArgsConstructor @RequiredArgsConstructor
@Service @Service
@Transactional(rollbackFor = Exception.class)
public class SysOperLogServiceImpl implements ISysOperLogService, OperLogService { public class SysOperLogServiceImpl implements ISysOperLogService, OperLogService {
private final SysOperLogMapper baseMapper; private final SysOperLogMapper baseMapper;

@ -7,12 +7,14 @@ import com.glxp.api.req.purchase.CustomerContactFilterRequest;
import com.glxp.api.req.system.DeleteRequest; import com.glxp.api.req.system.DeleteRequest;
import com.glxp.api.service.purchase.CustomerContactService; import com.glxp.api.service.purchase.CustomerContactService;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.util.Collections; import java.util.Collections;
import java.util.List; import java.util.List;
@Service @Service
@Transactional(rollbackFor = Exception.class)
public class CustomerContactServiceImpl implements CustomerContactService { public class CustomerContactServiceImpl implements CustomerContactService {

@ -8,12 +8,14 @@ import com.glxp.api.req.purchase.PurApplyDetailRequest;
import com.glxp.api.res.purchase.PurOrderDetailResponse; import com.glxp.api.res.purchase.PurOrderDetailResponse;
import com.glxp.api.service.purchase.PurApplyDetailService; import com.glxp.api.service.purchase.PurApplyDetailService;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.util.Collections; import java.util.Collections;
import java.util.List; import java.util.List;
@Service @Service
@Transactional(rollbackFor = Exception.class)
public class PurApplyDetailImplService implements PurApplyDetailService { public class PurApplyDetailImplService implements PurApplyDetailService {

@ -7,12 +7,14 @@ import com.glxp.api.req.purchase.PurApplyRequest;
import com.glxp.api.res.purchase.PurApplyResponse; import com.glxp.api.res.purchase.PurApplyResponse;
import com.glxp.api.service.purchase.PurApplyService; import com.glxp.api.service.purchase.PurApplyService;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.util.Collections; import java.util.Collections;
import java.util.List; import java.util.List;
@Service @Service
@Transactional(rollbackFor = Exception.class)
public class PurApplyServiceImpl implements PurApplyService { public class PurApplyServiceImpl implements PurApplyService {
@Resource @Resource

@ -8,12 +8,14 @@ import com.glxp.api.req.purchase.PurOrderDetailRequest;
import com.glxp.api.res.purchase.PurArrivalDetailResponse; import com.glxp.api.res.purchase.PurArrivalDetailResponse;
import com.glxp.api.service.purchase.PurArrivalDetailService; import com.glxp.api.service.purchase.PurArrivalDetailService;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.util.Collections; import java.util.Collections;
import java.util.List; import java.util.List;
@Service @Service
@Transactional(rollbackFor = Exception.class)
public class PurArrivalDetailServiceImpl implements PurArrivalDetailService { public class PurArrivalDetailServiceImpl implements PurArrivalDetailService {

@ -8,12 +8,14 @@ import com.glxp.api.res.purchase.PurArrivalResponse;
import com.glxp.api.res.purchase.PurOrderResponse; import com.glxp.api.res.purchase.PurOrderResponse;
import com.glxp.api.service.purchase.PurArrivalService; import com.glxp.api.service.purchase.PurArrivalService;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.util.Collections; import java.util.Collections;
import java.util.List; import java.util.List;
@Service @Service
@Transactional(rollbackFor = Exception.class)
public class PurArrivalServiceImpl implements PurArrivalService { public class PurArrivalServiceImpl implements PurArrivalService {
@Resource @Resource

@ -8,12 +8,14 @@ import com.glxp.api.req.purchase.PurOrderDetailRequest;
import com.glxp.api.res.purchase.PurDeliveryDetailResponse; import com.glxp.api.res.purchase.PurDeliveryDetailResponse;
import com.glxp.api.service.purchase.PurDeliveryDetailService; import com.glxp.api.service.purchase.PurDeliveryDetailService;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.util.Collections; import java.util.Collections;
import java.util.List; import java.util.List;
@Service @Service
@Transactional(rollbackFor = Exception.class)
public class PurDeliveryDetailServiceImpl implements PurDeliveryDetailService { public class PurDeliveryDetailServiceImpl implements PurDeliveryDetailService {
@Resource @Resource

@ -13,6 +13,7 @@ import com.glxp.api.service.auth.CustomerService;
import com.glxp.api.service.purchase.PurDeliveryService; import com.glxp.api.service.purchase.PurDeliveryService;
import com.glxp.api.util.RedisUtil; import com.glxp.api.util.RedisUtil;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.util.Collections; import java.util.Collections;
@ -20,6 +21,7 @@ import java.util.Date;
import java.util.List; import java.util.List;
@Service @Service
@Transactional(rollbackFor = Exception.class)
public class PurDeliveryServiceImpl implements PurDeliveryService { public class PurDeliveryServiceImpl implements PurDeliveryService {
@Resource @Resource

@ -10,12 +10,14 @@ import com.glxp.api.res.purchase.PurDeliveryDetailResponse;
import com.glxp.api.res.purchase.PurOrderDetailResponse; import com.glxp.api.res.purchase.PurOrderDetailResponse;
import com.glxp.api.service.purchase.PurOrderDetailService; import com.glxp.api.service.purchase.PurOrderDetailService;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.util.Collections; import java.util.Collections;
import java.util.List; import java.util.List;
@Service @Service
@Transactional(rollbackFor = Exception.class)
public class PurOrderDetailServiceImpl implements PurOrderDetailService { public class PurOrderDetailServiceImpl implements PurOrderDetailService {
@Resource @Resource

@ -12,12 +12,14 @@ import com.glxp.api.res.purchase.PurPlanResponse;
import com.glxp.api.service.purchase.PurOrderService; import com.glxp.api.service.purchase.PurOrderService;
import com.glxp.api.service.purchase.PurPlanService; import com.glxp.api.service.purchase.PurPlanService;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.util.Collections; import java.util.Collections;
import java.util.List; import java.util.List;
@Service @Service
@Transactional(rollbackFor = Exception.class)
public class PurOrderServiceImpl implements PurOrderService { public class PurOrderServiceImpl implements PurOrderService {
@Resource @Resource

@ -9,12 +9,14 @@ import com.glxp.api.req.purchase.PurPlanDetailRequest;
import com.glxp.api.res.purchase.PurOrderDetailResponse; import com.glxp.api.res.purchase.PurOrderDetailResponse;
import com.glxp.api.service.purchase.PurPlanDetailService; import com.glxp.api.service.purchase.PurPlanDetailService;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.util.Collections; import java.util.Collections;
import java.util.List; import java.util.List;
@Service @Service
@Transactional(rollbackFor = Exception.class)
public class PurPlanDetailServiceImpl implements PurPlanDetailService { public class PurPlanDetailServiceImpl implements PurPlanDetailService {
@Resource @Resource

@ -7,12 +7,14 @@ import com.glxp.api.req.purchase.PurPlanRequest;
import com.glxp.api.res.purchase.PurPlanResponse; import com.glxp.api.res.purchase.PurPlanResponse;
import com.glxp.api.service.purchase.PurPlanService; import com.glxp.api.service.purchase.PurPlanService;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.util.Collections; import java.util.Collections;
import java.util.List; import java.util.List;
@Service @Service
@Transactional(rollbackFor = Exception.class)
public class PurPlanServiceImpl implements PurPlanService { public class PurPlanServiceImpl implements PurPlanService {
@Resource @Resource

@ -8,12 +8,14 @@ import com.glxp.api.req.purchase.PurOrderDetailRequest;
import com.glxp.api.res.purchase.PurReturnedDetailResponse; import com.glxp.api.res.purchase.PurReturnedDetailResponse;
import com.glxp.api.service.purchase.PurReturnedDetailService; import com.glxp.api.service.purchase.PurReturnedDetailService;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.util.Collections; import java.util.Collections;
import java.util.List; import java.util.List;
@Service @Service
@Transactional(rollbackFor = Exception.class)
public class PurReturnedDetailServiceImpl implements PurReturnedDetailService { public class PurReturnedDetailServiceImpl implements PurReturnedDetailService {

@ -7,12 +7,14 @@ import com.glxp.api.req.purchase.PurReturnedRequest;
import com.glxp.api.res.purchase.PurReturnedResponse; import com.glxp.api.res.purchase.PurReturnedResponse;
import com.glxp.api.service.purchase.PurReturnedService; import com.glxp.api.service.purchase.PurReturnedService;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.util.Collections; import java.util.Collections;
import java.util.List; import java.util.List;
@Service @Service
@Transactional(rollbackFor = Exception.class)
public class PurReturnedServiceImpl implements PurReturnedService { public class PurReturnedServiceImpl implements PurReturnedService {
@Resource @Resource

@ -9,12 +9,14 @@ import com.glxp.api.req.purchase.FilterSupCertRequest;
import com.glxp.api.req.purchase.purPlanPrintRequest; import com.glxp.api.req.purchase.purPlanPrintRequest;
import com.glxp.api.service.purchase.SupCertService; import com.glxp.api.service.purchase.SupCertService;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.util.Collections; import java.util.Collections;
import java.util.List; import java.util.List;
@Service @Service
@Transactional(rollbackFor = Exception.class)
public class SupCertServiceImpl implements SupCertService { public class SupCertServiceImpl implements SupCertService {
@Resource @Resource

@ -6,12 +6,14 @@ import com.glxp.api.entity.purchase.SupCertSetEntity;
import com.glxp.api.req.purchase.FilterCertSetsRequest; import com.glxp.api.req.purchase.FilterCertSetsRequest;
import com.glxp.api.service.purchase.SupCertSetService; import com.glxp.api.service.purchase.SupCertSetService;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.util.Collections; import java.util.Collections;
import java.util.List; import java.util.List;
@Service @Service
@Transactional(rollbackFor = Exception.class)
public class SupCertSetServiceImpl implements SupCertSetService { public class SupCertSetServiceImpl implements SupCertSetService {
@Resource @Resource

@ -6,12 +6,14 @@ import com.glxp.api.entity.purchase.SupCompanyEntity;
import com.glxp.api.req.purchase.FilterSupCompanyRequest; import com.glxp.api.req.purchase.FilterSupCompanyRequest;
import com.glxp.api.service.purchase.SupCompanyService; import com.glxp.api.service.purchase.SupCompanyService;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.util.Collections; import java.util.Collections;
import java.util.List; import java.util.List;
@Service @Service
@Transactional(rollbackFor = Exception.class)
public class SupCompanyServiceImpl implements SupCompanyService { public class SupCompanyServiceImpl implements SupCompanyService {
@Resource @Resource

@ -8,12 +8,14 @@ import com.glxp.api.entity.purchase.SupManufacturerEntity;
import com.glxp.api.req.purchase.FilterSupManufacturerRequest; import com.glxp.api.req.purchase.FilterSupManufacturerRequest;
import com.glxp.api.service.purchase.SupManufacturerService; import com.glxp.api.service.purchase.SupManufacturerService;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.util.Collections; import java.util.Collections;
import java.util.List; import java.util.List;
@Service @Service
@Transactional(rollbackFor = Exception.class)
public class SupManufacturerServiceImpl implements SupManufacturerService { public class SupManufacturerServiceImpl implements SupManufacturerService {
@Resource @Resource

@ -11,12 +11,14 @@ import com.glxp.api.req.purchase.FilterPoductRequest;
import com.glxp.api.res.purchase.SupProductResponse; import com.glxp.api.res.purchase.SupProductResponse;
import com.glxp.api.service.purchase.SupProductService; import com.glxp.api.service.purchase.SupProductService;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.util.Collections; import java.util.Collections;
import java.util.List; import java.util.List;
@Service @Service
@Transactional(rollbackFor = Exception.class)
public class SupProductServiceImpl implements SupProductService { public class SupProductServiceImpl implements SupProductService {
@Resource @Resource

@ -6,12 +6,14 @@ import com.glxp.api.entity.sync.BasicExportStatusTimeEntity;
import com.glxp.api.req.sync.BasicExportTimeRequest; import com.glxp.api.req.sync.BasicExportTimeRequest;
import com.glxp.api.service.sync.BasicExportTimeService; import com.glxp.api.service.sync.BasicExportTimeService;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.util.Collections; import java.util.Collections;
import java.util.List; import java.util.List;
@Service @Service
@Transactional(rollbackFor = Exception.class)
public class BasicExportTimeServiceImpl implements BasicExportTimeService { public class BasicExportTimeServiceImpl implements BasicExportTimeService {
@Resource @Resource

@ -4,11 +4,13 @@ import com.glxp.api.dao.system.SyncDataBustypeDao;
import com.glxp.api.entity.sync.SyncDataBustypeEntity; import com.glxp.api.entity.sync.SyncDataBustypeEntity;
import com.glxp.api.service.sync.SyncDataBustypeService; import com.glxp.api.service.sync.SyncDataBustypeService;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.util.List; import java.util.List;
@Service @Service
@Transactional(rollbackFor = Exception.class)
public class SyncDataBustypeServiceImpl implements SyncDataBustypeService { public class SyncDataBustypeServiceImpl implements SyncDataBustypeService {
@Resource @Resource

@ -8,11 +8,13 @@ import com.glxp.api.service.sync.SyncDataBustypeService;
import com.glxp.api.service.sync.SyncDataSetService; import com.glxp.api.service.sync.SyncDataSetService;
import org.springframework.beans.BeanUtils; import org.springframework.beans.BeanUtils;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.util.List; import java.util.List;
@Service @Service
@Transactional(rollbackFor = Exception.class)
public class SyncDataSetServiceImpl implements SyncDataSetService { public class SyncDataSetServiceImpl implements SyncDataSetService {
@Resource @Resource

@ -8,6 +8,7 @@ import com.glxp.api.entity.system.ClassifyCodeEntity;
import com.glxp.api.req.system.FilterClassifyCodeRequest; import com.glxp.api.req.system.FilterClassifyCodeRequest;
import com.glxp.api.service.system.ClassifyCodeService; import com.glxp.api.service.system.ClassifyCodeService;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.util.Arrays; import java.util.Arrays;
@ -15,6 +16,7 @@ import java.util.Collections;
import java.util.List; import java.util.List;
@Service @Service
@Transactional(rollbackFor = Exception.class)
public class ClassifyCodeServiceImpl implements ClassifyCodeService { public class ClassifyCodeServiceImpl implements ClassifyCodeService {
@Resource @Resource

@ -7,12 +7,14 @@ import com.glxp.api.entity.system.CompanyEntity;
import com.glxp.api.req.auth.FilterCompanyRequest; import com.glxp.api.req.auth.FilterCompanyRequest;
import com.glxp.api.service.system.CompanyService; import com.glxp.api.service.system.CompanyService;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.util.Collections; import java.util.Collections;
import java.util.List; import java.util.List;
@Service @Service
@Transactional(rollbackFor = Exception.class)
public class CompanyServiceImpl implements CompanyService { public class CompanyServiceImpl implements CompanyService {
@Resource @Resource

@ -5,11 +5,13 @@ import com.glxp.api.dao.system.SyncUploadDataBustypeDao;
import com.glxp.api.entity.sync.SyncDataBustypeEntity; import com.glxp.api.entity.sync.SyncDataBustypeEntity;
import com.glxp.api.service.system.SyncUploadDataBustypeService; import com.glxp.api.service.system.SyncUploadDataBustypeService;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.util.List; import java.util.List;
@Service @Service
@Transactional(rollbackFor = Exception.class)
public class SyncUploadDataBustypeServiceImpl implements SyncUploadDataBustypeService { public class SyncUploadDataBustypeServiceImpl implements SyncUploadDataBustypeService {
@Resource @Resource

@ -6,11 +6,13 @@ import com.glxp.api.entity.system.SyncUploadDataSetEntity;
import com.glxp.api.service.system.SyncUploadDataBustypeService; import com.glxp.api.service.system.SyncUploadDataBustypeService;
import com.glxp.api.service.system.SyncUploadDataSetService; import com.glxp.api.service.system.SyncUploadDataSetService;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.util.List; import java.util.List;
@Service @Service
@Transactional(rollbackFor = Exception.class)
public class SyncUploadDataSetServiceImpl implements SyncUploadDataSetService { public class SyncUploadDataSetServiceImpl implements SyncUploadDataSetService {
@Resource @Resource

@ -8,11 +8,13 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.glxp.api.dao.system.SysMenuHelpMapper; import com.glxp.api.dao.system.SysMenuHelpMapper;
import com.glxp.api.entity.system.SysMenuHelpEntity; import com.glxp.api.entity.system.SysMenuHelpEntity;
import com.glxp.api.service.system.SysMenuHelpService; import com.glxp.api.service.system.SysMenuHelpService;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.util.List; import java.util.List;
@Service @Service
@Transactional(rollbackFor = Exception.class)
public class SysMenuHelpServiceImpl implements SysMenuHelpService { public class SysMenuHelpServiceImpl implements SysMenuHelpService {
@Resource @Resource

@ -8,11 +8,13 @@ import org.springframework.stereotype.Service;
import com.glxp.api.dao.system.SysRemindMsgMapper; import com.glxp.api.dao.system.SysRemindMsgMapper;
import com.glxp.api.entity.system.SysRemindMsgEntity; import com.glxp.api.entity.system.SysRemindMsgEntity;
import com.glxp.api.service.system.SysRemindMsgService; import com.glxp.api.service.system.SysRemindMsgService;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.util.List; import java.util.List;
@Service @Service
@Transactional(rollbackFor = Exception.class)
public class SysRemindMsgServiceImpl implements SysRemindMsgService { public class SysRemindMsgServiceImpl implements SysRemindMsgService {
@Resource @Resource

@ -6,11 +6,13 @@ import com.glxp.api.entity.system.SysRemindSetEntity;
import com.glxp.api.req.system.FilterSysRemindSetRequest; import com.glxp.api.req.system.FilterSysRemindSetRequest;
import com.glxp.api.service.system.SysRemindSetService; import com.glxp.api.service.system.SysRemindSetService;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.util.List; import java.util.List;
@Service @Service
@Transactional(rollbackFor = Exception.class)
public class SysRemindSetServiceImpl implements SysRemindSetService { public class SysRemindSetServiceImpl implements SysRemindSetService {
@Resource @Resource

@ -2,7 +2,9 @@ package com.glxp.api.service.system.impl;
import com.glxp.api.service.system.SysServerLogService; import com.glxp.api.service.system.SysServerLogService;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
@Service @Service
@Transactional(rollbackFor = Exception.class)
public class SysServerLogServiceImpl implements SysServerLogService { public class SysServerLogServiceImpl implements SysServerLogService {
} }

@ -7,11 +7,13 @@ import com.glxp.api.req.system.FilterPdfModuleRequest;
import com.glxp.api.req.system.SysPdfModuleSaveRequest; import com.glxp.api.req.system.SysPdfModuleSaveRequest;
import com.glxp.api.service.system.SystemPDFModuleService; import com.glxp.api.service.system.SystemPDFModuleService;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.util.List; import java.util.List;
@Service @Service
@Transactional(rollbackFor = Exception.class)
public class SystemPDFModuleServiceImpl implements SystemPDFModuleService { public class SystemPDFModuleServiceImpl implements SystemPDFModuleService {
@Resource @Resource
SystemPDFModuleDao systemPDFModuleDao; SystemPDFModuleDao systemPDFModuleDao;
@ -36,7 +38,7 @@ public class SystemPDFModuleServiceImpl implements SystemPDFModuleService {
@Override @Override
public SystemPDFModuleEntity findSystemPDFModule(FilterPdfModuleRequest filterPDFModuleRequest) { public SystemPDFModuleEntity findSystemPDFModule(FilterPdfModuleRequest filterPDFModuleRequest) {
return systemPDFModuleDao.findSystemPDFModule(filterPDFModuleRequest); return systemPDFModuleDao.findSystemPDFModuleByKey(filterPDFModuleRequest);
} }
@Override @Override

@ -7,6 +7,7 @@ import com.glxp.api.req.system.FilterPdfTemplateRelevanceRequest;
import com.glxp.api.res.system.SystemPDFTemplateRelevanceResponse; import com.glxp.api.res.system.SystemPDFTemplateRelevanceResponse;
import com.glxp.api.service.system.SystemPDFTemplateRelevanceService; import com.glxp.api.service.system.SystemPDFTemplateRelevanceService;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.util.Collections; import java.util.Collections;
@ -14,6 +15,7 @@ import java.util.List;
import java.util.stream.Collectors; import java.util.stream.Collectors;
@Service @Service
@Transactional(rollbackFor = Exception.class)
public class SystemPDFTemplateRelevanceServiceImpl implements SystemPDFTemplateRelevanceService { public class SystemPDFTemplateRelevanceServiceImpl implements SystemPDFTemplateRelevanceService {
@Resource @Resource

@ -7,11 +7,13 @@ import com.glxp.api.req.system.FilterPdfTemplateRequest;
import com.glxp.api.req.system.SysPdfTemplateSaveRequest; import com.glxp.api.req.system.SysPdfTemplateSaveRequest;
import com.glxp.api.service.system.SystemPDFTemplateService; import com.glxp.api.service.system.SystemPDFTemplateService;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.util.List; import java.util.List;
@Service @Service
@Transactional(rollbackFor = Exception.class)
public class SystemPDFTemplateServiceImpl implements SystemPDFTemplateService { public class SystemPDFTemplateServiceImpl implements SystemPDFTemplateService {
@Resource @Resource
SystemPDFTemplateDao systemPDFTemplateDao; SystemPDFTemplateDao systemPDFTemplateDao;

@ -8,6 +8,7 @@ import com.glxp.api.req.system.FilterParamConfigRequest;
import com.glxp.api.req.system.SysParamConfigSaveRequest; import com.glxp.api.req.system.SysParamConfigSaveRequest;
import com.glxp.api.service.system.SystemParamConfigService; import com.glxp.api.service.system.SystemParamConfigService;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.util.HashMap; import java.util.HashMap;
@ -15,6 +16,7 @@ import java.util.List;
import java.util.Map; import java.util.Map;
@Service @Service
@Transactional(rollbackFor = Exception.class)
public class SystemParamConfigServiceImpl implements SystemParamConfigService { public class SystemParamConfigServiceImpl implements SystemParamConfigService {
@Resource @Resource
SystemParamConfigDao systemParamConfigDao; SystemParamConfigDao systemParamConfigDao;

@ -6,12 +6,14 @@ import com.glxp.api.entity.system.ThirdSysApiEntity;
import com.glxp.api.req.system.FilterSysApiRequest; import com.glxp.api.req.system.FilterSysApiRequest;
import com.glxp.api.service.system.ThirdSysApiService; import com.glxp.api.service.system.ThirdSysApiService;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.util.Collections; import java.util.Collections;
import java.util.List; import java.util.List;
@Service @Service
@Transactional(rollbackFor = Exception.class)
public class ThirdSysApiServiceImpl implements ThirdSysApiService { public class ThirdSysApiServiceImpl implements ThirdSysApiService {
@Resource @Resource
ThirdSysApiDao thirdSysApiDao; ThirdSysApiDao thirdSysApiDao;

@ -9,6 +9,7 @@ import com.glxp.api.req.thrsys.FilterThrCorpExportLogRequest;
import com.glxp.api.service.auth.CustomerService; import com.glxp.api.service.auth.CustomerService;
import com.glxp.api.service.thrsys.ThrCorpExportLogService; import com.glxp.api.service.thrsys.ThrCorpExportLogService;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.util.Collections; import java.util.Collections;
@ -16,6 +17,7 @@ import java.util.Date;
import java.util.List; import java.util.List;
@Service @Service
@Transactional(rollbackFor = Exception.class)
public class ThrCorpExportLogServiceImpl implements ThrCorpExportLogService { public class ThrCorpExportLogServiceImpl implements ThrCorpExportLogService {
@Resource @Resource
ThrCorpExportLogDao thrCorpExportLogDao; ThrCorpExportLogDao thrCorpExportLogDao;

@ -7,6 +7,7 @@ import com.glxp.api.req.thrsys.FilterThrCorpImportLogRequest;
import com.glxp.api.service.auth.CustomerService; import com.glxp.api.service.auth.CustomerService;
import com.glxp.api.service.thrsys.ThrCorpImportDetailService; import com.glxp.api.service.thrsys.ThrCorpImportDetailService;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.util.Collections; import java.util.Collections;
@ -14,6 +15,7 @@ import java.util.Date;
import java.util.List; import java.util.List;
@Service @Service
@Transactional(rollbackFor = Exception.class)
public class ThrCorpImportDetailServiceImpl implements ThrCorpImportDetailService { public class ThrCorpImportDetailServiceImpl implements ThrCorpImportDetailService {
@Resource @Resource

@ -7,6 +7,7 @@ import com.glxp.api.req.thrsys.FilterThrCorpImportLogRequest;
import com.glxp.api.service.auth.CustomerService; import com.glxp.api.service.auth.CustomerService;
import com.glxp.api.service.thrsys.ThrCorpImportLogService; import com.glxp.api.service.thrsys.ThrCorpImportLogService;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.util.Collections; import java.util.Collections;
@ -14,6 +15,7 @@ import java.util.Date;
import java.util.List; import java.util.List;
@Service @Service
@Transactional(rollbackFor = Exception.class)
public class ThrCorpImportLogServiceImpl implements ThrCorpImportLogService { public class ThrCorpImportLogServiceImpl implements ThrCorpImportLogService {
@Resource @Resource
ThrCorpImportLogDao thrCorpImportLogDao; ThrCorpImportLogDao thrCorpImportLogDao;

@ -10,12 +10,14 @@ import com.glxp.api.res.thrsys.ThrCorpsResponse;
import com.glxp.api.res.thrsys.ThrUnitMaintainResponse; import com.glxp.api.res.thrsys.ThrUnitMaintainResponse;
import com.glxp.api.service.thrsys.ThrCorpService; import com.glxp.api.service.thrsys.ThrCorpService;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.util.Collections; import java.util.Collections;
import java.util.List; import java.util.List;
@Service @Service
@Transactional(rollbackFor = Exception.class)
public class ThrCorpServiceImpl implements ThrCorpService { public class ThrCorpServiceImpl implements ThrCorpService {
@Resource @Resource

@ -25,6 +25,7 @@ import java.util.Date;
import java.util.List; import java.util.List;
@Service @Service
@Transactional(rollbackFor = Exception.class)
public class ThrDeptServiceImpl implements ThrDeptService { public class ThrDeptServiceImpl implements ThrDeptService {
@Resource @Resource

@ -7,6 +7,7 @@ import com.glxp.api.req.thrsys.FilterThrCorpImportLogRequest;
import com.glxp.api.service.auth.CustomerService; import com.glxp.api.service.auth.CustomerService;
import com.glxp.api.service.thrsys.ThrInvProductsDetailService; import com.glxp.api.service.thrsys.ThrInvProductsDetailService;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.util.Collections; import java.util.Collections;
@ -14,6 +15,7 @@ import java.util.Date;
import java.util.List; import java.util.List;
@Service @Service
@Transactional(rollbackFor = Exception.class)
public class ThrInvProductsDetailServiceImpl implements ThrInvProductsDetailService { public class ThrInvProductsDetailServiceImpl implements ThrInvProductsDetailService {
@Resource @Resource

@ -7,6 +7,7 @@ import com.glxp.api.req.thrsys.FilterThrCorpExportLogRequest;
import com.glxp.api.service.auth.CustomerService; import com.glxp.api.service.auth.CustomerService;
import com.glxp.api.service.thrsys.ThrInvProductsExportLogService; import com.glxp.api.service.thrsys.ThrInvProductsExportLogService;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.util.Collections; import java.util.Collections;
@ -14,6 +15,7 @@ import java.util.Date;
import java.util.List; import java.util.List;
@Service @Service
@Transactional(rollbackFor = Exception.class)
public class ThrInvProductsExportLogServiceImpl implements ThrInvProductsExportLogService { public class ThrInvProductsExportLogServiceImpl implements ThrInvProductsExportLogService {
@Resource @Resource

@ -7,6 +7,7 @@ import com.glxp.api.req.thrsys.FilterThrCorpImportLogRequest;
import com.glxp.api.service.auth.CustomerService; import com.glxp.api.service.auth.CustomerService;
import com.glxp.api.service.thrsys.ThrInvProductsImportLogService; import com.glxp.api.service.thrsys.ThrInvProductsImportLogService;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.util.Collections; import java.util.Collections;
@ -14,6 +15,7 @@ import java.util.Date;
import java.util.List; import java.util.List;
@Service @Service
@Transactional(rollbackFor = Exception.class)
public class ThrInvProductsImportLogServiceImpl implements ThrInvProductsImportLogService public class ThrInvProductsImportLogServiceImpl implements ThrInvProductsImportLogService
{ {

@ -8,6 +8,7 @@ import com.glxp.api.req.thrsys.FilterThrInvProductsRequest;
import com.glxp.api.service.auth.CustomerService; import com.glxp.api.service.auth.CustomerService;
import com.glxp.api.service.thrsys.ThrInvProductsService; import com.glxp.api.service.thrsys.ThrInvProductsService;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.util.Collections; import java.util.Collections;
@ -15,6 +16,7 @@ import java.util.Date;
import java.util.List; import java.util.List;
@Service @Service
@Transactional(rollbackFor = Exception.class)
public class ThrInvProductsServiceImpl implements ThrInvProductsService { public class ThrInvProductsServiceImpl implements ThrInvProductsService {
@Resource @Resource

@ -9,12 +9,14 @@ import com.glxp.api.req.thrsys.FilterThrSubInvWarehouseRequest;
import com.glxp.api.res.thrsys.ThrInvWarehouseResponse; import com.glxp.api.res.thrsys.ThrInvWarehouseResponse;
import com.glxp.api.service.thrsys.ThrInvWarehouseService; import com.glxp.api.service.thrsys.ThrInvWarehouseService;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.util.Collections; import java.util.Collections;
import java.util.List; import java.util.List;
@Service @Service
@Transactional(rollbackFor = Exception.class)
public class ThrInvWarehouseServiceImpl implements ThrInvWarehouseService { public class ThrInvWarehouseServiceImpl implements ThrInvWarehouseService {
@Resource @Resource

@ -7,12 +7,14 @@ import com.glxp.api.entity.thrsys.ThrOrderDetailEntity;
import com.glxp.api.req.thrsys.FilterThrOrderDetailRequest; import com.glxp.api.req.thrsys.FilterThrOrderDetailRequest;
import com.glxp.api.service.thrsys.ThrOrderDetailService; import com.glxp.api.service.thrsys.ThrOrderDetailService;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.util.Collections; import java.util.Collections;
import java.util.List; import java.util.List;
@Service @Service
@Transactional(rollbackFor = Exception.class)
public class ThrOrderDetailServiceImpl implements ThrOrderDetailService { public class ThrOrderDetailServiceImpl implements ThrOrderDetailService {
@Resource @Resource

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save