dzxiii 3 сар өмнө
parent
commit
81ffae1cb5

+ 25 - 2
ruoyi-modules/hh-mast/src/main/java/com/ruoyi/mast/bank/controller/BankTenderpubController.java

@@ -159,12 +159,35 @@ public class BankTenderpubController extends BaseController {
     }
 
     /**
-     * 获取标段发布详细信息
+     * 同步标段发布信息
      */
     // @RequiresPermissions("bank:tenderpub:query")
     @GetMapping(value = "/{tenderpubid}")
     public AjaxResult getInfo(@PathVariable("tenderpubid") String tenderpubid) {
-        return success(bankTenderpubService.selectBankTenderpubByTenderpubid(tenderpubid));
+        if (tenderpubid == null) return error("请求参数错误");
+        BankTenderpub b = bankTenderpubService.selectBankTenderpubByTenderpubid(tenderpubid);
+        if (b == null) return error("没查询到此条数据");
+
+        String rtnxml = postBank(b);
+
+        String rtn = JsonUtils.getStatus(rtnxml);
+
+        if (rtn.contains("成功")) {
+            if (update(b, rtnxml) > 0) {
+                /** 同时查询保存标段查询信息 **/
+                BankTenderpub b1 = bankTenderpubService.selectBankTenderpubByTenderpubid(b.getTenderpubid());
+                BankTenderquery bt = new BankTenderquery();
+                bt.setPpid(Long.valueOf(b1.getPpid()));
+                bt.setSgtid(b1.getRtnSgtid());
+                AjaxResult msg = bankTenderqueryController.addBankTenderquery(bt);
+                if (msg.isSuccess()) {
+                    return success("同步银行数据成功");
+                } else {
+                    return error("同步银行数据失败");
+                }
+            } else
+                return error("同步银行数据失败");
+        } else return AjaxResult.error(rtn);
     }
 
     public Map<String, Object> getInfos(@PathVariable("ppid") String ppid) {

+ 5 - 8
ruoyi-ui/src/views/bank/tenderpub/index.vue

@@ -94,11 +94,9 @@
 			<el-table-column label="指令处理时间" align="center" prop="rtnDtxferprc" width="100"/>
 			<el-table-column label="操作" align="center" class-name="small-padding fixed-width" fixed="right" width="180">
 				<template slot-scope="scope">
-					<el-button size="mini" type="text" @click="handleInfoQuery(scope.row)">同步标段详细信息</el-button>
-					<el-button size="mini" type="text" @click="getInfo(scope.row)">同步保证金入账信息</el-button>
-					<el-button size="mini" type="text" @click="getRefundsss(scope.row)">同步保证金退款信息</el-button>
-					<el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)" v-hasPermi="['bank:tenderpub:edit']">修改</el-button>
-					<el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)" v-hasPermi="['bank:tenderpub:remove']">删除</el-button>
+					<el-button size="mini" type="text" @click="handleInfoQuery(scope.row)">同步标段详细</el-button>
+					<el-button size="mini" type="text" @click="getInfo(scope.row)">同步保证金入账</el-button>
+					<el-button size="mini" type="text" @click="getRefundsss(scope.row)">同步保证金退款</el-button>
 				</template>
 			</el-table-column>
 		</el-table>
@@ -415,9 +413,8 @@ export default {
 			this.reset();
 			const tenderpubid = row.tenderpubid || this.ids
 			getTenderpub(tenderpubid).then(response => {
-				this.form = response.data;
-				this.open = true;
-				this.title = "修改标段发布";
+				console.log(response);
+				this.$modal.msgSuccess(response.msg);
 			});
 		},
 		getTenderDes(tenderpubid){