企标制修订立项计划流程 模板下载的企标类别优化

This commit is contained in:
SUNJIABIN
2023-04-23 17:15:45 +08:00
parent eb6f266815
commit 369567886f
6 changed files with 21 additions and 5 deletions
@@ -7,6 +7,7 @@ import com.adc.da.slrs.processModel.entity.exportExcel;
import com.adc.da.slrs.processModel.entity.importExcelDTO;
import com.adc.da.slrs.processModel.service.impl.IExportServiceImpl;
import com.adc.da.slrs.processModel.utils.ExcelExportUtilByWk;
import com.adc.da.slrs.tsDictionaryType.service.ITsDicTypeService;
import com.adc.da.sys.service.IDicTypeEOService;
import com.adc.da.util.exception.AdcDaBaseException;
import com.adc.da.util.http.ResponseMessage;
@@ -72,14 +73,16 @@ public class exportWkExcel {
* 静态加载企标类别下拉框
* @return
*/
private static Map<String,Object> getBussStandTypeData(){
private Map<String,Object> getBussStandTypeData(){
Map<String,Object> resultMap = new HashMap<>();
List<Map<String,String>> bussStandTypeList = new ArrayList<>();
char letter = 'A';
for(letter = 'A'; letter <= 'Z'; ++letter){
List<String> dicTypeNameList = new ArrayList<>();
String dicId = "NGETEMDJDI";
dicTypeNameList = dicTypeEOService.selectByDicId(dicId);
for (String dicTypeName : dicTypeNameList){
Map<String,String> typeMap = new HashMap<>();
typeMap.put("label","Q/FT "+letter);
typeMap.put("value","Q/FT "+letter);
typeMap.put("label",dicTypeName);
typeMap.put("value",dicTypeName);
bussStandTypeList.add(typeMap);
}
resultMap.put("BUSSSTANDCLASS",bussStandTypeList);
@@ -5,6 +5,7 @@ import com.adc.da.slrs.tsDictionaryType.dao.TsDicTypeDao;
import com.adc.da.slrs.tsDictionaryType.entity.TsSearchMenu;
import com.adc.da.slrs.tsDictionaryType.service.ITsDicTypeService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
@@ -92,4 +92,6 @@ public interface DicTypeEODao extends BaseMapper<DicTypeEO> {
List<DicTypeEO> selectPidByCode(@Param("fileType") String fileType);
List<DicTypeEO> selectDic(String id);
List<String> selectByDicId(@Param("dicId") String dicId);
}
@@ -88,4 +88,5 @@ public interface IDicTypeEOService extends IService<DicTypeEO> {
public List<Map<String,String>> getDicTypeByParentCodes(String dicTypeCode);
List<String> selectByDicId(String dicId);
}
@@ -278,6 +278,11 @@ public class DicTypeEOServiceImpl extends ServiceImpl<DicTypeEODao,DicTypeEO> im
return listMap;
}
@Override
public List<String> selectByDicId(String dicId) {
return dicTypeEODao.selectByDicId(dicId);
}
/**
* @Author liwenxuan
* @Description 用来企业大类判断新增是否重复
@@ -649,4 +649,8 @@
WHERE
DIC_ID = #{id}
</select>
<select id="selectByDicId" resultType="java.lang.String">
select DIC_TYPE_NAME from ts_dictype where dic_id = #{dicId}
</select>
</mapper>