mirror of
https://gitee.com/durcframework/SOP.git
synced 2025-08-11 21:57:56 +08:00
修复admin后台发布文档不生效问题;业务服务启动不用依赖网关
This commit is contained in:
@@ -22,6 +22,7 @@ import com.gitee.sop.admin.service.isv.event.ChangeIsvInfoEvent;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
import org.springframework.util.CollectionUtils;
|
||||
|
||||
import java.text.SimpleDateFormat;
|
||||
@@ -96,6 +97,7 @@ public class IsvInfoService implements ServiceSupport<IsvInfo, IsvInfoMapper> {
|
||||
* @param isvInfoAddDTO
|
||||
* @return 返回id
|
||||
*/
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public long add(IsvInfoAddDTO isvInfoAddDTO) {
|
||||
IsvInfo rec = CopyUtil.copyBean(isvInfoAddDTO, IsvInfo::new);
|
||||
String appKey = new SimpleDateFormat("yyyyMMdd").format(new Date()) + IdGen.nextId();
|
||||
@@ -106,6 +108,7 @@ public class IsvInfoService implements ServiceSupport<IsvInfo, IsvInfoMapper> {
|
||||
return rec.getId();
|
||||
}
|
||||
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public int update(IsvInfoUpdateDTO isvInfoUpdateDTO) {
|
||||
IsvInfo isvInfo = new IsvInfo();
|
||||
isvInfo.setId(isvInfoUpdateDTO.getId());
|
||||
@@ -147,6 +150,7 @@ public class IsvInfoService implements ServiceSupport<IsvInfo, IsvInfoMapper> {
|
||||
* @param statusUpdateDTO 修改值
|
||||
* @return 返回影响行数
|
||||
*/
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public int updateStatus(StatusUpdateDTO statusUpdateDTO) {
|
||||
Long isvId = statusUpdateDTO.getId();
|
||||
int cnt = this.query()
|
||||
|
@@ -8,6 +8,7 @@ import com.gitee.sop.admin.dao.mapper.IsvKeysMapper;
|
||||
import com.gitee.sop.admin.service.isv.dto.IsvInfoUpdateKeysDTO;
|
||||
import com.gitee.sop.admin.service.isv.event.ChangeIsvKeyEvent;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import java.util.Collections;
|
||||
|
||||
@@ -18,6 +19,7 @@ import java.util.Collections;
|
||||
@Service
|
||||
public class IsvKeysService implements ServiceSupport<IsvKeys, IsvKeysMapper> {
|
||||
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public int saveKeys(IsvInfoUpdateKeysDTO isvInfoUpdateKeysDTO) {
|
||||
IsvKeys isvKeys = this.get(IsvKeys::getIsvId, isvInfoUpdateKeysDTO.getIsvId());
|
||||
if (isvKeys == null) {
|
||||
|
Reference in New Issue
Block a user