From f7090a3271fafbf5c3b0435697a985055aaa94a7 Mon Sep 17 00:00:00 2001 From: wangting <675591594@qq.com> Date: 星期五, 30 八月 2024 12:13:05 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- Source/plt-web/plt-web-parent/plt-web/src/main/java/com/vci/web/service/OsBtmServiceI.java | 135 ++++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 132 insertions(+), 3 deletions(-) diff --git a/Source/plt-web/plt-web-parent/plt-web/src/main/java/com/vci/web/service/OsBtmServiceI.java b/Source/plt-web/plt-web-parent/plt-web/src/main/java/com/vci/web/service/OsBtmServiceI.java index e1c77c4..2d07b7a 100644 --- a/Source/plt-web/plt-web-parent/plt-web/src/main/java/com/vci/web/service/OsBtmServiceI.java +++ b/Source/plt-web/plt-web-parent/plt-web/src/main/java/com/vci/web/service/OsBtmServiceI.java @@ -2,6 +2,8 @@ import com.vci.corba.common.PLException; import com.vci.corba.omd.btm.BizType; +import com.vci.dto.OsBtmTypeDTO; +import com.vci.model.IndexObject; import com.vci.pagemodel.OsBtmTypeAttributeVO; import com.vci.pagemodel.OsBtmTypeVO; import com.vci.pagemodel.OsERVO; @@ -10,7 +12,11 @@ import com.vci.starter.web.pagemodel.DataGrid; import com.vci.starter.web.pagemodel.PageHelper; import com.vci.starter.web.pagemodel.Tree; +import org.springframework.web.multipart.MultipartFile; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +import java.text.ParseException; import java.util.Collection; import java.util.List; import java.util.Map; @@ -108,14 +114,14 @@ * @param btmId 涓氬姟绫诲瀷鐨勭紪鍙� * @return 灞炴�х殑鍐呭 */ - List<OsBtmTypeAttributeVO> listAttributeByBtmId(String btmId); + List<OsBtmTypeAttributeVO> listAttributeByBtmId(String btmId) throws PLException; /** * 鏍规嵁涓氬姟绫诲瀷鑾峰彇鍖呭惈鐨勫睘鎬�--鍖呭惈鍩虹灞炴�� * @param btmId 涓氬姟绫诲瀷鐨勭紪鍙� * @return 灞炴�х殑鍐呭 */ - List<OsBtmTypeAttributeVO> listAttributeByBtmIdHasDefault(String btmId); + List<OsBtmTypeAttributeVO> listAttributeByBtmIdHasDefault(String btmId) throws PLException; /** * 鍙傜収涓氬姟绫诲瀷 @@ -157,5 +163,128 @@ * 鑾峰彇鎵�鏈変笟鍔$被鍨嬶紙鏍戝舰缁撴瀯锛� * @return 鏌ヨ缁撴灉 */ - BaseResult<List<Tree>> getTreeBizTypes() throws PLException; + List<Tree> getTreeBizTypes() throws PLException; + + /** + * 鑾峰彇鎵�鏈変笟鍔$被鍨嬪悕绉伴泦鍚� + * @return + */ + List<String> getAllBtmName() throws PLException; + + /** + * 鑾峰彇涓氬姟鍏ㄩ儴灞炴�х被鍨� + * @param btmName 涓氬姟绫诲瀷鍚嶇О + * @return 灞炴�х殑淇℃伅 + */ + List<OsBtmTypeAttributeVO> getBizTypeQTDs(String btmName) throws PLException, ParseException; + + /** + * 鍒涘缓鏂扮殑涓氬姟绫诲瀷 + * @return + * @throws PLException + */ + boolean addBtmType(OsBtmTypeDTO btmTypeDTO) throws PLException; + + /** + * 鎵归噺鏂板涓氬姟绫诲瀷 + * @param bizTypes + * @return + */ + //boolean addBtmTypes(List<BizType> bizTypes); + + /** + * 淇敼涓氬姟绫诲瀷 + * @param btmTypeDTO + * @return + * @throws PLException + */ + boolean updateBtmType(OsBtmTypeDTO btmTypeDTO) throws PLException; + + /** + * 鍒犻櫎涓氬姟绫诲瀷 + * @param btmTypeDTO + * @return + * @throws PLException + */ + boolean deleteBtmType(OsBtmTypeDTO btmTypeDTO) throws PLException; + + /** + * 涓�鑷存�ф鏌� + * @return + * @throws PLException + */ + BaseResult checkBtmConsistency() throws PLException; + + /** + * 涓�鑷存�ф鏌ヤ慨澶嶅姛鑳� + * @param repairData + * @return + */ + BaseResult executeRepair(String repairData) throws Exception; + + /** + * 鍒涘缓瑙嗗浘 + * @return + * @throws PLException + */ + boolean createView() throws PLException; + + /** + * 鍒犻櫎鏁版嵁鐣岄潰鐨勬煡璇� + * @return 涓氬姟绫诲瀷锛岄摼鎺ョ被鍨� + */ + BaseResult getObjectData() throws PLException; + + /** + * 鍒犻櫎鏁版嵁 + * @param btmNames 涓氬姟绫诲瀷鍚� + * @param linkNames 閾炬帴绫诲瀷鍚� + * @return + * @throws PLException + */ + List<Map> truncateTable(String[] btmNames,String[] linkNames) throws PLException; + + /** + * 鍒犻櫎鍏ㄩ儴绫诲瀷 + * @return + * @throws PLException + */ + BaseResult deleteAllType() throws PLException; + + /** + * 鏍规嵁涓氬姟绫诲瀷鍚嶇О鍜岀储寮曞悕绉版煡璇㈣幏鍙栧凡鏈夌殑绱㈠紩 + * @param conditionMap 鏍规嵁鏌ヨ鏉′欢浼犲弬: typename:涓氬姟绫诲瀷鍚�;indexname:绱㈠紩鍚� + * @return + */ + List<IndexObject> getIndexByCondition(Map<String,String> conditionMap) throws PLException; + + /** + * 鏍规嵁涓氬姟绫诲瀷鍚嶇О鍜屽叾涓嬬殑灞炴�у悕绉板垹闄ょ储寮� + * @param btmName + * @param indexName + * @return + */ + boolean delIndex(String btmName,String indexName) throws PLException; + + /** + * 缁欎笟鍔$被鍨嬩笅鐨勬寚瀹氬睘鎬ф柊澧炵储寮� + * @param indexObjectList + * @return + */ + boolean addIndex(List<IndexObject> indexObjectList) throws PLException; + + /** + * 瀵煎嚭涓氬姟绫诲瀷 + * oid 涓氬姟绫诲瀷鍚嶇О + * @return 鍒涘缓缁撴灉 + */ + void expData(String oid, HttpServletResponse response) throws PLException, IOException; + + /** + * 瀵煎叆涓氬姟绫诲瀷 + * @param file 涓婁紶鐨勬枃浠� + * @return + */ + BaseResult impData(MultipartFile file) throws Exception; + } -- Gitblit v1.9.3