|
@@ -2,10 +2,7 @@ package com.onemap.apply.service.impl.fzss;
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
import com.onemap.apply.domain.config.fzss.*;
|
|
|
-import com.onemap.apply.mapper.fzss.FzxzMapper;
|
|
|
-import com.onemap.apply.mapper.fzss.FzxzSjyMapper;
|
|
|
-import com.onemap.apply.mapper.fzss.FzxzTemplateMapper;
|
|
|
-import com.onemap.apply.mapper.fzss.FzxzYzMapper;
|
|
|
+import com.onemap.apply.mapper.fzss.*;
|
|
|
import com.onemap.apply.service.fzss.IFzxzService;
|
|
|
import com.onemap.common.core.utils.StringUtils;
|
|
|
import com.onemap.common.core.web.domain.RequestResult;
|
|
@@ -14,19 +11,22 @@ import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
|
+import javax.annotation.Resource;
|
|
|
import java.util.ArrayList;
|
|
|
import java.util.List;
|
|
|
|
|
|
@Service
|
|
|
public class FzxzServiceImpl implements IFzxzService {
|
|
|
|
|
|
- @Autowired
|
|
|
+ @Resource
|
|
|
private FzxzSjyMapper fzxzSjyMapper;
|
|
|
- @Autowired
|
|
|
+ @Resource
|
|
|
private FzxzYzMapper fzxzYzMapper;
|
|
|
- @Autowired
|
|
|
+ @Resource
|
|
|
+ FzxzFactorMapper fzxzFactorMapper;
|
|
|
+ @Resource
|
|
|
private FzxzMapper fzxzMapper;
|
|
|
- @Autowired
|
|
|
+ @Resource
|
|
|
private FzxzTemplateMapper fzxzTemplateMapper;
|
|
|
|
|
|
@Override
|
|
@@ -84,6 +84,20 @@ public class FzxzServiceImpl implements IFzxzService {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public RequestResult GetGetFactorList() {
|
|
|
+ try {
|
|
|
+ QueryWrapper<FzxzFactorDTO> wrapper = new QueryWrapper<>();
|
|
|
+ wrapper.eq("status", 1);
|
|
|
+ wrapper.orderByAsc("order_index");
|
|
|
+ List<FzxzFactorDTO> res = fzxzFactorMapper.selectList(wrapper);
|
|
|
+ return RequestResult.success("查询成功", res);
|
|
|
+ } catch (Exception e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ return RequestResult.error("查询失败", null);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
@Override
|
|
|
public List<FzxzTemplateDTO> GetTemplateList(String search) {
|
|
|
try {
|