Merge branch 'master' of http://dev.vci-tech.com:1065/r/ubcs
已修改20个文件
已删除5个文件
已添加18个文件
| | |
| | | return request({
|
| | | url: '/api/ubcs-code/mdmEngineController/downloadErrorFile',
|
| | | method: 'get',
|
| | | params
|
| | | params,
|
| | | responseType: 'blob'
|
| | | })
|
| | | }
|
| | | // 导å
¥æ°æ®å±ç¤º
|
| | |
| | | method: 'get',
|
| | | params: {redisOid: redisOid + "-class"}
|
| | | })
|
| | | } |
| | | }
|
| | | // è·åå岿°æ®æ£ç¡®æ°æ®
|
| | | export const getHistoryLeftTree = (redisOid) => {
|
| | | return request({
|
| | | url: '/api/ubcs-code/mdmEngineController/gridValidata',
|
| | | method: 'get',
|
| | | params: {redisOid: redisOid + "-ok"}
|
| | | })
|
| | | }
|
| | | // è·ååå²ç¸ä¼¼é¡¹
|
| | | export const getHistoryResembleTable = (params) => {
|
| | | return request({
|
| | | url: '/api/ubcs-code/mdmEngineController/gridResemble',
|
| | | method: 'get',
|
| | | params
|
| | | })
|
| | | }
|
| | |
|
| | | // è·å模æ¿
|
| | | export function getFormTemplate(params) {
|
| | | return request({
|
| | | url: 'api/ubcs-code/ubcs-code/mdmEngineController/getFormDefineByTemplateOid',
|
| | | method: 'get',
|
| | | params
|
| | | })
|
| | | }
|
| | | // è·åå½åè¡ç¸ä¼¼é¡¹æ°æ®
|
| | | export function getCurretnSelectedRowResemble(params) {
|
| | | return request({
|
| | | url: 'api/ubcs-code/ubcs-code/mdmEngineController/gridRowResemble',
|
| | | method: 'get',
|
| | | params
|
| | | })
|
| | | }
|
| | |
| | | }) |
| | | } |
| | | |
| | | export const remove = (oids) => { |
| | | export const remove = (fileOids,oids) => { |
| | | return request({ |
| | | url: '/api/ubcs-resource/fileController/deleteFile', |
| | | method: 'delete', |
| | | params: { |
| | | fileOids, |
| | | oids |
| | | } |
| | | }) |
| | |
| | | <template>
|
| | | <el-dialog
|
| | | :title="title"
|
| | | :visible="dialogVisible"
|
| | | width="1200px"
|
| | | :visible.sync="dialogVisible"
|
| | | width="1300px"
|
| | | append-to-body
|
| | | top="5vh"
|
| | | >
|
| | | <div class="flex_box">
|
| | | <div class="left" :style="{ width: leftWidth }">
|
| | |
| | | <el-tree
|
| | | v-show="isExpand"
|
| | | class="filter_tree"
|
| | | :data="data"
|
| | | :data="leftTree"
|
| | | default-expand-all
|
| | | highlight-current
|
| | | :filter-node-method="filterNode"
|
| | | @node-click="treeNodeClick"
|
| | | ref="tree"
|
| | | :props="{
|
| | | label: 'name',
|
| | | }"
|
| | | >
|
| | | </el-tree>
|
| | | </div>
|
| | | <div class="right">
|
| | | <div class="tab_box">
|
| | | <el-tabs v-model="activeName" type="card" @tab-click="handleClick">
|
| | | <el-tab-pane label="æ£ç¡®æ°æ®" name="success">
|
| | | <el-table border :data="successData"></el-table>
|
| | | <el-tabs
|
| | | v-model="activeTab"
|
| | | type="card"
|
| | | @tab-click="handleClick"
|
| | | size="small"
|
| | | >
|
| | | <el-tab-pane label="æç¸ä¼¼é¡¹" name="resemble">
|
| | | <el-table
|
| | | border
|
| | | :data="resembleData"
|
| | | style="width: 100%"
|
| | | height="400px"
|
| | | highlight-current-row
|
| | | @current-change="resembleRowChange"
|
| | | >
|
| | | <el-table-column
|
| | | v-for="item in cloNamesList"
|
| | | :key="item.field"
|
| | | :prop="item.field"
|
| | | :label="item.title"
|
| | | :width="item.width"
|
| | | >
|
| | | </el-table-column>
|
| | | </el-table>
|
| | | </el-tab-pane>
|
| | | <el-tab-pane label="æç¸ä¼¼é¡¹æè
éè¯¯æ°æ®" name="error">
|
| | | <el-table border :data="errorData"></el-table>
|
| | | <el-tab-pane label="æ£ç¡®æ°æ®" name="success">
|
| | | <el-table border :data="successData" height="400px">
|
| | | <el-table-column
|
| | | v-for="item in cloNamesList"
|
| | | :key="item.field"
|
| | | :prop="item.field"
|
| | | :label="item.title"
|
| | | :width="item.width"
|
| | | >
|
| | | </el-table-column>
|
| | | </el-table>
|
| | | </el-tab-pane>
|
| | | </el-tabs>
|
| | | </div>
|
| | | <div>
|
| | | <el-table
|
| | | border
|
| | | :data="currentSelectedResemble"
|
| | | style="width: 100%"
|
| | | height="200px"
|
| | | >
|
| | | <el-table-column
|
| | | v-for="item in resembleColumList"
|
| | | :key="item.field"
|
| | | :prop="item.field"
|
| | | :label="item.title"
|
| | | :minWidth="item.minWidth"
|
| | | >
|
| | | <template #default="{ row }">
|
| | | <span v-if="item.field === 'id'">
|
| | | <el-link type="primary" @click="openFormTemlpate(row)">{{
|
| | | row[item.field]
|
| | | }}</el-link>
|
| | | </span>
|
| | | <span v-else>
|
| | | {{ row[item.field] }}
|
| | | </span>
|
| | | </template>
|
| | | </el-table-column>
|
| | | <el-table-column
|
| | | v-show="resembleColumList.length > 0"
|
| | | prop="rowIndex"
|
| | | label="excelè¡æ°"
|
| | | ></el-table-column>
|
| | | </el-table>
|
| | | </div>
|
| | | </div>
|
| | | </div>
|
| | |
| | | <el-button size="small">åæ¶</el-button>
|
| | | </div>
|
| | | </template>
|
| | | <FormTemplateDialog
|
| | | ref="FormTemplateDialog"
|
| | | type="detail"
|
| | | v-bind="currentSelectedResembleRow"
|
| | | :visible.sync="currentSelectedResembleRow.visible"
|
| | | title="æ¥ç详ç»ä¿¡æ¯"
|
| | | ></FormTemplateDialog>
|
| | | </el-dialog>
|
| | | </template>
|
| | |
|
| | | <script>
|
| | | import {
|
| | | getHistorySuccessTable,
|
| | | getHistoryResembleTable,
|
| | | getFormTemplate,
|
| | | getCurretnSelectedRowResemble,
|
| | | } from "../../api/batchImport/index";
|
| | | import ResembleQuery from "../FormTemplate/ResembleQuery.vue";
|
| | | export default {
|
| | | name: "ShowImportData",
|
| | | components: { ResembleQuery },
|
| | | props: {
|
| | | title: {
|
| | | type: String,
|
| | | default: "å岿°æ®å¯¼å
¥",
|
| | | },
|
| | | visible: false,
|
| | | leftTree: {
|
| | | type: Array,
|
| | | default: () => [],
|
| | | },
|
| | | redisOid: {
|
| | | type: String,
|
| | | default: "",
|
| | | },
|
| | | },
|
| | | computed: {
|
| | | dialogVisible: {
|
| | |
| | | ],
|
| | | },
|
| | | ],
|
| | | resembleData: [],
|
| | | successData: [],
|
| | | errorData: [],
|
| | | activeTab: "resemble",
|
| | | cloNamesList: [],
|
| | | codeClassifyOid: "",
|
| | | resembleColumList: [],
|
| | | currentSelectedResemble: [],
|
| | | currentSelectedResembleRow: {
|
| | | templateOid: "",
|
| | | codeClassifyOid: "",
|
| | | rowOid: "",
|
| | | formTemplateVisible: false,
|
| | | },
|
| | | };
|
| | | },
|
| | |
|
| | | methods: {
|
| | | filterNode(value, data) {
|
| | | if (!value) return true;
|
| | | return data.label.indexOf(value) !== -1;
|
| | | return data.name.indexOf(value) !== -1;
|
| | | },
|
| | | hideTree() {
|
| | | if (this.isExpand) {
|
| | |
| | | this.leftWidth = "200px";
|
| | | }
|
| | | this.isExpand = !this.isExpand;
|
| | | },
|
| | | treeNodeClick(data) {
|
| | | this.codeClassifyOid = data.codeclassifyoid;
|
| | | this.cloNamesList = data.cloNamesList;
|
| | | getHistorySuccessTable(this.redisOid).then((res) => {
|
| | | this.successData = res.data
|
| | | // this.successData = [
|
| | | // {
|
| | | // xiaoshouwl: "æ¯",
|
| | | // xinghaoguige: "XH007",
|
| | | // caigouwl: "æ¯",
|
| | | // oid: "433DFA8E-4445-18F4-AC95-85E7EE1C92CF",
|
| | | // kucunwl: "æ¯",
|
| | | // tuhao: "TH006",
|
| | | // codeSecLengthField: "6#4",
|
| | | // codeclsfid: "ç´§åºä»¶#èºæ¯",
|
| | | // materialtype: "ææ",
|
| | | // chukufangshi: "å
è¿å
åº",
|
| | | // hesuanfenlei: "åææ",
|
| | | // name: "æµè¯4",
|
| | | // jiliangdw: "个",
|
| | | // oldcode: "z0004",
|
| | | // id: "0201020013",
|
| | | // },
|
| | | // {
|
| | | // xiaoshouwl: "æ¯",
|
| | | // xinghaoguige: "XH006",
|
| | | // caigouwl: "æ¯",
|
| | | // oid: "E94E3320-841F-AE87-1D56-D6B3398D0FFC",
|
| | | // kucunwl: "æ¯",
|
| | | // tuhao: "TH005",
|
| | | // codeSecLengthField: "6#4",
|
| | | // codeclsfid: "ç´§åºä»¶#èºæ¯",
|
| | | // materialtype: "ææ",
|
| | | // chukufangshi: "å
è¿å
åº",
|
| | | // hesuanfenlei: "åææ",
|
| | | // name: "æµè¯3",
|
| | | // jiliangdw: "个",
|
| | | // oldcode: "z0003",
|
| | | // id: "0201020012",
|
| | | // },
|
| | | // {
|
| | | // xiaoshouwl: "æ¯",
|
| | | // xinghaoguige: "XH003",
|
| | | // caigouwl: "æ¯",
|
| | | // oid: "D2E0A166-A774-BE6F-A9C7-3277467CE8EC",
|
| | | // kucunwl: "æ¯",
|
| | | // tuhao: "TH003",
|
| | | // codeSecLengthField: "6#4",
|
| | | // codeclsfid: "ç´§åºä»¶#èºæ¯",
|
| | | // materialtype: "ææ",
|
| | | // chukufangshi: "å
è¿å
åº",
|
| | | // hesuanfenlei: "åææ",
|
| | | // name: "æµè¯2",
|
| | | // jiliangdw: "个",
|
| | | // oldcode: "z0002",
|
| | | // id: "0201020011",
|
| | | // },
|
| | | // {
|
| | | // xiaoshouwl: "æ¯",
|
| | | // xinghaoguige: "XH002",
|
| | | // caigouwl: "æ¯",
|
| | | // oid: "291CD01A-F18D-2D95-5291-D2C80ED57CC8",
|
| | | // kucunwl: "æ¯",
|
| | | // tuhao: "TH002",
|
| | | // codeSecLengthField: "6#4",
|
| | | // codeclsfid: "ç´§åºä»¶#èºæ¯",
|
| | | // materialtype: "ææ",
|
| | | // chukufangshi: "å
è¿å
åº",
|
| | | // hesuanfenlei: "åææ",
|
| | | // name: "æµè¯1",
|
| | | // jiliangdw: "个",
|
| | | // oldcode: "z0001",
|
| | | // id: "0201020010",
|
| | | // },
|
| | | // {
|
| | | // xiaoshouwl: "æ¯",
|
| | | // xinghaoguige: "XH001",
|
| | | // caigouwl: "æ¯",
|
| | | // oid: "FED83315-F2B4-C603-2AC2-11B0DF3029A6",
|
| | | // kucunwl: "æ¯",
|
| | | // tuhao: "TH001",
|
| | | // codeSecLengthField: "6#4",
|
| | | // codeclsfid: "ç´§åºä»¶#èºæ ",
|
| | | // materialtype: "ææ",
|
| | | // chukufangshi: "å
è¿å
åº",
|
| | | // hesuanfenlei: "åææ",
|
| | | // name: "æµè¯6",
|
| | | // jiliangdw: "个",
|
| | | // oldcode: "z0006",
|
| | | // id: "0201010019",
|
| | | // },
|
| | | // {
|
| | | // xiaoshouwl: "æ¯",
|
| | | // xinghaoguige: "XH005",
|
| | | // caigouwl: "æ¯",
|
| | | // oid: "3E120284-8EC2-9BF4-D1AB-579380DFA085",
|
| | | // kucunwl: "æ¯",
|
| | | // tuhao: "TH005",
|
| | | // codeSecLengthField: "6#4",
|
| | | // codeclsfid: "ç´§åºä»¶#èºæ ",
|
| | | // materialtype: "ææ",
|
| | | // chukufangshi: "å
è¿å
åº",
|
| | | // hesuanfenlei: "åææ",
|
| | | // name: "æµè¯5",
|
| | | // jiliangdw: "个",
|
| | | // oldcode: "z0005",
|
| | | // id: "0201010018",
|
| | | // },
|
| | | // {
|
| | | // xiaoshouwl: "æ¯",
|
| | | // xinghaoguige: "XH004",
|
| | | // caigouwl: "æ¯",
|
| | | // oid: "2EB3B122-2FE4-A236-53F2-9B67E40332AC",
|
| | | // kucunwl: "æ¯",
|
| | | // tuhao: "TH004",
|
| | | // codeSecLengthField: "6#4",
|
| | | // codeclsfid: "ç´§åºä»¶#èºæ ",
|
| | | // materialtype: "ææ",
|
| | | // chukufangshi: "å
è¿å
åº",
|
| | | // hesuanfenlei: "åææ",
|
| | | // name: "æµè¯4",
|
| | | // jiliangdw: "个",
|
| | | // oldcode: "z0004",
|
| | | // id: "0201010017",
|
| | | // },
|
| | | // {
|
| | | // xiaoshouwl: "æ¯",
|
| | | // xinghaoguige: "XH009",
|
| | | // caigouwl: "æ¯",
|
| | | // oid: "8940A341-8041-E031-6FE1-A18526C62DE9",
|
| | | // kucunwl: "æ¯",
|
| | | // tuhao: "TH008",
|
| | | // codeSecLengthField: "6#4",
|
| | | // codeclsfid: "ç´§åºä»¶#èºæ¯",
|
| | | // materialtype: "ææ",
|
| | | // chukufangshi: "å
è¿å
åº",
|
| | | // hesuanfenlei: "åææ",
|
| | | // name: "æµè¯6",
|
| | | // jiliangdw: "个",
|
| | | // oldcode: "z0006",
|
| | | // id: "0201020015",
|
| | | // },
|
| | | // {
|
| | | // xiaoshouwl: "æ¯",
|
| | | // xinghaoguige: "XH008",
|
| | | // caigouwl: "æ¯",
|
| | | // oid: "936CBC1E-2FD0-5CD7-C331-64B86204FD78",
|
| | | // kucunwl: "æ¯",
|
| | | // tuhao: "TH007",
|
| | | // codeSecLengthField: "6#4",
|
| | | // codeclsfid: "ç´§åºä»¶#èºæ¯",
|
| | | // materialtype: "ææ",
|
| | | // chukufangshi: "å
è¿å
åº",
|
| | | // hesuanfenlei: "åææ",
|
| | | // name: "æµè¯5",
|
| | | // jiliangdw: "个",
|
| | | // oldcode: "z0005",
|
| | | // id: "0201020014",
|
| | | // },
|
| | | // ];
|
| | | });
|
| | | getHistoryResembleTable({
|
| | | codeClassifyOid: data.codeClassifyOid,
|
| | | redisOid: this.redisOid + "-resemble",
|
| | | }).then((res) => {
|
| | | console.log(res);
|
| | | this.resembleData = res.data
|
| | | // this.resembleData = [
|
| | | // {
|
| | | // xiaoshouwl: "æ¯",
|
| | | // xinghaoguige: "XH007",
|
| | | // caigouwl: "æ¯",
|
| | | // oid: "FC2F0D9F-8B2E-5A19-3BDE-22107F373EB3",
|
| | | // kucunwl: "æ¯",
|
| | | // tuhao: "TH006",
|
| | | // codeSecLengthField: "6#4",
|
| | | // codeclsfid: "ç´§åºä»¶#èºæ¯",
|
| | | // materialtype: "ææ",
|
| | | // chukufangshi: "å
è¿å
åº",
|
| | | // hesuanfenlei: "åææ",
|
| | | // name: "æµè¯4",
|
| | | // jiliangdw: "个",
|
| | | // oldcode: "z0004",
|
| | | // id: "0201020013",
|
| | | // },
|
| | | // {
|
| | | // xiaoshouwl: "æ¯",
|
| | | // xinghaoguige: "XH007",
|
| | | // caigouwl: "æ¯",
|
| | | // oid: "B92CFF46-1D46-E680-66C4-33A3ABE77A6C",
|
| | | // kucunwl: "æ¯",
|
| | | // tuhao: "TH005",
|
| | | // codeSecLengthField: "6#4",
|
| | | // codeclsfid: "ç´§åºä»¶#èºæ¯",
|
| | | // materialtype: "ææ",
|
| | | // chukufangshi: "å
è¿å
åº",
|
| | | // hesuanfenlei: "åææ",
|
| | | // name: "æµè¯3",
|
| | | // jiliangdw: "个",
|
| | | // oldcode: "z0003",
|
| | | // id: "0201020012",
|
| | | // },
|
| | | // {
|
| | | // xiaoshouwl: "æ¯",
|
| | | // xinghaoguige: "XH15",
|
| | | // caigouwl: "æ¯",
|
| | | // oid: "B383C30E-D201-01F2-89EE-6F751EFA0AA1",
|
| | | // kucunwl: "æ¯",
|
| | | // tuhao: "TH008",
|
| | | // codeSecLengthField: "6#4",
|
| | | // codeclsfid: "ç´§åºä»¶#èºæ¯",
|
| | | // materialtype: "ææ",
|
| | | // chukufangshi: "å
è¿å
åº",
|
| | | // hesuanfenlei: "åææ",
|
| | | // name: "æµè¯6",
|
| | | // jiliangdw: "个",
|
| | | // oldcode: "z0006",
|
| | | // id: "0201020015",
|
| | | // },
|
| | | // {
|
| | | // xiaoshouwl: "æ¯",
|
| | | // xinghaoguige: "XH17",
|
| | | // caigouwl: "æ¯",
|
| | | // oid: "1C379116-F27B-3F20-DFC3-74A39B87E505",
|
| | | // kucunwl: "æ¯",
|
| | | // tuhao: "TH007",
|
| | | // codeSecLengthField: "6#4",
|
| | | // codeclsfid: "ç´§åºä»¶#èºæ¯",
|
| | | // materialtype: "ææ",
|
| | | // chukufangshi: "å
è¿å
åº",
|
| | | // hesuanfenlei: "åææ",
|
| | | // name: "æµè¯5",
|
| | | // jiliangdw: "个",
|
| | | // oldcode: "z0005",
|
| | | // id: "0201020014",
|
| | | // },
|
| | | // ];
|
| | | });
|
| | | getFormTemplate({
|
| | | templateOid: data.oid,
|
| | | codeClassifyOid: data.codeClassifyOid,
|
| | | }).then((res) => {
|
| | | this.resembleColumList = res.data.resembleTableVO.cols[0];
|
| | | });
|
| | | },
|
| | | resembleRowChange(row) {
|
| | | getCurretnSelectedRowResemble({
|
| | | redisOid: this.redisOid + "-resemble-data",
|
| | | dataOid: row.oid,
|
| | | }).then((res) => {
|
| | | this.currentSelectedResemble = res.data
|
| | | // this.currentSelectedResemble = [
|
| | | // {
|
| | | // xinghaoguige: "XH007",
|
| | | // codetemplateoid: "f441b131-5ea0-4672-ab74-735b11161928",
|
| | | // rowIndex: "9",
|
| | | // id: "0201020012",
|
| | | // oid: "B92CFF46-1D46-E680-66C4-33A3ABE77A6C",
|
| | | // },
|
| | | // ];
|
| | | });
|
| | | },
|
| | | openFormTemlpate(row) {
|
| | | this.currentSelectedResembleRow = {
|
| | | visible: true,
|
| | | templateOid: row.codetemplateoid,
|
| | | codeClassifyOid: this.codeClassifyOid,
|
| | | rowOid: row.rowOid,
|
| | | }
|
| | | },
|
| | | },
|
| | | watch: {
|
| | |
| | | overflow-y: scroll;
|
| | | }
|
| | | }
|
| | | .right {
|
| | | margin-left: 20px;
|
| | | margin-top: 30px;
|
| | | width: 1000px;
|
| | | }
|
| | | }
|
| | | </style>
|
| | |
| | | :headers="uploadHeaders"
|
| | | :on-success="onSuccess"
|
| | | :show-file-list="false"
|
| | | :on-change="uploadChange"
|
| | | :data="{
|
| | | codeClassifyOid: this.codeClassifyOid,
|
| | | classifyAttr: this.classifyAttr,
|
| | |
| | | :loading="downloadLoading"
|
| | | >ä¸è½½å¯¼å
¥æ¨¡æ¿</el-button
|
| | | >
|
| | | <el-button size="small" @click="visible = false">å
³é</el-button>
|
| | | <el-button size="small" @click="dialogVisible = false">å
³é</el-button>
|
| | | </template>
|
| | | <ShowImportData :visible="showVisible" v-if="showVisible"></ShowImportData>
|
| | | <ShowImportData
|
| | | :visible.sync="showVisible"
|
| | | v-if="dialogVisible"
|
| | | :leftTree="leftTree"
|
| | | :redisOid="redisOid"
|
| | | ></ShowImportData>
|
| | | </el-dialog>
|
| | | </template>
|
| | |
|
| | |
| | | import {
|
| | | downloadHistoryImportTemplate,
|
| | | downloadErrorFile,
|
| | | getHistoryLeftTree
|
| | | } from "../../api/batchImport/index";
|
| | | import { getToken } from "@/util/auth";
|
| | | export default {
|
| | |
| | | uploadParams: {},
|
| | | downloadLoading: false,
|
| | | showVisible: false,
|
| | | leftTree: [],
|
| | | redisOid:'',
|
| | | pageLoading: null
|
| | | };
|
| | | },
|
| | | computed: {
|
| | |
| | | codeClassifyOid: this.codeClassifyOid,
|
| | | })
|
| | | .then((res) => {
|
| | | this.downloadLoading = false;
|
| | | this.$utilFunc.downloadFileByBlob(res.data, "å岿°æ®å¯¼å
¥æ¨¡æ¿.xls");
|
| | | this.downloadLoading = false;
|
| | | })
|
| | | .catch(() => {
|
| | | this.downloadLoading = false;
|
| | | });
|
| | | },
|
| | | onSuccess(res) {
|
| | | if (res.code === 400) {
|
| | | this.$message.error(`${res.msg}ï¼è¯·ä¸è½½é误信æ¯è¿è¡æ¥çï¼`);
|
| | | let fileName = res.data.filePath.split('/').pop()
|
| | | if (res.data.fileOid) {
|
| | | this.$message.error("请ä¸è½½éè¯¯ä¿¡æ¯æä»¶è¿è¡æ¥çï¼");
|
| | | downloadErrorFile({ uuid: res.data.fileOid }).then((res2) => {
|
| | | this.$utilFunc.downloadFileByBlob(res2.data, fileName);
|
| | | });
|
| | | }
|
| | | downloadErrorFile({ uuid: res.data.fileOid });
|
| | | if (res.data.redisUuid) {
|
| | | this.redisOid = res.data.redisUuid
|
| | | getHistoryLeftTree(res.data.redisUuid).then(res => {
|
| | | this.leftTree = res.obj.map(item => {
|
| | | return {
|
| | | ...item.codeClassifyTemplateVO,
|
| | | cloNamesList: item.cloNamesList
|
| | | }
|
| | | })
|
| | | this.showVisible = true
|
| | | })
|
| | | }
|
| | | },
|
| | | uploadChange(file) {
|
| | | if (file.status === 'ready') {
|
| | | this.pageLoading = this.$loading({
|
| | | lock: true,
|
| | | text: 'æä»¶ä¸ä¼ ä¸',
|
| | | spinner: 'el-icon-loading',
|
| | | background: 'rgba(0, 0, 0, 0.7)'
|
| | | });
|
| | | }
|
| | | if (file.status === 'success' || file.status === 'error') {
|
| | | this.pageLoading.close()
|
| | | }
|
| | | }
|
| | | },
|
| | | watch: {
|
| | | visible: {
|
| | |
| | | @submit="EditSumbit" |
| | | ></FormTemplateDialog> |
| | | <el-button plain size="small" type="primary">æ¹é导å
¥ç³è¯·</el-button> |
| | | <el-button plain size="small" type="primary">å岿°æ®å¯¼å
¥</el-button> |
| | | <el-button plain size="small" type="primary" @click="historyVisible = true">å岿°æ®å¯¼å
¥</el-button> |
| | | <el-button plain size="small" type="primary">æ¹éç³è¯·ç¼ç </el-button> |
| | | <el-button plain size="small" type="primary">æ¹éåå¸</el-button> |
| | | <el-button plain size="small" type="primary">æ¥çæµç¨åå²</el-button> |
| | |
| | | @current-change="handleCurrentChange"> |
| | | </el-pagination> |
| | | </div> |
| | | <historyImport :visible.sync="historyVisible" :codeClassifyOid="codeClassifyOid" type="historyImport"></historyImport> |
| | | </basic-container> |
| | | </template> |
| | | <script> |
| | |
| | | import integrationTransfer from '@/views/integration/integrationTransfer' |
| | | import SetPersonnel from '@/components/template/SetPersonnel' |
| | | import ResembleQueryDialog from "@/components/FormTemplate/ResembleQueryDialog.vue"; |
| | | import historyImport from '../BatchImport/index.vue' |
| | | export default { |
| | | components: { |
| | | integrationTransfer, |
| | | SetPersonnel, |
| | | ResembleQueryDialog |
| | | ResembleQueryDialog, |
| | | historyImport |
| | | }, |
| | | name: "Crud.vue", |
| | | props: { |
| | |
| | | tableHeadData: [], |
| | | items: {}, |
| | | seniorQueryColumns: [], |
| | | selectRow: [] |
| | | selectRow: [], |
| | | historyVisible: false |
| | | } |
| | | }, |
| | | computed: {}, |
| | |
| | | " |
| | | > |
| | | <el-tabs v-model="activeName" type="border-card" @tab-click="handleClick"> |
| | | <el-tab-pane label="ç å¼ç³è¯·" name="codeApply"> |
| | | <el-tab-pane label="ç å¼ç³è¯·" name="codeApply" v-if="showCodeApply"> |
| | | <FormTempalte |
| | | v-bind="$attrs" |
| | | :type="type" |
| | |
| | | </el-tab-pane> |
| | | </el-tabs> |
| | | </div> |
| | | <div class="avue-dialog__footer" v-if="type !== 'detail'"> |
| | | <el-button @click="close()">å æ¶</el-button> |
| | | <el-button @click="submit()" type="primary" :loading="submitBtnLoading">{{ |
| | | submitText |
| | | }}</el-button> |
| | | <el-button |
| | | @click="resembleQuerySubmit" |
| | | type="primary" |
| | | v-if="showResembleQuery" |
| | | >ç¸ä¼¼åæ¥è¯¢</el-button |
| | | > |
| | | </div> |
| | | <template #footer> |
| | | <div class="" v-if="type !== 'detail'"> |
| | | <el-button @click="close()" size="small">å æ¶</el-button> |
| | | <el-button |
| | | @click="submit()" |
| | | type="primary" |
| | | :loading="submitBtnLoading" |
| | | size="small" |
| | | >{{ submitText }}</el-button |
| | | > |
| | | <el-button |
| | | @click="resembleQuerySubmit" |
| | | type="primary" |
| | | size="small" |
| | | v-if="showResembleQuery" |
| | | >ç¸ä¼¼åæ¥è¯¢</el-button |
| | | > |
| | | </div> |
| | | </template> |
| | | </el-dialog> |
| | | </template> |
| | | |
| | |
| | | // è·åç å¼ç³è¯·æ°æ® |
| | | getCodeRule() { |
| | | getCodeRule({ codeClassifyOid: this.codeClassifyOid }).then((res) => { |
| | | console.log(res, "resresresresres"); |
| | | if (res.data && res.data.code === 200) { |
| | | const typeList = [ |
| | | "codefixedsec", |
| | |
| | | "coderefersec", |
| | | ]; |
| | | this.secVOList = (res.data.data.secVOList || []).filter((item) => |
| | | typeList.includes(item) |
| | | typeList.includes(item.secType) |
| | | ); |
| | | console.log(this.secVOList, "this.secVOListthis.secVOList"); |
| | | this.$nextTick(() => { |
| | | if (this.secVOList.length > 0 && this.type === "add") { |
| | | this.showCodeApply = true; |
| | |
| | | this.form |
| | | ); |
| | | if (resembleQueryList.length === 0) { |
| | | let resForm = {} |
| | | const { defaultValue, formValue } = this.getDefaultValueAndFormValues(this.form) |
| | | resForm.data = formValue |
| | | resForm = Object.assign({}, resForm, defaultValue) |
| | | resForm.secDTOList = [] |
| | | let resForm = {}; |
| | | const { defaultValue, formValue } = this.getDefaultValueAndFormValues( |
| | | this.form |
| | | ); |
| | | resForm.data = formValue; |
| | | resForm = Object.assign({}, resForm, defaultValue); |
| | | resForm.secDTOList = []; |
| | | for (const key in this.codeApplyForm) { |
| | | if (Object.hasOwnProperty.call(this.codeApplyForm, key)) { |
| | | const value = this.codeApplyForm[key]; |
| | | if (value) { |
| | | resForm.secDTOList.push({[key]: value}) |
| | | if (Object.hasOwnProperty.call(this.codeApplyForm, key)) { |
| | | const value = this.codeApplyForm[key]; |
| | | if (value) { |
| | | resForm.secDTOList.push({ [key]: value }); |
| | | } |
| | | } |
| | | } |
| | | } |
| | | this.$emit("submit", resForm); |
| | | } else { |
| | | this.$confirm( |
| | |
| | | done(); |
| | | }, |
| | | uploadAfter(res, done, loading, column) { |
| | | if(res.success){ |
| | | this.attachBox = false; |
| | | this.$message.success('æä»¶ä¸ä¼ æå') |
| | | }else{ |
| | | this.$message.error(res.msg); |
| | | } |
| | | this.attachBox = false; |
| | | this.$message.success('æä»¶ä¸ä¼ æå') |
| | | this.refreshChange(); |
| | | done(); |
| | | }, |
| | | uploadError(error, column) { |
| | | this.$message.error('ä¸ä¼ æä»¶åºç°äºå¼å¸¸') |
| | | this.$message.error(error || 'ä¸ä¼ æä»¶åºç°äºå¼å¸¸') |
| | | }, |
| | | handleDownload(row) { |
| | | //window.open(`${row.link}`); |
| | |
| | | type: "warning" |
| | | }) |
| | | .then(() => { |
| | | return remove(row.oid); |
| | | return remove(row.oid,row.oid); |
| | | }) |
| | | .then(() => { |
| | | this.onLoad(this.page); |
| | |
| | | type: "warning" |
| | | }) |
| | | .then(() => { |
| | | return remove(this.oids); |
| | | return remove(this.oids,this.oids); |
| | | }) |
| | | .then(() => { |
| | | this.onLoad(this.page); |
| | |
| | | getList(page.currentPage, page.pageSize, Object.assign(params,this.params, query,this.query)).then(res => { |
| | | const data = res.data.data; |
| | | this.page.total = data.total; |
| | | if(data && data.records.length>0 && this.options.fileDocClassifyCombox){ |
| | | if(this.options.fileDocClassifyCombox){ |
| | | this.data = data.records.map(item => { |
| | | if(validatenull(item.fileDocClassifyName)&& !validatenull(item.fileDocClassify)){ |
| | | item.fileDocClassifyName = this.options.fileDocClassifyCombox[item.fileDocClassify] || ''; |
| | |
| | | ...item |
| | | } |
| | | }) |
| | | }else{ |
| | | this.data = data.records; |
| | | } |
| | | //this.data = data.records; |
| | | |
| | | this.loading = false; |
| | | this.selectionClear(); |
| | | }).catch(error=>{ |
| | |
| | | watch: { |
| | | visible(n) { |
| | | this.dialogVisible = n; |
| | | if(n){ |
| | | this.apiInit() |
| | | this.apiDict() |
| | | if (n) { |
| | | this.apiInit() |
| | | this.apiDict() |
| | | } |
| | | }, |
| | | dialogVisible(n) { |
| | | this.$emit('update:visible', n) |
| | | }, |
| | | users:{ |
| | | handler(val){ |
| | | console.log('çå¬users',val) |
| | | this.collectParam.flowTaskUsers = val |
| | | }, |
| | | deep:true, |
| | | immediate:true |
| | | } |
| | | }, |
| | | data() { |
| | | return { |
| | |
| | | const { modelKey, templateId, modelName } = response.data.data.flow |
| | | let flowTaskUsers = response.data.data.user |
| | | this.collectParam = { modelKey, templateId, flowTaskUsers: flowTaskUsers } |
| | | this.users = response.data.data.user |
| | | console.log(this.collectParam) |
| | | this.saveParam = { ...this.saveParam, modelKey, templateId, modelName } |
| | | this.handleClickTag(this.tags[0]) |
| | | if (this.tags.length !== 0) this.handleClickTag(this.tags[0]) |
| | | } |
| | | }, |
| | | async apiDict() { |
| | |
| | | this.collectParam = { ...this.collectParam, name: value } |
| | | console.log(this.collectParam) |
| | | const response = await personnelCollect(this.collectParam) |
| | | Console.log(response) |
| | | console.log(response) |
| | | if (response.status === 200) { |
| | | this.$nextTick(() => { |
| | | this.apiInit() |
| | | }) |
| | | console.log(response) |
| | | } |
| | | }).catch(() => { |
| | | |
| | |
| | | }, |
| | | async apiSave() { |
| | | try { |
| | | const response = await personnelSave(this.saveParam) |
| | | if (response.status === 200) { |
| | | console.log(response) |
| | | const len = this.collectParam.flowTaskUsers.length |
| | | console.log(this.collectParam.flowTaskUsers) |
| | | console.log(len == 0) |
| | | console.log(len != this.initFrom.length) |
| | | if (len == 0 && len != this.initFrom.length) { |
| | | this.$message({ |
| | | type: 'success', |
| | | message: response.data.msg |
| | | type: "error", |
| | | message: "è¯·éæ©èç¹ï¼" |
| | | }); |
| | | this.done() |
| | | } else { |
| | | console.log('baoc') |
| | | const response = await personnelSave({ ...this.saveParam, flowTaskUsers: this.collectParam.flowTaskUsers }) |
| | | if (response.status === 200) { |
| | | console.log(response) |
| | | this.$message({ |
| | | type: 'success', |
| | | message: response.data.msg |
| | | }); |
| | | this.done() |
| | | } |
| | | } |
| | | |
| | | } catch { |
| | | console.error('æ¥å£è°ç¨å¤±è´¥') |
| | | } |
| | | }, |
| | | handleClickTag(event) { |
| | | console.log(event) |
| | | const flowTaskUsers = event.flowTaskUsers//collet.flowTaskUsers |
| | | let tasks = this.collectParam.flowTaskUsers;//user |
| | | for(let i=0;i<tasks.length;i++){ |
| | | let thisFlowTaskUsers = tasks[i]; |
| | | console.log('thisFlowTaskUsers',thisFlowTaskUsers) |
| | | for(let j=0;j<flowTaskUsers.length;j++){ |
| | | let thisFflowTaskUsers = flowTaskUsers[j]; |
| | | if(thisFlowTaskUsers.taskId==thisFflowTaskUsers.taskId){ |
| | | thisFlowTaskUsers['userName']=thisFflowTaskUsers.userName; |
| | | thisFlowTaskUsers['userId']=thisFflowTaskUsers.userId; |
| | | console.log(event.flowTaskUsers) |
| | | |
| | | console.log(this.collectParam.flowTaskUsers) |
| | | let flowTaskUsers = this.collectParam.flowTaskUsers |
| | | this.collectParam.flowTaskUsers = flowTaskUsers.map((item, index) => { |
| | | for (let i = 0; i < event.flowTaskUsers.length; i++) { |
| | | if (item.taskId == event.flowTaskUsers[i].taskId) { |
| | | item['userName'] = event.flowTaskUsers[i]['userName'] |
| | | item['userId'] = event.flowTaskUsers[i]['userId'] |
| | | } |
| | | } |
| | | } |
| | | console.log(this.collectParam) |
| | | return item |
| | | }) |
| | | this.users = this.collectParam.flowTaskUsers |
| | | // const flowTaskUsers = event.flowTaskUsers//collet.flowTaskUsers |
| | | // let tasks = this.collectParam.flowTaskUsers;//user |
| | | // for (let i = 0; i < tasks.length; i++) { |
| | | // let thisFlowTaskUsers = tasks[i]; |
| | | // for (let j = 0; j < flowTaskUsers.length; j++) { |
| | | // let thisFflowTaskUsers = flowTaskUsers[j]; |
| | | // if (thisFlowTaskUsers.taskId == thisFflowTaskUsers.taskId) { |
| | | // thisFlowTaskUsers['userName'] = thisFflowTaskUsers.userName; |
| | | // thisFlowTaskUsers['userId'] = thisFflowTaskUsers.userId; |
| | | // } |
| | | // } |
| | | // } |
| | | // this.collectParam.flowTaskUsers = {...this.collectParam.flowTaskUsers,userId,userName} |
| | | }, |
| | | handleCloseTag(event) { |
| | | console.log(event) |
| | |
| | | handleSelect(event, index) { |
| | | const res = this.typeName.find(item => item.userId === event) |
| | | const { userName } = res |
| | | let users = { ... this.collectParam.flowTaskUsers[index], userName } |
| | | console.log(users) |
| | | this.users[index] = users |
| | | console.log(this.users) |
| | | this.$set(this.users, index, { ... this.collectParam.flowTaskUsers[index], userName }) |
| | | // this.users[index] = { ... this.collectParam.flowTaskUsers[index], userName } |
| | | console.log(this.users) |
| | | }, |
| | | done() { |
| | | this.dialogVisible = false |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <basic-container> |
| | | <el-form ref="form" :model="form" label-width="80px"> |
| | | <el-row type="flex" class="row-bg" justify="end"> |
| | | <el-form-item> |
| | | <el-button @click="handleCancel">å
³é</el-button> |
| | | </el-form-item> |
| | | </el-row> |
| | | <el-card shadow="hover"> |
| | | <div slot="header"> |
| | | <span>审æ¹ä¿¡æ¯</span> |
| | | </div> |
| | | <el-form-item label="ç³è¯·äºº"> |
| | | <el-input :disabled="true" v-model="form.flow.assigneeName" /> |
| | | </el-form-item> |
| | | <el-row> |
| | | <el-col :span="12"> |
| | | <el-form-item label="å¼å§æ¶é´"> |
| | | <el-input :disabled="true" v-model="form.startTime" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="ç»ææ¶é´"> |
| | | <el-input :disabled="true" v-model="form.endTime" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-form-item label="请åçç±"> |
| | | <el-input :disabled="true" type="textarea" v-model="form.reason" /> |
| | | </el-form-item> |
| | | </el-card> |
| | | <el-card shadow="hover"> |
| | | <div slot="header"> |
| | | <span>æµç¨ä¿¡æ¯</span> |
| | | </div> |
| | | <el-row type="flex" class="row-bg"> |
| | | <el-timeline> |
| | | <el-timeline-item :key="flow.id" :timestamp="flow.createTime" v-for="flow in flowList" placement="top"> |
| | | <el-card shadow="hover"> |
| | | <p>{{flow.assigneeName}} å¨ [{{flow.createTime}}] å¼å§å¤ç [{{flow.historyActivityName}}] ç¯è</p> |
| | | <p v-if="flow.historyActivityDurationTime!==''">ä»»å¡åæ¶ [{{flow.historyActivityDurationTime}}]</p> |
| | | <p v-if="flow.comment!==''">æ¹å¤æè§: [{{flow.comment}}]</p> |
| | | <p v-if="flow.endTime!==''">ç»ææ¶é´: [{{flow.endTime}}]</p> |
| | | </el-card> |
| | | </el-timeline-item> |
| | | </el-timeline> |
| | | </el-row> |
| | | </el-card> |
| | | <el-card shadow="hover"> |
| | | <div slot="header"> |
| | | <span>æµç¨è·è¸ª</span> |
| | | </div> |
| | | <el-row class="row-bg"> |
| | | <flow-design :is-display="true" :process-instance-id="processInstanceId"></flow-design> |
| | | </el-row> |
| | | </el-card> |
| | | </el-form> |
| | | </basic-container> |
| | | </template> |
| | | |
| | | <script> |
| | | import {historyFlowList, leaveDetail} from "@/api/work/process"; |
| | | |
| | | export default { |
| | | data() { |
| | | return { |
| | | businessId: '', |
| | | processInstanceId: '', |
| | | src: '', |
| | | flowList: [], |
| | | form: { |
| | | flow:{ |
| | | assigneeName:'', |
| | | }, |
| | | startTime: '', |
| | | endTime: '', |
| | | reason: '', |
| | | } |
| | | } |
| | | }, |
| | | created() { |
| | | this.init(); |
| | | }, |
| | | methods: { |
| | | init() { |
| | | this.processInstanceId = this.$route.params.processInstanceId; |
| | | this.businessId = this.$route.params.businessId; |
| | | historyFlowList(this.processInstanceId).then(res => { |
| | | const data = res.data; |
| | | if (data.success) { |
| | | this.flowList = data.data; |
| | | } |
| | | }) |
| | | leaveDetail(this.businessId).then(res => { |
| | | const data = res.data; |
| | | if (data.success) { |
| | | this.form = data.data; |
| | | } |
| | | }) |
| | | }, |
| | | handleCancel() { |
| | | this.$router.$avueRouter.closeTag(); |
| | | this.$router.push({path: `/work/start`}); |
| | | } |
| | | } |
| | | } |
| | | </script> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <div> |
| | | <basic-container> |
| | | <avue-form :option="option" v-model="form" @submit="handleSubmit"/> |
| | | </basic-container> |
| | | <basic-container> |
| | | <flow-design :is-display="true" :process-definition-id="processDefinitionId"></flow-design> |
| | | </basic-container> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import {leaveProcess} from "@/api/work/process"; |
| | | |
| | | export default { |
| | | data() { |
| | | return { |
| | | processDefinitionId: '', |
| | | form: {}, |
| | | option: { |
| | | group: [ |
| | | { |
| | | icon: 'el-icon-info', |
| | | label: '请ååºç¡ä¿¡æ¯', |
| | | prop: 'group1', |
| | | column: [ |
| | | { |
| | | label: '审æ¹äººå', |
| | | prop: 'taskUser', |
| | | type: 'select', |
| | | dicUrl: `/api/ubcs-user/user-list`, |
| | | props: { |
| | | label: "account", |
| | | value: "id" |
| | | }, |
| | | span: 24, |
| | | rules: [ |
| | | { |
| | | required: true, |
| | | message: 'è¯·éæ©å®¡æ¹äººå', |
| | | trigger: 'blur' |
| | | } |
| | | ] |
| | | }, |
| | | { |
| | | label: 'å¼å§æ¶é´', |
| | | prop: 'startTime', |
| | | type: 'datetime', |
| | | valueFormat: 'yyyy-MM-dd HH:mm:ss', |
| | | rules: [ |
| | | { |
| | | required: true, |
| | | message: 'è¯·éæ©å¼å§æ¶é´', |
| | | trigger: 'blur' |
| | | } |
| | | ] |
| | | }, |
| | | { |
| | | label: 'ç»ææ¶é´', |
| | | prop: 'endTime', |
| | | type: 'datetime', |
| | | valueFormat: 'yyyy-MM-dd HH:mm:ss', |
| | | rules: [ |
| | | { |
| | | required: true, |
| | | message: 'è¯·éæ©ç»ææ¶é´', |
| | | trigger: 'blur' |
| | | } |
| | | ] |
| | | }, |
| | | { |
| | | label: '请åçç±', |
| | | prop: 'reason', |
| | | type: 'textarea', |
| | | span: 24, |
| | | rules: [ |
| | | { |
| | | required: true, |
| | | message: '请è¾å
¥è¯·åçç±', |
| | | trigger: 'blur' |
| | | } |
| | | ] |
| | | }, |
| | | ] |
| | | }, |
| | | ], |
| | | } |
| | | } |
| | | }, |
| | | created() { |
| | | this.processDefinitionId = this.$route.params.processDefinitionId; |
| | | }, |
| | | methods: { |
| | | handleSubmit() { |
| | | const params = { |
| | | processDefinitionId: this.$route.params.processDefinitionId, |
| | | ...this.form, |
| | | }; |
| | | leaveProcess(params).then(resp => { |
| | | const data = resp.data; |
| | | if (data.success) { |
| | | this.$message.success(data.msg); |
| | | this.$router.$avueRouter.closeTag(); |
| | | this.$router.push({path: `/work/start`}); |
| | | } else { |
| | | this.$message.error(data.msg || 'æäº¤å¤±è´¥'); |
| | | } |
| | | }); |
| | | } |
| | | } |
| | | } |
| | | </script> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <basic-container> |
| | | <el-form ref="form" :model="form" :rules="rules" label-width="80px"> |
| | | <el-row type="flex" class="row-bg" justify="end"> |
| | | <el-form-item> |
| | | <el-button type="primary" @click="handleAgree">åæ</el-button> |
| | | <el-button type="danger" @click="handleDisagree">驳å</el-button> |
| | | <el-button @click="handleCancel">å
³é</el-button> |
| | | </el-form-item> |
| | | </el-row> |
| | | <el-card shadow="hover"> |
| | | <div slot="header"> |
| | | <span>审æ¹ä¿¡æ¯</span> |
| | | </div> |
| | | <el-form-item label="ç³è¯·äºº"> |
| | | <el-input :disabled="true" v-model="form.flow.assigneeName"/> |
| | | </el-form-item> |
| | | <el-row> |
| | | <el-col :span="12"> |
| | | <el-form-item label="å¼å§æ¶é´"> |
| | | <el-input :disabled="true" v-model="form.startTime"/> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="ç»ææ¶é´"> |
| | | <el-input :disabled="true" v-model="form.endTime"/> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-form-item label="请åçç±"> |
| | | <el-input :disabled="true" type="textarea" v-model="form.reason"/> |
| | | </el-form-item> |
| | | <el-form-item label="æ¹å¤æè§"> |
| | | <el-input type="textarea" v-model="form.comment"/> |
| | | </el-form-item> |
| | | </el-card> |
| | | <el-card shadow="hover"> |
| | | <div slot="header"> |
| | | <span>æµç¨ä¿¡æ¯</span> |
| | | </div> |
| | | <el-row type="flex" class="row-bg"> |
| | | <el-timeline> |
| | | <el-timeline-item :key="flow.id" :timestamp="flow.createTime" v-for="flow in flowList" placement="top"> |
| | | <el-card shadow="hover"> |
| | | <p>{{flow.assigneeName}} å¨ [{{flow.createTime}}] å¼å§å¤ç [{{flow.historyActivityName}}] ç¯è</p> |
| | | <p v-if="flow.historyActivityDurationTime!==''">ä»»å¡åæ¶ [{{flow.historyActivityDurationTime}}]</p> |
| | | <p v-if="flow.comment!==''">æ¹å¤æè§: [{{flow.comment}}]</p> |
| | | <p v-if="flow.endTime!==''">ç»ææ¶é´: [{{flow.endTime}}]</p> |
| | | </el-card> |
| | | </el-timeline-item> |
| | | </el-timeline> |
| | | </el-row> |
| | | </el-card> |
| | | <el-card shadow="hover"> |
| | | <div slot="header"> |
| | | <span>æµç¨è·è¸ª</span> |
| | | </div> |
| | | <el-row class="row-bg"> |
| | | <flow-design :is-display="true" :process-instance-id="processInstanceId"></flow-design> |
| | | </el-row> |
| | | </el-card> |
| | | </el-form> |
| | | </basic-container> |
| | | </template> |
| | | |
| | | <script> |
| | | import {historyFlowList, leaveDetail} from "@/api/work/process"; |
| | | import {completeTask} from "@/api/work/work"; |
| | | |
| | | export default { |
| | | data() { |
| | | return { |
| | | taskId: '', |
| | | businessId: '', |
| | | processInstanceId: '', |
| | | src: '', |
| | | flowList: [], |
| | | form: { |
| | | flow: { |
| | | assigneeName: '', |
| | | }, |
| | | startTime: '', |
| | | endTime: '', |
| | | reason: '', |
| | | comment: '', |
| | | }, |
| | | } |
| | | }, |
| | | created() { |
| | | this.init(); |
| | | }, |
| | | beforeRouteUpdate(to, from, next) { |
| | | // å¨å½åè·¯ç±æ¹åï¼ä½æ¯è¯¥ç»ä»¶è¢«å¤ç¨æ¶è°ç¨ |
| | | // 䏾便¥è¯´ï¼å¯¹äºä¸ä¸ªå¸¦æå¨æåæ°çè·¯å¾ /foo/:idï¼å¨ /foo/1 å /foo/2 ä¹é´è·³è½¬çæ¶å |
| | | // ç±äºä¼æ¸²æåæ ·ç Foo ç»ä»¶ï¼å æ¤ç»ä»¶å®ä¾ä¼è¢«å¤ç¨ãèè¿ä¸ªé©åå°±ä¼å¨è¿ä¸ªæ
åµä¸è¢«è°ç¨ |
| | | // å¯ä»¥è®¿é®ç»ä»¶å®ä¾ `this` |
| | | if (to.fullPath !== from.fullPath) { |
| | | next(); |
| | | this.init(); |
| | | } |
| | | }, |
| | | methods: { |
| | | init() { |
| | | this.taskId = this.$route.params.taskId; |
| | | this.processInstanceId = this.$route.params.processInstanceId; |
| | | this.businessId = this.$route.params.businessId; |
| | | historyFlowList(this.processInstanceId).then(res => { |
| | | const data = res.data; |
| | | if (data.success) { |
| | | this.flowList = data.data; |
| | | } |
| | | }) |
| | | leaveDetail(this.businessId).then(res => { |
| | | const data = res.data; |
| | | if (data.success) { |
| | | this.form = data.data; |
| | | } |
| | | }) |
| | | }, |
| | | handleAgree() { |
| | | if (!this.form.comment) { |
| | | this.$message.warning('请å
填忹夿è§'); |
| | | return; |
| | | } |
| | | const params = { |
| | | taskId: this.taskId, |
| | | processInstanceId: this.processInstanceId, |
| | | flag: 'ok', |
| | | comment: this.form.comment, |
| | | }; |
| | | completeTask(params).then(res => { |
| | | const data = res.data; |
| | | if (data.success) { |
| | | this.$message.success(data.msg); |
| | | this.$router.$avueRouter.closeTag(); |
| | | this.$router.push({path: `/work/start`}); |
| | | } else { |
| | | this.$message.error(data.msg || 'æäº¤å¤±è´¥'); |
| | | } |
| | | }) |
| | | }, |
| | | handleDisagree() { |
| | | if (!this.form.comment) { |
| | | this.$message.warning('请å
填忹夿è§'); |
| | | return; |
| | | } |
| | | const params = { |
| | | taskId: this.taskId, |
| | | processInstanceId: this.processInstanceId, |
| | | comment: this.form.comment, |
| | | }; |
| | | completeTask(params).then(res => { |
| | | const data = res.data; |
| | | if (data.success) { |
| | | this.$message.success(data.msg); |
| | | this.$router.$avueRouter.closeTag(); |
| | | this.$router.push({path: `/work/start`}); |
| | | } else { |
| | | this.$message.error(data.msg || 'æäº¤å¤±è´¥'); |
| | | } |
| | | }) |
| | | }, |
| | | handleCancel() { |
| | | this.$router.$avueRouter.closeTag(); |
| | | this.$router.push({path: `/work/start`}); |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | |
| | | // target: 'http://192.168.1.51:37000', |
| | | //target: 'http://192.168.1.46:37000', |
| | | // target: 'http://dev.vci-tech.com:37000', |
| | | // target: 'http://192.168.1.51:37000/', |
| | | // target: 'http://192.168.1.104:37000', |
| | | // target: 'http://192.168.1.63:37000', |
| | | //target: 'http://192.168.3.7:37000', |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.dto; |
| | | |
| | | |
| | | import com.vci.ubcs.starter.revision.model.BaseModel; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * ç³»ç»éææ¥å£çè®¤è¯æ°æ®ä¼ è¾å¯¹è±¡ |
| | | * |
| | | * @author xiejun |
| | | * @date 2023-06-21 |
| | | */ |
| | | @Data |
| | | public class DockingSysIntHeaderDTO extends BaseModel { |
| | | |
| | | /** |
| | | * ç¦æ¢ä¿®æ¹è¿ä¸ªå¼ |
| | | */ |
| | | private static final long serialVersionUID = 4615707117695864945L; |
| | | |
| | | /** |
| | | * SysIntInfoDO çoid |
| | | */ |
| | | private String infoOid; |
| | | |
| | | /** |
| | | * åæ°key |
| | | */ |
| | | private String headerKey; |
| | | |
| | | /** |
| | | * åæ°value |
| | | */ |
| | | private String headerValue; |
| | | |
| | | /** |
| | | * æ¯å¦ä½¿ç¨ |
| | | */ |
| | | private String usedFlag; |
| | | |
| | | |
| | | /*** |
| | | * æ¯å¦ä½¿ç¨æ¾ç¤ºææ¬ |
| | | */ |
| | | private String usedFlagText; |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return "DockingSysIntHeaderDTO{" + |
| | | "infoOid='" + infoOid + '\'' + |
| | | ", headerKey='" + headerKey + '\'' + |
| | | ", headerValue='" + headerValue + '\'' + |
| | | ", usedFlag='" + usedFlag + '\'' + |
| | | ", usedFlagText='" + usedFlagText + '\'' + |
| | | '}'; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.dto; |
| | | |
| | | |
| | | import com.vci.ubcs.starter.revision.model.BaseModel; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * ç³»ç»éææ¥å£çè®¤è¯æ°æ®ä¼ è¾å¯¹è±¡ |
| | | * |
| | | * @author weidy |
| | | * @date 2022-04-11 |
| | | */ |
| | | @Data |
| | | public class DockingSysIntParamDTO extends BaseModel { |
| | | |
| | | /** |
| | | * ç¦æ¢ä¿®æ¹è¿ä¸ªå¼ |
| | | */ |
| | | private static final long serialVersionUID = 4615707120661255093L; |
| | | |
| | | /** |
| | | * SysIntInfoDO çoid |
| | | */ |
| | | private String infoOid; |
| | | |
| | | /** |
| | | * åæ°key |
| | | */ |
| | | private String paramkey; |
| | | |
| | | /** |
| | | * åæ°value |
| | | */ |
| | | private String paramvalue; |
| | | |
| | | /** |
| | | * æ¯å¦ä½¿ç¨ |
| | | */ |
| | | private String usedflag; |
| | | |
| | | |
| | | /*** |
| | | * æ¯å¦ä½¿ç¨æ¾ç¤ºææ¬ |
| | | */ |
| | | private String usedFlagText; |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return "DockingSysIntParamDTO{" + |
| | | "infoOid='" + infoOid + '\'' + |
| | | ", paramkey='" + paramkey + '\'' + |
| | | ", paramvalue='" + paramvalue + '\'' + |
| | | ", usedflag='" + usedflag + '\'' + |
| | | ", usedFlagText='" + usedFlagText + '\'' + |
| | | '}'; |
| | | } |
| | | } |
| | |
| | | package com.vci.ubcs.code.dto; |
| | | |
| | | |
| | | import com.vci.ubcs.code.vo.pagemodel.SysIntHeaderVO; |
| | | import com.vci.ubcs.code.vo.pagemodel.SysIntParamVO; |
| | | import com.vci.ubcs.code.vo.pagemodel.DockingSysIntHeaderVO; |
| | | import com.vci.ubcs.code.vo.pagemodel.DockingSysIntParamVO; |
| | | import com.vci.ubcs.starter.revision.model.BaseModel; |
| | | import lombok.Data; |
| | | |
| | | import java.util.List; |
| | | |
| | |
| | | * @author lihang |
| | | * @date 2022-03-07 |
| | | */ |
| | | @Data |
| | | public class DockingSystemConfigDTO extends BaseModel { |
| | | |
| | | /** |
| | |
| | | /*** |
| | | * åæ°ä¿¡æ¯å¯¹è±¡ |
| | | */ |
| | | private List<SysIntParamVO> sysIntParamVOs; |
| | | private List<DockingSysIntParamDTO> sysIntParamDTOS; |
| | | /*** |
| | | * headerä¿¡æ¯å¯¹è±¡ |
| | | */ |
| | | private List<SysIntHeaderVO> sysIntHeaderVOs; |
| | | |
| | | public String getAuthorityOid() { |
| | | return authorityOid; |
| | | } |
| | | |
| | | public void setAuthorityOid(String authorityOid) { |
| | | this.authorityOid = authorityOid; |
| | | } |
| | | |
| | | public String getAuthorityOidName() { |
| | | return authorityOidName; |
| | | } |
| | | |
| | | public void setAuthorityOidName(String authorityOidName) { |
| | | this.authorityOidName = authorityOidName; |
| | | } |
| | | |
| | | public String getAuthorityType() { |
| | | return authorityType; |
| | | } |
| | | |
| | | public void setAuthorityType(String authorityType) { |
| | | this.authorityType = authorityType; |
| | | } |
| | | |
| | | public String getAuthorityTypeText() { |
| | | return authorityTypeText; |
| | | } |
| | | |
| | | public void setAuthorityTypeText(String authorityTypeText) { |
| | | this.authorityTypeText = authorityTypeText; |
| | | } |
| | | |
| | | public String getUserAccount() { |
| | | return userAccount; |
| | | } |
| | | |
| | | public void setUserAccount(String userAccount) { |
| | | this.userAccount = userAccount; |
| | | } |
| | | |
| | | public String getUserCode() { |
| | | return userCode; |
| | | } |
| | | |
| | | public void setUserCode(String userCode) { |
| | | this.userCode = userCode; |
| | | } |
| | | |
| | | public String getToken() { |
| | | return token; |
| | | } |
| | | |
| | | public void setToken(String token) { |
| | | this.token = token; |
| | | } |
| | | |
| | | public String getInterfaceFunction() { |
| | | return interfaceFunction; |
| | | } |
| | | |
| | | public void setInterfaceFunction(String interfaceFunction) { |
| | | this.interfaceFunction = interfaceFunction; |
| | | } |
| | | |
| | | @Override |
| | | public String getDescription() { |
| | | return description; |
| | | } |
| | | |
| | | @Override |
| | | public void setDescription(String description) { |
| | | this.description = description; |
| | | } |
| | | |
| | | public String getInterfaceType() { |
| | | return interfaceType; |
| | | } |
| | | |
| | | public void setInterfaceType(String interfaceType) { |
| | | this.interfaceType = interfaceType; |
| | | } |
| | | |
| | | public String getInterfaceTypeText() { |
| | | return interfaceTypeText; |
| | | } |
| | | |
| | | public void setInterfaceTypeText(String interfaceTypeText) { |
| | | this.interfaceTypeText = interfaceTypeText; |
| | | } |
| | | |
| | | public String getParamType() { |
| | | return paramType; |
| | | } |
| | | |
| | | public void setParamType(String paramType) { |
| | | this.paramType = paramType; |
| | | } |
| | | |
| | | public String getParamTypeText() { |
| | | return paramTypeText; |
| | | } |
| | | |
| | | public void setParamTypeText(String paramTypeText) { |
| | | this.paramTypeText = paramTypeText; |
| | | } |
| | | |
| | | public String getRequestMethod() { |
| | | return requestMethod; |
| | | } |
| | | |
| | | public void setRequestMethod(String requestMethod) { |
| | | this.requestMethod = requestMethod; |
| | | } |
| | | |
| | | public String getRequestMethodText() { |
| | | return requestMethodText; |
| | | } |
| | | |
| | | public void setRequestMethodText(String requestMethodText) { |
| | | this.requestMethodText = requestMethodText; |
| | | } |
| | | |
| | | public String getClassifyOid() { |
| | | return classifyOid; |
| | | } |
| | | |
| | | public void setClassifyOid(String classifyOid) { |
| | | this.classifyOid = classifyOid; |
| | | } |
| | | |
| | | public String getUsedFlag() { |
| | | return usedFlag; |
| | | } |
| | | |
| | | public void setUsedFlag(String usedFlag) { |
| | | this.usedFlag = usedFlag; |
| | | } |
| | | |
| | | public String getSysBaseOid() { |
| | | return sysBaseOid; |
| | | } |
| | | |
| | | public void setSysBaseOid(String sysBaseOid) { |
| | | this.sysBaseOid = sysBaseOid; |
| | | } |
| | | |
| | | public String getSysBaseId() { |
| | | return sysBaseId; |
| | | } |
| | | |
| | | public void setSysBaseId(String sysBaseId) { |
| | | this.sysBaseId = sysBaseId; |
| | | } |
| | | |
| | | public String getSysBaseName() { |
| | | return sysBaseName; |
| | | } |
| | | |
| | | public void setSysBaseName(String sysBaseName) { |
| | | this.sysBaseName = sysBaseName; |
| | | } |
| | | |
| | | public String getRequestUrl() { |
| | | return requestUrl; |
| | | } |
| | | |
| | | public void setRequestUrl(String requestUrl) { |
| | | this.requestUrl = requestUrl; |
| | | } |
| | | |
| | | public String getReturnType() { |
| | | return returnType; |
| | | } |
| | | |
| | | public void setReturnType(String returnType) { |
| | | this.returnType = returnType; |
| | | } |
| | | |
| | | public String getReturnTypeText() { |
| | | return returnTypeText; |
| | | } |
| | | |
| | | public void setReturnTypeText(String returnTypeText) { |
| | | this.returnTypeText = returnTypeText; |
| | | } |
| | | |
| | | public String getSourceSystemOid() { |
| | | return sourceSystemOid; |
| | | } |
| | | |
| | | public void setSourceSystemOid(String sourceSystemOid) { |
| | | this.sourceSystemOid = sourceSystemOid; |
| | | } |
| | | |
| | | public String getSourceSysName() { |
| | | return sourceSysName; |
| | | } |
| | | |
| | | public void setSourceSysName(String sourceSysName) { |
| | | this.sourceSysName = sourceSysName; |
| | | } |
| | | |
| | | public String getSourceSysId() { |
| | | return sourceSysId; |
| | | } |
| | | |
| | | public void setSourceSysId(String sourceSysId) { |
| | | this.sourceSysId = sourceSysId; |
| | | } |
| | | |
| | | public String getSourceSystemOidName() { |
| | | return sourceSystemOidName; |
| | | } |
| | | |
| | | public void setSourceSystemOidName(String sourceSystemOidName) { |
| | | this.sourceSystemOidName = sourceSystemOidName; |
| | | } |
| | | |
| | | public String getTargetSystemOid() { |
| | | return targetSystemOid; |
| | | } |
| | | |
| | | public void setTargetSystemOid(String targetSystemOid) { |
| | | this.targetSystemOid = targetSystemOid; |
| | | } |
| | | |
| | | public String getTargetSysName() { |
| | | return targetSysName; |
| | | } |
| | | |
| | | public void setTargetSysName(String targetSysName) { |
| | | this.targetSysName = targetSysName; |
| | | } |
| | | |
| | | public String getTargetSysId() { |
| | | return targetSysId; |
| | | } |
| | | |
| | | public void setTargetSysId(String targetSysId) { |
| | | this.targetSysId = targetSysId; |
| | | } |
| | | |
| | | public String getTargetSystemOidName() { |
| | | return targetSystemOidName; |
| | | } |
| | | |
| | | public void setTargetSystemOidName(String targetSystemOidName) { |
| | | this.targetSystemOidName = targetSystemOidName; |
| | | } |
| | | |
| | | public String getClassPath() { |
| | | return classPath; |
| | | } |
| | | |
| | | public void setClassPath(String classPath) { |
| | | this.classPath = classPath; |
| | | } |
| | | |
| | | public String getDataFlowType() { |
| | | return dataFlowType; |
| | | } |
| | | |
| | | public void setDataFlowType(String dataFlowType) { |
| | | this.dataFlowType = dataFlowType; |
| | | } |
| | | |
| | | public String getDataFlowTypeText() { |
| | | return dataFlowTypeText; |
| | | } |
| | | |
| | | public void setDataFlowTypeText(String dataFlowTypeText) { |
| | | this.dataFlowTypeText = dataFlowTypeText; |
| | | } |
| | | |
| | | public String getBtmTypeId() { |
| | | return btmTypeId; |
| | | } |
| | | |
| | | public void setBtmTypeId(String btmTypeId) { |
| | | this.btmTypeId = btmTypeId; |
| | | } |
| | | |
| | | public String getBtmTypeName() { |
| | | return btmTypeName; |
| | | } |
| | | |
| | | public void setBtmTypeName(String btmTypeName) { |
| | | this.btmTypeName = btmTypeName; |
| | | } |
| | | |
| | | public String getNamespace() { |
| | | return namespace; |
| | | } |
| | | |
| | | public void setNamespace(String namespace) { |
| | | this.namespace = namespace; |
| | | } |
| | | |
| | | public String getSoapAction() { |
| | | return soapAction; |
| | | } |
| | | |
| | | public void setSoapAction(String soapAction) { |
| | | this.soapAction = soapAction; |
| | | } |
| | | |
| | | public String getCxfAxis() { |
| | | return cxfAxis; |
| | | } |
| | | |
| | | public void setCxfAxis(String cxfAxis) { |
| | | this.cxfAxis = cxfAxis; |
| | | } |
| | | |
| | | public String getTargetName() { |
| | | return targetName; |
| | | } |
| | | |
| | | public void setTargetName(String targetName) { |
| | | this.targetName = targetName; |
| | | } |
| | | |
| | | public String getPushType() { |
| | | return pushType; |
| | | } |
| | | |
| | | public void setPushType(String pushType) { |
| | | this.pushType = pushType; |
| | | } |
| | | |
| | | public String getPushTypeText() { |
| | | return pushTypeText; |
| | | } |
| | | |
| | | public void setPushTypeText(String pushTypeText) { |
| | | this.pushTypeText = pushTypeText; |
| | | } |
| | | |
| | | public String getClassifyId() { |
| | | return classifyId; |
| | | } |
| | | |
| | | public void setClassifyId(String classifyId) { |
| | | this.classifyId = classifyId; |
| | | } |
| | | |
| | | public String getClassifyName() { |
| | | return classifyName; |
| | | } |
| | | |
| | | public void setClassifyName(String classifyName) { |
| | | this.classifyName = classifyName; |
| | | } |
| | | |
| | | public List<SysIntParamVO> getSysIntParamVOs() { |
| | | return sysIntParamVOs; |
| | | } |
| | | |
| | | public void setSysIntParamVOs(List<SysIntParamVO> sysIntParamVOs) { |
| | | this.sysIntParamVOs = sysIntParamVOs; |
| | | } |
| | | |
| | | public List<SysIntHeaderVO> getSysIntHeaderVOs() { |
| | | return sysIntHeaderVOs; |
| | | } |
| | | private List<DockingSysIntHeaderDTO> sysIntHeaderDTOS; |
| | | |
| | | public void setSysIntHeaderVOs(List<SysIntHeaderVO> sysIntHeaderVOs) { |
| | | this.sysIntHeaderVOs = sysIntHeaderVOs; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | |
| | | ", pushTypeText='" + pushTypeText + '\'' + |
| | | ", classifyId='" + classifyId + '\'' + |
| | | ", classifyName='" + classifyName + '\'' + |
| | | ", sysIntParamVOs=" + sysIntParamVOs + |
| | | ", sysIntHeaderVOs=" + sysIntHeaderVOs + |
| | | ", sysIntParamDTOS=" + sysIntParamDTOS + |
| | | ", sysIntHeaderDTOS=" + sysIntHeaderDTOS + |
| | | '}'; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.entity; |
| | | |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.vci.ubcs.starter.constant.CodeTableNameConstant; |
| | | import com.vci.ubcs.starter.revision.model.BaseModel; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | |
| | | /**** |
| | | * æ¥å£å¤´åè®® |
| | | */ |
| | | @Data |
| | | @TableName(CodeTableNameConstant.PL_CODE_SYSINTPAREMTER) |
| | | @ApiModel(value = "DockingSysIntHeader", description = "éææ¥å£-æ¥å£å¤´å议对象") |
| | | @EqualsAndHashCode(callSuper = true) |
| | | public class DockingSysIntHeader extends BaseModel { |
| | | |
| | | /** |
| | | * ç¦æ¢ä¿®æ¹è¿ä¸ªå¼ |
| | | */ |
| | | private static final long serialVersionUID = 4615707117938037102L; |
| | | |
| | | /** |
| | | * SysIntInfoDO çoid |
| | | */ |
| | | @ApiModelProperty(value = "é
置主é®") |
| | | |
| | | private String infoOid; |
| | | |
| | | /** |
| | | * åæ°key |
| | | */ |
| | | @ApiModelProperty(value = "é
置主é®") |
| | | private String headerKey; |
| | | |
| | | /** |
| | | * åæ°value |
| | | */ |
| | | @ApiModelProperty(value = "é
置主é®") |
| | | @TableField(value = "headeralue") |
| | | private String headerValue; |
| | | |
| | | /** |
| | | * æ¯å¦ä½¿ç¨ |
| | | */ |
| | | @ApiModelProperty(value = "é
置主é®") |
| | | private String usedFlag; |
| | | |
| | | /** |
| | | * æ¯å¦ä½¿ç¨ |
| | | */ |
| | | @ApiModelProperty(value = "é
置主é®") |
| | | @TableField(exist = true) |
| | | private String usedFlagText; |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.entity; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.vci.ubcs.starter.constant.CodeTableNameConstant; |
| | | import com.vci.ubcs.starter.revision.model.BaseModel; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | |
| | | /** |
| | | * ç³»ç»éææ¥å£çåæ°å¯¹è±¡ |
| | | * |
| | | * @author weidy |
| | | * @date 2022-04-11 |
| | | */ |
| | | @Data |
| | | @TableName(CodeTableNameConstant.PL_CODE_SYSINTPAREMTER) |
| | | @ApiModel(value = "DockingSysIntParam", description = "éææ¥å£-æ¥å£çåæ°å¯¹è±¡") |
| | | @EqualsAndHashCode(callSuper = true) |
| | | public class DockingSysIntParam extends BaseModel { |
| | | |
| | | /** |
| | | * ç¦æ¢ä¿®æ¹è¿ä¸ªå¼ |
| | | */ |
| | | private static final long serialVersionUID = 4615707118871819648L; |
| | | |
| | | /** |
| | | * SysIntInfoDO çoid |
| | | */ |
| | | @ApiModelProperty(value = "æ¥å£é
置主é®") |
| | | private String infoOid; |
| | | |
| | | /** |
| | | * åæ°key |
| | | */ |
| | | @ApiModelProperty(value = "åæ°key") |
| | | private String paramKey; |
| | | |
| | | /** |
| | | * åæ°value |
| | | */ |
| | | @ApiModelProperty(value = "åæ°value") |
| | | private String paramValue; |
| | | /** |
| | | * æ¯å¦ä½¿ç¨ |
| | | */ |
| | | @ApiModelProperty(value = "æ¯å¦ä½¿ç¨") |
| | | private String usedFlag; |
| | | /** |
| | | * æ¯å¦ä½¿ç¨æ¾ç¤ºå¼ |
| | | */ |
| | | @ApiModelProperty(value = "æ¯å¦ä½¿ç¨æ¾ç¤ºå¼") |
| | | @TableField(exist = true) |
| | | private String usedFlagText; |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return "DockingSysIntParamVO{" + |
| | | "infoOid='" + infoOid + '\'' + |
| | | ", paramKey='" + paramKey + '\'' + |
| | | ", paramValue='" + paramValue + '\'' + |
| | | '}'; |
| | | } |
| | | } |
| | |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.vci.ubcs.code.vo.pagemodel.SysIntHeaderVO; |
| | | import com.vci.ubcs.code.vo.pagemodel.SysIntParamVO; |
| | | import com.vci.ubcs.starter.constant.CodeTableNameConstant; |
| | | import com.vci.ubcs.starter.revision.model.BaseModel; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | |
| | | import java.util.List; |
| | | |
| | | /*** |
| | | * éææ¥å£-éææ¥å£ç®¡ç对象 |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.vo.pagemodel; |
| | | |
| | | import com.vci.ubcs.starter.revision.model.BaseModel; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * ç³»ç»éææ¥å£çè®¤è¯æ¾ç¤ºå¯¹è±¡ |
| | | * |
| | | * @author weidy |
| | | * @date 2022-04-11 |
| | | */ |
| | | @Data |
| | | public class DockingSysIntHeaderVO extends BaseModel { |
| | | |
| | | /** |
| | | * ç¦æ¢ä¿®æ¹è¿ä¸ªå¼ |
| | | */ |
| | | private static final long serialVersionUID = 4615707117938037102L; |
| | | |
| | | /** |
| | | * SysIntInfoDO çoid |
| | | */ |
| | | private String infoOid; |
| | | |
| | | /** |
| | | * åæ°key |
| | | */ |
| | | private String headerKey; |
| | | |
| | | /** |
| | | * åæ°value |
| | | */ |
| | | private String headerValue; |
| | | |
| | | /** |
| | | * æ¯å¦ä½¿ç¨ |
| | | */ |
| | | private String usedFlag; |
| | | |
| | | /*** |
| | | * æ¯å¦ä½¿ç¨æ¾ç¤ºææ¬ |
| | | */ |
| | | private String usedFlagText; |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return "DockingSysIntHeaderVO{" + |
| | | "infoOid='" + infoOid + '\'' + |
| | | ", headerKey='" + headerKey + '\'' + |
| | | ", headerValue='" + headerValue + '\'' + |
| | | ", usedFlag='" + usedFlag + '\'' + |
| | | ", usedFlagText='" + usedFlagText + '\'' + |
| | | '}'; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.vo.pagemodel; |
| | | |
| | | |
| | | import com.vci.ubcs.starter.revision.model.BaseModel; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * ç³»ç»éææ¥å£çè®¤è¯æ¾ç¤ºå¯¹è±¡ |
| | | * |
| | | * @author xiejun |
| | | * @date 2023-06-21 |
| | | */ |
| | | @Data |
| | | public class DockingSysIntParamVO extends BaseModel { |
| | | |
| | | /** |
| | | * ç¦æ¢ä¿®æ¹è¿ä¸ªå¼ |
| | | */ |
| | | private static final long serialVersionUID = 4615707118871819648L; |
| | | |
| | | /** |
| | | * SysIntInfoDO çoid |
| | | */ |
| | | private String infoOid; |
| | | |
| | | /** |
| | | * åæ°key |
| | | */ |
| | | private String paramKey; |
| | | |
| | | /** |
| | | * åæ°value |
| | | */ |
| | | private String paramValue; |
| | | /*** |
| | | * æ¯å¦ä½¿ç¨ |
| | | */ |
| | | private String usedFlag; |
| | | /*** |
| | | * æ¯å¦ä½¿ç¨æ¾ç¤ºææ¬ |
| | | */ |
| | | private String usedFlagText; |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return "DockingSysIntParamVO{" + |
| | | "infoOid='" + infoOid + '\'' + |
| | | ", paramKey='" + paramKey + '\'' + |
| | | ", paramValue='" + paramValue + '\'' + |
| | | ", usedFlag='" + usedFlag + '\'' + |
| | | ", usedFlagText='" + usedFlagText + '\'' + |
| | | '}'; |
| | | } |
| | | } |
| | |
| | | /*** |
| | | * åæ°ä¿¡æ¯å¯¹è±¡ |
| | | */ |
| | | private List<SysIntParamVO> sysIntParamVOs; |
| | | private List<DockingSysIntParamVO> sysIntParamVOs; |
| | | /*** |
| | | * headerä¿¡æ¯å¯¹è±¡ |
| | | */ |
| | | private List<SysIntHeaderVO> sysIntHeaderVOs; |
| | | private List<DockingSysIntHeaderVO> sysIntHeaderVOs; |
| | | |
| | | |
| | | public String getAuthorityOid() { |
| | |
| | | this.classifyName = classifyName; |
| | | } |
| | | |
| | | public List<SysIntParamVO> getSysIntParamVOs() { |
| | | public List<DockingSysIntParamVO> getSysIntParamVOs() { |
| | | return sysIntParamVOs; |
| | | } |
| | | |
| | | public void setSysIntParamVOs(List<SysIntParamVO> sysIntParamVOs) { |
| | | public void setSysIntParamVOs(List<DockingSysIntParamVO> sysIntParamVOs) { |
| | | this.sysIntParamVOs = sysIntParamVOs; |
| | | } |
| | | |
| | | public List<SysIntHeaderVO> getSysIntHeaderVOs() { |
| | | public List<DockingSysIntHeaderVO> getSysIntHeaderVOs() { |
| | | return sysIntHeaderVOs; |
| | | } |
| | | |
| | | public void setSysIntHeaderVOs(List<SysIntHeaderVO> sysIntHeaderVOs) { |
| | | public void setSysIntHeaderVOs(List<DockingSysIntHeaderVO> sysIntHeaderVOs) { |
| | | this.sysIntHeaderVOs = sysIntHeaderVOs; |
| | | } |
| | | |
| | |
| | | */ |
| | | public static final String PL_CODE_SYSINTINFO = "PL_CODE_SYSINTINFO"; |
| | | |
| | | /** |
| | | * éææ¥å£-éææ¥å£ç®¡ç对象 |
| | | * platformbtm_sysintparemter |
| | | */ |
| | | public static final String PL_CODE_SYSINTPAREMTER = "PL_CODE_SYSINTPAREMTER"; |
| | | |
| | | } |
| | |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; |
| | | import com.vci.ubcs.code.dto.DockingSystemConfigDTO; |
| | | import com.vci.ubcs.code.dto.DockingSystemDTO; |
| | | import com.vci.ubcs.code.entity.CodeRule; |
| | | import com.vci.ubcs.code.entity.DockingSystem; |
| | |
| | | * @param dockingSystem åºç¡æ¥è¯¢å¯¹è±¡ï¼å
嫿¥è¯¢æ¡ä»¶ï¼åé¡µï¼æåºç |
| | | *@return ç³»ç»éæçç³»ç»ä¿¡æ¯æ¾ç¤ºå¯¹è±¡å表 |
| | | */ |
| | | @GetMapping("/gridSysIntBase") |
| | | @GetMapping("/gridDockingSystem") |
| | | @ApiOperationSupport(order = 3) |
| | | @ApiOperation(value = "å页", notes = "dockingSystem") |
| | | public R<IPage<DockingSystemVO>> page(DockingSystem dockingSystem, Query query) { |
| | |
| | | * @param dockingSystemDTO ç³»ç»éæçç³»ç»ä¿¡æ¯æ°æ®ä¼ è¾å¯¹è±¡ |
| | | * @return æ§è¡ç»æï¼success为true表示æåï¼msgæ¯å¤±è´¥çæç¤ºä¿¡æ¯ï¼objæ¯æ·»å 宿åçæ¾ç¤ºå¯¹è±¡ |
| | | */ |
| | | @PostMapping( "/addSave") |
| | | public R<DockingSystemVO> addSave(@RequestBody DockingSystemDTO dockingSystemDTO){ |
| | | @PostMapping( "/addSaveDockingSystem") |
| | | public R<DockingSystemVO> addSaveDockingSystem(@RequestBody DockingSystemDTO dockingSystemDTO){ |
| | | boolean res= dockingSystemService.addSave(dockingSystemDTO); |
| | | return R.status(res); |
| | | } |
| | |
| | | * @param dockingSystemDTO ç³»ç»éæçç³»ç»ä¿¡æ¯æ°æ®ä¼ è¾å¯¹è±¡ |
| | | * @return æ§è¡ç»æï¼success为true表示æåï¼msgæ¯å¤±è´¥çæç¤ºä¿¡æ¯ï¼objæ¯æ·»å 宿åçæ¾ç¤ºå¯¹è±¡ |
| | | */ |
| | | @PutMapping("/editSave") |
| | | public R<DockingSystemVO> editSave(@RequestBody DockingSystemDTO dockingSystemDTO){ |
| | | @PutMapping("/editSaveDockingSystem") |
| | | public R<DockingSystemVO> editSaveDockingSystem(@RequestBody DockingSystemDTO dockingSystemDTO){ |
| | | DockingSystemVO dockingSystemVO = dockingSystemService.editSave(dockingSystemDTO); |
| | | return R.data(dockingSystemVO); |
| | | } |
| | |
| | | * @param DockingSystemConfig åºç¡æ¥è¯¢å¯¹è±¡ï¼å
嫿¥è¯¢æ¡ä»¶ï¼åé¡µï¼æåºç |
| | | * @return ç³»ç»éæåºç¡ä¿¡æ¯æ¾ç¤ºå¯¹è±¡å表 |
| | | */ |
| | | @GetMapping("/gridSysIntInfo") |
| | | @GetMapping("/gridSystemConfig") |
| | | @ApiOperationSupport(order = 3) |
| | | @ApiOperation(value = "å页", notes = "DockingSystemConfig") |
| | | public R<IPage<DockingSystemConfigVO>> gridSysIntInfo(DockingSystemConfig DockingSystemConfig, Query query){ |
| | | public R<IPage<DockingSystemConfigVO>> gridSystemConfig(DockingSystemConfig DockingSystemConfig, Query query){ |
| | | IPage<DockingSystemConfig> pages = dockingSystemConfigService.page(Condition.getPage(query), Condition.getQueryWrapper(DockingSystemConfig)); |
| | | return R.data(DockingSystemConfigWrapper.build().pageVO(pages)); |
| | | } |
| | | |
| | | /** |
| | | * å¢å ç³»ç»éæåºç¡ä¿¡æ¯ |
| | | * @param systemConfigDTO ç³»ç»éæåºç¡ä¿¡æ¯æ°æ®ä¼ è¾å¯¹è±¡ |
| | | * @return æ§è¡ç»æï¼success为true表示æåï¼msgæ¯å¤±è´¥çæç¤ºä¿¡æ¯ï¼objæ¯æ·»å 宿åçæ¾ç¤ºå¯¹è±¡ |
| | | */ |
| | | @PostMapping( "/addSaveSystemConfig") |
| | | public R addSaveSystemConfig(@RequestBody DockingSystemConfigDTO systemConfigDTO){ |
| | | try { |
| | | boolean res = dockingSystemConfigService.addSave(systemConfigDTO); |
| | | return R.success("ä¿åæå!"); |
| | | }catch (Throwable e){ |
| | | return R.fail("ä¿å失败!"); |
| | | } |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.vci.ubcs.code.entity.DockingSysIntHeader; |
| | | |
| | | public interface DockingSysIntHeaderMapper extends BaseMapper<DockingSysIntHeader> { |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.vci.ubcs.code.entity.DockingSysIntParam; |
| | | |
| | | public interface DockingSysIntParamMapper extends BaseMapper<DockingSysIntParam> { |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.vci.ubcs.code.entity.DockingSysIntHeader; |
| | | |
| | | public interface IDockingSysIntHeaderService extends IService<DockingSysIntHeader> { |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.vci.ubcs.code.entity.DockingSysIntParam; |
| | | |
| | | public interface IDockingSysIntParamService extends IService<DockingSysIntParam> { |
| | | |
| | | } |
| | |
| | | package com.vci.ubcs.code.service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.vci.ubcs.code.entity.DockingSystem; |
| | | import com.vci.ubcs.code.dto.DockingSystemConfigDTO; |
| | | import com.vci.ubcs.code.entity.DockingSystemConfig; |
| | | import com.vci.ubcs.code.vo.pagemodel.DockingSystemVO; |
| | | |
| | | /*** |
| | | * ç³»ç»æ¥å£ç®¡ç-æ¥å£é
ç½®æå¡ |
| | |
| | | * @date 2023-06-01 |
| | | */ |
| | | public interface IDockingSystemConfigService extends IService<DockingSystemConfig> { |
| | | |
| | | /** |
| | | * å¢å ç³»ç»éæçæ¥å£ç®¡çä¿¡æ¯ |
| | | * @param dockingSystemConfigDTO ç³»ç»éæçç³»ç»ä¿¡æ¯æ°æ®ä¼ è¾å¯¹è±¡ |
| | | * @return æ§è¡ç»æï¼success为true表示æåï¼msgæ¯å¤±è´¥çæç¤ºä¿¡æ¯ï¼objæ¯æ·»å 宿åçæ¾ç¤ºå¯¹è±¡ |
| | | */ |
| | | public boolean addSave(DockingSystemConfigDTO dockingSystemConfigDTO); |
| | | /** |
| | | * ä¿®æ¹ ç³»ç»éæçæ¥å£ç®¡çä¿¡æ¯ |
| | | * @param dockingSystemConfigDTO ç³»ç»éæçç³»ç»ä¿¡æ¯æ°æ®ä¼ è¾å¯¹è±¡ |
| | | * @return æ§è¡ç»æï¼success为true表示æåï¼msgæ¯å¤±è´¥çæç¤ºä¿¡æ¯ï¼objæ¯æ·»å 宿åçæ¾ç¤ºå¯¹è±¡ |
| | | */ |
| | | DockingSystemVO editSave(DockingSystemConfigDTO dockingSystemConfigDTO); |
| | | |
| | | |
| | | boolean deleteDataById(String oids); |
| | | } |
| | |
| | | package com.vci.ubcs.code.service.impl; |
| | | |
| | | |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.vci.ubcs.code.entity.DockingSystem; |
| | | import com.vci.ubcs.code.service.ICodeDuckingSyncService; |
| | | import com.vci.ubcs.code.service.IDockingSystemService; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.util.CollectionUtils; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.*; |
| | | import java.util.stream.Collectors; |
| | | |
| | | |
| | | /* |
| | |
| | | @Slf4j |
| | | public class CodeDuckingSyncServiceImpl implements ICodeDuckingSyncService { |
| | | |
| | | @Resource |
| | | private IDockingSystemService dockingSystemService; |
| | | |
| | | |
| | | @Override |
| | | public void DockingDataSyncScheduing() { |
| | | |
| | | // insertCache2(); |
| | | initPushDataTaks(1); |
| | | //sendpushDataForService(); |
| | | |
| | | } |
| | | |
| | |
| | | public R sendData(String oids) { |
| | | return null; |
| | | } |
| | | |
| | | |
| | | /*** |
| | | * æ¥è¯¢redis䏿°æ®ï¼å¯¹æ¯åæå
¥dockingtask |
| | | * @param type |
| | | */ |
| | | private void initPushDataTaks(int type){ |
| | | // //initSysadmin(); |
| | | // //sysintinfoæ¥è¯¢è¦æ¨éç主é¢åºåç¸å
³ç³»ç»ä¿¡æ¯ |
| | | // Map<String, String> conditionMap = new HashMap<>(); |
| | | // conditionMap.put("usedflag","true"); |
| | | // conditionMap.put("pushType",type==2?"2":"1") ;//2æ¯ä»£è¡¨åç±»æ¨éï¼1æ¯ä»£è¡¨æ°æ®æ¨é |
| | | // |
| | | // Wrappers wrappers=new Wrappers(); |
| | | // |
| | | // List<DockingSystem> sysIntInfoVOList = dockingSystemService.list(Wrappers.query().lambda().eq()); |
| | | // if(CollectionUtils.isEmpty(sysIntInfoVOList)){ |
| | | // String title=type==2?"åç±»æ¨é":"æ°æ®æ¨é"; |
| | | // log.info("info->ææéæç³»ç»ï¼æªæ¥è¯¢å°ç¸å
³çã"+title+"ãçæ¥å£é
置信æ¯ï¼é
ç½®"); |
| | | // return; |
| | | // } |
| | | // Map<String ,List<DockingSystem>> sysIntInfoDOMap = new HashMap<String ,List<DockingSystem>>();//key=classifyoid,value=list<map> |
| | | // for (SysIntInfoDO sysIntInfoVOi:sysIntInfoVOList){ |
| | | // List<SysIntInfoDO> SysIntInfoVOListi = sysIntInfoDOMap.get(sysIntInfoVOi.getClassifyoid()); |
| | | // if(SysIntInfoVOListi==null){ |
| | | // SysIntInfoVOListi = new ArrayList<SysIntInfoDO>(); |
| | | // } |
| | | // SysIntInfoVOListi.add(sysIntInfoVOi); |
| | | // sysIntInfoDOMap.put(sysIntInfoVOi.getClassifyoid(),SysIntInfoVOListi); |
| | | // } |
| | | // //æ ¹æ®ç±»å廿¥è¯¢éè¦éæçåç±»æè
æ°æ® |
| | | // VciQueryWrapperForDO queryWrapperForDO = new VciQueryWrapperForDO(DockingDataDO.class); |
| | | // queryWrapperForDO.addQueryMap("sendflag","false"); |
| | | // if(type==2){ |
| | | // queryWrapperForDO.addQueryMap("btmTypeId",DOCKING_DEFAULT_CLASSIFY.toLowerCase(Locale.ROOT)); |
| | | // }else { |
| | | // queryWrapperForDO.addQueryMap("btmTypeId", QueryOptionConstant.NOTIN + "(" + VciBaseUtil.toInSql(DOCKING_DEFAULT_CLASSIFY.toLowerCase(Locale.ROOT)) + ")"); |
| | | // } |
| | | // List<DockingDataDO> dataList = dockingDataDaoI.selectByWrapper(queryWrapperForDO); |
| | | // |
| | | // for (DockingDataDO mapi:dataList){ |
| | | // WebUtil.setPersistence(false); |
| | | // BatchCBO batchCBO = new BatchCBO(); |
| | | // String dataoid = mapi.getOid();//data对象çoid |
| | | // String classifyoid = mapi.getClassifyoid(); |
| | | // String id = mapi.getId(); |
| | | // String uniquecode = mapi.getUniquecode(); |
| | | // String btmid = mapi.getBtmid(); |
| | | // String btmoid = mapi.getBtmoid(); |
| | | // String sendtype = mapi.getSendtype(); |
| | | // String classifyid = mapi.getClassifyid(); |
| | | // String classifyname = mapi.getClassifyname(); |
| | | // String curentClassOid=null; |
| | | // if(type==2){ |
| | | // curentClassOid=btmoid; |
| | | // }else{ |
| | | // curentClassOid=classifyoid; |
| | | // } |
| | | // List<SysIntInfoDO> effectiveSysIntInfoVOs=new ArrayList<>(); |
| | | // //æ ¹æ®å½åæ°æ®çidï¼æ¥è¯¢è·ååªäºç³»ç»éè¦åéæ |
| | | // List<CodeClassifyDO> parentLeveDO= codeClassifyDaoI.selectAllLevelParentByOid(curentClassOid); |
| | | // if(CollectionUtils.isEmpty(parentLeveDO)){ |
| | | // continue;//说æè¿ä¸ªåç±»è¢«å æäºï¼ä¸åå¤ç |
| | | // } |
| | | // Map<String, CodeClassifyDO> oidCodeclassifyDOMap = parentLeveDO.stream().filter(codeClassifyDO -> codeClassifyDO != null && StringUtils.isNotBlank(codeClassifyDO.getOid())).collect(Collectors.toList()).stream().collect(Collectors.toMap(s -> s.getOid(), t -> t)); |
| | | // |
| | | // oidCodeclassifyDOMap.keySet().forEach(oid->{ |
| | | // if(sysIntInfoDOMap.containsKey(oid)){ |
| | | // List<SysIntInfoDO> sysIntInfoDOS= sysIntInfoDOMap.get(oid); |
| | | // effectiveSysIntInfoVOs.addAll(sysIntInfoDOS); |
| | | // } |
| | | // }); |
| | | // //å¦ææ ¡éªçç³»ç»æ¥å£ä¿¡æ¯ä¸åå¨ï¼åæ°æ®ä¸ä¸å¾ä¿¡æ¯éæ¨é |
| | | // if(CollectionUtils.isEmpty(effectiveSysIntInfoVOs)){ |
| | | // continue; |
| | | // } |
| | | // List<DockingTaskDO> dockingTaskDO_insert = new ArrayList<DockingTaskDO>(); |
| | | // for (SysIntInfoDO sysIntInfoVOi:effectiveSysIntInfoVOs){ |
| | | // DockingTaskDO dockingTaskDO = new DockingTaskDO(); |
| | | // dockingTaskDO.setOid(redisService.getUUIDEveryDay()); |
| | | // dockingTaskDO.setSendflag(SEND_FLAG_FALSE); |
| | | // dockingTaskDO.setId(id);//ç¼ç |
| | | // dockingTaskDO.setUniquecode(uniquecode); |
| | | // dockingTaskDO.setBtmoid(btmoid);//æ°æ®oid |
| | | // dockingTaskDO.setBtmid(btmid);//æ°æ®ä¸å¡ç±»åid |
| | | // dockingTaskDO.setClassifyid(classifyid);//æ°æ®å¨åç±»id |
| | | // dockingTaskDO.setClassifyoid(classifyoid);//æ°æ®æå¨åç±»oid |
| | | // dockingTaskDO.setClassifyname(classifyname);//æ°æ®æå¨åç±»åç§° |
| | | // dockingTaskDO.setSendtype(sendtype);//æ°æ®æ¨éç±»å |
| | | // dockingTaskDO.setDataoid(dataoid); |
| | | // |
| | | // //intinfo |
| | | // dockingTaskDO.setSysinfooid(sysIntInfoVOi.getOid());//intinfoçoid |
| | | // dockingTaskDO.setSystemoid(sysIntInfoVOi.getSysbaseoid());//ç³»ç»oid |
| | | // dockingTaskDO.setSystemcode(sysIntInfoVOi.getSysbaseid());//ç³»ç»ç¼ç |
| | | // dockingTaskDO.setSystemname(sysIntInfoVOi.getSysbasename());//ç³»ç»name |
| | | // dockingTaskDO_insert.add(dockingTaskDO); |
| | | // } |
| | | // |
| | | // BatchCBO bi = null; |
| | | // if(dockingTaskDO_insert.size()!=0) { |
| | | // bi = dockingTaskDaoI.batchInsert(dockingTaskDO_insert); |
| | | // batchCBO.copyFromOther(bi); |
| | | // } |
| | | // WebUtil.setPersistence(true); |
| | | // boService.persistenceBatch(batchCBO); |
| | | // //dockingTaskDaoI.updateByPrimaryKeyæ¹æ³æ¥éäºï¼æä»¥æåäºè¿ä¸ª |
| | | // boolean u = updateDockingDatasSendFlag(dataoid,SEND_FLAG_TRUE); |
| | | // if(!u){ |
| | | // log.error("éædataå解任å¡å¤±è´¥ï¼dataoid:"+dataoid); |
| | | // continue; |
| | | // } |
| | | // |
| | | // } |
| | | } |
| | | |
| | | |
| | | } |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.vci.ubcs.code.entity.DockingSysIntHeader; |
| | | import com.vci.ubcs.code.mapper.DockingSysIntHeaderMapper; |
| | | import com.vci.ubcs.code.service.IDockingSysIntHeaderService; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | @Slf4j |
| | | @Service |
| | | public class DockingSysIntHeaderServiceImpl extends ServiceImpl<DockingSysIntHeaderMapper, DockingSysIntHeader> implements IDockingSysIntHeaderService { |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.vci.ubcs.code.entity.DockingSysIntParam; |
| | | import com.vci.ubcs.code.mapper.DockingSysIntParamMapper; |
| | | import com.vci.ubcs.code.service.IDockingSysIntParamService; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | @Slf4j |
| | | @Service |
| | | public class DockingSysIntParamServiceImpl extends ServiceImpl<DockingSysIntParamMapper, DockingSysIntParam> implements IDockingSysIntParamService { |
| | | } |
| | |
| | | package com.vci.ubcs.code.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.Wrapper; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.vci.ubcs.code.constant.MdmBtmTypeConstant; |
| | | import com.vci.ubcs.code.dto.DockingSysIntHeaderDTO; |
| | | import com.vci.ubcs.code.dto.DockingSystemConfigDTO; |
| | | import com.vci.ubcs.code.dto.DockingSysIntParamDTO; |
| | | import com.vci.ubcs.code.entity.DockingSysIntHeader; |
| | | import com.vci.ubcs.code.entity.DockingSysIntParam; |
| | | import com.vci.ubcs.code.entity.DockingSystem; |
| | | import com.vci.ubcs.code.entity.DockingSystemConfig; |
| | | import com.vci.ubcs.code.enumpack.SysIntegrationRequestTypeEnum; |
| | | import com.vci.ubcs.code.mapper.DockingSysIntHeaderMapper; |
| | | import com.vci.ubcs.code.mapper.DockingSysIntParamMapper; |
| | | import com.vci.ubcs.code.mapper.DockingSystemConfigMapper; |
| | | import com.vci.ubcs.code.mapper.DockingSystemMapper; |
| | | import com.vci.ubcs.code.service.IDockingSysIntHeaderService; |
| | | import com.vci.ubcs.code.service.IDockingSysIntParamService; |
| | | import com.vci.ubcs.code.service.IDockingSystemConfigService; |
| | | import com.vci.ubcs.code.vo.pagemodel.DockingSysIntHeaderVO; |
| | | import com.vci.ubcs.code.vo.pagemodel.DockingSystemVO; |
| | | import com.vci.ubcs.starter.exception.VciBaseException; |
| | | import com.vci.ubcs.starter.revision.service.RevisionModelUtil; |
| | | import com.vci.ubcs.starter.util.DefaultAttrAssimtUtil; |
| | | import com.vci.ubcs.starter.web.util.BeanUtilForVCI; |
| | | import com.vci.ubcs.starter.web.util.VciBaseUtil; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import org.springframework.util.CollectionUtils; |
| | | |
| | | import java.util.Collection; |
| | | import java.util.Map; |
| | | import java.util.function.Function; |
| | | import java.util.*; |
| | | |
| | | /*** |
| | | * ç³»ç»æ¥å£ç®¡ç-æ¥å£é
ç½®æå¡ |
| | | * @author xiejun |
| | | * @date 2023-06-01 |
| | | */ |
| | | @Slf4j |
| | | @Service |
| | | public class DockingSystemConfigServiceImpl extends ServiceImpl<DockingSystemConfigMapper, DockingSystemConfig> implements IDockingSystemConfigService{ |
| | | |
| | | /*** |
| | | * éæç³»ç»ç®¡çæå¡ |
| | | */ |
| | | @Autowired(required = false) |
| | | private DockingSystemConfigMapper dockingSystemConfigMapper; |
| | | |
| | | /*** |
| | | * éææ¥å£-éææ¥å£ç®¡çåæ°æå¡ |
| | | */ |
| | | @Autowired(required = false) |
| | | private IDockingSysIntParamService dockingSysIntParamService; |
| | | |
| | | |
| | | |
| | | /*** |
| | | * éææ¥å£-éææ¥å£ç®¡çåæ°æå¡ |
| | | */ |
| | | @Autowired(required = false) |
| | | private IDockingSysIntHeaderService dockingSysIntHeaderService; |
| | | |
| | | |
| | | /*** |
| | | * éææ¥å£-éæç³»ç»æå¡ |
| | | */ |
| | | @Autowired(required = false) |
| | | private DockingSystemMapper dockingSystemMapper; |
| | | |
| | | /** |
| | | * 对象çæä½ |
| | | */ |
| | | @Autowired |
| | | private RevisionModelUtil revisionModelUtil; |
| | | /** |
| | | * å¢å ç³»ç»éæçæ¥å£ç®¡çä¿¡æ¯ |
| | | * @param dockingSystemConfigDTO ç³»ç»éæçç³»ç»ä¿¡æ¯æ°æ®ä¼ è¾å¯¹è±¡ |
| | | * @return æ§è¡ç»æï¼success为true表示æåï¼msgæ¯å¤±è´¥çæç¤ºä¿¡æ¯ï¼objæ¯æ·»å 宿åçæ¾ç¤ºå¯¹è±¡ |
| | | */ |
| | | @Transactional(rollbackFor = Exception.class) |
| | | @Override |
| | | public boolean addSave(DockingSystemConfigDTO dockingSystemConfigDTO) { |
| | | log.info(" å¢å ç³»ç»éæçæ¥å£ç®¡çä¿¡æ¯:"+dockingSystemConfigDTO.toString()); |
| | | VciBaseUtil.alertNotNull(dockingSystemConfigDTO, "éè¦æ·»å çæ°æ®å¯¹è±¡"); |
| | | checkColumnNotNull(dockingSystemConfigDTO); |
| | | String sourcesystemoid = dockingSystemConfigDTO.getSourceSystemOid(); |
| | | DockingSystem dockingSystem = dockingSystemMapper.selectById(sourcesystemoid); |
| | | dockingSystemConfigDTO.setSysBaseOid(sourcesystemoid); |
| | | dockingSystemConfigDTO.setSysBaseId(dockingSystem.getId()); |
| | | dockingSystemConfigDTO.setSysBaseName(dockingSystem.getName()); |
| | | dockingSystemConfigDTO.setUsedFlag("true");//设置é»è®¤å¯ç¨ç¶æ |
| | | |
| | | //å°DTO转æ¢ä¸ºDO |
| | | DockingSystemConfig dockingSystemConfig = new DockingSystemConfig(); |
| | | revisionModelUtil.copyFromDTOIgnore(dockingSystemConfigDTO,dockingSystemConfig); |
| | | |
| | | |
| | | List<DockingSysIntParamDTO> sysIntParamDTOList= dockingSystemConfigDTO.getSysIntParamDTOS(); |
| | | List<DockingSysIntParam> sysIntParamList=new ArrayList<>(); |
| | | if(!CollectionUtils.isEmpty(sysIntParamDTOList)) { |
| | | sysIntParamDTOList.stream().forEach(sysIntParamDTO -> { |
| | | DockingSysIntParam sysIntParamDO = new DockingSysIntParam(); |
| | | sysIntParamDTO.setInfoOid(dockingSystemConfigDTO.getOid()); |
| | | BeanUtilForVCI.copyPropertiesIgnoreCase(sysIntParamDTO, sysIntParamDO); |
| | | DefaultAttrAssimtUtil.addDefaultAttrAssimt(sysIntParamDO,MdmBtmTypeConstant.SYS_INT_PARAMTERY); |
| | | sysIntParamList.add(sysIntParamDO); |
| | | }); |
| | | } |
| | | List<DockingSysIntHeaderDTO> sysIntHeaderDTOs= dockingSystemConfigDTO.getSysIntHeaderDTOS(); |
| | | List<DockingSysIntHeader> sysIntHeaderList = new ArrayList<>(); |
| | | if(!CollectionUtils.isEmpty(sysIntHeaderDTOs)) { |
| | | sysIntHeaderDTOs.stream().forEach(sysIntHeaderDTO -> { |
| | | DockingSysIntHeader dockingSysIntHeader = new DockingSysIntHeader(); |
| | | sysIntHeaderDTO.setInfoOid(dockingSystemConfigDTO.getOid()); |
| | | BeanUtilForVCI.copyPropertiesIgnoreCase(sysIntHeaderDTO, dockingSysIntHeader); |
| | | DefaultAttrAssimtUtil.addDefaultAttrAssimt(dockingSysIntHeader,MdmBtmTypeConstant.SYS_INT_HEADER); |
| | | sysIntHeaderList.add(dockingSysIntHeader); |
| | | }); |
| | | } |
| | | dockingSysIntParamService.saveBatch(sysIntParamList); |
| | | dockingSysIntHeaderService.saveBatch(sysIntHeaderList); |
| | | DefaultAttrAssimtUtil.addDefaultAttrAssimt(dockingSystemConfig,MdmBtmTypeConstant.SYS_INT_INFO); |
| | | dockingSystemConfigMapper.insert(dockingSystemConfig); |
| | | |
| | | return true; |
| | | |
| | | } |
| | | |
| | | @Override |
| | | public DockingSystemVO editSave(DockingSystemConfigDTO dockingSystemDTO) { |
| | | return null; |
| | | } |
| | | |
| | | @Override |
| | | public boolean deleteDataById(String oids) { |
| | | return false; |
| | | } |
| | | |
| | | /** |
| | | * ç³»ç»éææ¥å£åºç¡ä¿¡æ¯Nullåæ®µæ£éª |
| | | * @param dockingSystemConfigDTO ç³»ç»éæåºç¡ä¿¡æ¯æ°æ®ä¼ è¾å¯¹è±¡ |
| | | * @throws VciBaseException åæ°ä¸ºç©ºï¼å¯ä¸é¡¹ï¼å¿
è¾é¡¹ä¸éè¿æ¶ä¼æåºå¼å¸¸ |
| | | */ |
| | | private void checkColumnNotNull(DockingSystemConfigDTO dockingSystemConfigDTO) throws VciBaseException { |
| | | if (SysIntegrationRequestTypeEnum.HTTP.getValue().equals(dockingSystemConfigDTO.getInterfaceType())){ |
| | | VciBaseUtil.alertNotNull(dockingSystemConfigDTO.getRequestUrl(),"HTTPæ¥å£ç请æ±å°å",dockingSystemConfigDTO.getRequestMethod(),"HTTPæ¥å£çè¯·æ±æ¹å¼"); |
| | | } |
| | | if (SysIntegrationRequestTypeEnum.WEB_SERVICE.getValue().equals(dockingSystemConfigDTO.getInterfaceType())){ |
| | | VciBaseUtil.alertNotNull(dockingSystemConfigDTO.getInterfaceFunction(),"WebServiceçæ¥å£å½æ°"); |
| | | } |
| | | if (SysIntegrationRequestTypeEnum.CLASSPATH.getValue().equals(dockingSystemConfigDTO.getInterfaceType())){ |
| | | VciBaseUtil.alertNotNull(dockingSystemConfigDTO.getClassPath(),"类路å¾"); |
| | | } |
| | | } |
| | | } |
| | |
| | | package com.vci.ubcs.code.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.vci.ubcs.code.entity.CodeClassifyValue; |
| | | import com.vci.ubcs.code.entity.DockingTask; |
| | | import com.vci.ubcs.code.mapper.CodeClassifyValueMapper; |
| | | import com.vci.ubcs.code.mapper.DockingTaskMapper; |
| | | import com.vci.ubcs.code.service.IDockingTaskService; |
| | | |
| | |
| | | deleteBatchDTO.getCodeClassifyOid(), "主é¢åºåç±»ç主é®"); |
| | | CodeClassifyFullInfoBO classifyFullInfo = classifyService.getClassifyFullInfo(deleteBatchDTO.getCodeClassifyOid()); |
| | | //æ¾ä¸å¡ç±»åï¼ç¶å使ç¨ä¸»é®å»è·åæ°æ®åºéçæ°æ® |
| | | Collection<String> oidCollection = null; |
| | | Collection<String> oidCollection = new ArrayList<>(); |
| | | for (Collection<String> strings : VciBaseUtil.switchCollectionForOracleIn(deleteBatchDTO.getOidList())) { |
| | | oidCollection.addAll(strings); |
| | | } |
| | | |
| | | List<CodeWupin> cboList = codeWupinMapper.selectBatchIds(oidCollection); |
| | | // List<ClientBusinessObject> cboList = new ArrayList<>(); |
| | | // oidCollection.stream().forEach(oids -> { |
| | | // Map<String, String> conditionMap = new HashMap<>(); |
| | | // List<CodeWupin> cboList = codeWupinMapper.selectBatchIds(oidCollection); |
| | | List<BaseModel> cboList = new ArrayList<>(); |
| | | oidCollection.stream().forEach(oids -> { |
| | | Map<String, String> conditionMap = new HashMap<>(); |
| | | // conditionMap.put("oid", QueryOptionConstant.IN + "(" + VciBaseUtil.toInSql(oids.toArray(new String[0])) + ")"); |
| | | // List<ClientBusinessObject> cbos = boService.queryCBO(classifyFullInfo.getTopClassifyVO().getBtmtypeid(), conditionMap); |
| | | // cboList.addAll(cbos); |
| | | // }); |
| | | List<BaseModel> cbos = selectByTypeAndOid(classifyFullInfo.getTopClassifyVO().getBtmtypeid(),oids); |
| | | // boService.queryCBO(classifyFullInfo.getTopClassifyVO().getBtmtypeid(), conditionMap); |
| | | cboList.addAll(cbos); |
| | | }); |
| | | if (CollectionUtils.isEmpty(cboList)) { |
| | | throw new VciBaseException("æ°æ®å
¨é¨å¨ç³»ç»ä¸ä¸åå¨"); |
| | | } |
| | | List<CodeWupin> editCBOs = cboList.stream().filter(s -> !CodeDefaultLC.EDITING.getValue().equalsIgnoreCase(s.getLcStatus())).collect(Collectors.toList()); |
| | | List<BaseModel> editCBOs = cboList.stream().filter(s -> !CodeDefaultLC.EDITING.getValue().equalsIgnoreCase(s.getLcStatus())).collect(Collectors.toList()); |
| | | if (!CollectionUtils.isEmpty(editCBOs)) { |
| | | CodeWupin cbo = editCBOs.get(0); |
| | | BaseModel cbo = editCBOs.get(0); |
| | | throw new VciBaseException("ç¼ç 为{0}çå
±{1}æ¡æ°æ®çç¶æä¸æ¯[{2}]ï¼ä¸å
许å é¤", new String[]{cbo.getId(), String.valueOf(editCBOs.size()), CodeDefaultLC.EDITING.getText()}); |
| | | } |
| | | |
| | | //åªè½å é¤èªå·±åå»ºçæ°æ® |
| | | String userId = AuthUtil.getUser().getUserName(); |
| | | for (CodeWupin clientBusinessObject : cboList) { |
| | | String userId = String.valueOf(AuthUtil.getUser().getUserId()); |
| | | for (BaseModel clientBusinessObject : cboList) { |
| | | String creator = clientBusinessObject.getCreator(); |
| | | if (!userId.equalsIgnoreCase(creator)) { |
| | | throw new VciBaseException("ç¼ç 为" + clientBusinessObject.getId() + "çæ°æ®ä¸æ¯å½åç¨æ·å建ï¼ä¸è½å é¤ï¼"); |
| | |
| | | // WebUtil.setPersistence(false); |
| | | // batchCBO.copyFromOther( |
| | | productCodeService.recycleCode(classifyFullInfo.getCurrentClassifyVO().getBtmtypeid(), deleteBatchDTO.getOidList()); |
| | | baseMapper.deleteBatchIds(cboList); |
| | | // baseMapper.deleteBatchIds(cboList); |
| | | //使ç¨ä¼ å
¥çä¸å¡ç±»åæ¥è¯¢è¡¨ |
| | | R<List<BtmTypeVO>> listR = btmTypeClient.selectByIdCollection(Collections.singletonList(classifyFullInfo.getCurrentClassifyVO().getBtmtypeid())); |
| | | if (listR.getData().size() == 0) { |
| | | throw new VciBaseException("ä¼ å
¥ä¸å¡ç±»åæªæ¥è¯¢å°ç¸åºè¡¨åï¼è¯·æ£æ¥ï¼"); |
| | | } |
| | | commonsMapper.deleteByTaleAndOid(listR.getData().get(0).getTableName(), |
| | | "'"+(StringUtils.join(cboList.stream().map(BaseModel::getOid).collect(Collectors.toSet()),"','"))+"'"); |
| | | // ); |
| | | // WebUtil.setPersistence(true); |
| | | // boService.persistenceBatch(batchCBO); |
| | |
| | | getFieldIndexMap(titleRowData, attrNameIdMap, fieldIndexMap); |
| | | Map<String, String> cboOidMap = new HashMap<>(); |
| | | cboOidMap.put("id", QueryOptionConstant.IN + "(" + VciBaseUtil.toInSql(codeDataMap.keySet().toArray(new String[0])) + ")"); |
| | | R<BtmTypeVO> r= btmTypeClient.getDetail(templateVO.getBtmTypeId()); |
| | | BtmTypeVO btmTypeVO =r.getData(); |
| | | String tableName=btmTypeVO.getTableName(); |
| | | String tableName =""; |
| | | try { |
| | | R<BtmTypeVO> r = btmTypeClient.getAllAttributeByBtmId(templateVO.getBtmTypeId()); |
| | | if(r.getCode()!=200) { |
| | | throw new Throwable(r.getMsg()); |
| | | } |
| | | BtmTypeVO btmTypeVO = r.getData(); |
| | | if (btmTypeVO == null) { |
| | | throw new Throwable("æ ¹æ®ä¸å¡ç±»åæªæ¥è¯¢å°ä¸å¡ç±»å对象ï¼"); |
| | | } |
| | | tableName = btmTypeVO.getTableName(); |
| | | if (StringUtils.isBlank(tableName)) { |
| | | throw new Throwable("æ ¹æ®ä¸å¡ç±»åæªæ¥è¯¢å°ä¸å¡ç±»åç¸å
³èç表"); |
| | | } |
| | | }catch (Throwable e){ |
| | | log.error("æ¥è¯¢ä¸å¡å¯¹è±¡è¡¨"+e); |
| | | XMLResultDataObjectDetailDO xmlResultDataObjectDetailDO=new XMLResultDataObjectDetailDO(); |
| | | xmlResultDataObjectDetailDO.setErrorid("103"); |
| | | xmlResultDataObjectDetailDO.setMsg("æ¥è¯¢ä¸å¡å¯¹è±¡è¡¨"+e); |
| | | xmlResultDataObjectDetailDO.setId(""); |
| | | xmlResultDataObjectDetailDO.setCode(""); |
| | | resultDataObjectDetailDOs.add(xmlResultDataObjectDetailDO); |
| | | return; |
| | | } |
| | | |
| | | StringBuffer sb=new StringBuffer(); |
| | | sb.append(" select * from "); |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.wrapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.toolkit.CollectionUtils; |
| | | import com.vci.ubcs.code.entity.DockingSysIntHeader; |
| | | import com.vci.ubcs.code.vo.pagemodel.DockingSysIntHeaderVO; |
| | | import org.springblade.core.mp.support.BaseEntityWrapper; |
| | | import org.springblade.core.tool.utils.BeanUtil; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.Collection; |
| | | import java.util.List; |
| | | import java.util.Objects; |
| | | |
| | | public class DockingSysIntHeaderWrapper extends BaseEntityWrapper<DockingSysIntHeader, DockingSysIntHeaderVO> { |
| | | public static DockingSysIntHeaderWrapper build() { |
| | | return new DockingSysIntHeaderWrapper(); |
| | | } |
| | | @Override |
| | | public DockingSysIntHeaderVO entityVO(DockingSysIntHeader entity) { |
| | | DockingSysIntHeaderVO vo = Objects.requireNonNull(BeanUtil.copy(entity, DockingSysIntHeaderVO.class)); |
| | | return vo; |
| | | } |
| | | |
| | | /*** |
| | | * æ°ç»å¯¹è±¡è½¬æ¢ |
| | | * @param entitys |
| | | * @return |
| | | */ |
| | | public List<DockingSysIntHeaderVO> entityVOs(Collection<DockingSysIntHeader> entitys) { |
| | | if(CollectionUtils.isEmpty(entitys)) { |
| | | return new ArrayList<>(); |
| | | } |
| | | List<DockingSysIntHeaderVO> vos=new ArrayList<>(); |
| | | if(!CollectionUtils.isEmpty(entitys)) { |
| | | entitys.stream().forEach(DockingSystem -> { |
| | | vos.add(entityVO(DockingSystem)); |
| | | }); |
| | | } |
| | | return vos; |
| | | } |
| | | |
| | | /*** |
| | | * æ°ç»å¯¹è±¡è½¬æ¢ |
| | | * @param vos |
| | | * @return |
| | | */ |
| | | public List<DockingSysIntHeader> voentitys(Collection<DockingSysIntHeaderVO> vos) { |
| | | if(CollectionUtils.isEmpty(vos)) {return new ArrayList<>();} |
| | | List<DockingSysIntHeader>entitys =new ArrayList<>(); |
| | | if(!CollectionUtils.isEmpty(vos)) { |
| | | vos.stream().forEach(entity -> { |
| | | entitys.add(voentity(entity)); |
| | | }); |
| | | } |
| | | return entitys; |
| | | } |
| | | |
| | | /*** |
| | | * æ°ç»å¯¹è±¡è½¬æ¢ |
| | | * @param vo |
| | | * @return |
| | | */ |
| | | public DockingSysIntHeader voentity(DockingSysIntHeaderVO vo) { |
| | | DockingSysIntHeader entity = Objects.requireNonNull(BeanUtil.copy(vo, DockingSysIntHeader.class)); |
| | | return entity; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.wrapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.toolkit.CollectionUtils; |
| | | import com.vci.ubcs.code.entity.DockingSysIntParam; |
| | | import com.vci.ubcs.code.vo.pagemodel.DockingSysIntParamVO; |
| | | import org.springblade.core.mp.support.BaseEntityWrapper; |
| | | import org.springblade.core.tool.utils.BeanUtil; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.Collection; |
| | | import java.util.List; |
| | | import java.util.Objects; |
| | | |
| | | public class DockingSysIntParamWrapper extends BaseEntityWrapper<DockingSysIntParam, DockingSysIntParamVO> { |
| | | |
| | | |
| | | public static DockingSysIntParamWrapper build() { |
| | | return new DockingSysIntParamWrapper(); |
| | | } |
| | | @Override |
| | | public DockingSysIntParamVO entityVO(DockingSysIntParam entity) { |
| | | DockingSysIntParamVO vo = Objects.requireNonNull(BeanUtil.copy(entity, DockingSysIntParamVO.class)); |
| | | return vo; |
| | | } |
| | | |
| | | /*** |
| | | * æ°ç»å¯¹è±¡è½¬æ¢ |
| | | * @param entitys |
| | | * @return |
| | | */ |
| | | public List<DockingSysIntParamVO> entityVOs(Collection<DockingSysIntParam> entitys) { |
| | | if(CollectionUtils.isEmpty(entitys)) { |
| | | return new ArrayList<>(); |
| | | } |
| | | List<DockingSysIntParamVO> vos=new ArrayList<>(); |
| | | if(!CollectionUtils.isEmpty(entitys)) { |
| | | entitys.stream().forEach(DockingSystem -> { |
| | | vos.add(entityVO(DockingSystem)); |
| | | }); |
| | | } |
| | | return vos; |
| | | } |
| | | |
| | | /*** |
| | | * æ°ç»å¯¹è±¡è½¬æ¢ |
| | | * @param vos |
| | | * @return |
| | | */ |
| | | public List<DockingSysIntParam> voentitys(Collection<DockingSysIntParamVO> vos) { |
| | | if(CollectionUtils.isEmpty(vos)) {return new ArrayList<>();} |
| | | List<DockingSysIntParam>entitys =new ArrayList<>(); |
| | | if(!CollectionUtils.isEmpty(vos)) { |
| | | vos.stream().forEach(entity -> { |
| | | entitys.add(voentity(entity)); |
| | | }); |
| | | } |
| | | return entitys; |
| | | } |
| | | |
| | | /*** |
| | | * æ°ç»å¯¹è±¡è½¬æ¢ |
| | | * @param vo |
| | | * @return |
| | | */ |
| | | public DockingSysIntParam voentity(DockingSysIntParamVO vo) { |
| | | DockingSysIntParam entity = Objects.requireNonNull(BeanUtil.copy(vo, DockingSysIntParam.class)); |
| | | return entity; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.vci.ubcs.code.mapper.DockingSysIntParamMapper"> |
| | | <!-- éç¨æ¥è¯¢æ å°ç»æ --> |
| | | <resultMap id="plDockingSysIntParamResultMap" type="com.vci.ubcs.code.entity.DockingSysIntParam"> |
| | | <result column="OID" property="oid"/> |
| | | <result column="REVISIONOID" property="revisionOid"/> |
| | | <result column="NAMEOID" property="nameOid"/> |
| | | <result column="BTMNAME" property="btmname"/> |
| | | <result column="LASTR" property="lastR"/> |
| | | <result column="FIRSTR" property="firstR"/> |
| | | <result column="LASTV" property="lastV"/> |
| | | <result column="FIRSTV" property="firstV"/> |
| | | <result column="CREATOR" property="creator"/> |
| | | <result column="CREATETIME" property="createTime"/> |
| | | <result column="LASTMODIFIER" property="lastModifier"/> |
| | | <result column="LASTMODIFYTIME" property="lastModifyTime"/> |
| | | <result column="REVISIONRULE" property="revisionRule"/> |
| | | <result column="VERSIONRULE" property="versionRule"/> |
| | | <result column="REVISIONSEQ" property="revisionSeq"/> |
| | | <result column="REVISIONVALUE" property="revisionValue"/> |
| | | <result column="VERSIONSEQ" property="versionSeq"/> |
| | | <result column="VERSIONVALUE" property="versionValue"/> |
| | | <result column="LCTID" property="lctid"/> |
| | | <result column="LCSTATUS" property="lcStatus"/> |
| | | <result column="TS" property="ts"/> |
| | | <result column="ID" property="id"/> |
| | | <result column="NAME" property="name"/> |
| | | <result column="DESCRIPTION" property="description"/> |
| | | <result column="OWNER" property="owner"/> |
| | | <result column="COPYFROMVERSION" property="copyFromVersion"/> |
| | | |
| | | <result column="INFOOID" property="infoOid"/> |
| | | <result column="PARAMKEY" property="paramKey"/> |
| | | <result column="PARAMVALUE" property="paramValue"/> |
| | | <result column="USEDFLAG" property="usedFlag"/> |
| | | <result column="tenant_id" property="tenantId"/> |
| | | |
| | | <result column="tenant_id" property="tenantId"/> |
| | | </resultMap> |
| | | |
| | | </mapper> |