1:完成nms另外两个接口
2:修改swagger中index.html页面自动识别url
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
package com.nis.web.service.restful;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import com.nis.domain.restful.NmsDiRule;
|
||||
import com.nis.web.dao.NmsDiRuleDao;
|
||||
|
||||
@Service
|
||||
public class NmsDiRuleService {
|
||||
@Autowired
|
||||
NmsDiRuleDao nmsDiRuleDao;
|
||||
|
||||
@Transactional
|
||||
public void saveNmsDiRuleInfo(List<NmsDiRule> nmsDiRuleList) {
|
||||
for (NmsDiRule nmsDiRule : nmsDiRuleList) {
|
||||
nmsDiRuleDao.insert(nmsDiRule);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user