1、主题库定义相关代码。
2、枚举定义相关代码移植修改。
已修改20个文件
已删除1个文件
已重命名14个文件
已复制12个文件
已添加46个文件
ÎļþÃû´Ó Source/UBCS-WEB/src/api/omd/dictbiz.js ÐÞ¸Ä |
| | |
| | | |
| | | export const getList = (current, size, params) => { |
| | | return request({ |
| | | url: '/api/ubcs-omd/dict-biz/list', |
| | | url: '/api/ubcs-omd/dict/list', |
| | | method: 'get', |
| | | params: { |
| | | ...params, |
| | |
| | | |
| | | export const getParentList = (current, size, params) => { |
| | | return request({ |
| | | url: '/api/ubcs-omd/dict-biz/parent-list', |
| | | url: '/api/ubcs-omd/dict/parent-list', |
| | | method: 'get', |
| | | params: { |
| | | ...params, |
| | |
| | | |
| | | export const getChildList = (current, size, parentId, params) => { |
| | | return request({ |
| | | url: '/api/ubcs-omd/dict-biz/child-list', |
| | | url: '/api/ubcs-omd/dict/child-list', |
| | | method: 'get', |
| | | params: { |
| | | ...params, |
| | |
| | | |
| | | export const remove = (ids) => { |
| | | return request({ |
| | | url: '/api/ubcs-omd/dict-biz/remove', |
| | | url: '/api/ubcs-omd/dict/remove', |
| | | method: 'post', |
| | | params: { |
| | | ids, |
| | |
| | | |
| | | export const add = (row) => { |
| | | return request({ |
| | | url: '/api/ubcs-omd/dict-biz/submit', |
| | | url: '/api/ubcs-omd/dict/submit', |
| | | method: 'post', |
| | | data: row |
| | | }) |
| | |
| | | |
| | | export const update = (row) => { |
| | | return request({ |
| | | url: '/api/ubcs-omd/dict-biz/submit', |
| | | url: '/api/ubcs-omd/dict/submit', |
| | | method: 'post', |
| | | data: row |
| | | }) |
| | |
| | | |
| | | export const getDict = (id) => { |
| | | return request({ |
| | | url: '/api/ubcs-omd/dict-biz/detail', |
| | | url: '/api/ubcs-omd/dict/detail', |
| | | method: 'get', |
| | | params: { |
| | | id, |
| | |
| | | } |
| | | export const getDictTree = () => { |
| | | return request({ |
| | | url: '/api/ubcs-omd/dict-biz/tree?code=DICT', |
| | | url: '/api/ubcs-omd/dict/tree?code=DICT', |
| | | method: 'get' |
| | | }) |
| | | } |
| | | |
| | | export const getDictionary = (params) => { |
| | | return request({ |
| | | url: '/api/ubcs-omd/dict-biz/dictionary', |
| | | url: '/api/ubcs-omd/dict/dictionary', |
| | | method: 'get', |
| | | params, |
| | | }) |
¶Ô±ÈÐÂÎļþ |
| | |
| | | export const optionParent = { |
| | | height: 'auto', |
| | | calcHeight: 30, |
| | | tip: false, |
| | | searchShow: true, |
| | | searchMenuSpan: 10, |
| | | border: true, |
| | | index: true, |
| | | selection: true, |
| | | viewBtn: true, |
| | | menuWidth: 250, |
| | | dialogWidth: 880, |
| | | dialogClickModal: false, |
| | | column: [ |
| | | { |
| | | label: "代å·", |
| | | prop: "code", |
| | | search: true, |
| | | slot: true, |
| | | span: 24, |
| | | rules: [ |
| | | { |
| | | required: true, |
| | | message: "请è¾å
¥ä»£å·", |
| | | trigger: "blur" |
| | | } |
| | | ] |
| | | }, |
| | | { |
| | | label: "åç§°", |
| | | prop: "dictValue", |
| | | search: true, |
| | | align: "center", |
| | | rules: [ |
| | | { |
| | | required: true, |
| | | message: "请è¾å
¥åç§°", |
| | | trigger: "blur" |
| | | } |
| | | ] |
| | | }, |
| | | { |
| | | label: "æä¸¾æåº", |
| | | prop: "sort", |
| | | type: "number", |
| | | align: "right", |
| | | width: 100, |
| | | hide: true, |
| | | rules: [ |
| | | { |
| | | required: true, |
| | | message: "请è¾å
¥æä¸¾æåº", |
| | | trigger: "blur" |
| | | } |
| | | ] |
| | | }, |
| | | // { |
| | | // label: "å°å", |
| | | // prop: "isSealed", |
| | | // type: "switch", |
| | | // align: "center", |
| | | // width: 100, |
| | | // dicData: [ |
| | | // { |
| | | // label: "å¦", |
| | | // value: 0 |
| | | // }, |
| | | // { |
| | | // label: "æ¯", |
| | | // value: 1 |
| | | // } |
| | | // ], |
| | | // value: 0, |
| | | // slot: true, |
| | | // rules: [ |
| | | // { |
| | | // required: true, |
| | | // message: "è¯·éæ©å°å", |
| | | // trigger: "blur" |
| | | // } |
| | | // ] |
| | | // }, |
| | | { |
| | | label: "æè¿°", |
| | | width: 150, |
| | | align: "center", |
| | | prop: "remark", |
| | | // hide: true |
| | | } |
| | | ] |
| | | }; |
| | | |
| | | export const optionChild = { |
| | | height: 'auto', |
| | | calcHeight: 95, |
| | | tip: false, |
| | | searchShow: true, |
| | | searchMenuSpan: 10, |
| | | tree: true, |
| | | border: true, |
| | | index: true, |
| | | selection: true, |
| | | viewBtn: true, |
| | | menuWidth: 300, |
| | | dialogWidth: 880, |
| | | dialogClickModal: false, |
| | | column: [ |
| | | { |
| | | label: "代å·", |
| | | prop: "code", |
| | | addDisabled: true, |
| | | editDisabled: true, |
| | | search: true, |
| | | span: 24, |
| | | rules: [ |
| | | { |
| | | required: true, |
| | | message: "请è¾å
¥ä»£å·", |
| | | trigger: "blur" |
| | | } |
| | | ] |
| | | }, |
| | | { |
| | | label: "åç§°", |
| | | prop: "dictValue", |
| | | search: true, |
| | | align: "center", |
| | | rules: [ |
| | | { |
| | | required: true, |
| | | message: "请è¾å
¥åç§°", |
| | | trigger: "blur" |
| | | } |
| | | ] |
| | | }, |
| | | { |
| | | label: "ä¸çº§", |
| | | prop: "parentId", |
| | | type: "tree", |
| | | dicData: [], |
| | | hide: true, |
| | | props: { |
| | | label: "title" |
| | | }, |
| | | addDisabled: true, |
| | | editDisabled: true, |
| | | rules: [ |
| | | { |
| | | required: false, |
| | | message: "è¯·éæ©ä¸çº§", |
| | | trigger: "click" |
| | | } |
| | | ] |
| | | }, |
| | | { |
| | | label: "å¼", |
| | | prop: "dictKey", |
| | | width: 80, |
| | | rules: [ |
| | | { |
| | | required: true, |
| | | message: "请è¾å
¥å¼", |
| | | trigger: "blur" |
| | | } |
| | | ] |
| | | }, |
| | | { |
| | | label: "æä¸¾æåº", |
| | | prop: "sort", |
| | | type: "number", |
| | | align: "right", |
| | | hide: true, |
| | | rules: [ |
| | | { |
| | | required: true, |
| | | message: "请è¾å
¥æä¸¾æåº", |
| | | trigger: "blur" |
| | | } |
| | | ] |
| | | }, |
| | | // { |
| | | // label: "å°å", |
| | | // prop: "isSealed", |
| | | // type: "switch", |
| | | // align: "center", |
| | | // width: 80, |
| | | // dicData: [ |
| | | // { |
| | | // label: "å¦", |
| | | // value: 0 |
| | | // }, |
| | | // { |
| | | // label: "æ¯", |
| | | // value: 1 |
| | | // } |
| | | // ], |
| | | // value: 0, |
| | | // slot: true, |
| | | // rules: [ |
| | | // { |
| | | // required: true, |
| | | // message: "è¯·éæ©å°å", |
| | | // trigger: "blur" |
| | | // } |
| | | // ] |
| | | // }, |
| | | { |
| | | label: "æè¿°", |
| | | prop: "remark", |
| | | // hide: true |
| | | } |
| | | ] |
| | | }; |
ÎļþÃû´Ó Source/UBCS-WEB/src/views/omd/dictbiz.vue ÐÞ¸Ä |
| | |
| | | size="small" |
| | | @click.stop="handleRowClick(scope.row)" |
| | | v-if="userInfo.role_name.includes('admin')" |
| | | >åå
¸é
ç½® |
| | | >æä¸¾é
ç½® |
| | | </el-button> |
| | | </template> |
| | | <template slot-scope="{row}" slot="code"> |
| | |
| | | <el-tag>{{ row.isSealed === 0 ? 'å¦' : 'æ¯' }}</el-tag> |
| | | </template> |
| | | </avue-crud> |
| | | <el-dialog :title="`[${dictValue}]åå
¸é
ç½®`" |
| | | <el-dialog :title="`[${dictValue}]æä¸¾é
ç½®`" |
| | | append-to-body |
| | | :visible.sync="box" |
| | | width="1000px"> |
| | |
| | | >å é¤ |
| | | </el-button> |
| | | </template> |
| | | <template slot-scope="scope" slot="menu"> |
| | | <el-button |
| | | type="text" |
| | | icon="el-icon-circle-plus-outline" |
| | | size="small" |
| | | @click.stop="handleAdd(scope.row,scope.index)" |
| | | v-if="userInfo.role_name.includes('admin')" |
| | | >æ°å¢å项 |
| | | </el-button> |
| | | </template> |
| | | <!-- <template slot-scope="scope" slot="menu">--> |
| | | <!-- <el-button--> |
| | | <!-- type="text"--> |
| | | <!-- icon="el-icon-circle-plus-outline"--> |
| | | <!-- size="small"--> |
| | | <!-- @click.stop="handleAdd(scope.row,scope.index)"--> |
| | | <!-- v-if="userInfo.role_name.includes('admin')"--> |
| | | <!-- >æ°å¢å项--> |
| | | <!-- </el-button>--> |
| | | <!-- </template>--> |
| | | <template slot-scope="{row}" slot="isSealed"> |
| | | <el-tag>{{ row.isSealed === 0 ? 'å¦' : 'æ¯' }}</el-tag> |
| | | </template> |
| | |
| | | add, |
| | | getDict, |
| | | getDictTree |
| | | } from "@/api/omd/dictbiz"; |
| | | import {optionParent, optionChild} from "@/option/system/dictbiz"; |
| | | } from "@/api/omd/dict"; |
| | | import {optionParent, optionChild} from "@/const/omd/dict"; |
| | | import {mapGetters} from "vuex"; |
| | | |
| | | export default { |
| | |
| | | <dependency> |
| | | <groupId>org.apache.poi</groupId> |
| | | <artifactId>poi</artifactId> |
| | | <version>4.1.0</version> |
| | | <version>4.1.2</version> |
| | | </dependency> |
| | | |
| | | <dependency> |
| | | <groupId>org.apache.poi</groupId> |
| | | <artifactId>poi-ooxml</artifactId> |
| | | <version>4.1.0</version> |
| | | <version>4.1.2</version> |
| | | </dependency> |
| | | <dependency> |
| | | <groupId>org.apache.poi</groupId> |
| | | <artifactId>poi-ooxml-schemas</artifactId> |
| | | <version>4.1.2</version> |
| | | </dependency> |
| | | <dependency> |
| | | <groupId>com.alibaba</groupId> |
copy from Source/UBCS/ubcs-service-api/ubcs-omd-api/src/main/java/com/vci/ubcs/omd/enums/DictBizEnum.java
copy to Source/UBCS/ubcs-service-api/ubcs-code-api/src/main/java/com/vci/ubcs/code/dto/CodeClsflowtempDTO.java
Îļþ´Ó Source/UBCS/ubcs-service-api/ubcs-omd-api/src/main/java/com/vci/ubcs/omd/enums/DictBizEnum.java ¸´ÖÆ |
| | |
| | | * this software without specific prior written permission. |
| | | * Author: Chill åºéª (smallchill@163.com) |
| | | */ |
| | | package com.vci.ubcs.omd.enums; |
| | | package com.vci.ubcs.code.dto; |
| | | |
| | | import lombok.AllArgsConstructor; |
| | | import lombok.Getter; |
| | | import com.vci.ubcs.code.entity.CodeClsflowtempEntity; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | |
| | | /** |
| | | * ä¸å¡åå
¸æä¸¾ç±» |
| | | * ç¼ç åºå®ä¹-æ¨¡æ¿æµç¨ æ°æ®ä¼ è¾å¯¹è±¡å®ä½ç±» |
| | | * |
| | | * @author Chill |
| | | * @author yuxc |
| | | * @since 2023-04-20 |
| | | */ |
| | | @Getter |
| | | @AllArgsConstructor |
| | | public enum DictBizEnum { |
| | | |
| | | /** |
| | | * æµè¯ |
| | | */ |
| | | TEST("test"), |
| | | ; |
| | | |
| | | final String name; |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = true) |
| | | public class CodeClsflowtempDTO extends CodeClsflowtempEntity { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | /* |
| | | * Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
| | | * |
| | | * Redistribution and use in source and binary forms, with or without |
| | | * modification, are permitted provided that the following conditions are met: |
| | | * |
| | | * Redistributions of source code must retain the above copyright notice, |
| | | * this list of conditions and the following disclaimer. |
| | | * Redistributions in binary form must reproduce the above copyright |
| | | * notice, this list of conditions and the following disclaimer in the |
| | | * documentation and/or other materials provided with the distribution. |
| | | * Neither the name of the dreamlu.net developer nor the names of its |
| | | * contributors may be used to endorse or promote products derived from |
| | | * this software without specific prior written permission. |
| | | * Author: Chill åºéª (smallchill@163.com) |
| | | */ |
| | | package com.vci.ubcs.code.dto; |
| | | |
| | | import com.vci.ubcs.code.entity.CodeClstempattrEntity; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | |
| | | /** |
| | | * ç¼ç åºå®ä¹-模æ¿å±æ§ æ°æ®ä¼ è¾å¯¹è±¡å®ä½ç±» |
| | | * |
| | | * @author yuxc |
| | | * @since 2023-04-19 |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = true) |
| | | public class CodeClstempattrDTO extends CodeClstempattrEntity { |
| | | private static final long serialVersionUID = 1L; |
| | | /** |
| | | * æå±æ¨¡æ¿é¶æ®µ |
| | | */ |
| | | private String codephaseoid; |
| | | |
| | | /** |
| | | * æå±æ¨¡æ¿é¶æ®µæ¾ç¤ºææ¬ |
| | | */ |
| | | private String codephaseoidName; |
| | | |
| | | /** |
| | | * è·å æå±æ¨¡æ¿é¶æ®µ |
| | | */ |
| | | public String getCodephaseoid (){ |
| | | return codephaseoid; |
| | | } |
| | | |
| | | /** |
| | | * 设置 æå±æ¨¡æ¿é¶æ®µ |
| | | */ |
| | | public void setCodephaseoid (String codephaseoid){ |
| | | this.codephaseoid = codephaseoid; |
| | | } |
| | | |
| | | /** |
| | | * è·åæå±æ¨¡æ¿é¶æ®µæ¾ç¤ºææ¬ |
| | | */ |
| | | public String getCodephaseoidName (){ |
| | | return codephaseoidName; |
| | | } |
| | | |
| | | /** |
| | | * 设置æå±æ¨¡æ¿é¶æ®µæ¾ç¤ºææ¬ |
| | | */ |
| | | public void setCodephaseoidName (String codephaseoidName){ |
| | | this.codephaseoidName = codephaseoidName; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return "CodePhaseAttrDTO{" + |
| | | "codephaseoid='" + codephaseoid +"',"+ |
| | | "codephaseoidName='" + codephaseoidName +"'," + |
| | | "}" + super.toString(); |
| | | } |
| | | } |
copy from Source/UBCS/ubcs-service-api/ubcs-omd-api/src/main/java/com/vci/ubcs/omd/enums/DictBizEnum.java
copy to Source/UBCS/ubcs-service-api/ubcs-code-api/src/main/java/com/vci/ubcs/code/dto/CodeTempbuttonDTO.java
Îļþ´Ó Source/UBCS/ubcs-service-api/ubcs-omd-api/src/main/java/com/vci/ubcs/omd/enums/DictBizEnum.java ¸´ÖÆ |
| | |
| | | * this software without specific prior written permission. |
| | | * Author: Chill åºéª (smallchill@163.com) |
| | | */ |
| | | package com.vci.ubcs.omd.enums; |
| | | package com.vci.ubcs.code.dto; |
| | | |
| | | import lombok.AllArgsConstructor; |
| | | import lombok.Getter; |
| | | import com.vci.ubcs.code.entity.CodeTempbuttonEntity; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | |
| | | /** |
| | | * ä¸å¡åå
¸æä¸¾ç±» |
| | | * ç¼ç åºå®ä¹-æ¨¡æ¿æé®æ©å± æ°æ®ä¼ è¾å¯¹è±¡å®ä½ç±» |
| | | * |
| | | * @author Chill |
| | | * @author yuxc |
| | | * @since 2023-04-20 |
| | | */ |
| | | @Getter |
| | | @AllArgsConstructor |
| | | public enum DictBizEnum { |
| | | |
| | | /** |
| | | * æµè¯ |
| | | */ |
| | | TEST("test"), |
| | | ; |
| | | |
| | | final String name; |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = true) |
| | | public class CodeTempbuttonDTO extends CodeTempbuttonEntity { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | } |
copy from Source/UBCS/ubcs-service-api/ubcs-omd-api/src/main/java/com/vci/ubcs/omd/enums/DictBizEnum.java
copy to Source/UBCS/ubcs-service-api/ubcs-code-api/src/main/java/com/vci/ubcs/code/dto/CodeTempphaseDTO.java
Îļþ´Ó Source/UBCS/ubcs-service-api/ubcs-omd-api/src/main/java/com/vci/ubcs/omd/enums/DictBizEnum.java ¸´ÖÆ |
| | |
| | | * this software without specific prior written permission. |
| | | * Author: Chill åºéª (smallchill@163.com) |
| | | */ |
| | | package com.vci.ubcs.omd.enums; |
| | | package com.vci.ubcs.code.dto; |
| | | |
| | | import lombok.AllArgsConstructor; |
| | | import lombok.Getter; |
| | | import com.vci.ubcs.code.entity.CodeTempphaseEntity; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | |
| | | /** |
| | | * ä¸å¡åå
¸æä¸¾ç±» |
| | | * ç¼ç åºå®ä¹-模æ¿é¶æ®µ æ°æ®ä¼ è¾å¯¹è±¡å®ä½ç±» |
| | | * |
| | | * @author Chill |
| | | * @author yuxc |
| | | * @since 2023-04-20 |
| | | */ |
| | | @Getter |
| | | @AllArgsConstructor |
| | | public enum DictBizEnum { |
| | | |
| | | /** |
| | | * æµè¯ |
| | | */ |
| | | TEST("test"), |
| | | ; |
| | | |
| | | final String name; |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = true) |
| | | public class CodeTempphaseDTO extends CodeTempphaseEntity { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | /* |
| | | * Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
| | | * |
| | | * Redistribution and use in source and binary forms, with or without |
| | | * modification, are permitted provided that the following conditions are met: |
| | | * |
| | | * Redistributions of source code must retain the above copyright notice, |
| | | * this list of conditions and the following disclaimer. |
| | | * Redistributions in binary form must reproduce the above copyright |
| | | * notice, this list of conditions and the following disclaimer in the |
| | | * documentation and/or other materials provided with the distribution. |
| | | * Neither the name of the dreamlu.net developer nor the names of its |
| | | * contributors may be used to endorse or promote products derived from |
| | | * this software without specific prior written permission. |
| | | * Author: Chill åºéª (smallchill@163.com) |
| | | */ |
| | | package com.vci.ubcs.code.entity; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import lombok.Data; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import java.util.Date; |
| | | import lombok.EqualsAndHashCode; |
| | | import org.springblade.core.tenant.mp.TenantEntity; |
| | | |
| | | /** |
| | | * ç¼ç åºå®ä¹-æ¨¡æ¿æµç¨ å®ä½ç±» |
| | | * |
| | | * @author yuxc |
| | | * @since 2023-04-20 |
| | | */ |
| | | @Data |
| | | @TableName("PL_CODE_CLSFLOWTEMP") |
| | | @ApiModel(value = "CodeClsflowtemp对象", description = "ç¼ç åºå®ä¹-æ¨¡æ¿æµç¨") |
| | | @EqualsAndHashCode(callSuper = true) |
| | | public class CodeClsflowtempEntity extends BaseModel { |
| | | |
| | | |
| | | /** |
| | | * |
| | | */ |
| | | @ApiModelProperty(value = "") |
| | | private String islastr; |
| | | /** |
| | | * |
| | | */ |
| | | @ApiModelProperty(value = "") |
| | | private String codeclassifyoid; |
| | | /** |
| | | * |
| | | */ |
| | | @ApiModelProperty(value = "") |
| | | private String classifytemplateoid; |
| | | /** |
| | | * |
| | | */ |
| | | @ApiModelProperty(value = "") |
| | | private String codeprocessuse; |
| | | /** |
| | | * |
| | | */ |
| | | @ApiModelProperty(value = "") |
| | | private String processversion; |
| | | /** |
| | | * |
| | | */ |
| | | @ApiModelProperty(value = "") |
| | | private String codetempattroidarr; |
| | | /** |
| | | * |
| | | */ |
| | | @ApiModelProperty(value = "") |
| | | private String codetempattroidarrname; |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | /* |
| | | * Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
| | | * |
| | | * Redistribution and use in source and binary forms, with or without |
| | | * modification, are permitted provided that the following conditions are met: |
| | | * |
| | | * Redistributions of source code must retain the above copyright notice, |
| | | * this list of conditions and the following disclaimer. |
| | | * Redistributions in binary form must reproduce the above copyright |
| | | * notice, this list of conditions and the following disclaimer in the |
| | | * documentation and/or other materials provided with the distribution. |
| | | * Neither the name of the dreamlu.net developer nor the names of its |
| | | * contributors may be used to endorse or promote products derived from |
| | | * this software without specific prior written permission. |
| | | * Author: Chill åºéª (smallchill@163.com) |
| | | */ |
| | | package com.vci.ubcs.code.entity; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import lombok.Data; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import java.util.Date; |
| | | import lombok.EqualsAndHashCode; |
| | | import org.springblade.core.tenant.mp.TenantEntity; |
| | | |
| | | /** |
| | | * ç¼ç åºå®ä¹-模æ¿å±æ§ å®ä½ç±» |
| | | * |
| | | * @author yuxc |
| | | * @since 2023-04-19 |
| | | */ |
| | | @Data |
| | | @TableName("PL_CODE_CLSTEMPATTR") |
| | | @ApiModel(value = "CodeClstempattr对象", description = "ç¼ç åºå®ä¹-模æ¿å±æ§") |
| | | @EqualsAndHashCode(callSuper = true) |
| | | public class CodeClstempattrEntity extends BaseModel { |
| | | |
| | | |
| | | |
| | | /** |
| | | * |
| | | */ |
| | | @ApiModelProperty(value = "") |
| | | private String classifytemplateoid; |
| | | /** |
| | | * |
| | | */ |
| | | @ApiModelProperty(value = "") |
| | | private String attributedatatype; |
| | | /** |
| | | * |
| | | */ |
| | | @ApiModelProperty(value = "") |
| | | private String keyattrflag; |
| | | /** |
| | | * |
| | | */ |
| | | @ApiModelProperty(value = "") |
| | | private String queryattrflag; |
| | | /** |
| | | * |
| | | */ |
| | | @ApiModelProperty(value = "") |
| | | private String seniorqueryattrflag; |
| | | /** |
| | | * |
| | | */ |
| | | @ApiModelProperty(value = "") |
| | | private String samerepeatattrflag; |
| | | /** |
| | | * |
| | | */ |
| | | @ApiModelProperty(value = "") |
| | | private String sortattrflag; |
| | | /** |
| | | * |
| | | */ |
| | | @ApiModelProperty(value = "") |
| | | private String qrcodeflag; |
| | | /** |
| | | * |
| | | */ |
| | | @ApiModelProperty(value = "") |
| | | private String barcodeflag; |
| | | /** |
| | | * |
| | | */ |
| | | @ApiModelProperty(value = "") |
| | | private String componentrule; |
| | | /** |
| | | * |
| | | */ |
| | | @ApiModelProperty(value = "") |
| | | private String verifyrule; |
| | | /** |
| | | * |
| | | */ |
| | | @ApiModelProperty(value = "") |
| | | private String classifyinvokelevel; |
| | | /** |
| | | * |
| | | */ |
| | | @ApiModelProperty(value = "") |
| | | private String classifyinvokeattr; |
| | | /** |
| | | * |
| | | */ |
| | | @ApiModelProperty(value = "") |
| | | private String classifyinvokeattrname; |
| | | /** |
| | | * |
| | | */ |
| | | @ApiModelProperty(value = "") |
| | | private String classifyinvokeeditflag; |
| | | /** |
| | | * |
| | | */ |
| | | @ApiModelProperty(value = "") |
| | | private Short ordernum; |
| | | /** |
| | | * |
| | | */ |
| | | @ApiModelProperty(value = "") |
| | | private String formdisplayflag; |
| | | /** |
| | | * |
| | | */ |
| | | @ApiModelProperty(value = "") |
| | | private String tabledisplayflag; |
| | | /** |
| | | * |
| | | */ |
| | | @ApiModelProperty(value = "") |
| | | private String attributegroup; |
| | | /** |
| | | * |
| | | */ |
| | | @ApiModelProperty(value = "") |
| | | private String enumid; |
| | | /** |
| | | * |
| | | */ |
| | | @ApiModelProperty(value = "") |
| | | private String enumname; |
| | | /** |
| | | * |
| | | */ |
| | | @ApiModelProperty(value = "") |
| | | private String enumeditflag; |
| | | /** |
| | | * |
| | | */ |
| | | @ApiModelProperty(value = "") |
| | | private String referbtmid; |
| | | /** |
| | | * |
| | | */ |
| | | @ApiModelProperty(value = "") |
| | | private String referbtmname; |
| | | /** |
| | | * |
| | | */ |
| | | @ApiModelProperty(value = "") |
| | | private String referconfig; |
| | | /** |
| | | * |
| | | */ |
| | | @ApiModelProperty(value = "") |
| | | private String requireflag; |
| | | /** |
| | | * |
| | | */ |
| | | @ApiModelProperty(value = "") |
| | | private String readonlyflag; |
| | | /** |
| | | * |
| | | */ |
| | | @ApiModelProperty(value = "") |
| | | private Short controllength; |
| | | /** |
| | | * |
| | | */ |
| | | @ApiModelProperty(value = "") |
| | | private String formdisplaystyle; |
| | | /** |
| | | * |
| | | */ |
| | | @ApiModelProperty(value = "") |
| | | private String tabledisplaystyle; |
| | | /** |
| | | * |
| | | */ |
| | | @ApiModelProperty(value = "") |
| | | private String formhref; |
| | | /** |
| | | * |
| | | */ |
| | | @ApiModelProperty(value = "") |
| | | private String tablehref; |
| | | /** |
| | | * |
| | | */ |
| | | @ApiModelProperty(value = "") |
| | | private Short precisionlength; |
| | | /** |
| | | * |
| | | */ |
| | | @ApiModelProperty(value = "") |
| | | private Short scalelength; |
| | | /** |
| | | * |
| | | */ |
| | | @ApiModelProperty(value = "") |
| | | private String valuearea; |
| | | /** |
| | | * |
| | | */ |
| | | @ApiModelProperty(value = "") |
| | | private String codedateformat; |
| | | /** |
| | | * |
| | | */ |
| | | @ApiModelProperty(value = "") |
| | | private String tabledisplayjs; |
| | | /** |
| | | * |
| | | */ |
| | | @ApiModelProperty(value = "") |
| | | private String textareaflag; |
| | | /** |
| | | * |
| | | */ |
| | | @ApiModelProperty(value = "") |
| | | private String imageflag; |
| | | /** |
| | | * |
| | | */ |
| | | @ApiModelProperty(value = "") |
| | | private String defaultvalue; |
| | | /** |
| | | * |
| | | */ |
| | | @ApiModelProperty(value = "") |
| | | private String prefixvalue; |
| | | /** |
| | | * |
| | | */ |
| | | @ApiModelProperty(value = "") |
| | | private String suffixvalue; |
| | | /** |
| | | * |
| | | */ |
| | | @ApiModelProperty(value = "") |
| | | private String filtersourceattr; |
| | | /** |
| | | * |
| | | */ |
| | | @ApiModelProperty(value = "") |
| | | private String filtersourceattrname; |
| | | /** |
| | | * |
| | | */ |
| | | @ApiModelProperty(value = "") |
| | | private String enumstring; |
| | | /** |
| | | * |
| | | */ |
| | | @ApiModelProperty(value = "") |
| | | private Short attrtablewidth; |
| | | /** |
| | | * |
| | | */ |
| | | @ApiModelProperty(value = "") |
| | | private String explain; |
| | | /** |
| | | * |
| | | */ |
| | | @ApiModelProperty(value = "") |
| | | private String libraryidentification; |
| | | /** |
| | | * |
| | | */ |
| | | @ApiModelProperty(value = "") |
| | | private String parentcode; |
| | | /** |
| | | * |
| | | */ |
| | | @ApiModelProperty(value = "") |
| | | private String parentname; |
| | | /** |
| | | * |
| | | */ |
| | | @ApiModelProperty(value = "") |
| | | private String parentqueryattr; |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | /* |
| | | * Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
| | | * |
| | | * Redistribution and use in source and binary forms, with or without |
| | | * modification, are permitted provided that the following conditions are met: |
| | | * |
| | | * Redistributions of source code must retain the above copyright notice, |
| | | * this list of conditions and the following disclaimer. |
| | | * Redistributions in binary form must reproduce the above copyright |
| | | * notice, this list of conditions and the following disclaimer in the |
| | | * documentation and/or other materials provided with the distribution. |
| | | * Neither the name of the dreamlu.net developer nor the names of its |
| | | * contributors may be used to endorse or promote products derived from |
| | | * this software without specific prior written permission. |
| | | * Author: Chill åºéª (smallchill@163.com) |
| | | */ |
| | | package com.vci.ubcs.code.entity; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import lombok.Data; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import java.util.Date; |
| | | import lombok.EqualsAndHashCode; |
| | | import org.springblade.core.tenant.mp.TenantEntity; |
| | | |
| | | /** |
| | | * ç¼ç åºå®ä¹-模æ¿é¶æ®µ-屿§ å®ä½ç±» |
| | | * |
| | | * @author yuxc |
| | | * @since 2023-04-20 |
| | | */ |
| | | @Data |
| | | @TableName("PL_CODE_PHASEATTR") |
| | | @ApiModel(value = "CodePhaseattr对象", description = "ç¼ç åºå®ä¹-模æ¿é¶æ®µ-屿§") |
| | | @EqualsAndHashCode(callSuper = true) |
| | | public class CodePhaseattrEntity extends BaseModel { |
| | | |
| | | |
| | | /** |
| | | * |
| | | */ |
| | | @ApiModelProperty(value = "") |
| | | private String codephaseoid; |
| | | /** |
| | | * |
| | | */ |
| | | @ApiModelProperty(value = "") |
| | | private String attributegroup; |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | /* |
| | | * Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
| | | * |
| | | * Redistribution and use in source and binary forms, with or without |
| | | * modification, are permitted provided that the following conditions are met: |
| | | * |
| | | * Redistributions of source code must retain the above copyright notice, |
| | | * this list of conditions and the following disclaimer. |
| | | * Redistributions in binary form must reproduce the above copyright |
| | | * notice, this list of conditions and the following disclaimer in the |
| | | * documentation and/or other materials provided with the distribution. |
| | | * Neither the name of the dreamlu.net developer nor the names of its |
| | | * contributors may be used to endorse or promote products derived from |
| | | * this software without specific prior written permission. |
| | | * Author: Chill åºéª (smallchill@163.com) |
| | | */ |
| | | package com.vci.ubcs.code.entity; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import lombok.Data; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import java.util.Date; |
| | | import lombok.EqualsAndHashCode; |
| | | import org.springblade.core.tenant.mp.TenantEntity; |
| | | |
| | | /** |
| | | * ç¼ç åºå®ä¹-æ¨¡æ¿æé®æ©å± å®ä½ç±» |
| | | * |
| | | * @author yuxc |
| | | * @since 2023-04-20 |
| | | */ |
| | | @Data |
| | | @TableName("PL_CODE_TEMPBUTTON") |
| | | @ApiModel(value = "CodeTempbutton对象", description = "ç¼ç åºå®ä¹-æ¨¡æ¿æé®æ©å±") |
| | | @EqualsAndHashCode(callSuper = true) |
| | | public class CodeTempbuttonEntity extends BaseModel { |
| | | |
| | | |
| | | /** |
| | | * |
| | | */ |
| | | @ApiModelProperty(value = "") |
| | | private String classifytemplateoid; |
| | | /** |
| | | * |
| | | */ |
| | | @ApiModelProperty(value = "") |
| | | private String classifybuttonoid; |
| | | /** |
| | | * |
| | | */ |
| | | @ApiModelProperty(value = "") |
| | | private String buttonuse; |
| | | /** |
| | | * |
| | | */ |
| | | @ApiModelProperty(value = "") |
| | | private Short ordernum; |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | /* |
| | | * Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
| | | * |
| | | * Redistribution and use in source and binary forms, with or without |
| | | * modification, are permitted provided that the following conditions are met: |
| | | * |
| | | * Redistributions of source code must retain the above copyright notice, |
| | | * this list of conditions and the following disclaimer. |
| | | * Redistributions in binary form must reproduce the above copyright |
| | | * notice, this list of conditions and the following disclaimer in the |
| | | * documentation and/or other materials provided with the distribution. |
| | | * Neither the name of the dreamlu.net developer nor the names of its |
| | | * contributors may be used to endorse or promote products derived from |
| | | * this software without specific prior written permission. |
| | | * Author: Chill åºéª (smallchill@163.com) |
| | | */ |
| | | package com.vci.ubcs.code.entity; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import lombok.Data; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import java.util.Date; |
| | | import lombok.EqualsAndHashCode; |
| | | import org.springblade.core.tenant.mp.TenantEntity; |
| | | |
| | | /** |
| | | * ç¼ç åºå®ä¹-模æ¿é¶æ®µ å®ä½ç±» |
| | | * |
| | | * @author yuxc |
| | | * @since 2023-04-20 |
| | | */ |
| | | @Data |
| | | @TableName("PL_CODE_TEMPPHASE") |
| | | @ApiModel(value = "CodeTempphase对象", description = "ç¼ç åºå®ä¹-模æ¿é¶æ®µ") |
| | | @EqualsAndHashCode(callSuper = true) |
| | | public class CodeTempphaseEntity extends BaseModel { |
| | | /** |
| | | * |
| | | */ |
| | | @ApiModelProperty(value = "") |
| | | private String codeclassifytemplateoid; |
| | | } |
| | |
| | | package com.vci.ubcs.code.po; |
| | | |
| | | import com.vci.ubcs.com.vci.starter.poi.annotation.ExcelColumn; |
| | | |
| | | /** |
| | | * 主é¢åºåç±»ç导å
¥å¯¼åºå¯¹è±¡ |
| | | * @author weidy |
| | |
| | | /** |
| | | * æå¨æ°æ®è¡ |
| | | */ |
| | | @ExcelColumn(rowIndexColumn = true,value = "") |
| | | private String rowIndex; |
| | | |
| | | |
| | | /** |
| | | * åç±»ç¼å· |
| | | */ |
| | | @ExcelColumn(value="åç±»ç¼å·",nullable = false) |
| | | private String id; |
| | | /** |
| | | * åç±»åç§° |
| | | */ |
| | | @ExcelColumn(value="åç±»åç§°",nullable = false) |
| | | private String name; |
| | | |
| | | /** |
| | | * æè¿° |
| | | */ |
| | | @ExcelColumn(value = "æè¿°") |
| | | private String description; |
| | | |
| | | /** |
| | | * ç¼ç è§åç¼å· |
| | | */ |
| | | @ExcelColumn(value = "ç¼ç è§åç¼å·") |
| | | private String codeRuleId; |
| | | |
| | | /** |
| | | * ä¸å¡ç±»åç¼å· |
| | | */ |
| | | @ExcelColumn(value = "ä¸å¡ç±»åç¼å·") |
| | | private String btmTypeId; |
| | | |
| | | /** |
| | | * æ¥éè§åç¼å· |
| | | */ |
| | | @ExcelColumn(value = "æ¥éè§åç¼å·") |
| | | private String keyRepeatRuleId; |
| | | |
| | | /** |
| | | * åç±»è·¯å¾ |
| | | */ |
| | | @ExcelColumn(value = "å类路å¾",nullable = false) |
| | | private String path; |
| | | |
| | | /** |
| | | * ç¶æææ¬ |
| | | */ |
| | | @ExcelColumn(value = "ç¶æ") |
| | | private String lcStatusText; |
| | | |
| | | /** |
copy from Source/UBCS/ubcs-service-api/ubcs-omd-api/src/main/java/com/vci/ubcs/omd/enums/DictBizEnum.java
copy to Source/UBCS/ubcs-service-api/ubcs-code-api/src/main/java/com/vci/ubcs/code/vo/CodeClsflowtempVO.java
Îļþ´Ó Source/UBCS/ubcs-service-api/ubcs-omd-api/src/main/java/com/vci/ubcs/omd/enums/DictBizEnum.java ¸´ÖÆ |
| | |
| | | * this software without specific prior written permission. |
| | | * Author: Chill åºéª (smallchill@163.com) |
| | | */ |
| | | package com.vci.ubcs.omd.enums; |
| | | package com.vci.ubcs.code.vo; |
| | | |
| | | import lombok.AllArgsConstructor; |
| | | import lombok.Getter; |
| | | import com.vci.ubcs.code.entity.CodeClsflowtempEntity; |
| | | import org.springblade.core.tool.node.INode; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | |
| | | /** |
| | | * ä¸å¡åå
¸æä¸¾ç±» |
| | | * ç¼ç åºå®ä¹-æ¨¡æ¿æµç¨ è§å¾å®ä½ç±» |
| | | * |
| | | * @author Chill |
| | | * @author yuxc |
| | | * @since 2023-04-20 |
| | | */ |
| | | @Getter |
| | | @AllArgsConstructor |
| | | public enum DictBizEnum { |
| | | |
| | | /** |
| | | * æµè¯ |
| | | */ |
| | | TEST("test"), |
| | | ; |
| | | |
| | | final String name; |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = true) |
| | | public class CodeClsflowtempVO extends CodeClsflowtempEntity { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | } |
copy from Source/UBCS/ubcs-service-api/ubcs-omd-api/src/main/java/com/vci/ubcs/omd/enums/DictBizEnum.java
copy to Source/UBCS/ubcs-service-api/ubcs-code-api/src/main/java/com/vci/ubcs/code/vo/CodeClstempattrVO.java
Îļþ´Ó Source/UBCS/ubcs-service-api/ubcs-omd-api/src/main/java/com/vci/ubcs/omd/enums/DictBizEnum.java ¸´ÖÆ |
| | |
| | | * this software without specific prior written permission. |
| | | * Author: Chill åºéª (smallchill@163.com) |
| | | */ |
| | | package com.vci.ubcs.omd.enums; |
| | | package com.vci.ubcs.code.vo; |
| | | |
| | | import lombok.AllArgsConstructor; |
| | | import lombok.Getter; |
| | | import com.vci.ubcs.code.entity.CodeClstempattrEntity; |
| | | import org.springblade.core.tool.node.INode; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | |
| | | /** |
| | | * ä¸å¡åå
¸æä¸¾ç±» |
| | | * ç¼ç åºå®ä¹-模æ¿å±æ§ è§å¾å®ä½ç±» |
| | | * |
| | | * @author Chill |
| | | * @author yuxc |
| | | * @since 2023-04-19 |
| | | */ |
| | | @Getter |
| | | @AllArgsConstructor |
| | | public enum DictBizEnum { |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = true) |
| | | public class CodeClstempattrVO extends CodeClstempattrEntity { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * æµè¯ |
| | | * 屿§ç±»åæ¾ç¤º |
| | | */ |
| | | TEST("test"), |
| | | ; |
| | | |
| | | final String name; |
| | | private String attributeDataTypeText; |
| | | |
| | | } |
| | |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * ç¼ç åºå®ä¹-模æ¿ç®¡ç è§å¾å®ä½ç±» |
| | | * |
| | |
| | | public class CodeClstemplateVO extends CodeClstemplateEntity { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * å
å«ç屿§å
容 |
| | | */ |
| | | private List<CodeClstempattrVO> attributes; |
| | | |
| | | } |
copy from Source/UBCS/ubcs-service-api/ubcs-omd-api/src/main/java/com/vci/ubcs/omd/enums/DictBizEnum.java
copy to Source/UBCS/ubcs-service-api/ubcs-code-api/src/main/java/com/vci/ubcs/code/vo/CodePhaseattrVO.java
Îļþ´Ó Source/UBCS/ubcs-service-api/ubcs-omd-api/src/main/java/com/vci/ubcs/omd/enums/DictBizEnum.java ¸´ÖÆ |
| | |
| | | * this software without specific prior written permission. |
| | | * Author: Chill åºéª (smallchill@163.com) |
| | | */ |
| | | package com.vci.ubcs.omd.enums; |
| | | package com.vci.ubcs.code.vo; |
| | | |
| | | import lombok.AllArgsConstructor; |
| | | import lombok.Getter; |
| | | import com.vci.ubcs.code.entity.CodePhaseattrEntity; |
| | | import org.springblade.core.tool.node.INode; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | |
| | | /** |
| | | * ä¸å¡åå
¸æä¸¾ç±» |
| | | * ç¼ç åºå®ä¹-模æ¿é¶æ®µ-屿§ è§å¾å®ä½ç±» |
| | | * |
| | | * @author Chill |
| | | * @author yuxc |
| | | * @since 2023-04-20 |
| | | */ |
| | | @Getter |
| | | @AllArgsConstructor |
| | | public enum DictBizEnum { |
| | | |
| | | /** |
| | | * æµè¯ |
| | | */ |
| | | TEST("test"), |
| | | ; |
| | | |
| | | final String name; |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = true) |
| | | public class CodePhaseattrVO extends CodePhaseattrEntity { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | } |
copy from Source/UBCS/ubcs-service-api/ubcs-omd-api/src/main/java/com/vci/ubcs/omd/enums/DictBizEnum.java
copy to Source/UBCS/ubcs-service-api/ubcs-code-api/src/main/java/com/vci/ubcs/code/vo/CodeTempbuttonVO.java
Îļþ´Ó Source/UBCS/ubcs-service-api/ubcs-omd-api/src/main/java/com/vci/ubcs/omd/enums/DictBizEnum.java ¸´ÖÆ |
| | |
| | | * this software without specific prior written permission. |
| | | * Author: Chill åºéª (smallchill@163.com) |
| | | */ |
| | | package com.vci.ubcs.omd.enums; |
| | | package com.vci.ubcs.code.vo; |
| | | |
| | | import lombok.AllArgsConstructor; |
| | | import lombok.Getter; |
| | | import com.vci.ubcs.code.entity.CodeTempbuttonEntity; |
| | | import org.springblade.core.tool.node.INode; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | |
| | | /** |
| | | * ä¸å¡åå
¸æä¸¾ç±» |
| | | * ç¼ç åºå®ä¹-æ¨¡æ¿æé®æ©å± è§å¾å®ä½ç±» |
| | | * |
| | | * @author Chill |
| | | * @author yuxc |
| | | * @since 2023-04-20 |
| | | */ |
| | | @Getter |
| | | @AllArgsConstructor |
| | | public enum DictBizEnum { |
| | | |
| | | /** |
| | | * æµè¯ |
| | | */ |
| | | TEST("test"), |
| | | ; |
| | | |
| | | final String name; |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = true) |
| | | public class CodeTempbuttonVO extends CodeTempbuttonEntity { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | } |
copy from Source/UBCS/ubcs-service-api/ubcs-omd-api/src/main/java/com/vci/ubcs/omd/enums/DictBizEnum.java
copy to Source/UBCS/ubcs-service-api/ubcs-code-api/src/main/java/com/vci/ubcs/code/vo/CodeTempphaseVO.java
Îļþ´Ó Source/UBCS/ubcs-service-api/ubcs-omd-api/src/main/java/com/vci/ubcs/omd/enums/DictBizEnum.java ¸´ÖÆ |
| | |
| | | * this software without specific prior written permission. |
| | | * Author: Chill åºéª (smallchill@163.com) |
| | | */ |
| | | package com.vci.ubcs.omd.enums; |
| | | package com.vci.ubcs.code.vo; |
| | | |
| | | import lombok.AllArgsConstructor; |
| | | import lombok.Getter; |
| | | import com.vci.ubcs.code.entity.CodeTempphaseEntity; |
| | | import org.springblade.core.tool.node.INode; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | |
| | | /** |
| | | * ä¸å¡åå
¸æä¸¾ç±» |
| | | * ç¼ç åºå®ä¹-模æ¿é¶æ®µ è§å¾å®ä½ç±» |
| | | * |
| | | * @author Chill |
| | | * @author yuxc |
| | | * @since 2023-04-20 |
| | | */ |
| | | @Getter |
| | | @AllArgsConstructor |
| | | public enum DictBizEnum { |
| | | |
| | | /** |
| | | * æµè¯ |
| | | */ |
| | | TEST("test"), |
| | | ; |
| | | |
| | | final String name; |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = true) |
| | | public class CodeTempphaseVO extends CodeTempphaseEntity { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | } |
| | |
| | | import com.vci.ubcs.com.vci.starter.web.util.LangBaseUtil; |
| | | import com.vci.ubcs.com.vci.starter.web.util.VciBaseUtil; |
| | | import org.apache.commons.io.IOUtils; |
| | | import org.apache.poi.hssf.usermodel.*; |
| | | import org.apache.poi.hssf.usermodel.HSSFCell; |
| | | import org.apache.poi.hssf.usermodel.HSSFDataFormat; |
| | | import org.apache.poi.hssf.usermodel.HSSFDataValidation; |
| | | import org.apache.poi.hssf.usermodel.HSSFDataValidationHelper; |
| | | import org.apache.poi.hssf.usermodel.HSSFRichTextString; |
| | | import org.apache.poi.hssf.usermodel.HSSFSheet; |
| | | import org.apache.poi.hssf.usermodel.HSSFWorkbook; |
| | | import org.apache.poi.hssf.util.HSSFColor; |
| | | import org.apache.poi.ss.usermodel.*; |
| | | import org.apache.poi.hssf.util.HSSFColor.HSSFColorPredefined; |
| | | import org.apache.poi.ss.usermodel.Cell; |
| | | import org.apache.poi.ss.usermodel.CellStyle; |
| | | import org.apache.poi.ss.usermodel.CellType; |
| | | import org.apache.poi.ss.usermodel.CellValue; |
| | | import org.apache.poi.ss.usermodel.DataValidation; |
| | | import org.apache.poi.ss.usermodel.DataValidationConstraint; |
| | | import org.apache.poi.ss.usermodel.DateUtil; |
| | | import org.apache.poi.ss.usermodel.Font; |
| | | import org.apache.poi.ss.usermodel.FormulaEvaluator; |
| | | import org.apache.poi.ss.usermodel.HorizontalAlignment; |
| | | import org.apache.poi.ss.usermodel.Name; |
| | | import org.apache.poi.ss.usermodel.RichTextString; |
| | | import org.apache.poi.ss.usermodel.Row; |
| | | import org.apache.poi.ss.usermodel.Sheet; |
| | | import org.apache.poi.ss.usermodel.VerticalAlignment; |
| | | import org.apache.poi.ss.usermodel.Workbook; |
| | | import org.apache.poi.ss.usermodel.WorkbookFactory; |
| | | import org.apache.poi.ss.util.CellRangeAddress; |
| | | import org.apache.poi.ss.util.CellRangeAddressList; |
| | | import org.apache.poi.xssf.usermodel.*; |
| | | import org.apache.poi.xssf.usermodel.XSSFDataValidation; |
| | | import org.apache.poi.xssf.usermodel.XSSFDataValidationConstraint; |
| | | import org.apache.poi.xssf.usermodel.XSSFDataValidationHelper; |
| | | import org.apache.poi.xssf.usermodel.XSSFRichTextString; |
| | | import org.apache.poi.xssf.usermodel.XSSFSheet; |
| | | import org.apache.poi.xssf.usermodel.XSSFWorkbook; |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | | import org.springblade.core.tool.utils.StringUtil; |
| | |
| | | |
| | | import java.io.*; |
| | | import java.lang.reflect.Field; |
| | | import java.lang.reflect.InvocationHandler; |
| | | import java.lang.reflect.Proxy; |
| | | import sun.reflect.annotation.*; |
| | | import java.math.BigDecimal; |
| | | import java.nio.channels.FileChannel; |
| | | import java.util.*; |
| | |
| | | Map<Field, ExcelColumn> excelColumnSet = getExcelColumnAnnotations(doClass); |
| | | Map<String, ExcelColumn> excelTitleMap = (Map)((Map)Optional.of(excelColumnSet).get()).values().stream().collect(Collectors.toMap((s) -> { |
| | | // return s.value(); |
| | | return s; |
| | | // ExcelColumn s1 = (ExcelColumn) s; |
| | | // s1.value(); |
| | | // ((InvocationHandler) ((Proxy) s).).memberValues.get("value"); |
| | | return ((ExcelColumn) s).value(); |
| | | // return ((AnnotationInvocationHandler) ((Proxy) s).h).memberValues.get("value"); |
| | | }, (t) -> { |
| | | return t; |
| | | })); |
| | |
| | | private static Object getCellValue(Cell cell, FormulaEvaluator evaluator) { |
| | | if (cell != null) { |
| | | Object cellValue = null; |
| | | CellType cellTypeEnum = cell.getCellType(); |
| | | CellType cellTypeEnum = cell.getCellTypeEnum(); |
| | | switch (cellTypeEnum) { |
| | | case STRING: |
| | | String thisCellValue = cell.getStringCellValue(); |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.com.vci.starter.web.constant; |
| | | |
| | | |
| | | public class QueryOptionConstant { |
| | | public static final String IN = "\\IN"; |
| | | public static final String NOTIN = "\\NOTIN"; |
| | | public static final String NOTEQUAL = "!="; |
| | | public static final String MORE = ">"; |
| | | public static final String MORETHAN = ">="; |
| | | public static final String LESS = "<"; |
| | | public static final String LESSTHAN = "<="; |
| | | public static final String OR = "\\OR"; |
| | | public static final String ISNULL = "=null"; |
| | | public static final String ISNOTNULL = "!=null"; |
| | | public static final String EQUAL = "="; |
| | | public static final String AND = "and"; |
| | | public static final String NO_OR_AND = "${no_or_and}"; |
| | | |
| | | public QueryOptionConstant() { |
| | | } |
| | | } |
| | |
| | | import com.vci.ubcs.system.entity.DictBiz; |
| | | import org.springframework.cloud.openfeign.FeignClient; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | |
| | | import javax.validation.Valid; |
| | | import java.util.List; |
| | | |
| | | /** |
| | |
| | | String GET_BY_ID = API_PREFIX + "/dict-biz/get-by-id"; |
| | | String GET_VALUE = API_PREFIX + "/dict-biz/get-value"; |
| | | String GET_LIST = API_PREFIX + "/dict-biz/get-list"; |
| | | String CHECK_VALUE = API_PREFIX + "/dict-biz/check-value"; |
| | | |
| | | /** |
| | | * è·ååå
¸å®ä½ |
| | |
| | | @GetMapping(GET_LIST) |
| | | R<List<DictBiz>> getList(@RequestParam("code") String code); |
| | | |
| | | /** |
| | | * æ£æ¥åå
¸æ¯å¦åå¨ï¼åå¨å³è¿åï¼ä¸å卿°å¢ |
| | | * |
| | | * @param dictBiz åå
¸æ°æ® |
| | | * @return |
| | | */ |
| | | @GetMapping(CHECK_VALUE) |
| | | R getCheck(@Valid @RequestBody DictBiz dictBiz); |
| | | |
| | | } |
| | |
| | | public R<List<DictBiz>> getList(String code) { |
| | | return R.fail("è·åæ°æ®å¤±è´¥"); |
| | | } |
| | | |
| | | @Override |
| | | public R getCheck(DictBiz dictBiz) { |
| | | return R.fail("è·åæ°æ®å¤±è´¥"); |
| | | } |
| | | } |
ÎļþÃû´Ó Source/UBCS/ubcs-service-api/ubcs-omd-api/src/main/java/com/vci/ubcs/omd/cache/DictBizCache.java ÐÞ¸Ä |
| | |
| | | */ |
| | | package com.vci.ubcs.omd.cache; |
| | | |
| | | import com.vci.ubcs.omd.entity.DictBizM; |
| | | import com.vci.ubcs.omd.enums.DictBizEnum; |
| | | import com.vci.ubcs.omd.feign.IDictBizClient; |
| | | import com.vci.ubcs.omd.entity.Dict; |
| | | import com.vci.ubcs.omd.enums.DictEnum; |
| | | import com.vci.ubcs.omd.feign.IDictClient; |
| | | import org.springblade.core.cache.utils.CacheUtil; |
| | | import org.springblade.core.secure.utils.AuthUtil; |
| | | import org.springblade.core.tool.api.R; |
| | |
| | | * |
| | | * @author Chill |
| | | */ |
| | | public class DictBizCache { |
| | | public class DictCache { |
| | | |
| | | private static final String DICT_ID = "dictBiz:id"; |
| | | private static final String DICT_VALUE = "dictBiz:value"; |
| | | private static final String DICT_LIST = "dictBiz:list"; |
| | | private static final String DICT_ID = "dict:id"; |
| | | private static final String DICT_VALUE = "dict:value"; |
| | | private static final String DICT_LIST = "dict:list"; |
| | | |
| | | private static IDictBizClient dictClient; |
| | | private static IDictClient dictClient; |
| | | |
| | | private static IDictBizClient getDictClient() { |
| | | private static IDictClient getDictClient() { |
| | | if (dictClient == null) { |
| | | dictClient = SpringUtil.getBean(IDictBizClient.class); |
| | | dictClient = SpringUtil.getBean(IDictClient.class); |
| | | } |
| | | return dictClient; |
| | | } |
| | |
| | | * @param id ä¸»é® |
| | | * @return DictBiz |
| | | */ |
| | | public static DictBizM getById(Long id) { |
| | | public static Dict getById(Long id) { |
| | | String keyPrefix = DICT_ID.concat(StringPool.DASH).concat(AuthUtil.getTenantId()).concat(StringPool.COLON); |
| | | return CacheUtil.get(DICT_CACHE, keyPrefix, id, () -> { |
| | | R<DictBizM> result = getDictClient().getById(id); |
| | | R<Dict> result = getDictClient().getById(id); |
| | | return result.getData(); |
| | | }); |
| | | } |
| | |
| | | * @param dictKey Integerååå
¸é® |
| | | * @return String |
| | | */ |
| | | public static String getValue(DictBizEnum code, Integer dictKey) { |
| | | public static String getValue(DictEnum code, Integer dictKey) { |
| | | return getValue(code.getName(), dictKey); |
| | | } |
| | | |
| | |
| | | * @param dictKey Stringååå
¸é® |
| | | * @return String |
| | | */ |
| | | public static String getValue(DictBizEnum code, String dictKey) { |
| | | public static String getValue(DictEnum code, String dictKey) { |
| | | return getValue(code.getName(), dictKey); |
| | | } |
| | | |
| | |
| | | * @param code åå
¸ç¼å· |
| | | * @return List<DictBiz> |
| | | */ |
| | | public static List<DictBizM> getList(String code) { |
| | | public static List<Dict> getList(String code) { |
| | | String keyPrefix = DICT_LIST.concat(StringPool.DASH).concat(AuthUtil.getTenantId()).concat(StringPool.COLON); |
| | | return CacheUtil.get(DICT_CACHE, keyPrefix, code, () -> { |
| | | R<List<DictBizM>> result = getDictClient().getList(code); |
| | | R<List<Dict>> result = getDictClient().getList(code); |
| | | return result.getData(); |
| | | }); |
| | | } |
ÎļþÃû´Ó Source/UBCS/ubcs-service-api/ubcs-omd-api/src/main/java/com/vci/ubcs/omd/entity/DictBizM.java ÐÞ¸Ä |
| | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import org.apache.ibatis.type.Alias; |
| | | |
| | | import java.io.Serializable; |
| | | |
| | |
| | | * @author Chill |
| | | */ |
| | | @Data |
| | | @TableName("pl_sys_dict_biz") |
| | | @ApiModel(value = "DictBiz对象", description = "DictBiz对象") |
| | | public class DictBizM implements Serializable { |
| | | @TableName("pl_sys_dict") |
| | | @Alias("pl_sys_dict_omd") |
| | | @ApiModel(value = "Dict对象", description = "Dict对象") |
| | | public class Dict implements Serializable { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | |
| | | private Long id; |
| | | |
| | | /** |
| | | * ç§æ·ID |
| | | */ |
| | | @ApiModelProperty(value = "ç§æ·ID") |
| | | private String tenantId; |
| | | |
| | | /** |
| | | * ç¶ä¸»é® |
| | | */ |
| | | @JsonSerialize(using = ToStringSerializer.class) |
| | |
| | | /** |
| | | * åå
¸ç |
| | | */ |
| | | @ApiModelProperty(value = "åå
¸ç ") |
| | | @ApiModelProperty(value = "æä¸¾ç ") |
| | | private String code; |
| | | |
| | | /** |
| | | * åå
¸å¼ |
| | | */ |
| | | @ApiModelProperty(value = "åå
¸å¼") |
| | | @ApiModelProperty(value = "æä¸¾å¼") |
| | | private String dictKey; |
| | | |
| | | /** |
| | | * åå
¸åç§° |
| | | */ |
| | | @ApiModelProperty(value = "åå
¸åç§°") |
| | | @ApiModelProperty(value = "æä¸¾åç§°") |
| | | private String dictValue; |
| | | |
| | | /** |
| | |
| | | /** |
| | | * åå
¸å¤æ³¨ |
| | | */ |
| | | @ApiModelProperty(value = "åå
¸å¤æ³¨") |
| | | @ApiModelProperty(value = "æä¸¾å¤æ³¨") |
| | | private String remark; |
| | | |
| | | /** |
ÎļþÃû´Ó Source/UBCS/ubcs-service-api/ubcs-omd-api/src/main/java/com/vci/ubcs/omd/enums/DictBizEnum.java ÐÞ¸Ä |
| | |
| | | import lombok.Getter; |
| | | |
| | | /** |
| | | * ä¸å¡åå
¸æä¸¾ç±» |
| | | * æä¸¾ç±» |
| | | * |
| | | * @author Chill |
| | | */ |
| | | @Getter |
| | | @AllArgsConstructor |
| | | public enum DictBizEnum { |
| | | public enum DictEnum { |
| | | |
| | | /** |
| | | * æµè¯ |
ÎļþÃû´Ó Source/UBCS/ubcs-service-api/ubcs-omd-api/src/main/java/com/vci/ubcs/omd/feign/IDictBizClient.java ÐÞ¸Ä |
| | |
| | | package com.vci.ubcs.omd.feign; |
| | | |
| | | |
| | | import com.vci.ubcs.omd.entity.DictBizM; |
| | | import com.vci.ubcs.omd.entity.Dict; |
| | | import org.springblade.core.launch.constant.AppConstant; |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springframework.cloud.openfeign.FeignClient; |
| | |
| | | */ |
| | | @FeignClient( |
| | | value = AppConstant.APPLICATION_NAME_OMD, |
| | | fallback = IDictBizClientFallback.class |
| | | fallback = IDictClientFallback.class |
| | | ) |
| | | public interface IDictBizClient { |
| | | public interface IDictClient { |
| | | |
| | | String API_PREFIX = "/client"; |
| | | String GET_BY_ID = API_PREFIX + "/dict-biz/get-by-id"; |
| | | String GET_VALUE = API_PREFIX + "/dict-biz/get-value"; |
| | | String GET_LIST = API_PREFIX + "/dict-biz/get-list"; |
| | | String CHECK_VALUE = API_PREFIX + "/dict-biz/check-value"; |
| | | String GET_BY_ID = API_PREFIX + "/dict/get-by-id"; |
| | | String GET_VALUE = API_PREFIX + "/dict/get-value"; |
| | | String GET_LIST = API_PREFIX + "/dict/get-list"; |
| | | String CHECK_VALUE = API_PREFIX + "/dict/check-value"; |
| | | |
| | | /** |
| | | * è·ååå
¸å®ä½ |
| | |
| | | * @return |
| | | */ |
| | | @GetMapping(GET_BY_ID) |
| | | R<DictBizM> getById(@RequestParam("id") Long id); |
| | | R<Dict> getById(@RequestParam("id") Long id); |
| | | |
| | | /** |
| | | * è·ååå
¸è¡¨å¯¹åºå¼ |
| | |
| | | * @return |
| | | */ |
| | | @GetMapping(GET_LIST) |
| | | R<List<DictBizM>> getList(@RequestParam("code") String code); |
| | | R<List<Dict>> getList(@RequestParam("code") String code); |
| | | |
| | | /** |
| | | * æ£æ¥åå
¸æ¯å¦åå¨ï¼åå¨å³è¿åï¼ä¸å卿°å¢ |
| | |
| | | * @return |
| | | */ |
| | | @GetMapping(CHECK_VALUE) |
| | | R getCheck(@Valid @RequestBody DictBizM dict); |
| | | R getCheck(@Valid @RequestBody Dict dict); |
| | | |
| | | } |
ÎļþÃû´Ó Source/UBCS/ubcs-service-api/ubcs-omd-api/src/main/java/com/vci/ubcs/omd/feign/IDictBizClientFallback.java ÐÞ¸Ä |
| | |
| | | package com.vci.ubcs.omd.feign; |
| | | |
| | | import org.springblade.core.tool.api.R; |
| | | import com.vci.ubcs.omd.entity.DictBizM; |
| | | import com.vci.ubcs.omd.entity.Dict; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | import java.util.List; |
| | |
| | | * @author Chill |
| | | */ |
| | | @Component |
| | | public class IDictBizClientFallback implements IDictBizClient { |
| | | public class IDictClientFallback implements IDictClient { |
| | | @Override |
| | | public R<DictBizM> getById(Long id) { |
| | | public R<Dict> getById(Long id) { |
| | | return R.fail("è·åæ°æ®å¤±è´¥"); |
| | | } |
| | | |
| | |
| | | } |
| | | |
| | | @Override |
| | | public R<List<DictBizM>> getList(String code) { |
| | | public R<List<Dict>> getList(String code) { |
| | | return R.fail("è·åæ°æ®å¤±è´¥"); |
| | | } |
| | | |
| | | @Override |
| | | public R getCheck(DictBizM dict) { |
| | | public R getCheck(Dict dict) { |
| | | return R.fail("è·åæ°æ®å¤±è´¥"); |
| | | } |
| | | } |
ÎļþÃû´Ó Source/UBCS/ubcs-service-api/ubcs-omd-api/src/main/java/com/vci/ubcs/omd/vo/DictBizMVO.java ÐÞ¸Ä |
| | |
| | | import com.fasterxml.jackson.annotation.JsonInclude; |
| | | import com.fasterxml.jackson.databind.annotation.JsonSerialize; |
| | | import com.fasterxml.jackson.databind.ser.std.ToStringSerializer; |
| | | import com.vci.ubcs.omd.entity.DictBizM; |
| | | import com.vci.ubcs.omd.entity.Dict; |
| | | import io.swagger.annotations.ApiModel; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = true) |
| | | @ApiModel(value = "DictBizVO对象", description = "DictBizVO对象") |
| | | public class DictBizMVO extends DictBizM implements INode<DictBizM> { |
| | | @ApiModel(value = "DictVO对象", description = "DictVO对象") |
| | | public class DictVO extends Dict implements INode<Dict> { |
| | | private static final long serialVersionUID = 1L; |
| | | /** |
| | | * 主é®ID |
| | |
| | | * ååèç¹ |
| | | */ |
| | | @JsonInclude(JsonInclude.Include.NON_EMPTY) |
| | | private List<DictBizM> children; |
| | | private List<Dict> children; |
| | | |
| | | @Override |
| | | public List<DictBizM> getChildren() { |
| | | public List<Dict> getChildren() { |
| | | if (this.children == null) { |
| | | this.children = new ArrayList<>(); |
| | | } |
| | |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.toolkit.SqlHelper; |
| | | import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; |
| | | import com.vci.ubcs.code.entity.CodeClassify; |
| | | import com.vci.ubcs.code.mapper.CodeClassifyMapper; |
| | | import com.vci.ubcs.code.service.ICodeClassifyService; |
| | | import com.vci.ubcs.code.vo.CodeOsattributeVO; |
| | | import com.vci.ubcs.code.vo.pagemodel.CodeClassifyVO; |
| | | import com.vci.ubcs.code.vo.pagemodel.TreeQueryObject; |
| | | import com.vci.ubcs.code.wrapper.CodeClassifyWrapper; |
| | | import com.vci.ubcs.com.vci.starter.util.LocalFileUtil; |
| | | import com.vci.ubcs.com.vci.starter.web.pagemodel.BaseQueryObject; |
| | | import com.vci.ubcs.com.vci.starter.web.pagemodel.DataGrid; |
| | |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import io.swagger.annotations.ApiParam; |
| | | import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; |
| | | import lombok.AllArgsConstructor; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import javax.validation.Valid; |
| | | |
| | | import org.springblade.core.boot.ctrl.BladeController; |
| | | import org.springblade.core.mp.support.Condition; |
| | | import org.springblade.core.mp.support.Query; |
| | | import org.springblade.core.secure.utils.AuthUtil; |
| | | import org.springblade.core.tool.api.IResultCode; |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springblade.core.tool.utils.Func; |
| | | import org.springblade.core.tool.utils.StringUtil; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import com.vci.ubcs.code.wrapper.CodeClassifyWrapper; |
| | | import com.vci.ubcs.code.service.ICodeClassifyService; |
| | | import org.springblade.core.boot.ctrl.BladeController; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import javax.validation.Valid; |
| | | import java.io.File; |
| | | import java.io.IOException; |
| | | import java.nio.charset.StandardCharsets; |
| | |
| | | */ |
| | | @RestController |
| | | @AllArgsConstructor |
| | | @RequestMapping("ubcs-code/codeClassify") |
| | | @RequestMapping("/codeClassify") |
| | | @Api(value = "主é¢åºå®ä¹è¡¨", tags = "主é¢åºå®ä¹è¡¨æ¥å£") |
| | | public class CodeClassifyController extends BladeController { |
| | | |
| | |
| | | * @return æ§è¡ç»æ success为true为å¯ä»¥å é¤ï¼falseè¡¨ç¤ºææ°æ®å¼ç¨ |
| | | */ |
| | | @PostMapping( "/checkIsCanDelete") |
| | | public R checkIsCanDelete(CodeClassify codeClassify) { |
| | | public R checkIsCanDelete(@Valid @RequestBody CodeClassify codeClassify) { |
| | | return codeClassifyService.checkIsCanDelete(codeClassify); |
| | | } |
| | | |
| | |
| | | * @return å é¤ç»æåé¦ï¼ï¼successï¼æåï¼failï¼å¤±è´¥ |
| | | */ |
| | | @DeleteMapping( "/deleteData") |
| | | public R delCodeClassify(CodeClassify codeClassify) { |
| | | public R delCodeClassify(@Valid @RequestBody CodeClassify codeClassify) { |
| | | return codeClassifyService.deleteCodeClassify(codeClassify); |
| | | } |
| | | |
| | |
| | | * @return |
| | | */ |
| | | @PostMapping( "/enableData") |
| | | public R enable(CodeClassify codeClassify) { |
| | | public R enable(@Valid @RequestBody CodeClassify codeClassify) { |
| | | return codeClassifyService.updateLcStatus(codeClassify.getOid(),FRAMEWORK_DATA_ENABLED); |
| | | } |
| | | |
| | |
| | | * @return |
| | | */ |
| | | @PostMapping( "/disableData") |
| | | public R disable(CodeClassify codeClassify) { |
| | | public R disable(@Valid @RequestBody CodeClassify codeClassify) { |
| | | return codeClassifyService.updateLcStatus(codeClassify.getOid(),FRAMEWORK_DATA_DISABLED); |
| | | } |
| | | |
| | |
| | | * @return 主é¢åºåç±»æ¾ç¤ºæ |
| | | */ |
| | | @GetMapping("/referTree") |
| | | public List<Tree> referTree(TreeQueryObject treeQueryObject) { |
| | | public List<Tree> referTree(@RequestBody TreeQueryObject treeQueryObject) { |
| | | return codeClassifyService.referTree(treeQueryObject); |
| | | } |
| | | |
| | |
| | | * @param oid åç±»ä¸»é® |
| | | */ |
| | | @GetMapping("/exportClassify") |
| | | public void exportClassify(String oid, HttpServletResponse response) throws IOException { |
| | | public void exportClassify(@ApiParam(value = "主é®", required = true) @RequestParam String oid, HttpServletResponse response) throws IOException { |
| | | String excelName = codeClassifyService.exportClassify(oid); |
| | | try { |
| | | ControllerUtil.writeFileToResponse(response,excelName); |
¶Ô±ÈÐÂÎļþ |
| | |
| | | /* |
| | | * Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
| | | * |
| | | * Redistribution and use in source and binary forms, with or without |
| | | * modification, are permitted provided that the following conditions are met: |
| | | * |
| | | * Redistributions of source code must retain the above copyright notice, |
| | | * this list of conditions and the following disclaimer. |
| | | * Redistributions in binary form must reproduce the above copyright |
| | | * notice, this list of conditions and the following disclaimer in the |
| | | * documentation and/or other materials provided with the distribution. |
| | | * Neither the name of the dreamlu.net developer nor the names of its |
| | | * contributors may be used to endorse or promote products derived from |
| | | * this software without specific prior written permission. |
| | | * Author: Chill åºéª (smallchill@163.com) |
| | | */ |
| | | package com.vci.ubcs.code.controller; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.toolkit.SqlHelper; |
| | | import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; |
| | | import com.vci.ubcs.code.entity.CodeClsflowtempEntity; |
| | | import com.vci.ubcs.code.mapper.CodeClsflowtempMapper; |
| | | import com.vci.ubcs.code.service.ICodeClsflowtempService; |
| | | import com.vci.ubcs.code.vo.CodeClsflowtempVO; |
| | | import com.vci.ubcs.code.wrapper.CodeClsflowtempWrapper; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import io.swagger.annotations.ApiParam; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springblade.core.boot.ctrl.BladeController; |
| | | import org.springblade.core.mp.support.Condition; |
| | | import org.springblade.core.mp.support.Query; |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springblade.core.tool.utils.Func; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.validation.Valid; |
| | | |
| | | /** |
| | | * ç¼ç åºå®ä¹-æ¨¡æ¿æµç¨ æ§å¶å¨ |
| | | * |
| | | * @author yuxc |
| | | * @since 2023-04-20 |
| | | */ |
| | | @RestController |
| | | @AllArgsConstructor |
| | | @RequestMapping("ubcs-code/CodeClsflowtemp") |
| | | @Api(value = "ç¼ç åºå®ä¹-æ¨¡æ¿æµç¨", tags = "ç¼ç åºå®ä¹-æ¨¡æ¿æµç¨æ¥å£") |
| | | public class CodeClsflowtempController extends BladeController { |
| | | |
| | | private final ICodeClsflowtempService CodeClsflowtempService; |
| | | |
| | | private CodeClsflowtempMapper codeClsflowtempMapper; |
| | | |
| | | /** |
| | | * ç¼ç åºå®ä¹-æ¨¡æ¿æµç¨ 详æ
|
| | | */ |
| | | @GetMapping("/detail") |
| | | @ApiOperationSupport(order = 1) |
| | | @ApiOperation(value = "详æ
", notes = "ä¼ å
¥CodeClsflowtemp") |
| | | public R<CodeClsflowtempVO> detail(CodeClsflowtempEntity CodeClsflowtemp) { |
| | | CodeClsflowtempEntity detail = CodeClsflowtempService.getOne(Condition.getQueryWrapper(CodeClsflowtemp)); |
| | | return R.data(CodeClsflowtempWrapper.build().entityVO(detail)); |
| | | } |
| | | /** |
| | | * ç¼ç åºå®ä¹-æ¨¡æ¿æµç¨ å页 |
| | | */ |
| | | @GetMapping("/list") |
| | | @ApiOperationSupport(order = 2) |
| | | @ApiOperation(value = "å页", notes = "ä¼ å
¥CodeClsflowtemp") |
| | | public R<IPage<CodeClsflowtempVO>> list(CodeClsflowtempEntity CodeClsflowtemp, Query query) { |
| | | IPage<CodeClsflowtempEntity> pages = CodeClsflowtempService.page(Condition.getPage(query), Condition.getQueryWrapper(CodeClsflowtemp)); |
| | | return R.data(CodeClsflowtempWrapper.build().pageVO(pages)); |
| | | } |
| | | |
| | | /** |
| | | * ç¼ç åºå®ä¹-æ¨¡æ¿æµç¨ èªå®ä¹å页 |
| | | */ |
| | | @GetMapping("/page") |
| | | @ApiOperationSupport(order = 3) |
| | | @ApiOperation(value = "å页", notes = "ä¼ å
¥CodeClsflowtemp") |
| | | public R<IPage<CodeClsflowtempVO>> page(CodeClsflowtempVO CodeClsflowtemp, Query query) { |
| | | IPage<CodeClsflowtempVO> pages = CodeClsflowtempService.selectCodeClsflowtempPage(Condition.getPage(query), CodeClsflowtemp); |
| | | return R.data(pages); |
| | | } |
| | | |
| | | /** |
| | | * ç¼ç åºå®ä¹-æ¨¡æ¿æµç¨ æ°å¢ |
| | | */ |
| | | @PostMapping("/save") |
| | | @ApiOperationSupport(order = 4) |
| | | @ApiOperation(value = "æ°å¢", notes = "ä¼ å
¥CodeClsflowtemp") |
| | | public R save(@Valid @RequestBody CodeClsflowtempEntity CodeClsflowtemp) { |
| | | return R.status(CodeClsflowtempService.save(CodeClsflowtemp)); |
| | | } |
| | | |
| | | /** |
| | | * ç¼ç åºå®ä¹-æ¨¡æ¿æµç¨ ä¿®æ¹ |
| | | */ |
| | | @PostMapping("/update") |
| | | @ApiOperationSupport(order = 5) |
| | | @ApiOperation(value = "ä¿®æ¹", notes = "ä¼ å
¥CodeClsflowtemp") |
| | | public R update(@Valid @RequestBody CodeClsflowtempEntity CodeClsflowtemp) { |
| | | return R.status(CodeClsflowtempService.updateById(CodeClsflowtemp)); |
| | | } |
| | | |
| | | /** |
| | | * ç¼ç åºå®ä¹-æ¨¡æ¿æµç¨ æ°å¢æä¿®æ¹ |
| | | */ |
| | | @PostMapping("/submit") |
| | | @ApiOperationSupport(order = 6) |
| | | @ApiOperation(value = "æ°å¢æä¿®æ¹", notes = "ä¼ å
¥CodeClsflowtemp") |
| | | public R submit(@Valid @RequestBody CodeClsflowtempEntity CodeClsflowtemp) { |
| | | return R.status(CodeClsflowtempService.saveOrUpdate(CodeClsflowtemp)); |
| | | } |
| | | |
| | | /** |
| | | * ç¼ç åºå®ä¹-æ¨¡æ¿æµç¨ å é¤ |
| | | */ |
| | | @PostMapping("/remove") |
| | | @ApiOperationSupport(order = 7) |
| | | @ApiOperation(value = "é»è¾å é¤", notes = "ä¼ å
¥ids") |
| | | public R remove(@ApiParam(value = "主é®éå", required = true) @RequestParam String ids) { |
| | | return R.status(SqlHelper.retBool(codeClsflowtempMapper.deleteBatchIds(Func.toLongList(ids)))); |
| | | } |
| | | |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | /* |
| | | * Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
| | | * |
| | | * Redistribution and use in source and binary forms, with or without |
| | | * modification, are permitted provided that the following conditions are met: |
| | | * |
| | | * Redistributions of source code must retain the above copyright notice, |
| | | * this list of conditions and the following disclaimer. |
| | | * Redistributions in binary form must reproduce the above copyright |
| | | * notice, this list of conditions and the following disclaimer in the |
| | | * documentation and/or other materials provided with the distribution. |
| | | * Neither the name of the dreamlu.net developer nor the names of its |
| | | * contributors may be used to endorse or promote products derived from |
| | | * this software without specific prior written permission. |
| | | * Author: Chill åºéª (smallchill@163.com) |
| | | */ |
| | | package com.vci.ubcs.code.controller; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; |
| | | import com.vci.ubcs.code.entity.CodeClstempattrEntity; |
| | | import com.vci.ubcs.code.service.ICodeClstempattrService; |
| | | import com.vci.ubcs.code.vo.CodeClstempattrVO; |
| | | import com.vci.ubcs.code.wrapper.CodeClstempattrWrapper; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import io.swagger.annotations.ApiParam; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springblade.core.boot.ctrl.BladeController; |
| | | import org.springblade.core.mp.support.Condition; |
| | | import org.springblade.core.mp.support.Query; |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springblade.core.tool.utils.Func; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.validation.Valid; |
| | | |
| | | /** |
| | | * ç¼ç åºå®ä¹-模æ¿å±æ§ æ§å¶å¨ |
| | | * |
| | | * @author yuxc |
| | | * @since 2023-04-19 |
| | | */ |
| | | @RestController |
| | | @AllArgsConstructor |
| | | @RequestMapping("/CodeClstempattr") |
| | | @Api(value = "ç¼ç åºå®ä¹-模æ¿å±æ§", tags = "ç¼ç åºå®ä¹-模æ¿å±æ§æ¥å£") |
| | | public class CodeClstempattrController extends BladeController { |
| | | |
| | | private final ICodeClstempattrService CodeClstempattrService; |
| | | |
| | | /** |
| | | * ç¼ç åºå®ä¹-模æ¿å±æ§ 详æ
|
| | | */ |
| | | @GetMapping("/detail") |
| | | @ApiOperationSupport(order = 1) |
| | | @ApiOperation(value = "详æ
", notes = "ä¼ å
¥CodeClstempattr") |
| | | public R<CodeClstempattrVO> detail(CodeClstempattrEntity CodeClstempattr) { |
| | | CodeClstempattrEntity detail = CodeClstempattrService.getOne(Condition.getQueryWrapper(CodeClstempattr)); |
| | | return R.data(CodeClstempattrWrapper.build().entityVO(detail)); |
| | | } |
| | | /** |
| | | * ç¼ç åºå®ä¹-模æ¿å±æ§ å页 |
| | | */ |
| | | @GetMapping("/list") |
| | | @ApiOperationSupport(order = 2) |
| | | @ApiOperation(value = "å页", notes = "ä¼ å
¥CodeClstempattr") |
| | | public R<IPage<CodeClstempattrVO>> list(CodeClstempattrEntity CodeClstempattr, Query query) { |
| | | IPage<CodeClstempattrEntity> pages = CodeClstempattrService.page(Condition.getPage(query), Condition.getQueryWrapper(CodeClstempattr)); |
| | | return R.data(CodeClstempattrWrapper.build().pageVO(pages)); |
| | | } |
| | | |
| | | /** |
| | | * ç¼ç åºå®ä¹-模æ¿å±æ§ èªå®ä¹å页 |
| | | */ |
| | | @GetMapping("/page") |
| | | @ApiOperationSupport(order = 3) |
| | | @ApiOperation(value = "å页", notes = "ä¼ å
¥CodeClstempattr") |
| | | public R<IPage<CodeClstempattrVO>> page(CodeClstempattrVO CodeClstempattr, Query query) { |
| | | IPage<CodeClstempattrVO> pages = CodeClstempattrService.selectCodeClstempattrPage(Condition.getPage(query), CodeClstempattr); |
| | | return R.data(pages); |
| | | } |
| | | |
| | | /** |
| | | * ç¼ç åºå®ä¹-模æ¿å±æ§ æ°å¢ |
| | | */ |
| | | @PostMapping("/save") |
| | | @ApiOperationSupport(order = 4) |
| | | @ApiOperation(value = "æ°å¢", notes = "ä¼ å
¥CodeClstempattr") |
| | | public R save(@Valid @RequestBody CodeClstempattrEntity CodeClstempattr) { |
| | | return R.status(CodeClstempattrService.save(CodeClstempattr)); |
| | | } |
| | | |
| | | /** |
| | | * ç¼ç åºå®ä¹-模æ¿å±æ§ ä¿®æ¹ |
| | | */ |
| | | @PostMapping("/update") |
| | | @ApiOperationSupport(order = 5) |
| | | @ApiOperation(value = "ä¿®æ¹", notes = "ä¼ å
¥CodeClstempattr") |
| | | public R update(@Valid @RequestBody CodeClstempattrEntity CodeClstempattr) { |
| | | return R.status(CodeClstempattrService.updateById(CodeClstempattr)); |
| | | } |
| | | |
| | | /** |
| | | * ç¼ç åºå®ä¹-模æ¿å±æ§ æ°å¢æä¿®æ¹ |
| | | */ |
| | | @PostMapping("/submit") |
| | | @ApiOperationSupport(order = 6) |
| | | @ApiOperation(value = "æ°å¢æä¿®æ¹", notes = "ä¼ å
¥CodeClstempattr") |
| | | public R submit(@Valid @RequestBody CodeClstempattrEntity CodeClstempattr) { |
| | | return R.status(CodeClstempattrService.saveOrUpdate(CodeClstempattr)); |
| | | } |
| | | |
| | | /** |
| | | * ç¼ç åºå®ä¹-模æ¿å±æ§ å é¤ |
| | | */ |
| | | @PostMapping("/remove") |
| | | @ApiOperationSupport(order = 7) |
| | | @ApiOperation(value = "é»è¾å é¤", notes = "ä¼ å
¥ids") |
| | | public R remove(@ApiParam(value = "主é®éå", required = true) @RequestParam String ids) { |
| | | return R.status(CodeClstempattrService.removeBatchByIds(Func.toLongList(ids))); |
| | | } |
| | | |
| | | |
| | | } |
| | |
| | | */ |
| | | package com.vci.ubcs.code.controller; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.toolkit.SqlHelper; |
| | | import com.vci.ubcs.code.mapper.CodeButtonMapper; |
| | | import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; |
| | | import com.vci.ubcs.code.dto.CodeClstemplateDTO; |
| | | import com.vci.ubcs.code.entity.CodeClstemplateEntity; |
| | | import com.vci.ubcs.code.enumpack.CodeClassifyTemplateLC; |
| | | import com.vci.ubcs.code.mapper.CodeClstemplateMapper; |
| | | import com.vci.ubcs.code.service.ICodeClstemplateService; |
| | | import com.vci.ubcs.code.vo.CodeClstemplateVO; |
| | | import com.vci.ubcs.code.vo.pagemodel.TreeQueryObject; |
| | | import com.vci.ubcs.code.wrapper.PlCodeClstemplateWrapper; |
| | | import com.vci.ubcs.com.vci.starter.web.pagemodel.Tree; |
| | | import com.vci.ubcs.com.vci.starter.web.util.VciBaseUtil; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import io.swagger.annotations.ApiParam; |
| | | import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; |
| | | import lombok.AllArgsConstructor; |
| | | import javax.validation.Valid; |
| | | |
| | | import org.springblade.core.boot.ctrl.BladeController; |
| | | import org.springblade.core.mp.support.Condition; |
| | | import org.springblade.core.mp.support.Query; |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springblade.core.tool.utils.Func; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.vci.ubcs.code.entity.CodeClstemplateEntity; |
| | | import com.vci.ubcs.code.vo.CodeClstemplateVO; |
| | | import com.vci.ubcs.code.wrapper.PlCodeClstemplateWrapper; |
| | | import com.vci.ubcs.code.service.ICodeClstemplateService; |
| | | import org.springblade.core.boot.ctrl.BladeController; |
| | | |
| | | import javax.validation.Valid; |
| | | import java.util.Collection; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * ç¼ç åºå®ä¹-模æ¿ç®¡ç æ§å¶å¨ |
| | |
| | | */ |
| | | @RestController |
| | | @AllArgsConstructor |
| | | @RequestMapping("/plCodeClstemplate") |
| | | @RequestMapping("/codeClstemplate") |
| | | @Api(value = "ç¼ç åºå®ä¹-模æ¿ç®¡ç", tags = "ç¼ç åºå®ä¹-模æ¿ç®¡çæ¥å£") |
| | | public class CodeClstemplateController extends BladeController { |
| | | |
| | |
| | | return R.data(PlCodeClstemplateWrapper.build().entityVO(detail)); |
| | | } |
| | | /** |
| | | * ç¼ç åºå®ä¹-模æ¿ç®¡ç å页 |
| | | * ç¼ç åºå®ä¹-模æ¿ç®¡ç å页,å类模æ¿å表对åºä»¥åå¹³å°çgridCodeClassifyTemplate |
| | | */ |
| | | @GetMapping("/list") |
| | | @ApiOperationSupport(order = 2) |
| | |
| | | return R.status(SqlHelper.retBool(codeClstemplateMapper.deleteBatchIds(Func.toLongList(ids)))); |
| | | } |
| | | |
| | | /** |
| | | * å类模æ¿å¯¹è±¡æ |
| | | * @param treeQueryObject æ å½¢æ¥è¯¢å¯¹è±¡ |
| | | * @return å类模æ¿å¯¹è±¡æ¾ç¤ºæ |
| | | */ |
| | | @GetMapping("/treeCodeClassifyTemplate") |
| | | public List<Tree> treeCodeClassifyTemplate(TreeQueryObject treeQueryObject) { |
| | | return plCodeClstemplateService.treeCodeClassifyTemplate(treeQueryObject); |
| | | } |
| | | |
| | | // /** |
| | | // * å类模æ¿å表 |
| | | // * @param baseQueryObject åºç¡æ¥è¯¢å¯¹è±¡ |
| | | // * @return æ¾ç¤ºå¯¹è±¡ |
| | | // */ |
| | | // @GetMapping("/gridCodeClassifyTemplate") |
| | | // public DataGrid<CodeClstemplateVO> gridCodeClassifyTemplate(BaseQueryObject baseQueryObject){ |
| | | // |
| | | // return plCodeClstemplateService.gridCodeClassifyTemplate(baseQueryObject.getConditionMap(),baseQueryObject.getPageHelper()); |
| | | // } |
| | | |
| | | |
| | | /** |
| | | * æ£æ¥ å类模æ¿å¯¹è±¡æ¯å¦å é¤ |
| | | * @param codeClstemplateDTO å类模æ¿å¯¹è±¡æ°æ®ä¼ è¾å¯¹è±¡ï¼å¿
é¡»è¦æoidåts屿§ |
| | | * @return æ§è¡ç»æ success为true为å¯ä»¥å é¤ï¼falseè¡¨ç¤ºææ°æ®å¼ç¨ï¼obj为true表示æä¸çº§ |
| | | */ |
| | | @PostMapping( "/checkIsCanDelete") |
| | | public R checkIsCanDelete(@RequestBody CodeClstemplateDTO codeClstemplateDTO) { |
| | | |
| | | return plCodeClstemplateService.checkIsCanDelete(codeClstemplateDTO); |
| | | } |
| | | |
| | | /** |
| | | * å é¤å类模æ¿å¯¹è±¡ |
| | | * @param codeClstemplateDTO å类模æ¿å¯¹è±¡æ°æ®ä¼ è¾å¯¹è±¡ï¼oidåtséè¦ä¼ è¾ |
| | | * @return å é¤ç»æåé¦ï¼ï¼successï¼æåï¼failï¼å¤±è´¥ |
| | | */ |
| | | @DeleteMapping( "/deleteData") |
| | | public R delCodeClassifyTemplate( CodeClstemplateDTO codeClstemplateDTO) { |
| | | return plCodeClstemplateService.deleteCodeClassifyTemplate(codeClstemplateDTO); |
| | | } |
| | | |
| | | /** |
| | | * 主é®è·åå类模æ¿å¯¹è±¡ |
| | | * @param oid ä¸»é® |
| | | * @return å类模æ¿å¯¹è±¡æ¾ç¤ºå¯¹è±¡ |
| | | */ |
| | | @GetMapping("/getObjectByOid") |
| | | public R<CodeClstemplateVO> getObjectByOid(String oid){ |
| | | CodeClstemplateVO codeClassifyTemplateVO = plCodeClstemplateService.getObjectByOid(oid); |
| | | return R.data(codeClassifyTemplateVO); |
| | | } |
| | | |
| | | /** |
| | | * 䏻鮿¹éè·åå类模æ¿å¯¹è±¡ |
| | | * @param oids 主é®ï¼å¤ä¸ªä»¥éå·åéï¼ä½æ¯åæ§è½å½±åï¼å»ºè®®ä¸æ¬¡æ¥è¯¢ä¸è¶
è¿10000个 |
| | | * @return å类模æ¿å¯¹è±¡æ¾ç¤ºå¯¹è±¡ |
| | | */ |
| | | @GetMapping("/listDataByOids") |
| | | public R<Collection<CodeClstemplateVO>> listCodeClassifyTemplateByOids(String oids){ |
| | | Collection<CodeClstemplateVO> voCollection = plCodeClstemplateService.listCodeClassifyTemplateByOids(VciBaseUtil.str2List(oids)); |
| | | |
| | | return R.data(voCollection) ; |
| | | } |
| | | |
| | | /** |
| | | * åç
§æ å类模æ¿å¯¹è±¡ |
| | | * @param treeQueryObject æ å½¢æ¥è¯¢å¯¹è±¡ |
| | | * @return å类模æ¿å¯¹è±¡æ¾ç¤ºæ |
| | | */ |
| | | @GetMapping("/referTree") |
| | | public List<Tree> referTree(TreeQueryObject treeQueryObject) { |
| | | return plCodeClstemplateService.referTree(treeQueryObject); |
| | | } |
| | | |
| | | /** |
| | | * å¯ç¨ |
| | | * @param codeClstemplateEntity oid |
| | | * @return |
| | | */ |
| | | @PostMapping( "/enableData") |
| | | public R enable( CodeClstemplateDTO codeClstemplateDTO) { |
| | | return plCodeClstemplateService.updateLcStatus(codeClstemplateDTO.getOid(), CodeClassifyTemplateLC.RELEASED.getValue()); |
| | | } |
| | | |
| | | /** |
| | | * åç¨ |
| | | * @param codeClassifyDTO oid |
| | | * @return |
| | | */ |
| | | @PostMapping( "/disableData") |
| | | public R disableData( CodeClstemplateDTO codeClassifyDTO) { |
| | | return plCodeClstemplateService.updateLcStatus(codeClassifyDTO.getOid(),CodeClassifyTemplateLC.DISABLED.getValue()); |
| | | } |
| | | |
| | | /** |
| | | * åç¼è¾ |
| | | * @param codeClassifyDTO oid |
| | | * @return |
| | | */ |
| | | @PostMapping( "/editDate") |
| | | public R editDate( CodeClstemplateDTO codeClassifyDTO) { |
| | | return plCodeClstemplateService.updateLcStatus(codeClassifyDTO.getOid(),CodeClassifyTemplateLC.EDITING.getValue()); |
| | | } |
| | | |
| | | /** |
| | | * åç |
| | | * @param codeClassifyDTO |
| | | * @return oid模æ¿oid |
| | | */ |
| | | @PostMapping( "/upgrade") |
| | | public R Upgrade(@RequestBody CodeClstemplateDTO codeClassifyDTO) { |
| | | |
| | | return plCodeClstemplateService.Upgrade(codeClassifyDTO); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | /* |
| | | * Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
| | | * |
| | | * Redistribution and use in source and binary forms, with or without |
| | | * modification, are permitted provided that the following conditions are met: |
| | | * |
| | | * Redistributions of source code must retain the above copyright notice, |
| | | * this list of conditions and the following disclaimer. |
| | | * Redistributions in binary form must reproduce the above copyright |
| | | * notice, this list of conditions and the following disclaimer in the |
| | | * documentation and/or other materials provided with the distribution. |
| | | * Neither the name of the dreamlu.net developer nor the names of its |
| | | * contributors may be used to endorse or promote products derived from |
| | | * this software without specific prior written permission. |
| | | * Author: Chill åºéª (smallchill@163.com) |
| | | */ |
| | | package com.vci.ubcs.code.controller; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.toolkit.SqlHelper; |
| | | import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; |
| | | import com.vci.ubcs.code.entity.CodePhaseattrEntity; |
| | | import com.vci.ubcs.code.mapper.CodePhaseattrMapper; |
| | | import com.vci.ubcs.code.service.ICodePhaseattrService; |
| | | import com.vci.ubcs.code.vo.CodePhaseattrVO; |
| | | import com.vci.ubcs.code.wrapper.CodePhaseattrWrapper; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import io.swagger.annotations.ApiParam; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springblade.core.boot.ctrl.BladeController; |
| | | import org.springblade.core.mp.support.Condition; |
| | | import org.springblade.core.mp.support.Query; |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springblade.core.tool.utils.Func; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.validation.Valid; |
| | | |
| | | /** |
| | | * ç¼ç åºå®ä¹-模æ¿é¶æ®µ-屿§ æ§å¶å¨ |
| | | * |
| | | * @author yuxc |
| | | * @since 2023-04-20 |
| | | */ |
| | | @RestController |
| | | @AllArgsConstructor |
| | | @RequestMapping("ubcs-code/CodePhaseattr") |
| | | @Api(value = "ç¼ç åºå®ä¹-模æ¿é¶æ®µ-屿§", tags = "ç¼ç åºå®ä¹-模æ¿é¶æ®µ-屿§æ¥å£") |
| | | public class CodePhaseattrController extends BladeController { |
| | | |
| | | private final ICodePhaseattrService CodePhaseattrService; |
| | | |
| | | private CodePhaseattrMapper codePhaseattrMapper; |
| | | |
| | | /** |
| | | * ç¼ç åºå®ä¹-模æ¿é¶æ®µ-屿§ 详æ
|
| | | */ |
| | | @GetMapping("/detail") |
| | | @ApiOperationSupport(order = 1) |
| | | @ApiOperation(value = "详æ
", notes = "ä¼ å
¥CodePhaseattr") |
| | | public R<CodePhaseattrVO> detail(CodePhaseattrEntity CodePhaseattr) { |
| | | CodePhaseattrEntity detail = CodePhaseattrService.getOne(Condition.getQueryWrapper(CodePhaseattr)); |
| | | return R.data(CodePhaseattrWrapper.build().entityVO(detail)); |
| | | } |
| | | /** |
| | | * ç¼ç åºå®ä¹-模æ¿é¶æ®µ-屿§ å页 |
| | | */ |
| | | @GetMapping("/list") |
| | | @ApiOperationSupport(order = 2) |
| | | @ApiOperation(value = "å页", notes = "ä¼ å
¥CodePhaseattr") |
| | | public R<IPage<CodePhaseattrVO>> list(CodePhaseattrEntity CodePhaseattr, Query query) { |
| | | IPage<CodePhaseattrEntity> pages = CodePhaseattrService.page(Condition.getPage(query), Condition.getQueryWrapper(CodePhaseattr)); |
| | | return R.data(CodePhaseattrWrapper.build().pageVO(pages)); |
| | | } |
| | | |
| | | /** |
| | | * ç¼ç åºå®ä¹-模æ¿é¶æ®µ-屿§ èªå®ä¹å页 |
| | | */ |
| | | @GetMapping("/page") |
| | | @ApiOperationSupport(order = 3) |
| | | @ApiOperation(value = "å页", notes = "ä¼ å
¥CodePhaseattr") |
| | | public R<IPage<CodePhaseattrVO>> page(CodePhaseattrVO CodePhaseattr, Query query) { |
| | | IPage<CodePhaseattrVO> pages = CodePhaseattrService.selectCodePhaseattrPage(Condition.getPage(query), CodePhaseattr); |
| | | return R.data(pages); |
| | | } |
| | | |
| | | /** |
| | | * ç¼ç åºå®ä¹-模æ¿é¶æ®µ-屿§ æ°å¢ |
| | | */ |
| | | @PostMapping("/save") |
| | | @ApiOperationSupport(order = 4) |
| | | @ApiOperation(value = "æ°å¢", notes = "ä¼ å
¥CodePhaseattr") |
| | | public R save(@Valid @RequestBody CodePhaseattrEntity CodePhaseattr) { |
| | | return R.status(CodePhaseattrService.save(CodePhaseattr)); |
| | | } |
| | | |
| | | /** |
| | | * ç¼ç åºå®ä¹-模æ¿é¶æ®µ-屿§ ä¿®æ¹ |
| | | */ |
| | | @PostMapping("/update") |
| | | @ApiOperationSupport(order = 5) |
| | | @ApiOperation(value = "ä¿®æ¹", notes = "ä¼ å
¥CodePhaseattr") |
| | | public R update(@Valid @RequestBody CodePhaseattrEntity CodePhaseattr) { |
| | | return R.status(CodePhaseattrService.updateById(CodePhaseattr)); |
| | | } |
| | | |
| | | /** |
| | | * ç¼ç åºå®ä¹-模æ¿é¶æ®µ-屿§ æ°å¢æä¿®æ¹ |
| | | */ |
| | | @PostMapping("/submit") |
| | | @ApiOperationSupport(order = 6) |
| | | @ApiOperation(value = "æ°å¢æä¿®æ¹", notes = "ä¼ å
¥CodePhaseattr") |
| | | public R submit(@Valid @RequestBody CodePhaseattrEntity CodePhaseattr) { |
| | | return R.status(CodePhaseattrService.saveOrUpdate(CodePhaseattr)); |
| | | } |
| | | |
| | | /** |
| | | * ç¼ç åºå®ä¹-模æ¿é¶æ®µ-屿§ å é¤ |
| | | */ |
| | | @PostMapping("/remove") |
| | | @ApiOperationSupport(order = 7) |
| | | @ApiOperation(value = "é»è¾å é¤", notes = "ä¼ å
¥ids") |
| | | public R remove(@ApiParam(value = "主é®éå", required = true) @RequestParam String ids) { |
| | | return R.status(SqlHelper.retBool(codePhaseattrMapper.deleteBatchIds(Func.toLongList(ids)))); |
| | | } |
| | | |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | /* |
| | | * Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
| | | * |
| | | * Redistribution and use in source and binary forms, with or without |
| | | * modification, are permitted provided that the following conditions are met: |
| | | * |
| | | * Redistributions of source code must retain the above copyright notice, |
| | | * this list of conditions and the following disclaimer. |
| | | * Redistributions in binary form must reproduce the above copyright |
| | | * notice, this list of conditions and the following disclaimer in the |
| | | * documentation and/or other materials provided with the distribution. |
| | | * Neither the name of the dreamlu.net developer nor the names of its |
| | | * contributors may be used to endorse or promote products derived from |
| | | * this software without specific prior written permission. |
| | | * Author: Chill åºéª (smallchill@163.com) |
| | | */ |
| | | package com.vci.ubcs.code.controller; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.toolkit.SqlHelper; |
| | | import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; |
| | | import com.vci.ubcs.code.entity.CodeTempbuttonEntity; |
| | | import com.vci.ubcs.code.mapper.CodeTempbuttonMapper; |
| | | import com.vci.ubcs.code.service.ICodeTempbuttonService; |
| | | import com.vci.ubcs.code.vo.CodeTempbuttonVO; |
| | | import com.vci.ubcs.code.wrapper.CodeTempbuttonWrapper; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import io.swagger.annotations.ApiParam; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springblade.core.boot.ctrl.BladeController; |
| | | import org.springblade.core.mp.support.Condition; |
| | | import org.springblade.core.mp.support.Query; |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springblade.core.tool.utils.Func; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.validation.Valid; |
| | | |
| | | /** |
| | | * ç¼ç åºå®ä¹-æ¨¡æ¿æé®æ©å± æ§å¶å¨ |
| | | * |
| | | * @author yuxc |
| | | * @since 2023-04-20 |
| | | */ |
| | | @RestController |
| | | @AllArgsConstructor |
| | | @RequestMapping("ubcs-code/CodeTempbutton") |
| | | @Api(value = "ç¼ç åºå®ä¹-æ¨¡æ¿æé®æ©å±", tags = "ç¼ç åºå®ä¹-æ¨¡æ¿æé®æ©å±æ¥å£") |
| | | public class CodeTempbuttonController extends BladeController { |
| | | |
| | | private final ICodeTempbuttonService CodeTempbuttonService; |
| | | |
| | | private CodeTempbuttonMapper codeTempbuttonMapper; |
| | | |
| | | /** |
| | | * ç¼ç åºå®ä¹-æ¨¡æ¿æé®æ©å± 详æ
|
| | | */ |
| | | @GetMapping("/detail") |
| | | @ApiOperationSupport(order = 1) |
| | | @ApiOperation(value = "详æ
", notes = "ä¼ å
¥CodeTempbutton") |
| | | public R<CodeTempbuttonVO> detail(CodeTempbuttonEntity CodeTempbutton) { |
| | | CodeTempbuttonEntity detail = CodeTempbuttonService.getOne(Condition.getQueryWrapper(CodeTempbutton)); |
| | | return R.data(CodeTempbuttonWrapper.build().entityVO(detail)); |
| | | } |
| | | /** |
| | | * ç¼ç åºå®ä¹-æ¨¡æ¿æé®æ©å± å页 |
| | | */ |
| | | @GetMapping("/list") |
| | | @ApiOperationSupport(order = 2) |
| | | @ApiOperation(value = "å页", notes = "ä¼ å
¥CodeTempbutton") |
| | | public R<IPage<CodeTempbuttonVO>> list(CodeTempbuttonEntity CodeTempbutton, Query query) { |
| | | IPage<CodeTempbuttonEntity> pages = CodeTempbuttonService.page(Condition.getPage(query), Condition.getQueryWrapper(CodeTempbutton)); |
| | | return R.data(CodeTempbuttonWrapper.build().pageVO(pages)); |
| | | } |
| | | |
| | | /** |
| | | * ç¼ç åºå®ä¹-æ¨¡æ¿æé®æ©å± èªå®ä¹å页 |
| | | */ |
| | | @GetMapping("/page") |
| | | @ApiOperationSupport(order = 3) |
| | | @ApiOperation(value = "å页", notes = "ä¼ å
¥CodeTempbutton") |
| | | public R<IPage<CodeTempbuttonVO>> page(CodeTempbuttonVO CodeTempbutton, Query query) { |
| | | IPage<CodeTempbuttonVO> pages = CodeTempbuttonService.selectCodeTempbuttonPage(Condition.getPage(query), CodeTempbutton); |
| | | return R.data(pages); |
| | | } |
| | | |
| | | /** |
| | | * ç¼ç åºå®ä¹-æ¨¡æ¿æé®æ©å± æ°å¢ |
| | | */ |
| | | @PostMapping("/save") |
| | | @ApiOperationSupport(order = 4) |
| | | @ApiOperation(value = "æ°å¢", notes = "ä¼ å
¥CodeTempbutton") |
| | | public R save(@Valid @RequestBody CodeTempbuttonEntity CodeTempbutton) { |
| | | return R.status(CodeTempbuttonService.save(CodeTempbutton)); |
| | | } |
| | | |
| | | /** |
| | | * ç¼ç åºå®ä¹-æ¨¡æ¿æé®æ©å± ä¿®æ¹ |
| | | */ |
| | | @PostMapping("/update") |
| | | @ApiOperationSupport(order = 5) |
| | | @ApiOperation(value = "ä¿®æ¹", notes = "ä¼ å
¥CodeTempbutton") |
| | | public R update(@Valid @RequestBody CodeTempbuttonEntity CodeTempbutton) { |
| | | return R.status(CodeTempbuttonService.updateById(CodeTempbutton)); |
| | | } |
| | | |
| | | /** |
| | | * ç¼ç åºå®ä¹-æ¨¡æ¿æé®æ©å± æ°å¢æä¿®æ¹ |
| | | */ |
| | | @PostMapping("/submit") |
| | | @ApiOperationSupport(order = 6) |
| | | @ApiOperation(value = "æ°å¢æä¿®æ¹", notes = "ä¼ å
¥CodeTempbutton") |
| | | public R submit(@Valid @RequestBody CodeTempbuttonEntity CodeTempbutton) { |
| | | return R.status(CodeTempbuttonService.saveOrUpdate(CodeTempbutton)); |
| | | } |
| | | |
| | | /** |
| | | * ç¼ç åºå®ä¹-æ¨¡æ¿æé®æ©å± å é¤ |
| | | */ |
| | | @PostMapping("/remove") |
| | | @ApiOperationSupport(order = 7) |
| | | @ApiOperation(value = "é»è¾å é¤", notes = "ä¼ å
¥ids") |
| | | public R remove(@ApiParam(value = "主é®éå", required = true) @RequestParam String ids) { |
| | | return R.status(SqlHelper.retBool(codeTempbuttonMapper.deleteBatchIds(Func.toLongList(ids)))); |
| | | } |
| | | |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | /* |
| | | * Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
| | | * |
| | | * Redistribution and use in source and binary forms, with or without |
| | | * modification, are permitted provided that the following conditions are met: |
| | | * |
| | | * Redistributions of source code must retain the above copyright notice, |
| | | * this list of conditions and the following disclaimer. |
| | | * Redistributions in binary form must reproduce the above copyright |
| | | * notice, this list of conditions and the following disclaimer in the |
| | | * documentation and/or other materials provided with the distribution. |
| | | * Neither the name of the dreamlu.net developer nor the names of its |
| | | * contributors may be used to endorse or promote products derived from |
| | | * this software without specific prior written permission. |
| | | * Author: Chill åºéª (smallchill@163.com) |
| | | */ |
| | | package com.vci.ubcs.code.controller; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.toolkit.SqlHelper; |
| | | import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; |
| | | import com.vci.ubcs.code.entity.CodeTempphaseEntity; |
| | | import com.vci.ubcs.code.mapper.CodeTempphaseMapper; |
| | | import com.vci.ubcs.code.service.ICodeTempphaseService; |
| | | import com.vci.ubcs.code.vo.CodeTempphaseVO; |
| | | import com.vci.ubcs.code.wrapper.CodeTempphaseWrapper; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import io.swagger.annotations.ApiParam; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springblade.core.boot.ctrl.BladeController; |
| | | import org.springblade.core.mp.support.Condition; |
| | | import org.springblade.core.mp.support.Query; |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springblade.core.tool.utils.Func; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.validation.Valid; |
| | | |
| | | /** |
| | | * ç¼ç åºå®ä¹-模æ¿é¶æ®µ æ§å¶å¨ |
| | | * |
| | | * @author yuxc |
| | | * @since 2023-04-20 |
| | | */ |
| | | @RestController |
| | | @AllArgsConstructor |
| | | @RequestMapping("ubcs-code/CodeTempphase") |
| | | @Api(value = "ç¼ç åºå®ä¹-模æ¿é¶æ®µ", tags = "ç¼ç åºå®ä¹-模æ¿é¶æ®µæ¥å£") |
| | | public class CodeTempphaseController extends BladeController { |
| | | |
| | | |
| | | private final ICodeTempphaseService CodeTempphaseService; |
| | | |
| | | private CodeTempphaseMapper codeTempphaseMapper; |
| | | /** |
| | | * ç¼ç åºå®ä¹-模æ¿é¶æ®µ 详æ
|
| | | */ |
| | | @GetMapping("/detail") |
| | | @ApiOperationSupport(order = 1) |
| | | @ApiOperation(value = "详æ
", notes = "ä¼ å
¥CodeTempphase") |
| | | public R<CodeTempphaseVO> detail(CodeTempphaseEntity CodeTempphase) { |
| | | CodeTempphaseEntity detail = CodeTempphaseService.getOne(Condition.getQueryWrapper(CodeTempphase)); |
| | | return R.data(CodeTempphaseWrapper.build().entityVO(detail)); |
| | | } |
| | | /** |
| | | * ç¼ç åºå®ä¹-模æ¿é¶æ®µ å页 |
| | | */ |
| | | @GetMapping("/list") |
| | | @ApiOperationSupport(order = 2) |
| | | @ApiOperation(value = "å页", notes = "ä¼ å
¥CodeTempphase") |
| | | public R<IPage<CodeTempphaseVO>> list(CodeTempphaseEntity CodeTempphase, Query query) { |
| | | IPage<CodeTempphaseEntity> pages = CodeTempphaseService.page(Condition.getPage(query), Condition.getQueryWrapper(CodeTempphase)); |
| | | return R.data(CodeTempphaseWrapper.build().pageVO(pages)); |
| | | } |
| | | |
| | | /** |
| | | * ç¼ç åºå®ä¹-模æ¿é¶æ®µ èªå®ä¹å页 |
| | | */ |
| | | @GetMapping("/page") |
| | | @ApiOperationSupport(order = 3) |
| | | @ApiOperation(value = "å页", notes = "ä¼ å
¥CodeTempphase") |
| | | public R<IPage<CodeTempphaseVO>> page(CodeTempphaseVO CodeTempphase, Query query) { |
| | | IPage<CodeTempphaseVO> pages = CodeTempphaseService.selectCodeTempphasePage(Condition.getPage(query), CodeTempphase); |
| | | return R.data(pages); |
| | | } |
| | | |
| | | /** |
| | | * ç¼ç åºå®ä¹-模æ¿é¶æ®µ æ°å¢ |
| | | */ |
| | | @PostMapping("/save") |
| | | @ApiOperationSupport(order = 4) |
| | | @ApiOperation(value = "æ°å¢", notes = "ä¼ å
¥CodeTempphase") |
| | | public R save(@Valid @RequestBody CodeTempphaseEntity CodeTempphase) { |
| | | return R.status(CodeTempphaseService.save(CodeTempphase)); |
| | | } |
| | | |
| | | /** |
| | | * ç¼ç åºå®ä¹-模æ¿é¶æ®µ ä¿®æ¹ |
| | | */ |
| | | @PostMapping("/update") |
| | | @ApiOperationSupport(order = 5) |
| | | @ApiOperation(value = "ä¿®æ¹", notes = "ä¼ å
¥CodeTempphase") |
| | | public R update(@Valid @RequestBody CodeTempphaseEntity CodeTempphase) { |
| | | return R.status(CodeTempphaseService.updateById(CodeTempphase)); |
| | | } |
| | | |
| | | /** |
| | | * ç¼ç åºå®ä¹-模æ¿é¶æ®µ æ°å¢æä¿®æ¹ |
| | | */ |
| | | @PostMapping("/submit") |
| | | @ApiOperationSupport(order = 6) |
| | | @ApiOperation(value = "æ°å¢æä¿®æ¹", notes = "ä¼ å
¥CodeTempphase") |
| | | public R submit(@Valid @RequestBody CodeTempphaseEntity CodeTempphase) { |
| | | return R.status(CodeTempphaseService.saveOrUpdate(CodeTempphase)); |
| | | } |
| | | |
| | | /** |
| | | * ç¼ç åºå®ä¹-模æ¿é¶æ®µ å é¤ |
| | | */ |
| | | @PostMapping("/remove") |
| | | @ApiOperationSupport(order = 7) |
| | | @ApiOperation(value = "é»è¾å é¤", notes = "ä¼ å
¥ids") |
| | | public R remove(@ApiParam(value = "主é®éå", required = true) @RequestParam String ids) { |
| | | return R.status(SqlHelper.retBool(codeTempphaseMapper.deleteBatchIds(Func.toLongList(ids)))); |
| | | } |
| | | |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.enumpack; |
| | | |
| | | import com.vci.ubcs.code.constant.FrameWorkDefaultValueConstant; |
| | | |
| | | public enum CodeClassifyTemplateLC { |
| | | |
| | | /** |
| | | * ç¼è¾ä¸ |
| | | */ |
| | | EDITING(FrameWorkDefaultValueConstant.FRAMEWORK_RELEASE_EDITING,"ç¼è¾ä¸"), |
| | | |
| | | /** |
| | | * å·²åå¸ |
| | | */ |
| | | RELEASED(FrameWorkDefaultValueConstant.FRAMEWORK_RELEASE_RELEASED,"å·²åå¸"), |
| | | |
| | | /** |
| | | * åç¨ |
| | | */ |
| | | DISABLED(FrameWorkDefaultValueConstant.FRAMEWORK_DATA_DISABLED,"åç¨"); |
| | | |
| | | /** |
| | | * æä¸¾çå¼ |
| | | */ |
| | | private String value; |
| | | |
| | | /** |
| | | * æä¸¾æ¾ç¤ºææ¬ |
| | | */ |
| | | private String text; |
| | | |
| | | /** |
| | | * è·åæä¸¾å¼ |
| | | * |
| | | * @return æä¸¾å¼ |
| | | */ |
| | | public String getValue() { |
| | | return value; |
| | | } |
| | | |
| | | /** |
| | | * 设置æä¸¾å¼ |
| | | * |
| | | * @param value æä¸¾å¼ |
| | | */ |
| | | public void setValue(String value) { |
| | | this.value = value; |
| | | } |
| | | |
| | | /** |
| | | * è·åæä¸¾æ¾ç¤ºææ¬ |
| | | * |
| | | * @return æ¾ç¤ºææ¬ |
| | | */ |
| | | public String getText() { |
| | | return text; |
| | | } |
| | | |
| | | /** |
| | | * 设置æ¾ç¤ºææ¬ |
| | | * |
| | | * @param text æ¾ç¤ºææ¬ |
| | | */ |
| | | public void setText(String text) { |
| | | this.text = text; |
| | | } |
| | | |
| | | /** |
| | | * æé 彿° |
| | | * |
| | | * @param value å¼ |
| | | * @param text æ¾ç¤ºææ¬ |
| | | */ |
| | | private CodeClassifyTemplateLC(String value, String text) { |
| | | this.value = value; |
| | | this.text = text; |
| | | } |
| | | |
| | | /** |
| | | * æ ¹æ®åç§°è·å对åºçæä¸¾å¼ |
| | | * |
| | | * @param text åç§° |
| | | * @return æä¸¾å¼ |
| | | */ |
| | | public static String getValueByText(String text) { |
| | | for (CodeClassifyTemplateLC wenum : CodeClassifyTemplateLC.values()) { |
| | | if (wenum.getText().equalsIgnoreCase(text)) { |
| | | return wenum.getValue(); |
| | | } |
| | | } |
| | | return ""; |
| | | } |
| | | |
| | | /** |
| | | * æ ¹æ®æä¸¾å¼è·ååç§° |
| | | * |
| | | * @param value æä¸¾å¼ |
| | | * @return åç§° |
| | | */ |
| | | public static String getTextByValue(String value) { |
| | | for (CodeClassifyTemplateLC wenum : CodeClassifyTemplateLC.values()) { |
| | | if (wenum.getValue().equalsIgnoreCase(value)) { |
| | | return wenum.getText(); |
| | | } |
| | | } |
| | | return ""; |
| | | } |
| | | |
| | | /** |
| | | * æ ¹æ®æä¸¾å¼è·åæä¸¾å¯¹è±¡ |
| | | * |
| | | * @param value æä¸¾å¼ |
| | | * @return æä¸¾å¯¹è±¡ï¼ä¸å卿¶åè¿ånull |
| | | */ |
| | | public static CodeClassifyTemplateLC forValue(String value) { |
| | | for (CodeClassifyTemplateLC wenum : CodeClassifyTemplateLC.values()) { |
| | | if (wenum.getValue().equalsIgnoreCase(value)) { |
| | | return wenum; |
| | | } |
| | | } |
| | | return null; |
| | | } |
| | | } |
| | | |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | /* |
| | | * Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
| | | * |
| | | * Redistribution and use in source and binary forms, with or without |
| | | * modification, are permitted provided that the following conditions are met: |
| | | * |
| | | * Redistributions of source code must retain the above copyright notice, |
| | | * this list of conditions and the following disclaimer. |
| | | * Redistributions in binary form must reproduce the above copyright |
| | | * notice, this list of conditions and the following disclaimer in the |
| | | * documentation and/or other materials provided with the distribution. |
| | | * Neither the name of the dreamlu.net developer nor the names of its |
| | | * contributors may be used to endorse or promote products derived from |
| | | * this software without specific prior written permission. |
| | | * Author: Chill åºéª (smallchill@163.com) |
| | | */ |
| | | package com.vci.ubcs.code.feign; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.vci.ubcs.code.mapper.CodeClsflowtempMapper; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springblade.core.mp.support.BladePage; |
| | | import org.springblade.core.mp.support.Condition; |
| | | import org.springblade.core.mp.support.Query; |
| | | import com.vci.ubcs.code.entity.CodeClsflowtempEntity; |
| | | import com.vci.ubcs.code.service.ICodeClsflowtempService; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import springfox.documentation.annotations.ApiIgnore; |
| | | |
| | | /** |
| | | * ç¼ç åºå®ä¹-æ¨¡æ¿æµç¨ Feignå®ç°ç±» |
| | | * |
| | | * @author yuxc |
| | | * @since 2023-04-20 |
| | | */ |
| | | @ApiIgnore() |
| | | @RestController |
| | | @AllArgsConstructor |
| | | public class CodeClsflowtempClient implements ICodeClsflowtempClient { |
| | | |
| | | |
| | | private CodeClsflowtempMapper codeClsflowtempMapper; |
| | | @Override |
| | | @GetMapping(TOP) |
| | | public BladePage<CodeClsflowtempEntity> top(Integer current, Integer size) { |
| | | Query query = new Query(); |
| | | query.setCurrent(current); |
| | | query.setSize(size); |
| | | IPage<CodeClsflowtempEntity> page = codeClsflowtempMapper.selectPage(Condition.getPage(query), Wrappers.emptyWrapper()); |
| | | |
| | | return BladePage.of(page); |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | /* |
| | | * Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
| | | * |
| | | * Redistribution and use in source and binary forms, with or without |
| | | * modification, are permitted provided that the following conditions are met: |
| | | * |
| | | * Redistributions of source code must retain the above copyright notice, |
| | | * this list of conditions and the following disclaimer. |
| | | * Redistributions in binary form must reproduce the above copyright |
| | | * notice, this list of conditions and the following disclaimer in the |
| | | * documentation and/or other materials provided with the distribution. |
| | | * Neither the name of the dreamlu.net developer nor the names of its |
| | | * contributors may be used to endorse or promote products derived from |
| | | * this software without specific prior written permission. |
| | | * Author: Chill åºéª (smallchill@163.com) |
| | | */ |
| | | package com.vci.ubcs.code.feign; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.vci.ubcs.code.mapper.CodeClstempattrMapper; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springblade.core.mp.support.BladePage; |
| | | import org.springblade.core.mp.support.Condition; |
| | | import org.springblade.core.mp.support.Query; |
| | | import com.vci.ubcs.code.entity.CodeClstempattrEntity; |
| | | import com.vci.ubcs.code.service.ICodeClstempattrService; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import springfox.documentation.annotations.ApiIgnore; |
| | | |
| | | /** |
| | | * ç¼ç åºå®ä¹-模æ¿å±æ§ Feignå®ç°ç±» |
| | | * |
| | | * @author yuxc |
| | | * @since 2023-04-19 |
| | | */ |
| | | @ApiIgnore() |
| | | @RestController |
| | | @AllArgsConstructor |
| | | public class CodeClstempattrClient implements ICodeClstempattrClient { |
| | | |
| | | private CodeClstempattrMapper codeClstempattrMapper; |
| | | |
| | | @Override |
| | | @GetMapping(TOP) |
| | | public BladePage<CodeClstempattrEntity> top(Integer current, Integer size) { |
| | | Query query = new Query(); |
| | | query.setCurrent(current); |
| | | query.setSize(size); |
| | | IPage<CodeClstempattrEntity> page = codeClstempattrMapper.selectPage(Condition.getPage(query), Wrappers.emptyWrapper()); |
| | | |
| | | return BladePage.of(page); |
| | | } |
| | | |
| | | } |
| | |
| | | */ |
| | | package com.vci.ubcs.code.feign; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.vci.ubcs.code.mapper.CodeClstemplateMapper; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springblade.core.mp.support.BladePage; |
| | | import org.springblade.core.mp.support.Condition; |
| | | import org.springblade.core.mp.support.Query; |
| | | import com.vci.ubcs.code.entity.CodeClstemplateEntity; |
| | | import com.vci.ubcs.code.service.ICodeClstemplateService; |
| | |
| | | @AllArgsConstructor |
| | | public class CodeClstemplateClient implements lCodeClstemplateClient { |
| | | |
| | | private final ICodeClstemplateService plCodeClstemplateService; |
| | | private final CodeClstemplateMapper codeClstemplateMapper; |
| | | |
| | | @Override |
| | | @GetMapping(TOP) |
| | |
| | | Query query = new Query(); |
| | | query.setCurrent(current); |
| | | query.setSize(size); |
| | | // IPage<CodeClstemplateEntity> page = service.page(Condition.getPage(query)); |
| | | // return BladePage.of(page); |
| | | return null; |
| | | IPage<CodeClstemplateEntity> page = codeClstemplateMapper.selectPage(Condition.getPage(query), Wrappers.emptyWrapper()); |
| | | |
| | | return BladePage.of(page); |
| | | } |
| | | |
| | | } |
| | |
| | | */ |
| | | package com.vci.ubcs.code.feign; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.vci.ubcs.code.mapper.CodeOsbtmtypeMapper; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springblade.core.mp.support.BladePage; |
| | | import org.springblade.core.mp.support.Condition; |
| | | import org.springblade.core.mp.support.Query; |
| | | import com.vci.ubcs.code.entity.CodeOsbtmtypeEntity; |
| | | import com.vci.ubcs.code.service.ICodeOsbtmtypeService; |
| | |
| | | @AllArgsConstructor |
| | | public class CodeOsbtmtypeClient implements ICodeOsbtmtypeClient { |
| | | |
| | | private final ICodeOsbtmtypeService PLCodeOsbtmtypeService; |
| | | private final CodeOsbtmtypeMapper codeOsbtmtypeMapper; |
| | | |
| | | @Override |
| | | @GetMapping(TOP) |
| | |
| | | Query query = new Query(); |
| | | query.setCurrent(current); |
| | | query.setSize(size); |
| | | // IPage<CodeOsbtmtypeEntity> page = service.page(Condition.getPage(query)); |
| | | return null; |
| | | // return BladePage.of(page); |
| | | IPage<CodeOsbtmtypeEntity> page = codeOsbtmtypeMapper.selectPage(Condition.getPage(query), Wrappers.emptyWrapper()); |
| | | return BladePage.of(page); |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | /* |
| | | * Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
| | | * |
| | | * Redistribution and use in source and binary forms, with or without |
| | | * modification, are permitted provided that the following conditions are met: |
| | | * |
| | | * Redistributions of source code must retain the above copyright notice, |
| | | * this list of conditions and the following disclaimer. |
| | | * Redistributions in binary form must reproduce the above copyright |
| | | * notice, this list of conditions and the following disclaimer in the |
| | | * documentation and/or other materials provided with the distribution. |
| | | * Neither the name of the dreamlu.net developer nor the names of its |
| | | * contributors may be used to endorse or promote products derived from |
| | | * this software without specific prior written permission. |
| | | * Author: Chill åºéª (smallchill@163.com) |
| | | */ |
| | | package com.vci.ubcs.code.feign; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.vci.ubcs.code.mapper.CodePhaseattrMapper; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springblade.core.mp.support.BladePage; |
| | | import org.springblade.core.mp.support.Condition; |
| | | import org.springblade.core.mp.support.Query; |
| | | import com.vci.ubcs.code.entity.CodePhaseattrEntity; |
| | | import com.vci.ubcs.code.service.ICodePhaseattrService; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import springfox.documentation.annotations.ApiIgnore; |
| | | |
| | | /** |
| | | * ç¼ç åºå®ä¹-模æ¿é¶æ®µ-屿§ Feignå®ç°ç±» |
| | | * |
| | | * @author yuxc |
| | | * @since 2023-04-20 |
| | | */ |
| | | @ApiIgnore() |
| | | @RestController |
| | | @AllArgsConstructor |
| | | public class CodePhaseattrClient implements ICodePhaseattrClient { |
| | | |
| | | private final CodePhaseattrMapper codePhaseattrMapper; |
| | | |
| | | @Override |
| | | @GetMapping(TOP) |
| | | public BladePage<CodePhaseattrEntity> top(Integer current, Integer size) { |
| | | Query query = new Query(); |
| | | query.setCurrent(current); |
| | | query.setSize(size); |
| | | IPage<CodePhaseattrEntity> page = codePhaseattrMapper.selectPage(Condition.getPage(query), Wrappers.emptyWrapper()); |
| | | return BladePage.of(page); |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | /* |
| | | * Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
| | | * |
| | | * Redistribution and use in source and binary forms, with or without |
| | | * modification, are permitted provided that the following conditions are met: |
| | | * |
| | | * Redistributions of source code must retain the above copyright notice, |
| | | * this list of conditions and the following disclaimer. |
| | | * Redistributions in binary form must reproduce the above copyright |
| | | * notice, this list of conditions and the following disclaimer in the |
| | | * documentation and/or other materials provided with the distribution. |
| | | * Neither the name of the dreamlu.net developer nor the names of its |
| | | * contributors may be used to endorse or promote products derived from |
| | | * this software without specific prior written permission. |
| | | * Author: Chill åºéª (smallchill@163.com) |
| | | */ |
| | | package com.vci.ubcs.code.feign; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.vci.ubcs.code.mapper.CodeTempbuttonMapper; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springblade.core.mp.support.BladePage; |
| | | import org.springblade.core.mp.support.Condition; |
| | | import org.springblade.core.mp.support.Query; |
| | | import com.vci.ubcs.code.entity.CodeTempbuttonEntity; |
| | | import com.vci.ubcs.code.service.ICodeTempbuttonService; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import springfox.documentation.annotations.ApiIgnore; |
| | | |
| | | /** |
| | | * ç¼ç åºå®ä¹-æ¨¡æ¿æé®æ©å± Feignå®ç°ç±» |
| | | * |
| | | * @author yuxc |
| | | * @since 2023-04-20 |
| | | */ |
| | | @ApiIgnore() |
| | | @RestController |
| | | @AllArgsConstructor |
| | | public class CodeTempbuttonClient implements ICodeTempbuttonClient { |
| | | |
| | | |
| | | private final CodeTempbuttonMapper codeTempbuttonMapper; |
| | | |
| | | @Override |
| | | @GetMapping(TOP) |
| | | public BladePage<CodeTempbuttonEntity> top(Integer current, Integer size) { |
| | | Query query = new Query(); |
| | | query.setCurrent(current); |
| | | query.setSize(size); |
| | | IPage<CodeTempbuttonEntity> page = codeTempbuttonMapper.selectPage(Condition.getPage(query), Wrappers.emptyWrapper()); |
| | | |
| | | return BladePage.of(page); |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | /* |
| | | * Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
| | | * |
| | | * Redistribution and use in source and binary forms, with or without |
| | | * modification, are permitted provided that the following conditions are met: |
| | | * |
| | | * Redistributions of source code must retain the above copyright notice, |
| | | * this list of conditions and the following disclaimer. |
| | | * Redistributions in binary form must reproduce the above copyright |
| | | * notice, this list of conditions and the following disclaimer in the |
| | | * documentation and/or other materials provided with the distribution. |
| | | * Neither the name of the dreamlu.net developer nor the names of its |
| | | * contributors may be used to endorse or promote products derived from |
| | | * this software without specific prior written permission. |
| | | * Author: Chill åºéª (smallchill@163.com) |
| | | */ |
| | | package com.vci.ubcs.code.feign; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.vci.ubcs.code.mapper.CodeTempphaseMapper; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springblade.core.mp.support.BladePage; |
| | | import org.springblade.core.mp.support.Condition; |
| | | import org.springblade.core.mp.support.Query; |
| | | import com.vci.ubcs.code.entity.CodeTempphaseEntity; |
| | | import com.vci.ubcs.code.service.ICodeTempphaseService; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import springfox.documentation.annotations.ApiIgnore; |
| | | |
| | | /** |
| | | * ç¼ç åºå®ä¹-模æ¿é¶æ®µ Feignå®ç°ç±» |
| | | * |
| | | * @author yuxc |
| | | * @since 2023-04-20 |
| | | */ |
| | | @ApiIgnore() |
| | | @RestController |
| | | @AllArgsConstructor |
| | | public class CodeTempphaseClient implements ICodeTempphaseClient { |
| | | |
| | | private final CodeTempphaseMapper codeTempphaseMapper; |
| | | |
| | | @Override |
| | | @GetMapping(TOP) |
| | | public BladePage<CodeTempphaseEntity> top(Integer current, Integer size) { |
| | | Query query = new Query(); |
| | | query.setCurrent(current); |
| | | query.setSize(size); |
| | | IPage<CodeTempphaseEntity> page = codeTempphaseMapper.selectPage(Condition.getPage(query), Wrappers.emptyWrapper()); |
| | | |
| | | return BladePage.of(page); |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | /* |
| | | * Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
| | | * |
| | | * Redistribution and use in source and binary forms, with or without |
| | | * modification, are permitted provided that the following conditions are met: |
| | | * |
| | | * Redistributions of source code must retain the above copyright notice, |
| | | * this list of conditions and the following disclaimer. |
| | | * Redistributions in binary form must reproduce the above copyright |
| | | * notice, this list of conditions and the following disclaimer in the |
| | | * documentation and/or other materials provided with the distribution. |
| | | * Neither the name of the dreamlu.net developer nor the names of its |
| | | * contributors may be used to endorse or promote products derived from |
| | | * this software without specific prior written permission. |
| | | * Author: Chill åºéª (smallchill@163.com) |
| | | */ |
| | | package com.vci.ubcs.code.feign; |
| | | |
| | | import org.springblade.core.mp.support.BladePage; |
| | | import com.vci.ubcs.code.entity.CodeClsflowtempEntity; |
| | | import org.springframework.cloud.openfeign.FeignClient; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | |
| | | /** |
| | | * ç¼ç åºå®ä¹-æ¨¡æ¿æµç¨ Feignæ¥å£ç±» |
| | | * |
| | | * @author yuxc |
| | | * @since 2023-04-20 |
| | | */ |
| | | @FeignClient( |
| | | value = "ubcs-code" |
| | | ) |
| | | public interface ICodeClsflowtempClient { |
| | | |
| | | String API_PREFIX = "/clientFlowtemp"; |
| | | String TOP = API_PREFIX + "/top"; |
| | | |
| | | /** |
| | | * è·åç¼ç åºå®ä¹-æ¨¡æ¿æµç¨å表 |
| | | * |
| | | * @param current é¡µå· |
| | | * @param size é¡µæ° |
| | | * @return BladePage |
| | | */ |
| | | @GetMapping(TOP) |
| | | BladePage<CodeClsflowtempEntity> top(@RequestParam("current") Integer current, @RequestParam("size") Integer size); |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | /* |
| | | * Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
| | | * |
| | | * Redistribution and use in source and binary forms, with or without |
| | | * modification, are permitted provided that the following conditions are met: |
| | | * |
| | | * Redistributions of source code must retain the above copyright notice, |
| | | * this list of conditions and the following disclaimer. |
| | | * Redistributions in binary form must reproduce the above copyright |
| | | * notice, this list of conditions and the following disclaimer in the |
| | | * documentation and/or other materials provided with the distribution. |
| | | * Neither the name of the dreamlu.net developer nor the names of its |
| | | * contributors may be used to endorse or promote products derived from |
| | | * this software without specific prior written permission. |
| | | * Author: Chill åºéª (smallchill@163.com) |
| | | */ |
| | | package com.vci.ubcs.code.feign; |
| | | |
| | | import org.springblade.core.mp.support.BladePage; |
| | | import com.vci.ubcs.code.entity.CodeClstempattrEntity; |
| | | import org.springframework.cloud.openfeign.FeignClient; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | |
| | | /** |
| | | * ç¼ç åºå®ä¹-模æ¿å±æ§ Feignæ¥å£ç±» |
| | | * |
| | | * @author yuxc |
| | | * @since 2023-04-19 |
| | | */ |
| | | @FeignClient( |
| | | value = "ubcs-code" |
| | | ) |
| | | public interface ICodeClstempattrClient { |
| | | |
| | | String API_PREFIX = "/clientTempAttr"; |
| | | String TOP = API_PREFIX + "/top"; |
| | | |
| | | /** |
| | | * è·åç¼ç åºå®ä¹-模æ¿å±æ§å表 |
| | | * |
| | | * @param current é¡µå· |
| | | * @param size é¡µæ° |
| | | * @return BladePage |
| | | */ |
| | | @GetMapping(TOP) |
| | | BladePage<CodeClstempattrEntity> top(@RequestParam("current") Integer current, @RequestParam("size") Integer size); |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | /* |
| | | * Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
| | | * |
| | | * Redistribution and use in source and binary forms, with or without |
| | | * modification, are permitted provided that the following conditions are met: |
| | | * |
| | | * Redistributions of source code must retain the above copyright notice, |
| | | * this list of conditions and the following disclaimer. |
| | | * Redistributions in binary form must reproduce the above copyright |
| | | * notice, this list of conditions and the following disclaimer in the |
| | | * documentation and/or other materials provided with the distribution. |
| | | * Neither the name of the dreamlu.net developer nor the names of its |
| | | * contributors may be used to endorse or promote products derived from |
| | | * this software without specific prior written permission. |
| | | * Author: Chill åºéª (smallchill@163.com) |
| | | */ |
| | | package com.vci.ubcs.code.feign; |
| | | |
| | | import org.springblade.core.mp.support.BladePage; |
| | | import com.vci.ubcs.code.entity.CodePhaseattrEntity; |
| | | import org.springframework.cloud.openfeign.FeignClient; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | |
| | | /** |
| | | * ç¼ç åºå®ä¹-模æ¿é¶æ®µ-屿§ Feignæ¥å£ç±» |
| | | * |
| | | * @author yuxc |
| | | * @since 2023-04-20 |
| | | */ |
| | | @FeignClient( |
| | | value = "ubcs-code" |
| | | ) |
| | | public interface ICodePhaseattrClient { |
| | | |
| | | String API_PREFIX = "/clientPhaseattr"; |
| | | String TOP = API_PREFIX + "/top"; |
| | | |
| | | /** |
| | | * è·åç¼ç åºå®ä¹-模æ¿é¶æ®µ-屿§å表 |
| | | * |
| | | * @param current é¡µå· |
| | | * @param size é¡µæ° |
| | | * @return BladePage |
| | | */ |
| | | @GetMapping(TOP) |
| | | BladePage<CodePhaseattrEntity> top(@RequestParam("current") Integer current, @RequestParam("size") Integer size); |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | /* |
| | | * Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
| | | * |
| | | * Redistribution and use in source and binary forms, with or without |
| | | * modification, are permitted provided that the following conditions are met: |
| | | * |
| | | * Redistributions of source code must retain the above copyright notice, |
| | | * this list of conditions and the following disclaimer. |
| | | * Redistributions in binary form must reproduce the above copyright |
| | | * notice, this list of conditions and the following disclaimer in the |
| | | * documentation and/or other materials provided with the distribution. |
| | | * Neither the name of the dreamlu.net developer nor the names of its |
| | | * contributors may be used to endorse or promote products derived from |
| | | * this software without specific prior written permission. |
| | | * Author: Chill åºéª (smallchill@163.com) |
| | | */ |
| | | package com.vci.ubcs.code.feign; |
| | | |
| | | import org.springblade.core.mp.support.BladePage; |
| | | import com.vci.ubcs.code.entity.CodeTempbuttonEntity; |
| | | import org.springframework.cloud.openfeign.FeignClient; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | |
| | | /** |
| | | * ç¼ç åºå®ä¹-æ¨¡æ¿æé®æ©å± Feignæ¥å£ç±» |
| | | * |
| | | * @author yuxc |
| | | * @since 2023-04-20 |
| | | */ |
| | | @FeignClient( |
| | | value = "ubcs-code" |
| | | ) |
| | | public interface ICodeTempbuttonClient { |
| | | |
| | | String API_PREFIX = "/clientTempButton"; |
| | | String TOP = API_PREFIX + "/top"; |
| | | |
| | | /** |
| | | * è·åç¼ç åºå®ä¹-æ¨¡æ¿æé®æ©å±å表 |
| | | * |
| | | * @param current é¡µå· |
| | | * @param size é¡µæ° |
| | | * @return BladePage |
| | | */ |
| | | @GetMapping(TOP) |
| | | BladePage<CodeTempbuttonEntity> top(@RequestParam("current") Integer current, @RequestParam("size") Integer size); |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | /* |
| | | * Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
| | | * |
| | | * Redistribution and use in source and binary forms, with or without |
| | | * modification, are permitted provided that the following conditions are met: |
| | | * |
| | | * Redistributions of source code must retain the above copyright notice, |
| | | * this list of conditions and the following disclaimer. |
| | | * Redistributions in binary form must reproduce the above copyright |
| | | * notice, this list of conditions and the following disclaimer in the |
| | | * documentation and/or other materials provided with the distribution. |
| | | * Neither the name of the dreamlu.net developer nor the names of its |
| | | * contributors may be used to endorse or promote products derived from |
| | | * this software without specific prior written permission. |
| | | * Author: Chill åºéª (smallchill@163.com) |
| | | */ |
| | | package com.vci.ubcs.code.feign; |
| | | |
| | | import org.springblade.core.mp.support.BladePage; |
| | | import com.vci.ubcs.code.entity.CodeTempphaseEntity; |
| | | import org.springframework.cloud.openfeign.FeignClient; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | |
| | | /** |
| | | * ç¼ç åºå®ä¹-模æ¿é¶æ®µ Feignæ¥å£ç±» |
| | | * |
| | | * @author yuxc |
| | | * @since 2023-04-20 |
| | | */ |
| | | @FeignClient( |
| | | value = "ubcs-code" |
| | | ) |
| | | public interface ICodeTempphaseClient { |
| | | |
| | | String API_PREFIX = "/clientPhase"; |
| | | String TOP = API_PREFIX + "/top"; |
| | | |
| | | /** |
| | | * è·åç¼ç åºå®ä¹-模æ¿é¶æ®µå表 |
| | | * |
| | | * @param current é¡µå· |
| | | * @param size é¡µæ° |
| | | * @return BladePage |
| | | */ |
| | | @GetMapping(TOP) |
| | | BladePage<CodeTempphaseEntity> top(@RequestParam("current") Integer current, @RequestParam("size") Integer size); |
| | | |
| | | } |
| | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.vci.ubcs.code.vo.pagemodel.CodeClassifyVO; |
| | | import org.apache.ibatis.annotations.MapKey; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | |
| | | * @return |
| | | */ |
| | | @MapKey("oid") |
| | | Map<String,String> selectAllLevelChildOid(String oid); |
| | | Map<String,String> selectAllLevelChildOid(@Param("oid") String oid); |
| | | |
| | | /** |
| | | * æ ¡éªæ¯å¦å
å«åèç¹ |
| | |
| | | * @return true 表示å
å« |
| | | */ |
| | | // @MapKey("oid") |
| | | Boolean checkHasChild(String oid); |
| | | Boolean checkHasChild(@Param("oid") String oid); |
| | | |
| | | /** |
| | | * æ¥æ¾æ å½¢ç»æ |
| | |
| | | * @param oid åç±»çä¸»é® |
| | | * @return æ°æ®éå |
| | | */ |
| | | List<CodeClassify> selectCodeClassifyVOByTree(String oid); |
| | | List<CodeClassify> selectCodeClassifyVOByTree(@Param("oid") String oid); |
| | | |
| | | /** |
| | | * æ¥æ¾æ å½¢ç»æ |
| | |
| | | * @param oid åç±»çä¸»é® |
| | | * @return æ°æ®éå |
| | | */ |
| | | List<CodeClassify> selectAllLevelChildHasPath(String oid); |
| | | List<CodeClassify> selectAllLevelChildHasPath(@Param("oid") String oid); |
| | | |
| | | |
| | | @MapKey("oid") |
| | | List<Map<String,Object>> selectAllLevelParentByOid(String oid); |
| | | List<Map<String,Object>> selectAllLevelParentByOid(@Param("oid") String oid); |
| | | |
| | | |
| | | @MapKey("oid") |
| | | List<Map<String,Object>> selectByFieldPath(String fieldPath); |
| | | List<Map<String,Object>> selectByFieldPath(@Param("fieldPath") String fieldPath); |
| | | |
| | | } |
copy from Source/UBCS/ubcs-service/ubcs-omd/src/main/java/com/vci/ubcs/omd/mapper/DictBizMapper.java
copy to Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/mapper/CodeClsflowtempMapper.java
Îļþ´Ó Source/UBCS/ubcs-service/ubcs-omd/src/main/java/com/vci/ubcs/omd/mapper/DictBizMapper.java ¸´ÖÆ |
| | |
| | | * this software without specific prior written permission. |
| | | * Author: Chill åºéª (smallchill@163.com) |
| | | */ |
| | | package com.vci.ubcs.omd.mapper; |
| | | package com.vci.ubcs.code.mapper; |
| | | |
| | | |
| | | import com.vci.ubcs.code.entity.CodeClsflowtempEntity; |
| | | import com.vci.ubcs.code.vo.CodeClsflowtempVO; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.vci.ubcs.omd.entity.DictBizM; |
| | | import com.vci.ubcs.omd.vo.DictBizMVO; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * Mapper æ¥å£ |
| | | * ç¼ç åºå®ä¹-æ¨¡æ¿æµç¨ Mapper æ¥å£ |
| | | * |
| | | * @author Chill |
| | | * @author yuxc |
| | | * @since 2023-04-20 |
| | | */ |
| | | public interface DictBizMapper extends BaseMapper<DictBizM> { |
| | | public interface CodeClsflowtempMapper extends BaseMapper<CodeClsflowtempEntity> { |
| | | |
| | | /** |
| | | * è·ååå
¸è¡¨å¯¹åºä¸æ |
| | | * èªå®ä¹å页 |
| | | * |
| | | * @param code åå
¸ç¼å· |
| | | * @param dictKey åå
¸åºå· |
| | | * @param page |
| | | * @param CodeClsflowtemp |
| | | * @return |
| | | */ |
| | | String getValue(String code, String dictKey); |
| | | List<CodeClsflowtempVO> selectCodeClsflowtempPage(IPage page, CodeClsflowtempVO CodeClsflowtemp); |
| | | |
| | | /** |
| | | * è·ååå
¸è¡¨ |
| | | * |
| | | * @param code åå
¸ç¼å· |
| | | * @return |
| | | */ |
| | | List<DictBizM> getList(String code); |
| | | |
| | | /** |
| | | * è·åæ å½¢èç¹ |
| | | * |
| | | * @return |
| | | */ |
| | | List<DictBizMVO> tree(); |
| | | |
| | | /** |
| | | * è·åæ å½¢èç¹ |
| | | * |
| | | * @return |
| | | */ |
| | | List<DictBizMVO> parentTree(); |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | /* |
| | | * Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
| | | * |
| | | * Redistribution and use in source and binary forms, with or without |
| | | * modification, are permitted provided that the following conditions are met: |
| | | * |
| | | * Redistributions of source code must retain the above copyright notice, |
| | | * this list of conditions and the following disclaimer. |
| | | * Redistributions in binary form must reproduce the above copyright |
| | | * notice, this list of conditions and the following disclaimer in the |
| | | * documentation and/or other materials provided with the distribution. |
| | | * Neither the name of the dreamlu.net developer nor the names of its |
| | | * contributors may be used to endorse or promote products derived from |
| | | * this software without specific prior written permission. |
| | | * Author: Chill åºéª (smallchill@163.com) |
| | | */ |
| | | package com.vci.ubcs.code.mapper; |
| | | |
| | | import com.vci.ubcs.code.entity.CodeClstempattrEntity; |
| | | import com.vci.ubcs.code.vo.CodeClstempattrVO; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * ç¼ç åºå®ä¹-模æ¿å±æ§ Mapper æ¥å£ |
| | | * |
| | | * @author yuxc |
| | | * @since 2023-04-19 |
| | | */ |
| | | public interface CodeClstempattrMapper extends BaseMapper<CodeClstempattrEntity> { |
| | | |
| | | /** |
| | | * èªå®ä¹å页 |
| | | * |
| | | * @param page |
| | | * @param CodeClstempattr |
| | | * @return |
| | | */ |
| | | List<CodeClstempattrVO> selectCodeClstempattrPage(IPage page, CodeClstempattrVO CodeClstempattr); |
| | | |
| | | /** |
| | | * æ¡ä»¶æ¥è¯¢æåº |
| | | * |
| | | * @param classifytemplateoid |
| | | * @return |
| | | */ |
| | | List<CodeClstempattrEntity> selectByClassifytemplateoid(String classifytemplateoid); |
| | | |
| | | |
| | | List<CodeClstempattrEntity> selectRefByOid(String oid); |
| | | } |
| | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.vci.ubcs.code.entity.CodeClstemplateEntity; |
| | | import com.vci.ubcs.code.vo.CodeClstemplateVO; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import java.util.List; |
| | | |
| | |
| | | */ |
| | | List<CodeClstemplateVO> selectPlCodeClstemplatePage(IPage page, CodeClstemplateVO plCodeClstemplate); |
| | | |
| | | /** |
| | | * è·åææå±çº§ä¸çº§çä¸»é® |
| | | * |
| | | * @param oid |
| | | * @return |
| | | */ |
| | | List<String> selectAllLevelChildOid(@Param("oid") String oid); |
| | | |
| | | /** |
| | | * æ ¡éªæ¯å¦æä¸çº§èç¹ï¼ä¸æ ¡éªæ¯å¦å
³èäºæ°æ® |
| | | * |
| | | * @param oid |
| | | * @return |
| | | */ |
| | | int countAllLevelChildOid(@Param("oid") String oid); |
| | | |
| | | |
| | | } |
copy from Source/UBCS/ubcs-service/ubcs-omd/src/main/java/com/vci/ubcs/omd/mapper/DictBizMapper.java
copy to Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/mapper/CodePhaseattrMapper.java
Îļþ´Ó Source/UBCS/ubcs-service/ubcs-omd/src/main/java/com/vci/ubcs/omd/mapper/DictBizMapper.java ¸´ÖÆ |
| | |
| | | * this software without specific prior written permission. |
| | | * Author: Chill åºéª (smallchill@163.com) |
| | | */ |
| | | package com.vci.ubcs.omd.mapper; |
| | | package com.vci.ubcs.code.mapper; |
| | | |
| | | |
| | | import com.vci.ubcs.code.entity.CodePhaseattrEntity; |
| | | import com.vci.ubcs.code.vo.CodePhaseattrVO; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.vci.ubcs.omd.entity.DictBizM; |
| | | import com.vci.ubcs.omd.vo.DictBizMVO; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * Mapper æ¥å£ |
| | | * ç¼ç åºå®ä¹-模æ¿é¶æ®µ-屿§ Mapper æ¥å£ |
| | | * |
| | | * @author Chill |
| | | * @author yuxc |
| | | * @since 2023-04-20 |
| | | */ |
| | | public interface DictBizMapper extends BaseMapper<DictBizM> { |
| | | public interface CodePhaseattrMapper extends BaseMapper<CodePhaseattrEntity> { |
| | | |
| | | /** |
| | | * è·ååå
¸è¡¨å¯¹åºä¸æ |
| | | * èªå®ä¹å页 |
| | | * |
| | | * @param code åå
¸ç¼å· |
| | | * @param dictKey åå
¸åºå· |
| | | * @param page |
| | | * @param CodePhaseattr |
| | | * @return |
| | | */ |
| | | String getValue(String code, String dictKey); |
| | | List<CodePhaseattrVO> selectCodePhaseattrPage(IPage page, CodePhaseattrVO CodePhaseattr); |
| | | |
| | | /** |
| | | * è·ååå
¸è¡¨ |
| | | * |
| | | * @param code åå
¸ç¼å· |
| | | * @return |
| | | */ |
| | | List<DictBizM> getList(String code); |
| | | |
| | | /** |
| | | * è·åæ å½¢èç¹ |
| | | * |
| | | * @return |
| | | */ |
| | | List<DictBizMVO> tree(); |
| | | |
| | | /** |
| | | * è·åæ å½¢èç¹ |
| | | * |
| | | * @return |
| | | */ |
| | | List<DictBizMVO> parentTree(); |
| | | |
| | | List<CodePhaseattrEntity> selectByPhasea(String oid); |
| | | } |
copy from Source/UBCS/ubcs-service/ubcs-omd/src/main/java/com/vci/ubcs/omd/mapper/DictBizMapper.java
copy to Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/mapper/CodeTempbuttonMapper.java
Îļþ´Ó Source/UBCS/ubcs-service/ubcs-omd/src/main/java/com/vci/ubcs/omd/mapper/DictBizMapper.java ¸´ÖÆ |
| | |
| | | * this software without specific prior written permission. |
| | | * Author: Chill åºéª (smallchill@163.com) |
| | | */ |
| | | package com.vci.ubcs.omd.mapper; |
| | | package com.vci.ubcs.code.mapper; |
| | | |
| | | |
| | | import com.vci.ubcs.code.entity.CodeTempbuttonEntity; |
| | | import com.vci.ubcs.code.vo.CodeTempbuttonVO; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.vci.ubcs.omd.entity.DictBizM; |
| | | import com.vci.ubcs.omd.vo.DictBizMVO; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * Mapper æ¥å£ |
| | | * ç¼ç åºå®ä¹-æ¨¡æ¿æé®æ©å± Mapper æ¥å£ |
| | | * |
| | | * @author Chill |
| | | * @author yuxc |
| | | * @since 2023-04-20 |
| | | */ |
| | | public interface DictBizMapper extends BaseMapper<DictBizM> { |
| | | public interface CodeTempbuttonMapper extends BaseMapper<CodeTempbuttonEntity> { |
| | | |
| | | /** |
| | | * è·ååå
¸è¡¨å¯¹åºä¸æ |
| | | * èªå®ä¹å页 |
| | | * |
| | | * @param code åå
¸ç¼å· |
| | | * @param dictKey åå
¸åºå· |
| | | * @param page |
| | | * @param CodeTempbutton |
| | | * @return |
| | | */ |
| | | String getValue(String code, String dictKey); |
| | | List<CodeTempbuttonVO> selectCodeTempbuttonPage(IPage page, CodeTempbuttonVO CodeTempbutton); |
| | | |
| | | /** |
| | | * è·ååå
¸è¡¨ |
| | | * |
| | | * @param code åå
¸ç¼å· |
| | | * @return |
| | | */ |
| | | List<DictBizM> getList(String code); |
| | | |
| | | /** |
| | | * è·åæ å½¢èç¹ |
| | | * |
| | | * @return |
| | | */ |
| | | List<DictBizMVO> tree(); |
| | | |
| | | /** |
| | | * è·åæ å½¢èç¹ |
| | | * |
| | | * @return |
| | | */ |
| | | List<DictBizMVO> parentTree(); |
| | | |
| | | } |
copy from Source/UBCS/ubcs-service/ubcs-omd/src/main/java/com/vci/ubcs/omd/mapper/DictBizMapper.java
copy to Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/mapper/CodeTempphaseMapper.java
Îļþ´Ó Source/UBCS/ubcs-service/ubcs-omd/src/main/java/com/vci/ubcs/omd/mapper/DictBizMapper.java ¸´ÖÆ |
| | |
| | | * this software without specific prior written permission. |
| | | * Author: Chill åºéª (smallchill@163.com) |
| | | */ |
| | | package com.vci.ubcs.omd.mapper; |
| | | package com.vci.ubcs.code.mapper; |
| | | |
| | | |
| | | import com.vci.ubcs.code.entity.CodeTempphaseEntity; |
| | | import com.vci.ubcs.code.vo.CodeTempphaseVO; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.vci.ubcs.omd.entity.DictBizM; |
| | | import com.vci.ubcs.omd.vo.DictBizMVO; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * Mapper æ¥å£ |
| | | * ç¼ç åºå®ä¹-模æ¿é¶æ®µ Mapper æ¥å£ |
| | | * |
| | | * @author Chill |
| | | * @author yuxc |
| | | * @since 2023-04-20 |
| | | */ |
| | | public interface DictBizMapper extends BaseMapper<DictBizM> { |
| | | public interface CodeTempphaseMapper extends BaseMapper<CodeTempphaseEntity> { |
| | | |
| | | /** |
| | | * è·ååå
¸è¡¨å¯¹åºä¸æ |
| | | * èªå®ä¹å页 |
| | | * |
| | | * @param code åå
¸ç¼å· |
| | | * @param dictKey åå
¸åºå· |
| | | * @param page |
| | | * @param CodeTempphase |
| | | * @return |
| | | */ |
| | | String getValue(String code, String dictKey); |
| | | List<CodeTempphaseVO> selectCodeTempphasePage(IPage page, CodeTempphaseVO CodeTempphase); |
| | | |
| | | /** |
| | | * è·ååå
¸è¡¨ |
| | | * |
| | | * @param code åå
¸ç¼å· |
| | | * @return |
| | | */ |
| | | List<DictBizM> getList(String code); |
| | | |
| | | /** |
| | | * è·åæ å½¢èç¹ |
| | | * |
| | | * @return |
| | | */ |
| | | List<DictBizMVO> tree(); |
| | | |
| | | /** |
| | | * è·åæ å½¢èç¹ |
| | | * |
| | | * @return |
| | | */ |
| | | List<DictBizMVO> parentTree(); |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | /* |
| | | * Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
| | | * |
| | | * Redistribution and use in source and binary forms, with or without |
| | | * modification, are permitted provided that the following conditions are met: |
| | | * |
| | | * Redistributions of source code must retain the above copyright notice, |
| | | * this list of conditions and the following disclaimer. |
| | | * Redistributions in binary form must reproduce the above copyright |
| | | * notice, this list of conditions and the following disclaimer in the |
| | | * documentation and/or other materials provided with the distribution. |
| | | * Neither the name of the dreamlu.net developer nor the names of its |
| | | * contributors may be used to endorse or promote products derived from |
| | | * this software without specific prior written permission. |
| | | * Author: Chill åºéª (smallchill@163.com) |
| | | */ |
| | | package com.vci.ubcs.code.service; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.vci.ubcs.code.entity.CodeClsflowtempEntity; |
| | | import com.vci.ubcs.code.vo.CodeClsflowtempVO; |
| | | |
| | | /** |
| | | * ç¼ç åºå®ä¹-æ¨¡æ¿æµç¨ æå¡ç±» |
| | | * |
| | | * @author yuxc |
| | | * @since 2023-04-20 |
| | | */ |
| | | public interface ICodeClsflowtempService extends IService<CodeClsflowtempEntity> { |
| | | |
| | | /** |
| | | * èªå®ä¹å页 |
| | | * |
| | | * @param page |
| | | * @param CodeClsflowtemp |
| | | * @return |
| | | */ |
| | | IPage<CodeClsflowtempVO> selectCodeClsflowtempPage(IPage<CodeClsflowtempVO> page, CodeClsflowtempVO CodeClsflowtemp); |
| | | |
| | | /** |
| | | * 模æ¿å é¤çæ¶å触å |
| | | * @param classifyTemplateOid 模æ¿çä¸»é® |
| | | * @return åå½±åçå
容 |
| | | */ |
| | | int codeTemplateDeleteTrigger(String classifyTemplateOid) ; |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | /* |
| | | * Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
| | | * |
| | | * Redistribution and use in source and binary forms, with or without |
| | | * modification, are permitted provided that the following conditions are met: |
| | | * |
| | | * Redistributions of source code must retain the above copyright notice, |
| | | * this list of conditions and the following disclaimer. |
| | | * Redistributions in binary form must reproduce the above copyright |
| | | * notice, this list of conditions and the following disclaimer in the |
| | | * documentation and/or other materials provided with the distribution. |
| | | * Neither the name of the dreamlu.net developer nor the names of its |
| | | * contributors may be used to endorse or promote products derived from |
| | | * this software without specific prior written permission. |
| | | * Author: Chill åºéª (smallchill@163.com) |
| | | */ |
| | | package com.vci.ubcs.code.service; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.vci.ubcs.code.entity.CodeClstempattrEntity; |
| | | import com.vci.ubcs.code.vo.CodeClstempattrVO; |
| | | |
| | | import java.util.Collection; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * ç¼ç åºå®ä¹-模æ¿å±æ§ æå¡ç±» |
| | | * |
| | | * @author yuxc |
| | | * @since 2023-04-19 |
| | | */ |
| | | public interface ICodeClstempattrService extends IService<CodeClstempattrEntity> { |
| | | |
| | | /** |
| | | * èªå®ä¹å页 |
| | | * |
| | | * @param page |
| | | * @param CodeClstempattr |
| | | * @return |
| | | */ |
| | | IPage<CodeClstempattrVO> selectCodeClstempattrPage(IPage<CodeClstempattrVO> page, CodeClstempattrVO CodeClstempattr); |
| | | |
| | | /** |
| | | * ä½¿ç¨æ¨¡æ¿ç主é®è·å模æ¿ç屿§--æ¹é |
| | | * @param templateOidCollection 模æ¿çä¸»é® |
| | | * @return 屿§çä¿¡æ¯ |
| | | */ |
| | | List<CodeClstempattrVO> listCodeClassifyTemplateAttrByTemplateOids(Collection<String> templateOidCollection); |
| | | |
| | | /** |
| | | * æ¹éæ°æ®å¯¹è±¡è½¬æ¢ä¸ºæ¾ç¤ºå¯¹è±¡ |
| | | * @param codeClassifyTemplateAttrDOs æ°æ®å¯¹è±¡å表 |
| | | * @return æ¾ç¤ºå¯¹è±¡ |
| | | */ |
| | | List<CodeClstempattrVO> codeClassifyTemplateAttrDO2VOs(Collection<CodeClstempattrEntity> codeClassifyTemplateAttrDOs); |
| | | |
| | | /** |
| | | * æ°æ®å¯¹è±¡è½¬æ¢ä¸ºæ¾ç¤ºå¯¹è±¡ |
| | | * @param codeClassifyTemplateAttrDO æ°æ®å¯¹è±¡ |
| | | * @return æ¾ç¤ºå¯¹è±¡ |
| | | */ |
| | | CodeClstempattrVO codeClassifyTemplateAttrDO2VO(CodeClstempattrEntity codeClassifyTemplateAttrDO); |
| | | |
| | | } |
| | |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.vci.ubcs.code.dto.CodeClstemplateDTO; |
| | | import com.vci.ubcs.code.entity.CodeClstemplateEntity; |
| | | import com.vci.ubcs.code.vo.CodeClstemplateVO; |
| | | import com.vci.ubcs.code.vo.pagemodel.TreeQueryObject; |
| | | import com.vci.ubcs.com.vci.starter.web.pagemodel.Tree; |
| | | import org.springblade.core.tool.api.R; |
| | | |
| | | import java.util.Collection; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * ç¼ç åºå®ä¹-模æ¿ç®¡ç æå¡ç±» |
| | |
| | | */ |
| | | IPage<CodeClstemplateVO> selectPlCodeClstemplatePage(IPage<CodeClstemplateVO> page, CodeClstemplateVO plCodeClstemplate); |
| | | |
| | | /** |
| | | * æ¥è¯¢å类模æ¿å¯¹è±¡ æ |
| | | * @param treeQueryObject æ æ¥è¯¢å¯¹è±¡ |
| | | * @return å类模æ¿å¯¹è±¡ æ¾ç¤ºæ |
| | | */ |
| | | List<Tree> treeCodeClassifyTemplate(TreeQueryObject treeQueryObject); |
| | | |
| | | /** |
| | | * æ ¹æ®æ å½¢æ¥è¯¢å¯¹è±¡æ¥æ¥è¯¢æ°æ®å¯¹è±¡ |
| | | * |
| | | * @param treeQueryObject æ å½¢æ¥è¯¢å¯¹è±¡ |
| | | * @return æ¥è¯¢ç»æ,æ°æ®å¯¹è±¡ |
| | | */ |
| | | List<CodeClstemplateEntity> selectCodeClassifyTemplateDOByTree(TreeQueryObject treeQueryObject); |
| | | |
| | | /** |
| | | * æ¹éæ°æ®å¯¹è±¡è½¬æ¢ä¸ºæ¾ç¤ºå¯¹è±¡ |
| | | * @param codeClstemplateEntitys æ°æ®å¯¹è±¡å表 |
| | | * @return æ¾ç¤ºå¯¹è±¡ |
| | | */ |
| | | List<CodeClstemplateVO> codeClassifyTemplateDO2VOs(Collection<CodeClstemplateEntity> codeClstemplateEntitys); |
| | | |
| | | /** |
| | | * æ¹éæ°æ®å¯¹è±¡è½¬æ¢ä¸ºæ¾ç¤ºå¯¹è±¡ |
| | | * @param codeClstemplateEntitys æ°æ®å¯¹è±¡å表 |
| | | * @param hasAttr æ¯å¦å
å«å±æ§ |
| | | * @return æ¾ç¤ºå¯¹è±¡ |
| | | */ |
| | | List<CodeClstemplateVO> codeClassifyTemplateDO2VOs(Collection<CodeClstemplateEntity> codeClstemplateEntitys, boolean hasAttr); |
| | | |
| | | /** |
| | | * æ°æ®å¯¹è±¡è½¬æ¢ä¸ºæ¾ç¤ºå¯¹è±¡ |
| | | * @param codeClstemplateEntity æ°æ®å¯¹è±¡ |
| | | * @return æ¾ç¤ºå¯¹è±¡ |
| | | */ |
| | | CodeClstemplateVO codeClassifyTemplateDO2VO(CodeClstemplateEntity codeClstemplateEntity); |
| | | |
| | | // /** |
| | | // * å类模æ¿å表 |
| | | // * @param conditionMap æ¥è¯¢æ¡ä»¶ |
| | | // * @param pageHelper å页对象 |
| | | // * @return æ¾ç¤ºå¯¹è±¡ |
| | | // */ |
| | | // DataGrid<CodeClstemplateVO> gridCodeClassifyTemplate(Map<String, String> conditionMap, PageHelper pageHelper) ; |
| | | |
| | | /** |
| | | * æ£æ¥ å类模æ¿å¯¹è±¡æ¯å¦å é¤ |
| | | * @param codeClstemplateDTO å类模æ¿å¯¹è±¡æ°æ®ä¼ è¾å¯¹è±¡ï¼å¿
é¡»è¦æoidåts屿§ |
| | | * @return æ§è¡ç»æ success为true为å¯ä»¥å é¤ï¼falseè¡¨ç¤ºææ°æ®å¼ç¨ï¼obj为true表示æä¸çº§ |
| | | */ |
| | | R checkIsCanDelete(CodeClstemplateDTO codeClstemplateDTO); |
| | | |
| | | /** |
| | | * æ£æ¥æ¯å¦æä¸çº§æ¯å¦å
³èäºæ°æ® |
| | | * |
| | | * @param oid ä¸»é® |
| | | * @return true 表示æå¼ç¨ï¼false表示没æå¼ç¨ |
| | | */ |
| | | boolean checkChildIsLinked(String oid); |
| | | |
| | | /** |
| | | * æ ¡éªæ¯å¦æä¸çº§èç¹ï¼ä¸æ ¡éªæ¯å¦å
³èäºæ°æ® |
| | | * |
| | | * @param oid ä¸»é® |
| | | * @return true表示æä¸çº§ï¼false表示没æä¸çº§ |
| | | */ |
| | | boolean checkHasChild(String oid); |
| | | |
| | | /** |
| | | * å é¤å类模æ¿å¯¹è±¡ |
| | | * @param codeClstemplateDTO å类模æ¿å¯¹è±¡æ°æ®ä¼ è¾å¯¹è±¡ï¼oidåtséè¦ä¼ è¾ |
| | | * @return å é¤ç»æåé¦ï¼ï¼successï¼æåï¼failï¼å¤±è´¥ |
| | | */ |
| | | R deleteCodeClassifyTemplate(CodeClstemplateDTO codeClstemplateDTO); |
| | | |
| | | /** |
| | | * 主é®è·åå类模æ¿å¯¹è±¡ |
| | | * @param oid ä¸»é® |
| | | * @return å类模æ¿å¯¹è±¡æ¾ç¤ºå¯¹è±¡ |
| | | */ |
| | | CodeClstemplateVO getObjectByOid(String oid) ; |
| | | |
| | | /** |
| | | * 䏻鮿¹éè·åå类模æ¿å¯¹è±¡ |
| | | * @param oidCollections 主é®éåï¼ä½æ¯åæ§è½å½±åï¼å»ºè®®ä¸æ¬¡æ¥è¯¢ä¸è¶
è¿10000个 |
| | | * @return å类模æ¿å¯¹è±¡æ¾ç¤ºå¯¹è±¡ |
| | | */ |
| | | Collection<CodeClstemplateVO> listCodeClassifyTemplateByOids(List<String> oidCollections); |
| | | |
| | | |
| | | /** |
| | | * åç
§æ å类模æ¿å¯¹è±¡ |
| | | * @param treeQueryObject æ å½¢æ¥è¯¢å¯¹è±¡ |
| | | * @return å类模æ¿å¯¹è±¡æ¾ç¤ºæ |
| | | */ |
| | | List<Tree> referTree(TreeQueryObject treeQueryObject); |
| | | |
| | | /** |
| | | * å¯ç¨ãåç¨ |
| | | * @param oid |
| | | * @param lcStatus |
| | | * @return |
| | | */ |
| | | R updateLcStatus(String oid, String lcStatus); |
| | | |
| | | /** |
| | | * åç |
| | | */ |
| | | R Upgrade(CodeClstemplateDTO codeClassifyDTO); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | /* |
| | | * Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
| | | * |
| | | * Redistribution and use in source and binary forms, with or without |
| | | * modification, are permitted provided that the following conditions are met: |
| | | * |
| | | * Redistributions of source code must retain the above copyright notice, |
| | | * this list of conditions and the following disclaimer. |
| | | * Redistributions in binary form must reproduce the above copyright |
| | | * notice, this list of conditions and the following disclaimer in the |
| | | * documentation and/or other materials provided with the distribution. |
| | | * Neither the name of the dreamlu.net developer nor the names of its |
| | | * contributors may be used to endorse or promote products derived from |
| | | * this software without specific prior written permission. |
| | | * Author: Chill åºéª (smallchill@163.com) |
| | | */ |
| | | package com.vci.ubcs.code.service; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.vci.ubcs.code.entity.CodePhaseattrEntity; |
| | | import com.vci.ubcs.code.vo.CodePhaseattrVO; |
| | | |
| | | /** |
| | | * ç¼ç åºå®ä¹-模æ¿é¶æ®µ-屿§ æå¡ç±» |
| | | * |
| | | * @author yuxc |
| | | * @since 2023-04-20 |
| | | */ |
| | | public interface ICodePhaseattrService extends IService<CodePhaseattrEntity> { |
| | | |
| | | /** |
| | | * èªå®ä¹å页 |
| | | * |
| | | * @param page |
| | | * @param CodePhaseattr |
| | | * @return |
| | | */ |
| | | IPage<CodePhaseattrVO> selectCodePhaseattrPage(IPage<CodePhaseattrVO> page, CodePhaseattrVO CodePhaseattr); |
| | | |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | /* |
| | | * Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
| | | * |
| | | * Redistribution and use in source and binary forms, with or without |
| | | * modification, are permitted provided that the following conditions are met: |
| | | * |
| | | * Redistributions of source code must retain the above copyright notice, |
| | | * this list of conditions and the following disclaimer. |
| | | * Redistributions in binary form must reproduce the above copyright |
| | | * notice, this list of conditions and the following disclaimer in the |
| | | * documentation and/or other materials provided with the distribution. |
| | | * Neither the name of the dreamlu.net developer nor the names of its |
| | | * contributors may be used to endorse or promote products derived from |
| | | * this software without specific prior written permission. |
| | | * Author: Chill åºéª (smallchill@163.com) |
| | | */ |
| | | package com.vci.ubcs.code.service; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.vci.ubcs.code.entity.CodeTempbuttonEntity; |
| | | import com.vci.ubcs.code.vo.CodeTempbuttonVO; |
| | | |
| | | /** |
| | | * ç¼ç åºå®ä¹-æ¨¡æ¿æé®æ©å± æå¡ç±» |
| | | * |
| | | * @author yuxc |
| | | * @since 2023-04-20 |
| | | */ |
| | | public interface ICodeTempbuttonService extends IService<CodeTempbuttonEntity> { |
| | | |
| | | /** |
| | | * èªå®ä¹å页 |
| | | * |
| | | * @param page |
| | | * @param CodeTempbutton |
| | | * @return |
| | | */ |
| | | IPage<CodeTempbuttonVO> selectCodeTempbuttonPage(IPage<CodeTempbuttonVO> page, CodeTempbuttonVO CodeTempbutton); |
| | | |
| | | |
| | | /** |
| | | * 模æ¿å é¤çæ¶å触å |
| | | * @param classifyTemplateOid 模æ¿çä¸»é® |
| | | * @return åå½±åçæ°æ®è¡ |
| | | */ |
| | | int codeTemplateDeleteTrigger(String classifyTemplateOid); |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | /* |
| | | * Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
| | | * |
| | | * Redistribution and use in source and binary forms, with or without |
| | | * modification, are permitted provided that the following conditions are met: |
| | | * |
| | | * Redistributions of source code must retain the above copyright notice, |
| | | * this list of conditions and the following disclaimer. |
| | | * Redistributions in binary form must reproduce the above copyright |
| | | * notice, this list of conditions and the following disclaimer in the |
| | | * documentation and/or other materials provided with the distribution. |
| | | * Neither the name of the dreamlu.net developer nor the names of its |
| | | * contributors may be used to endorse or promote products derived from |
| | | * this software without specific prior written permission. |
| | | * Author: Chill åºéª (smallchill@163.com) |
| | | */ |
| | | package com.vci.ubcs.code.service; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.vci.ubcs.code.entity.CodeTempphaseEntity; |
| | | import com.vci.ubcs.code.vo.CodeTempphaseVO; |
| | | |
| | | /** |
| | | * ç¼ç åºå®ä¹-模æ¿é¶æ®µ æå¡ç±» |
| | | * |
| | | * @author yuxc |
| | | * @since 2023-04-20 |
| | | */ |
| | | public interface ICodeTempphaseService extends IService<CodeTempphaseEntity> { |
| | | |
| | | /** |
| | | * èªå®ä¹å页 |
| | | * |
| | | * @param page |
| | | * @param CodeTempphase |
| | | * @return |
| | | */ |
| | | IPage<CodeTempphaseVO> selectCodeTempphasePage(IPage<CodeTempphaseVO> page, CodeTempphaseVO CodeTempphase); |
| | | |
| | | |
| | | /** |
| | | * 模æ¿å é¤çæ¶å触å |
| | | * @param classifyTemplateOid 模æ¿çä¸»é® |
| | | * @return åå½±åçæ°æ® |
| | | */ |
| | | int codeTemplateDeleteTrigger(String classifyTemplateOid); |
| | | } |
| | |
| | | import com.vci.ubcs.com.vci.starter.web.util.BeanUtilForVCI; |
| | | import com.vci.ubcs.com.vci.starter.web.util.LangBaseUtil; |
| | | import com.vci.ubcs.com.vci.starter.web.util.VciBaseUtil; |
| | | import com.vci.ubcs.core.log.exception.ServiceException; |
| | | import org.apache.poi.hssf.util.HSSFColor; |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | | import org.springblade.core.cache.utils.CacheUtil; |
| | | import org.springblade.core.log.exception.ServiceException; |
| | | import org.springblade.core.mp.support.Condition; |
| | | import org.springblade.core.secure.utils.AuthUtil; |
| | | import org.springblade.core.tool.api.R; |
| | |
| | | @Resource |
| | | private CodeClstemplateMapper codeClstemplateMapper; |
| | | |
| | | // @Resource |
| | | // private ICodeRuleService codeRuleService; |
| | | @Resource |
| | | private ICodeRuleService codeRuleService; |
| | | |
| | | @Resource |
| | | private CodeOsbtmtypeMapper codeOsbtmtypeMapper; |
| | | |
| | | @Resource |
| | | CodeOsbtmtypeattributeMapper codeOsbtmtypeattributeMapper; |
| | | |
| | |
| | | codeClassifyEntity.setCreator(AuthUtil.getUser().getUserName()); |
| | | codeClassifyEntity.setCreateTime(new Date()); |
| | | codeClassifyEntity.setTs(new Date()); |
| | | codeClassifyEntity.setOwner(AuthUtil.getUser().getUserName()); |
| | | codeClassifyEntity.setLastModifier(AuthUtil.getUser().getUserName()); |
| | | codeClassifyEntity.setLastModifyTime(new Date()); |
| | | codeClassifyEntity.setRevisionSeq(1); |
| | | codeClassifyEntity.setVersionSeq(1); |
| | | int insertNumber = codeClassifyMapper.insert(codeClassifyEntity); |
| | | return R.status(SqlHelper.retBool(insertNumber)); |
| | | } |
| | |
| | | if(codeClassifyEntity == null || codeClassifyEntity.getOid() == null){ |
| | | return R.fail("ä¼ å
¥æ°æ®ä¸è½ä¸ºç©ºï¼"); |
| | | } |
| | | codeClassifyEntity = selectByOid(codeClassifyEntity.getOid()); |
| | | CodeClassify codeClassifyNew = selectByOid(codeClassifyEntity.getOid()); |
| | | if(codeClassifyNew == null){ |
| | | return R.fail("æªæ¥è¯¢å°ç¸å
³æ°æ®ï¼"); |
| | | } |
| | | codeClassifyNew.setTs(codeClassifyEntity.getTs()); |
| | | return checkIsCanDeleteForDO(codeClassifyEntity); |
| | | } |
| | | |
| | |
| | | private R checkIsCanDeleteForDO(CodeClassify codeClassifyEntity) { |
| | | |
| | | //æ£æ¥ts |
| | | Map<String,Object> condition = new HashMap<>(2); |
| | | condition.put("oid",codeClassifyEntity.getOid()); |
| | | condition.put("ts",codeClassifyEntity.getTs()); |
| | | CodeClassify detail = codeClassifyMapper |
| | | .selectOne(Condition.getQueryWrapper(condition,CodeClassify.class)); |
| | | // Map<String,Object> condition = new HashMap<>(2); |
| | | // condition.put("oid",codeClassifyEntity.getOid()); |
| | | // condition.put("ts",codeClassifyEntity.getTs()); |
| | | CodeClassify detail = codeClassifyMapper.selectOne(Condition.getQueryWrapper(codeClassifyEntity)); |
| | | // .selectOne(Condition.getQueryWrapper(condition,CodeClassify.class)); |
| | | if(detail == null){//䏿¯ææ°çä¸è®©æ¹ |
| | | throw new ServiceException("å½åæ°æ®ä¸æ¯ææ°ï¼è¯·å·æ°ååä¿®æ¹ï¼"); |
| | | // return R.fail("å½åæ°æ®ä¸æ¯ææ°ï¼è¯·å·æ°ååä¿®æ¹ï¼"); |
| | |
| | | //æ¥è¯¢ä¿®æ¹åts |
| | | CodeClassify codeClassify = codeClassifyMapper.selectById(oid);//ä¸»è¦æ¯ä¸ºäºæ¥è¯¢ts |
| | | codeClassify.setLcStatus(lcStatus); |
| | | codeClassify.setTs(new Date()); |
| | | codeClassify.setLastModifyTime(new Date()); |
| | | codeClassify.setLastModifier(AuthUtil.getUser().getUserName()); |
| | | //å¯ç¨ãåç¨ |
| | | // int u = codeClassifyMapper.updateLcStatus(oid,lcStatus); |
| | | int count = codeClassifyMapper.updateById(codeClassify); |
| | |
| | | }); |
| | | throw new VciBaseException("è·¯å¾æéå¤,{0}",new String[]{rowIndexList.stream().collect(Collectors.joining(","))}); |
| | | } |
| | | //ç¼å·è·åä¸å¡ç±»åæå¡è¿æªå®æï¼æä»¥çä¸å¡ç±»å宿åè¿è¡åç»ç宿 |
| | | // Map<String, CodeRuleVO> ruleVOMap = Optional.ofNullable(codeRuleService.listCodeRuleByIds( |
| | | // poList.stream().filter(s->StringUtils.isNotBlank(s.getCodeRuleId())).map(CodeClassifyPO::getCodeRuleId).collect(Collectors.toList())) |
| | | // ).orElse(new ArrayList<>()).stream().collect(Collectors.toMap(s -> s.getId().toLowerCase(Locale.ROOT), t -> t,(o1,o2)->o2)); |
| | | Map<String, CodeRuleVO> ruleVOMap = null; |
| | | Map<String,CodeKeyAttrRepeatRuleVO> keyRuleVOMap =Optional.ofNullable(iCodeKeyattrrepeatService.listCodeKeyAttrRepeatRuleByOids( |
| | | poList.stream().filter(s->StringUtils.isNotBlank(s.getKeyRepeatRuleId())).map(CodeClassifyPO::getKeyRepeatRuleId).collect(Collectors.toList())) |
| | | //ç¼å·è·åä¸å¡ç±»åæå¡ |
| | | List<String> ruleOids = poList.stream().filter( |
| | | s -> StringUtils.isNotBlank(s.getCodeRuleId())) |
| | | .map(CodeClassifyPO::getCodeRuleId) |
| | | .collect(Collectors.toList()); |
| | | Map<String, CodeRuleVO> ruleVOMap = Optional.ofNullable(ruleOids.size()==0 ? null:codeRuleService.listCodeRuleByOids(ruleOids) |
| | | ).orElse(new ArrayList<>()).stream().collect(Collectors.toMap(s -> s.getId().toLowerCase(Locale.ROOT), t -> t,(o1,o2)->o2)); |
| | | // codeOsbtmtypeMapper.selectList((Wrapper<CodeOsbtmtypeEntity>) poList); |
| | | // Map<String, CodeOsbtmtypeVO> btmVOMap = Optional.ofNullable( |
| | | // codeOsbtmtypeMapper.selectList((Wrapper<CodeOsbtmtypeEntity>) poList) |
| | | // ).orElse(new ArrayList<>()).stream().collect(Collectors.toMap(s -> s.getId().toLowerCase(Locale.ROOT), t -> t,(o1,o2)->o2)); |
| | | Map<String, CodeOsbtmtypeVO> btmVOMap = null; |
| | | |
| | | List<String> keyOids = poList.stream().filter(s -> StringUtils.isNotBlank(s.getKeyRepeatRuleId())) |
| | | .map(CodeClassifyPO::getKeyRepeatRuleId).collect(Collectors.toList()); |
| | | Map<String,CodeKeyAttrRepeatRuleVO> keyRuleVOMap =Optional.ofNullable(keyOids.size()==0 ? null: iCodeKeyattrrepeatService.listCodeKeyAttrRepeatRuleByOids(keyOids) |
| | | ).orElse(new ArrayList<>()).stream().collect(Collectors.toMap(s -> s.getId().toLowerCase(Locale.ROOT), t -> t,(o1,o2)->o2)); |
| | | |
| | | List<String> btmOids = poList.stream().filter(s -> StringUtils.isNotBlank(s.getKeyRepeatRuleId())) |
| | | .map(CodeClassifyPO::getBtmTypeId).collect(Collectors.toList()); |
| | | Map<String, CodeOsbtmtypeEntity> btmVOMap = Optional.ofNullable(btmOids.size()==0 ? null: codeOsbtmtypeMapper.selectBatchIds(btmOids) |
| | | ).orElse(new ArrayList<>()).stream().collect(Collectors.toMap(s -> s.getId().toLowerCase(Locale.ROOT), t -> t,(o1,o2)->o2)); |
| | | // Map<String, CodeOsbtmtypeVO> btmVOMap = null; |
| | | Map<String/**è·¯å¾**/,String/**主é®**/> oidPathMap = new HashMap<>(); |
| | | |
| | | //æä»¬éè¦æ¥è¯¢ææå·²ç»åå¨çåç±»ï¼ä¸»è¦æ¯è·¯å¾ï¼ç¨æ¥å¤æåç±»çæ°æ® |
| | |
| | | classify.setDescription(po.getDescription()); |
| | | oidPathMap.put(po.getPath(),classify.getOid()); |
| | | if(StringUtils.isNotBlank(po.getBtmTypeId())){ |
| | | CodeOsbtmtypeVO typeVO = btmVOMap.get(po.getBtmTypeId().toLowerCase(Locale.ROOT)); |
| | | CodeOsbtmtypeVO typeVO = (CodeOsbtmtypeVO)btmVOMap.get(po.getBtmTypeId().toLowerCase(Locale.ROOT)); |
| | | classify.setBtmTypeId(typeVO.getId()); |
| | | classify.setBtmTypeName(typeVO.getName()); |
| | | } |
| | |
| | | classifyDO.setTs(new Date()); |
| | | classifyDO.setBtmname("codeclassify"); |
| | | classifyDO.setLcStatus("Enabled"); |
| | | classifyDO.setId("0"); |
| | | classifyDO.setOwner(AuthUtil.getUser().getUserName()); |
| | | classifyDO.setCreator(AuthUtil.getUser().getUserName()); |
| | | classifyDO.setLastModifier(AuthUtil.getUser().getUserName()); |
| | | classifyDO.setLastModifyTime(new Date()); |
| | |
| | | List<Map<String,Object>> cbos = codeClassifyMapper.selectAllLevelParentByOid(oid); |
| | | Map<String,String> oidLevelMap = new HashMap<>(); |
| | | Optional.ofNullable(cbos).orElseGet(()->new ArrayList<>()).stream().forEach(cbo->{ |
| | | oidLevelMap.put(cbo.get("oid").toString(),cbo.get("level").toString()); |
| | | oidLevelMap.put(cbo.get("OID").toString(),cbo.get("LEVEL").toString()); |
| | | }); |
| | | if(CollectionUtils.isEmpty(oidLevelMap)){ |
| | | return new ArrayList<>(); |
¶Ô±ÈÐÂÎļþ |
| | |
| | | /* |
| | | * Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
| | | * |
| | | * Redistribution and use in source and binary forms, with or without |
| | | * modification, are permitted provided that the following conditions are met: |
| | | * |
| | | * Redistributions of source code must retain the above copyright notice, |
| | | * this list of conditions and the following disclaimer. |
| | | * Redistributions in binary form must reproduce the above copyright |
| | | * notice, this list of conditions and the following disclaimer in the |
| | | * documentation and/or other materials provided with the distribution. |
| | | * Neither the name of the dreamlu.net developer nor the names of its |
| | | * contributors may be used to endorse or promote products derived from |
| | | * this software without specific prior written permission. |
| | | * Author: Chill åºéª (smallchill@163.com) |
| | | */ |
| | | package com.vci.ubcs.code.service.impl; |
| | | |
| | | import com.alibaba.nacos.api.utils.StringUtils; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.vci.ubcs.code.entity.CodeClsflowtempEntity; |
| | | import com.vci.ubcs.code.mapper.CodeClsflowtempMapper; |
| | | import com.vci.ubcs.code.service.ICodeClsflowtempService; |
| | | import com.vci.ubcs.code.vo.CodeClsflowtempVO; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.util.CollectionUtils; |
| | | |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.util.stream.Collectors; |
| | | |
| | | /** |
| | | * ç¼ç åºå®ä¹-æ¨¡æ¿æµç¨ æå¡å®ç°ç±» |
| | | * |
| | | * @author yuxc |
| | | * @since 2023-04-20 |
| | | */ |
| | | @Service |
| | | public class CodeClsflowtempServiceImpl extends ServiceImpl<CodeClsflowtempMapper, CodeClsflowtempEntity> implements ICodeClsflowtempService { |
| | | |
| | | @Override |
| | | public IPage<CodeClsflowtempVO> selectCodeClsflowtempPage(IPage<CodeClsflowtempVO> page, CodeClsflowtempVO CodeClsflowtemp) { |
| | | return page.setRecords(baseMapper.selectCodeClsflowtempPage(page, CodeClsflowtemp)); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 模æ¿å é¤çæ¶å触å |
| | | * |
| | | * @param classifyTemplateOid 模æ¿çä¸»é® |
| | | * @return åå½±åçå
容 |
| | | */ |
| | | @Override |
| | | public int codeTemplateDeleteTrigger(String classifyTemplateOid) { |
| | | int updateCount = 0; |
| | | if(StringUtils.isBlank(classifyTemplateOid)){ |
| | | Map<String,Object> conditionMap = new HashMap<>(); |
| | | conditionMap.put("classifyTemplateOid",classifyTemplateOid); |
| | | List<CodeClsflowtempEntity> codeClsflowtempEntities = baseMapper.selectByMap(conditionMap); |
| | | if(!CollectionUtils.isEmpty(codeClsflowtempEntities)){ |
| | | updateCount += baseMapper.deleteBatchIds(codeClsflowtempEntities.stream() |
| | | .map(CodeClsflowtempEntity::getOid).collect(Collectors.toList())); |
| | | } |
| | | } |
| | | return updateCount; |
| | | } |
| | | |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | /* |
| | | * Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
| | | * |
| | | * Redistribution and use in source and binary forms, with or without |
| | | * modification, are permitted provided that the following conditions are met: |
| | | * |
| | | * Redistributions of source code must retain the above copyright notice, |
| | | * this list of conditions and the following disclaimer. |
| | | * Redistributions in binary form must reproduce the above copyright |
| | | * notice, this list of conditions and the following disclaimer in the |
| | | * documentation and/or other materials provided with the distribution. |
| | | * Neither the name of the dreamlu.net developer nor the names of its |
| | | * contributors may be used to endorse or promote products derived from |
| | | * this software without specific prior written permission. |
| | | * Author: Chill åºéª (smallchill@163.com) |
| | | */ |
| | | package com.vci.ubcs.code.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.vci.ubcs.code.entity.CodeClstempattrEntity; |
| | | import com.vci.ubcs.code.mapper.CodeClstempattrMapper; |
| | | import com.vci.ubcs.code.service.ICodeClstempattrService; |
| | | import com.vci.ubcs.code.vo.CodeClstempattrVO; |
| | | import com.vci.ubcs.com.vci.starter.web.enumpck.VciFieldTypeEnum; |
| | | import com.vci.ubcs.com.vci.starter.web.util.BeanUtilForVCI; |
| | | import com.vci.ubcs.com.vci.starter.web.util.VciBaseUtil; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.util.CollectionUtils; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.ArrayList; |
| | | import java.util.Collection; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * ç¼ç åºå®ä¹-模æ¿å±æ§ æå¡å®ç°ç±» |
| | | * |
| | | * @author yuxc |
| | | * @since 2023-04-19 |
| | | */ |
| | | @Service |
| | | public class CodeClstempattrServiceImpl extends ServiceImpl<CodeClstempattrMapper, CodeClstempattrEntity> implements ICodeClstempattrService { |
| | | |
| | | @Resource |
| | | CodeClstempattrMapper codeClstempattrMapper; |
| | | |
| | | @Override |
| | | public IPage<CodeClstempattrVO> selectCodeClstempattrPage(IPage<CodeClstempattrVO> page, CodeClstempattrVO CodeClstempattr) { |
| | | return page.setRecords(baseMapper.selectCodeClstempattrPage(page, CodeClstempattr)); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * ä½¿ç¨æ¨¡æ¿ç主é®è·å模æ¿ç屿§--æ¹é |
| | | * |
| | | * @param templateOidCollection 模æ¿çä¸»é® |
| | | * @return 屿§çä¿¡æ¯ |
| | | */ |
| | | @Override |
| | | public List<CodeClstempattrVO> listCodeClassifyTemplateAttrByTemplateOids(Collection<String> templateOidCollection) { |
| | | if(CollectionUtils.isEmpty(templateOidCollection)){ |
| | | return new ArrayList<>(); |
| | | } |
| | | List<CodeClstempattrEntity> attrDOList = new ArrayList<>(); |
| | | VciBaseUtil.switchCollectionForOracleIn(templateOidCollection).stream().forEach(templateOids->{ |
| | | // Map<String,String> conditionMap = new HashMap<>(); |
| | | // conditionMap.put("classifytemplateoid", QueryOptionConstant.IN + "(" + VciBaseUtil.toInSql(templateOids.toArray(new String[0])) + ")"); |
| | | // PageHelper pageHelper = new PageHelper(-1); |
| | | // pageHelper.addDefaultAsc("orderNum"); |
| | | List<CodeClstempattrEntity> attrDOS = baseMapper.selectByClassifytemplateoid(VciBaseUtil.toInSql(templateOids.toArray(new String[0]))); |
| | | |
| | | if(!CollectionUtils.isEmpty(attrDOS)){ |
| | | attrDOList.addAll(attrDOS); |
| | | } |
| | | }); |
| | | return codeClassifyTemplateAttrDO2VOs(attrDOList); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éæ°æ®å¯¹è±¡è½¬æ¢ä¸ºæ¾ç¤ºå¯¹è±¡ |
| | | * @param codeClassifyTemplateAttrDOs æ°æ®å¯¹è±¡å表 |
| | | * @return æ¾ç¤ºå¯¹è±¡ |
| | | */ |
| | | @Override |
| | | public List<CodeClstempattrVO> codeClassifyTemplateAttrDO2VOs(Collection<CodeClstempattrEntity> codeClassifyTemplateAttrDOs){ |
| | | List<CodeClstempattrVO> voList = new ArrayList<CodeClstempattrVO>(); |
| | | if(!CollectionUtils.isEmpty(codeClassifyTemplateAttrDOs)){ |
| | | for(CodeClstempattrEntity s: codeClassifyTemplateAttrDOs){ |
| | | CodeClstempattrVO vo = codeClassifyTemplateAttrDO2VO(s); |
| | | if(vo != null){ |
| | | voList.add(vo); |
| | | } |
| | | } |
| | | } |
| | | return voList; |
| | | } |
| | | |
| | | /** |
| | | * æ°æ®å¯¹è±¡è½¬æ¢ä¸ºæ¾ç¤ºå¯¹è±¡ |
| | | * @param codeClassifyTemplateAttrDO æ°æ®å¯¹è±¡ |
| | | * @return æ¾ç¤ºå¯¹è±¡ |
| | | */ |
| | | @Override |
| | | public CodeClstempattrVO codeClassifyTemplateAttrDO2VO(CodeClstempattrEntity codeClassifyTemplateAttrDO){ |
| | | CodeClstempattrVO vo = new CodeClstempattrVO(); |
| | | if(codeClassifyTemplateAttrDO != null){ |
| | | BeanUtilForVCI.copyPropertiesIgnoreCase(codeClassifyTemplateAttrDO,vo); |
| | | //妿ælcstatusçç±»çè¯ |
| | | vo.setAttributeDataTypeText(VciFieldTypeEnum.getTextByValue(vo.getAttributedatatype())); |
| | | } |
| | | return vo; |
| | | } |
| | | } |
| | |
| | | */ |
| | | package com.vci.ubcs.code.service.impl; |
| | | |
| | | import com.alibaba.nacos.api.utils.StringUtils; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.vci.ubcs.code.bo.TreeWrapperOptions; |
| | | import com.vci.ubcs.code.dto.CodeClstemplateDTO; |
| | | import com.vci.ubcs.code.entity.CodeClstempattrEntity; |
| | | import com.vci.ubcs.code.entity.CodeClstemplateEntity; |
| | | import com.vci.ubcs.code.enumpack.CodeClassifyTemplateLC; |
| | | import com.vci.ubcs.code.enumpack.FrameworkDataLCStatus; |
| | | import com.vci.ubcs.code.mapper.CodeClstempattrMapper; |
| | | import com.vci.ubcs.code.mapper.CodeClstemplateMapper; |
| | | import com.vci.ubcs.code.service.ICodeClstemplateService; |
| | | import com.vci.ubcs.code.vo.CodeClstempattrVO; |
| | | import com.vci.ubcs.code.vo.CodeClstemplateVO; |
| | | import com.vci.ubcs.code.vo.pagemodel.TreeQueryObject; |
| | | import com.vci.ubcs.com.vci.starter.exception.VciBaseException; |
| | | import com.vci.ubcs.com.vci.starter.revision.service.RevisionModelUtil; |
| | | import com.vci.ubcs.com.vci.starter.web.pagemodel.Tree; |
| | | import com.vci.ubcs.com.vci.starter.web.util.BeanUtilForVCI; |
| | | import com.vci.ubcs.com.vci.starter.web.util.VciBaseUtil; |
| | | import org.springblade.core.mp.support.Condition; |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.context.annotation.Lazy; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.util.CollectionUtils; |
| | | |
| | | import java.util.*; |
| | | import java.util.stream.Collectors; |
| | | |
| | | import static com.vci.ubcs.code.constant.FrameWorkDefaultValueConstant.FRAMEWORK_RELEASE_RELEASED; |
| | | import static com.vci.ubcs.code.constant.FrameWorkDefaultValueConstant.LC_STATUS; |
| | | import static com.vci.ubcs.code.constant.FrameWorkLangCodeConstant.*; |
| | | import static com.vci.ubcs.code.service.impl.CodeClassifyServiceImpl.PARENT_FIELD_NAME; |
| | | |
| | | /** |
| | | * ç¼ç åºå®ä¹-模æ¿ç®¡ç æå¡å®ç°ç±» |
| | |
| | | @Service |
| | | public class CodeClstemplateServiceImpl extends ServiceImpl<CodeClstemplateMapper, CodeClstemplateEntity> implements ICodeClstemplateService { |
| | | |
| | | /** |
| | | * 模æ¿å±æ§çæå¡ |
| | | */ |
| | | @Lazy |
| | | @Autowired(required = false) |
| | | CodeClstempattrServiceImpl codeClstempattrService; |
| | | |
| | | /** |
| | | * 对象çæä½ |
| | | */ |
| | | @Autowired(required = false) |
| | | private RevisionModelUtil revisionModelUtil; |
| | | |
| | | @Autowired(required = false) |
| | | private CodeClstempattrMapper codeClstempattrMapper; |
| | | @Autowired(required = false) |
| | | private CodeTempphaseServiceImpl codeTempphaseServiceImpl; |
| | | @Autowired(required = false) |
| | | private CodeTempbuttonServiceImpl codeTempbuttonServiceImpl; |
| | | @Autowired(required = false) |
| | | private CodeClsflowtempServiceImpl codeClsflowtempServiceImpl; |
| | | @Override |
| | | public IPage<CodeClstemplateVO> selectPlCodeClstemplatePage(IPage<CodeClstemplateVO> page, CodeClstemplateVO plCodeClstemplate) { |
| | | return page.setRecords(baseMapper.selectPlCodeClstemplatePage(page, plCodeClstemplate)); |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢å类模æ¿å¯¹è±¡ æ |
| | | * @param treeQueryObject æ æ¥è¯¢å¯¹è±¡ |
| | | * @return å类模æ¿å¯¹è±¡ æ¾ç¤ºæ |
| | | */ |
| | | @Override |
| | | public List<Tree> treeCodeClassifyTemplate(TreeQueryObject treeQueryObject) { |
| | | List<CodeClstemplateEntity> doList =selectCodeClassifyTemplateDOByTree(treeQueryObject); |
| | | |
| | | List<CodeClstemplateVO> voList = codeClassifyTemplateDO2VOs(doList); |
| | | TreeWrapperOptions treeWrapperOptions = new TreeWrapperOptions(PARENT_FIELD_NAME); |
| | | treeWrapperOptions.copyFromTreeQuery(treeQueryObject); |
| | | return revisionModelUtil.doList2Trees(voList,treeWrapperOptions,(CodeClstemplateVO s) ->{ |
| | | //å¯ä»¥å¨è¿éå¤çæ èç¹çæ¾ç¤º |
| | | return s.getId() + " " + s.getName() + (FrameworkDataLCStatus.DISABLED.getValue().equalsIgnoreCase(s |
| | | .getLcStatus()) ? (" ãåç¨ã ") : ""); |
| | | }); |
| | | } |
| | | |
| | | /** |
| | | * æ ¹æ®æ å½¢æ¥è¯¢å¯¹è±¡æ¥æ¥è¯¢æ°æ®å¯¹è±¡ |
| | | * |
| | | * @param treeQueryObject æ å½¢æ¥è¯¢å¯¹è±¡ |
| | | * @return æ¥è¯¢ç»æ,æ°æ®å¯¹è±¡ |
| | | */ |
| | | @Override |
| | | public List<CodeClstemplateEntity> selectCodeClassifyTemplateDOByTree(TreeQueryObject treeQueryObject) { |
| | | // VciQueryWrapperForDO queryWrapperForDO = new VciQueryWrapperForDO(null,CodeClassifyTemplateDO.class); |
| | | // VciParentQueryOption parentQueryOption = new VciParentQueryOption(); |
| | | // parentQueryOption.setParentFieldName(PARENT_FIELD_NAME); |
| | | // queryWrapperForDO.parentQueryChild(treeQueryObject,parentQueryOption); |
| | | CodeClstemplateEntity codeClstemplateEntity = new CodeClstemplateEntity(); |
| | | return baseMapper.selectList(Condition.getQueryWrapper(codeClstemplateEntity)); |
| | | // return codeClassifyTemplateMapper.selectByWrapper(queryWrapperForDO); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éæ°æ®å¯¹è±¡è½¬æ¢ä¸ºæ¾ç¤ºå¯¹è±¡ |
| | | * @param codeClassifyTemplateDOs æ°æ®å¯¹è±¡å表 |
| | | * @return æ¾ç¤ºå¯¹è±¡ |
| | | */ |
| | | @Override |
| | | public List<CodeClstemplateVO> codeClassifyTemplateDO2VOs(Collection<CodeClstemplateEntity> codeClassifyTemplateDOs) { |
| | | return codeClassifyTemplateDO2VOs(codeClassifyTemplateDOs,false); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éæ°æ®å¯¹è±¡è½¬æ¢ä¸ºæ¾ç¤ºå¯¹è±¡ |
| | | * @param codeClassifyTemplateDOs æ°æ®å¯¹è±¡å表 |
| | | * @param hasAttr æ¯å¦å
å«å±æ§ |
| | | * @return æ¾ç¤ºå¯¹è±¡ |
| | | */ |
| | | @Override |
| | | public List<CodeClstemplateVO> codeClassifyTemplateDO2VOs(Collection<CodeClstemplateEntity> codeClassifyTemplateDOs,boolean hasAttr) { |
| | | List<CodeClstemplateVO> voList = new ArrayList<CodeClstemplateVO>(); |
| | | if(!CollectionUtils.isEmpty(codeClassifyTemplateDOs)){ |
| | | for(CodeClstemplateEntity s: codeClassifyTemplateDOs){ |
| | | CodeClstemplateVO vo = codeClassifyTemplateDO2VO(s); |
| | | if(vo != null){ |
| | | voList.add(vo); |
| | | } |
| | | } |
| | | } |
| | | if(hasAttr){ |
| | | //ä¸ä¸ªåç±»é颿»ä¸è½è¶
è¿1000个çæççæ¬å§ï¼ï¼ï¼ |
| | | VciBaseUtil.switchCollectionForOracleIn(voList.stream().map(CodeClstemplateVO::getOid).collect(Collectors.toList())).forEach(tempOids->{ |
| | | List<CodeClstempattrVO> attrVOList = codeClstempattrService.listCodeClassifyTemplateAttrByTemplateOids(tempOids); |
| | | |
| | | if(!CollectionUtils.isEmpty(attrVOList)){ |
| | | Map<String, List<CodeClstempattrVO>> attrVOMap = attrVOList.stream().collect(Collectors.groupingBy(s -> s.getClassifytemplateoid())); |
| | | |
| | | voList.stream().forEach(templateVO->{ |
| | | if(attrVOMap.containsKey(templateVO.getOid())){ |
| | | templateVO.setAttributes(attrVOMap.get(templateVO.getOid())); |
| | | } |
| | | }); |
| | | } |
| | | }); |
| | | |
| | | } |
| | | return voList; |
| | | } |
| | | /** |
| | | * æ°æ®å¯¹è±¡è½¬æ¢ä¸ºæ¾ç¤ºå¯¹è±¡ |
| | | * @param codeClassifyTemplateDO æ°æ®å¯¹è±¡ |
| | | * @return æ¾ç¤ºå¯¹è±¡ |
| | | */ |
| | | @Override |
| | | public CodeClstemplateVO codeClassifyTemplateDO2VO(CodeClstemplateEntity codeClassifyTemplateDO) { |
| | | CodeClstemplateVO vo = new CodeClstemplateVO(); |
| | | if(codeClassifyTemplateDO != null){ |
| | | BeanUtilForVCI.copyPropertiesIgnoreCase(codeClassifyTemplateDO,vo); |
| | | //妿ælcstatusçç±»çè¯ |
| | | vo.setLcStatusText(CodeClassifyTemplateLC.getTextByValue(vo.getLcStatus())); |
| | | |
| | | } |
| | | return vo; |
| | | } |
| | | |
| | | /** |
| | | * æ£æ¥ å类模æ¿å¯¹è±¡æ¯å¦å é¤ |
| | | * @param codeClstemplateDTO å类模æ¿å¯¹è±¡æ°æ®ä¼ è¾å¯¹è±¡ï¼å¿
é¡»è¦æoidåts屿§ |
| | | * @return æ§è¡ç»æ success为true为å¯ä»¥å é¤ï¼falseè¡¨ç¤ºææ°æ®å¼ç¨ï¼obj为true表示æä¸çº§ |
| | | */ |
| | | @Override |
| | | public R checkIsCanDelete(CodeClstemplateDTO codeClstemplateDTO) { |
| | | VciBaseUtil.alertNotNull(codeClstemplateDTO,"æ°æ®ä¼ è¾å¯¹è±¡",codeClstemplateDTO.getOid(),"主é®"); |
| | | CodeClstemplateEntity codeClstemplateEntity = baseMapper.selectById(codeClstemplateDTO.getOid()); |
| | | return checkIsCanDeleteForDO(codeClstemplateDTO,codeClstemplateEntity); |
| | | } |
| | | |
| | | /** |
| | | * æ ¡éªæ¯å¦å¯ä»¥å é¤ï¼å¦æåå¨ä¸çº§ï¼å¹¶ä¸ä¸çº§ææ°æ®å¼ç¨åä¸è½å é¤ |
| | | * @param codeClstemplateDTO æ°æ®ä¼ è¾å¯¹è±¡ |
| | | * @param codeClstemplateEntity æ°æ®åºä¸çæ°æ®å¯¹è±¡ |
| | | * @return success为true为å¯ä»¥å é¤ï¼falseè¡¨ç¤ºææ°æ®å¼ç¨ï¼obj为true表示æä¸çº§ |
| | | */ |
| | | private R checkIsCanDeleteForDO(CodeClstemplateDTO codeClstemplateDTO, CodeClstemplateEntity codeClstemplateEntity) { |
| | | CodeClstemplateEntity codeClassifyTemplateDOCopyFromDTO = new CodeClstemplateEntity(); |
| | | BeanUtilForVCI.copyPropertiesIgnoreCase(codeClstemplateDTO,codeClassifyTemplateDOCopyFromDTO); |
| | | |
| | | //æ£æ¥ts |
| | | Map<String,Object> condition = new HashMap<>(2); |
| | | condition.put("oid",codeClstemplateDTO.getOid()); |
| | | condition.put("ts",codeClstemplateDTO.getTs()); |
| | | CodeClstemplateEntity detail = baseMapper |
| | | .selectOne(Condition.getQueryWrapper(condition,CodeClstemplateEntity.class)); |
| | | if(detail == null){//䏿¯ææ°çä¸è®©æ¹ |
| | | return R.fail("å½åæ°æ®ä¸æ¯ææ°ï¼è¯·å·æ°ååä¿®æ¹ï¼"); |
| | | } |
| | | //æ ¡éªä¸çº§æ¯å¦æå¼ç¨ |
| | | if(checkChildIsLinked(codeClstemplateEntity.getOid())){ |
| | | return R.fail(DATA_CASCADE_LINKED_NOT_DELETE); |
| | | } |
| | | return R.status(checkHasChild(codeClstemplateEntity.getOid())); |
| | | } |
| | | |
| | | /** |
| | | * æ£æ¥æ¯å¦æä¸çº§æ¯å¦å
³èäºæ°æ® |
| | | * |
| | | * @param oid ä¸»é® |
| | | * @return true 表示æå¼ç¨ï¼false表示没æå¼ç¨ |
| | | */ |
| | | @Override |
| | | public boolean checkChildIsLinked(String oid) { |
| | | VciBaseUtil.alertNotNull(oid,"主é®"); |
| | | List<String> childOids = baseMapper.selectAllLevelChildOid(oid.trim()); |
| | | if(!CollectionUtils.isEmpty(childOids)){ |
| | | for(String childOid: childOids){ |
| | | if(!checkIsLinked(childOid)){ |
| | | return false; |
| | | } |
| | | } |
| | | return true; |
| | | } |
| | | return false; |
| | | } |
| | | |
| | | /** |
| | | * æ ¡éªæ¯å¦è¢«å¼ç¨ |
| | | * @param oid ä¸»é® |
| | | */ |
| | | private boolean checkIsLinked(String oid){ |
| | | //TODO æ·»å éè¦æ ¡éªå¼ç¨çå°æ¹ |
| | | return false; |
| | | } |
| | | |
| | | /** |
| | | * æ ¡éªæ¯å¦æä¸çº§èç¹ï¼ä¸æ ¡éªæ¯å¦å
³èäºæ°æ® |
| | | * |
| | | * @param oid ä¸»é® |
| | | * @return true表示æä¸çº§ï¼false表示没æä¸çº§ |
| | | */ |
| | | @Override |
| | | public boolean checkHasChild(String oid) { |
| | | VciBaseUtil.alertNotNull(oid,"主é®"); |
| | | return baseMapper.countAllLevelChildOid(oid.trim()) > 0; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * å é¤å类模æ¿å¯¹è±¡ |
| | | * @param codeClstemplateDTO å类模æ¿å¯¹è±¡æ°æ®ä¼ è¾å¯¹è±¡ï¼oidåtséè¦ä¼ è¾ |
| | | * @return å é¤ç»æåé¦ï¼ï¼successï¼æåï¼failï¼å¤±è´¥ |
| | | */ |
| | | @Override |
| | | public R deleteCodeClassifyTemplate(CodeClstemplateDTO codeClstemplateDTO) { |
| | | checkIsCanDelete(codeClstemplateDTO); |
| | | VciBaseUtil.alertNotNull(codeClstemplateDTO,"å类模æ¿å¯¹è±¡æ°æ®å¯¹è±¡",codeClstemplateDTO.getOid(),"å类模æ¿å¯¹è±¡ç主é®"); |
| | | |
| | | CodeClstemplateEntity codeClassifyTemplateDO = baseMapper.selectById(codeClstemplateDTO.getOid()); |
| | | |
| | | //åªæç¼è¾ä¸æè½å |
| | | if(!CodeClassifyTemplateLC.EDITING.getValue().equals(codeClassifyTemplateDO.getLcStatus())){ |
| | | return R.fail("åªæç¼è¾ä¸çï¼æ¨¡æ¿æè½å é¤ï¼"); |
| | | } |
| | | R baseResult = checkIsCanDeleteForDO(codeClstemplateDTO,codeClassifyTemplateDO); |
| | | |
| | | //模æ¿oid |
| | | String templateOid = codeClstemplateDTO.getOid(); |
| | | |
| | | int updateCount = 0; |
| | | |
| | | // WebUtil.setPersistence(false);//䏿§è¡ä¿å |
| | | // BatchCBO batchCBO = new BatchCBO(); |
| | | |
| | | if(baseResult.isSuccess()) { |
| | | //æ¾ä¸çº§çï¼è¿ä¸ªæ¯å¯ä»¥å é¤çæ¶å |
| | | List<String> childrenOids = baseMapper.selectAllLevelChildOid(codeClassifyTemplateDO.getOid().trim()); |
| | | if (!CollectionUtils.isEmpty(childrenOids)) { |
| | | Collection<Collection<String>> childrenCollections = VciBaseUtil.switchCollectionForOracleIn(childrenOids); |
| | | for (Collection<String> s : childrenCollections) { |
| | | updateCount += baseMapper.deleteBatchIds(s); |
| | | |
| | | // batchCBO.copyFromOther(batchCBOi); |
| | | } |
| | | } |
| | | }else{ |
| | | return baseResult; |
| | | } |
| | | //æ§è¡å é¤æä½ |
| | | |
| | | updateCount += baseMapper.deleteById(codeClassifyTemplateDO.getOid()); |
| | | // batchCBO.copyFromOther(batchCBO_delete); |
| | | |
| | | //å 餿¨¡æ¿å±æ§ |
| | | // VciQueryWrapperForDO templateQueryWrapper = new VciQueryWrapperForDO(CodeClassifyTemplateAttrDO.class); |
| | | // templateQueryWrapper.addQueryMap("classifyTemplateOid",templateOid); |
| | | List<CodeClstempattrEntity> codeClstempattrEntityList = codeClstempattrMapper.selectRefByOid(templateOid); |
| | | |
| | | if(!CollectionUtils.isEmpty(codeClstempattrEntityList)) { |
| | | List<String> templateAttrOids = new ArrayList<String>(); |
| | | for (CodeClstempattrEntity codeClstempattrEntity:codeClstempattrEntityList){ |
| | | templateAttrOids.add(codeClstempattrEntity.getOid()); |
| | | } |
| | | |
| | | updateCount += codeClstempattrMapper.deleteBatchIds(templateAttrOids); |
| | | // batchCBO.copyFromOther(batchCBO_templateAttr_delete); |
| | | } |
| | | |
| | | //è°ç¨æ¨¡æ¿é¶æ®µæ¹æ³ |
| | | updateCount += codeTempphaseServiceImpl.codeTemplateDeleteTrigger(templateOid); |
| | | |
| | | //è°ç¨æ¨¡æ¿æé®æ¹æ³ |
| | | updateCount += codeTempbuttonServiceImpl.codeTemplateDeleteTrigger(templateOid); |
| | | |
| | | //è°ç¨æ¨¡æ¿æµç¨æ¹æ³ |
| | | updateCount += codeClsflowtempServiceImpl.codeTemplateDeleteTrigger(templateOid); |
| | | |
| | | return updateCount > 0?R.success(DELETE_SUCCESS):R.fail(DELETE_FAIL); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 主é®è·åå类模æ¿å¯¹è±¡ |
| | | * @param oid ä¸»é® |
| | | * @return å类模æ¿å¯¹è±¡æ¾ç¤ºå¯¹è±¡ |
| | | */ |
| | | @Override |
| | | public CodeClstemplateVO getObjectByOid(String oid) { |
| | | return codeClassifyTemplateDO2VO(selectByOid(oid)); |
| | | } |
| | | |
| | | @Override |
| | | public Collection<CodeClstemplateVO> listCodeClassifyTemplateByOids(List<String> oidCollections) { |
| | | VciBaseUtil.alertNotNull(oidCollections,"æ°æ®å¯¹è±¡ä¸»é®éå"); |
| | | List<CodeClstemplateEntity> codeClassifyTemplateDOList = listCodeClassifyTemplateDOByOidCollections(oidCollections); |
| | | return codeClassifyTemplateDO2VOs(codeClassifyTemplateDOList); |
| | | } |
| | | |
| | | /** |
| | | * åç
§æ å类模æ¿å¯¹è±¡ |
| | | * @param treeQueryObject æ å½¢æ¥è¯¢å¯¹è±¡ |
| | | * @return å类模æ¿å¯¹è±¡æ¾ç¤ºæ |
| | | * @throws VciBaseException æ¥è¯¢æ¡ä»¶åå页åºéçæ¶å伿åºå¼å¸¸ |
| | | */ |
| | | @Override |
| | | public List<Tree> referTree(TreeQueryObject treeQueryObject) { |
| | | if(treeQueryObject == null){ |
| | | treeQueryObject = new TreeQueryObject(); |
| | | } |
| | | if(treeQueryObject.getConditionMap() == null){ |
| | | treeQueryObject.setConditionMap(new HashMap<>()); |
| | | } |
| | | if(treeQueryObject.getConditionMap().containsKey(LC_STATUS)) { |
| | | treeQueryObject.getConditionMap().remove(LC_STATUS); |
| | | } |
| | | treeQueryObject.getConditionMap().put(LC_STATUS,CodeClassifyTemplateLC.RELEASED.getValue()); |
| | | return treeCodeClassifyTemplate(treeQueryObject); |
| | | } |
| | | |
| | | /** |
| | | * 使ç¨ä¸»é®éåæ¥è¯¢æ°æ®å¯¹è±¡ |
| | | * @param oidCollections 主é®çéå |
| | | * @return æ°æ®å¯¹è±¡å表 |
| | | */ |
| | | private List<CodeClstemplateEntity> listCodeClassifyTemplateDOByOidCollections(Collection<String> oidCollections){ |
| | | List<CodeClstemplateEntity> codeClassifyTemplateDOList = new ArrayList<CodeClstemplateEntity>(); |
| | | if(!CollectionUtils.isEmpty(oidCollections)){ |
| | | Collection<Collection<String>> oidCollectionsList = VciBaseUtil.switchCollectionForOracleIn(oidCollections); |
| | | for(Collection<String> oids: oidCollectionsList){ |
| | | List<CodeClstemplateEntity> tempDOList = baseMapper.selectBatchIds(oids); //codeClassifyTemplateMapper.selectByPrimaryKeyCollection(oids); |
| | | if(!CollectionUtils.isEmpty(tempDOList)){ |
| | | codeClassifyTemplateDOList.addAll(tempDOList); |
| | | } |
| | | } |
| | | } |
| | | return codeClassifyTemplateDOList; |
| | | } |
| | | |
| | | /** |
| | | * 䏻鮿¥è¯¢æ°æ®å¯¹è±¡ |
| | | * @param oid ä¸»é® |
| | | * @return æ°æ®å¯¹è±¡ |
| | | */ |
| | | private CodeClstemplateEntity selectByOid(String oid) { |
| | | VciBaseUtil.alertNotNull(oid,"主é®"); |
| | | CodeClstemplateEntity codeClstemplateEntity = baseMapper.selectById(oid.trim()); |
| | | if(codeClstemplateEntity == null || StringUtils.isBlank(codeClstemplateEntity.getOid())){ |
| | | throw new VciBaseException(DATA_OID_NOT_EXIST); |
| | | } |
| | | return codeClstemplateEntity; |
| | | } |
| | | |
| | | /** |
| | | * å¯ç¨ãåç¨ |
| | | * @param oid |
| | | * @param lcStatus |
| | | * @return |
| | | */ |
| | | @Override |
| | | public R updateLcStatus( String oid, String lcStatus){ |
| | | CodeClstemplateEntity codeClassifyTemplateDO = baseMapper.selectById(oid); |
| | | //åç¨çæ¶åï¼éªè¯æ¨¡æ¿æ¯å¦ä¸ºå·²åå¸ |
| | | if(CodeClassifyTemplateLC.DISABLED.getValue().equals(lcStatus)){ |
| | | // CodeClstemplateEntity codeClassifyTemplateDO = baseMapper.selectById(oid); |
| | | if(!CodeClassifyTemplateLC.RELEASED.getValue().equals(codeClassifyTemplateDO.getLcStatus())){ |
| | | return R.fail("æ¨¡æ¿æªå¯ç¨ï¼ä¸è½åç¨ï¼"); |
| | | } |
| | | } |
| | | //å¯ç¨ãåç¨ |
| | | codeClassifyTemplateDO.setLcStatus(lcStatus); |
| | | int u = baseMapper.updateById(codeClassifyTemplateDO); |
| | | // codeClassifyTemplateMapper.updateLcStatus(oid,lcStatus); |
| | | |
| | | return u==0?R.fail("ä¿®æ¹å¤±è´¥ï¼"):R.success("ä¿®æ¹æå"); |
| | | } |
| | | |
| | | /** |
| | | * åç |
| | | * @param codeClassifyDTO |
| | | */ |
| | | @Override |
| | | public R Upgrade(CodeClstemplateDTO codeClassifyDTO) { |
| | | |
| | | //æ§ç模æ¿oid |
| | | String templateOldOid = codeClassifyDTO.getOid(); |
| | | //åªæå·²åå¸çæè½åç |
| | | CodeClstemplateEntity codeClassifyTemplateDOOld = baseMapper.selectById(templateOldOid); |
| | | if(!FRAMEWORK_RELEASE_RELEASED.equals(codeClassifyTemplateDOOld.getLcStatus())){ |
| | | return R.fail("è¯¥æ¨¡æ¿æªåå¸ï¼ä¸è½åçï¼"); |
| | | } |
| | | |
| | | //éè¦æ°å¢çåçº§æ¨¡æ¿ |
| | | // ClientBusinessObject clientBusinessObject_template = boService.selectCBOByOid(codeClassifyDTO.getOid(), "codeclstemplate"); |
| | | CodeClstemplateEntity codeCls_template = baseMapper.selectById(templateOldOid); |
| | | CodeClstemplateEntity codeCls_template_insert = null; |
| | | // ClientBusinessObject clientBusinessObject_template_insert = null; |
| | | // try { |
| | | //// clientBusinessObject_template_insert = clientBusinessObjectOperation.reviseBusinessObject(clientBusinessObject_template, ""); |
| | | //// codeCls_template_insert.setOid((new ObjectUtility()).getNewObjectID36()); |
| | | //// toBo.setRevisionid((new ObjectUtility()).getNewObjectID36()); |
| | | // codeCls_template_insert.setNameOid(codeCls_template.getNameOid()); |
| | | // codeCls_template_insert.setBtmname(codeCls_template.getBtmname()); |
| | | //// codeCls_template_insert.setIsLast(1); |
| | | //// codeCls_template_insert.setIsFirstr(0); |
| | | //// codeCls_template_insert.setIsFirstv(1); |
| | | //// codeCls_template_insert.setIsLastV(1); |
| | | // codeCls_template_insert.setCreator(AuthUtil.getUser().getUserName()); |
| | | // codeCls_template_insert.setCreateTime(new Date()); |
| | | // codeCls_template_insert.setLastModifier(AuthUtil.getUser().getUserName()); |
| | | // codeCls_template_insert.setLastModifyTime(new Date()); |
| | | // codeCls_template_insert.setRevisionRule(codeCls_template.getRevisionRule()); |
| | | // codeCls_template_insert.setVersionRule(codeCls_template.getVersionRule()); |
| | | // RevisionValueObject rvObj = this.getNextRevision(fromBo.getBtmName(), fromBo.getNameoid(), item.revRuleName, item.revInput, revisionVal); |
| | | // codeCls_template_insert.setRevisionSeq(rvObj.getRevisionSeq()); |
| | | // codeCls_template_insert.setRevisionValue(rvObj.getRevisionVal()); |
| | | // VersionValueObject versionObj = this.getVersionValue(item.verRuleName); |
| | | // codeCls_template_insert.setVersionSeq(versionObj.getVersionSeq()); |
| | | // codeCls_template_insert.setVersionValue(versionObj.getVersionVal()); |
| | | // codeCls_template_insert.setLctId(codeCls_template.getLctId()); |
| | | // codeCls_template_insert.setLcStatus(this.getLcFirstStatus(item.lifeCycle)); |
| | | // codeCls_template_insert.setId(codeCls_template.getId()); |
| | | // codeCls_template_insert.setName(codeCls_template.getName()); |
| | | // codeCls_template_insert.setDescription(codeCls_template.getDescription()); |
| | | // codeCls_template_insert.setOwner(AuthUtil.getUser().getUserName()); |
| | | //// codeCls_template_insert.setCheckinBy(userName); |
| | | // codeCls_template_insert.setCopyFromVersion(codeCls_template.getOid()); |
| | | // }catch (VCIError e){ |
| | | // e.printStackTrace(); |
| | | // logger.error("===============>å类模æ¿-åçå¤å¶åºéoidï¼ "+templateOldOid+",mes"+e.error_message); |
| | | // return BaseResult.error("åçåºé"); |
| | | // } |
| | | // |
| | | // |
| | | // CodeClassifyTemplateDO codeClassifyTemplateDO = new CodeClassifyTemplateDO(); |
| | | // BeanUtilForVCI.copyPropertiesIgnoreCase(codeClassifyDTO,codeClassifyTemplateDO); |
| | | // WebUtil.copyValueToObjectFromCbos(clientBusinessObject_template_insert,codeClassifyTemplateDO); |
| | | // //modify by weidy@2022-2-27 |
| | | // //åçåä¸è½ä½¿ç¨insertæ¹æ³ï¼å 为é£ä¸ªæ°¸è¿æ¯æ°å¢ä¸æ¡æ°æ®ï¼ |
| | | // //䏿¹å
ä»dto转ç»doï¼ç¶åæåççåå§åç屿§æ·è´ç»doï¼æååä»doæ·è´å°cboä¸ |
| | | // WebUtil.copyValueToCboFromObj(clientBusinessObject_template_insert,codeClassifyTemplateDO); |
| | | // //åçè¿åçæ¨¡æ¿oid |
| | | // String templateNewOid = codeClassifyTemplateDO.getOid(); |
| | | // |
| | | // //éè¦å¤å¶ç模æ¿å±æ§ |
| | | // //æ¥è¯¢è模æ¿ä¸è¾¹çææå±æ§ï¼èµå¼æ°æ¨¡æ¿oid |
| | | // VciQueryWrapperForDO codeClassifyTemplateAttrQuery = new VciQueryWrapperForDO(CodeClassifyTemplateAttrDO.class); |
| | | // codeClassifyTemplateAttrQuery.addQueryMap("classifyTemplateOid",templateOldOid); |
| | | // List<CodeClassifyTemplateAttrDO> codeClassifyTemplateAttrDOList = codeClassifyTemplateAttrDaoI.selectByWrapper(codeClassifyTemplateAttrQuery); |
| | | // for (CodeClassifyTemplateAttrDO codeClassifyTemplateAttrDO :codeClassifyTemplateAttrDOList){ |
| | | // String attrOid = VciBaseUtil.getPk(); |
| | | // codeClassifyTemplateAttrDO.setOid(attrOid); |
| | | // codeClassifyTemplateAttrDO.setClassifyTemplateOid(templateNewOid); |
| | | // } |
| | | // |
| | | // //å¤å¶æ¨¡æ¿æµç¨ |
| | | // List<CodeClassifyProcessTempDO> codeClassifyProcessTempDOList = copyTemplateProcess(templateOldOid,templateNewOid); |
| | | // |
| | | // //å¤å¶æ¨¡æ¿é¶æ®µï¼é¶æ®µå±æ§ |
| | | // Map phase_attrMap = copyTemplatePhase_attr(templateOldOid,templateNewOid); |
| | | // |
| | | // List<CodeTemplatePhaseDO> codeClassifyPhaseDOList = (ArrayList<CodeTemplatePhaseDO>)phase_attrMap.get("phase");//模æ¿é¶æ®µ |
| | | // List<CodePhaseAttrDO> codePhaseAttrDOList = (ArrayList<CodePhaseAttrDO>)phase_attrMap.get("phaseAttr");//é¶æ®µå±æ§ |
| | | // |
| | | // //å¤å¶æ¨¡æ¿æé® |
| | | // List<CodeClassifyTemplateButtonDO> codeClassifyTemplateButtonDOList = copyTemplateButton(templateOldOid,templateNewOid); |
| | | // |
| | | // //ä¸èµ·ä¿åæ°æ® |
| | | // WebUtil.setPersistence(false);//䏿§è¡ä¿å |
| | | // //ä¿åæ¨¡æ¿ |
| | | // BatchCBO batchCBOTemplate = new BatchCBO(); |
| | | // //batchCBOä¿åçæ¶åæ²¡æè½å¤èªå¨updateæºæ°æ®çisLastR |
| | | // //batchCBOTemplate.getCreateCbos().add(clientBusinessObject_template_insert); |
| | | // //使ç¨saveRevisionBuisnessObjectå¯ä»¥è§£å³è¿ä¸ªé®é¢ï¼è¿éå
ææ¶æ§è¡ä¸¤æ¬¡ä¿å |
| | | // try { |
| | | // clientBusinessObjectOperation.saveRevisionBuinessObject(clientBusinessObject_template_insert); |
| | | // } catch (VCIError vciError) { |
| | | // throw new VciBaseException("åçä¿ååºéäº",new String[0],vciError); |
| | | // } |
| | | // // end --modify by lihang @20220408 |
| | | // //codeClassifyTemplateMapper.insert(codeClassifyTemplateDO); |
| | | // //ä¿å模æ¿å±æ§ |
| | | // if(!CollectionUtils.isEmpty(codeClassifyTemplateAttrDOList)){ |
| | | // BatchCBO batchCBOTemplateAttr = codeClassifyTemplateAttrDaoI.batchInsert(codeClassifyTemplateAttrDOList); |
| | | // batchCBOTemplate.copyFromOther(batchCBOTemplateAttr); |
| | | // } |
| | | // |
| | | // //ä¿åæ¨¡æ¿æµç¨ |
| | | // if(!CollectionUtils.isEmpty(codeClassifyProcessTempDOList)) { |
| | | // BatchCBO batchCBOTemplateProcessAttr = codeClassifyProcessTempDaoI.batchInsert(codeClassifyProcessTempDOList); |
| | | // batchCBOTemplate.copyFromOther(batchCBOTemplateProcessAttr); |
| | | // } |
| | | // //模æ¿é¶æ®µ |
| | | // if(!CollectionUtils.isEmpty(codeClassifyPhaseDOList)) { |
| | | // BatchCBO batchCBOTemplatePhaseAttr = codeTemplatePhaseDaoI.batchInsert(codeClassifyPhaseDOList); |
| | | // batchCBOTemplate.copyFromOther(batchCBOTemplatePhaseAttr); |
| | | // } |
| | | // |
| | | // //模æ¿é¶æ®µå±æ§ |
| | | // if(!CollectionUtils.isEmpty(codePhaseAttrDOList)) { |
| | | // BatchCBO batchCBOTemplatePhaseAttrAttr = codePhaseAttrDaoI.batchInsert(codePhaseAttrDOList); |
| | | // batchCBOTemplate.copyFromOther(batchCBOTemplatePhaseAttrAttr); |
| | | // } |
| | | // |
| | | // //æ¨¡æ¿æé® |
| | | // if(!CollectionUtils.isEmpty(codeClassifyTemplateButtonDOList)) { |
| | | // BatchCBO batchCBOTemplateButtonAttr = codeClassifyTemplateButtonDaoI.batchInsert(codeClassifyTemplateButtonDOList); |
| | | // batchCBOTemplate.copyFromOther(batchCBOTemplateButtonAttr); |
| | | // } |
| | | // |
| | | // WebUtil.setPersistence(true);//æ§è¡ä¿å |
| | | // |
| | | // boService.persistenceBatch(batchCBOTemplate);//ä¸èµ·æ§è¡ä¿å |
| | | // |
| | | // return BaseResult.success("åçæåï¼"); |
| | | return R.success("åçæåï¼"); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | /* |
| | | * Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
| | | * |
| | | * Redistribution and use in source and binary forms, with or without |
| | | * modification, are permitted provided that the following conditions are met: |
| | | * |
| | | * Redistributions of source code must retain the above copyright notice, |
| | | * this list of conditions and the following disclaimer. |
| | | * Redistributions in binary form must reproduce the above copyright |
| | | * notice, this list of conditions and the following disclaimer in the |
| | | * documentation and/or other materials provided with the distribution. |
| | | * Neither the name of the dreamlu.net developer nor the names of its |
| | | * contributors may be used to endorse or promote products derived from |
| | | * this software without specific prior written permission. |
| | | * Author: Chill åºéª (smallchill@163.com) |
| | | */ |
| | | package com.vci.ubcs.code.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.vci.ubcs.code.entity.CodePhaseattrEntity; |
| | | import com.vci.ubcs.code.mapper.CodePhaseattrMapper; |
| | | import com.vci.ubcs.code.service.ICodePhaseattrService; |
| | | import com.vci.ubcs.code.vo.CodePhaseattrVO; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | /** |
| | | * ç¼ç åºå®ä¹-模æ¿é¶æ®µ-屿§ æå¡å®ç°ç±» |
| | | * |
| | | * @author yuxc |
| | | * @since 2023-04-20 |
| | | */ |
| | | @Service |
| | | public class CodePhaseattrServiceImpl extends ServiceImpl<CodePhaseattrMapper, CodePhaseattrEntity> implements ICodePhaseattrService { |
| | | |
| | | @Override |
| | | public IPage<CodePhaseattrVO> selectCodePhaseattrPage(IPage<CodePhaseattrVO> page, CodePhaseattrVO CodePhaseattr) { |
| | | return page.setRecords(baseMapper.selectCodePhaseattrPage(page, CodePhaseattr)); |
| | | } |
| | | |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | /* |
| | | * Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
| | | * |
| | | * Redistribution and use in source and binary forms, with or without |
| | | * modification, are permitted provided that the following conditions are met: |
| | | * |
| | | * Redistributions of source code must retain the above copyright notice, |
| | | * this list of conditions and the following disclaimer. |
| | | * Redistributions in binary form must reproduce the above copyright |
| | | * notice, this list of conditions and the following disclaimer in the |
| | | * documentation and/or other materials provided with the distribution. |
| | | * Neither the name of the dreamlu.net developer nor the names of its |
| | | * contributors may be used to endorse or promote products derived from |
| | | * this software without specific prior written permission. |
| | | * Author: Chill åºéª (smallchill@163.com) |
| | | */ |
| | | package com.vci.ubcs.code.service.impl; |
| | | |
| | | import com.alibaba.nacos.common.utils.StringUtils; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.vci.ubcs.code.entity.CodeTempbuttonEntity; |
| | | import com.vci.ubcs.code.mapper.CodeTempbuttonMapper; |
| | | import com.vci.ubcs.code.service.ICodeTempbuttonService; |
| | | import com.vci.ubcs.code.vo.CodeTempbuttonVO; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.util.CollectionUtils; |
| | | |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.util.stream.Collectors; |
| | | |
| | | /** |
| | | * ç¼ç åºå®ä¹-æ¨¡æ¿æé®æ©å± æå¡å®ç°ç±» |
| | | * |
| | | * @author yuxc |
| | | * @since 2023-04-20 |
| | | */ |
| | | @Service |
| | | public class CodeTempbuttonServiceImpl extends ServiceImpl<CodeTempbuttonMapper, CodeTempbuttonEntity> implements ICodeTempbuttonService { |
| | | |
| | | @Override |
| | | public IPage<CodeTempbuttonVO> selectCodeTempbuttonPage(IPage<CodeTempbuttonVO> page, CodeTempbuttonVO CodeTempbutton) { |
| | | return page.setRecords(baseMapper.selectCodeTempbuttonPage(page, CodeTempbutton)); |
| | | } |
| | | |
| | | /** |
| | | * 模æ¿å é¤çæ¶å触å |
| | | * |
| | | * @param classifyTemplateOid 模æ¿çä¸»é® |
| | | * @return åå½±åçæ°æ®è¡ |
| | | */ |
| | | @Override |
| | | public int codeTemplateDeleteTrigger(String classifyTemplateOid) { |
| | | int updateCount = 0; |
| | | if(StringUtils.isNotBlank(classifyTemplateOid)){ |
| | | Map<String,Object> conditionMap = new HashMap<>(); |
| | | conditionMap.put("classifyTemplateOid",classifyTemplateOid); |
| | | List<CodeTempbuttonEntity> codeTempbuttonEntities = baseMapper.selectByMap(conditionMap); |
| | | if(!CollectionUtils.isEmpty(codeTempbuttonEntities)){ |
| | | updateCount += baseMapper.deleteBatchIds(codeTempbuttonEntities.stream() |
| | | .map(CodeTempbuttonEntity::getOid).collect(Collectors.toList())); |
| | | } |
| | | } |
| | | return updateCount; |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | /* |
| | | * Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
| | | * |
| | | * Redistribution and use in source and binary forms, with or without |
| | | * modification, are permitted provided that the following conditions are met: |
| | | * |
| | | * Redistributions of source code must retain the above copyright notice, |
| | | * this list of conditions and the following disclaimer. |
| | | * Redistributions in binary form must reproduce the above copyright |
| | | * notice, this list of conditions and the following disclaimer in the |
| | | * documentation and/or other materials provided with the distribution. |
| | | * Neither the name of the dreamlu.net developer nor the names of its |
| | | * contributors may be used to endorse or promote products derived from |
| | | * this software without specific prior written permission. |
| | | * Author: Chill åºéª (smallchill@163.com) |
| | | */ |
| | | package com.vci.ubcs.code.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.vci.ubcs.code.entity.CodePhaseattrEntity; |
| | | import com.vci.ubcs.code.entity.CodeTempphaseEntity; |
| | | import com.vci.ubcs.code.mapper.CodePhaseattrMapper; |
| | | import com.vci.ubcs.code.mapper.CodeTempphaseMapper; |
| | | import com.vci.ubcs.code.service.ICodeTempphaseService; |
| | | import com.vci.ubcs.code.vo.CodeTempphaseVO; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.util.CollectionUtils; |
| | | |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.util.stream.Collectors; |
| | | |
| | | /** |
| | | * ç¼ç åºå®ä¹-模æ¿é¶æ®µ æå¡å®ç°ç±» |
| | | * |
| | | * @author yuxc |
| | | * @since 2023-04-20 |
| | | */ |
| | | @Service |
| | | public class CodeTempphaseServiceImpl extends ServiceImpl<CodeTempphaseMapper, CodeTempphaseEntity> implements ICodeTempphaseService { |
| | | |
| | | |
| | | @Autowired(required = false) |
| | | private CodePhaseattrMapper codePhaseattrMapper; |
| | | |
| | | @Override |
| | | public IPage<CodeTempphaseVO> selectCodeTempphasePage(IPage<CodeTempphaseVO> page, CodeTempphaseVO CodeTempphase) { |
| | | return page.setRecords(baseMapper.selectCodeTempphasePage(page, CodeTempphase)); |
| | | } |
| | | |
| | | /** |
| | | * 模æ¿å é¤çæ¶å触å |
| | | * |
| | | * @param templateOid 模æ¿çä¸»é® |
| | | * @return åå½±åçæ°æ® |
| | | */ |
| | | @Override |
| | | public int codeTemplateDeleteTrigger(String templateOid) { |
| | | int updateCount = 0; |
| | | Map<String,Object> condition = new HashMap<>(1); |
| | | condition.put("classifyTemplateOid",templateOid); |
| | | List<CodeTempphaseEntity> codeTempphaseEntities = baseMapper.selectByMap(condition); |
| | | if(!CollectionUtils.isEmpty(codeTempphaseEntities)) { |
| | | updateCount += baseMapper.deleteBatchIds(codeTempphaseEntities.stream().map(CodeTempphaseEntity::getOid).collect(Collectors.toList())); |
| | | // batchCBO.copyFromOther(codeTemplatePhaseMapper.batchDeleteByOids(templatePhaseDOS.stream().map(CodeTemplatePhaseDO::getOid).collect(Collectors.toList()))); |
| | | // conditionMap.put("codePhaseOid", QueryOptionConstant.IN + "(select oid from " + getPhaseTable() + " where codeClassifyTemplateOid='" + classifyTemplateOid + "')"); |
| | | List<CodePhaseattrEntity> phaseAttrDOS = codePhaseattrMapper.selectByPhasea(templateOid); |
| | | if(!CollectionUtils.isEmpty(phaseAttrDOS)){ |
| | | updateCount += codePhaseattrMapper.deleteBatchIds(phaseAttrDOS.stream().map(CodePhaseattrEntity::getOid).collect(Collectors.toList())); |
| | | } |
| | | } |
| | | return updateCount; |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | /* |
| | | * Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
| | | * |
| | | * Redistribution and use in source and binary forms, with or without |
| | | * modification, are permitted provided that the following conditions are met: |
| | | * |
| | | * Redistributions of source code must retain the above copyright notice, |
| | | * this list of conditions and the following disclaimer. |
| | | * Redistributions in binary form must reproduce the above copyright |
| | | * notice, this list of conditions and the following disclaimer in the |
| | | * documentation and/or other materials provided with the distribution. |
| | | * Neither the name of the dreamlu.net developer nor the names of its |
| | | * contributors may be used to endorse or promote products derived from |
| | | * this software without specific prior written permission. |
| | | * Author: Chill åºéª (smallchill@163.com) |
| | | */ |
| | | package com.vci.ubcs.code.wrapper; |
| | | |
| | | import org.springblade.core.mp.support.BaseEntityWrapper; |
| | | import org.springblade.core.tool.utils.BeanUtil; |
| | | import com.vci.ubcs.code.entity.CodeClsflowtempEntity; |
| | | import com.vci.ubcs.code.vo.CodeClsflowtempVO; |
| | | import java.util.Objects; |
| | | |
| | | /** |
| | | * ç¼ç åºå®ä¹-æ¨¡æ¿æµç¨ å
è£
ç±»,è¿åè§å¾å±æéçåæ®µ |
| | | * |
| | | * @author yuxc |
| | | * @since 2023-04-20 |
| | | */ |
| | | public class CodeClsflowtempWrapper extends BaseEntityWrapper<CodeClsflowtempEntity, CodeClsflowtempVO> { |
| | | |
| | | public static CodeClsflowtempWrapper build() { |
| | | return new CodeClsflowtempWrapper(); |
| | | } |
| | | |
| | | @Override |
| | | public CodeClsflowtempVO entityVO(CodeClsflowtempEntity CodeClsflowtemp) { |
| | | CodeClsflowtempVO CodeClsflowtempVO = Objects.requireNonNull(BeanUtil.copy(CodeClsflowtemp, CodeClsflowtempVO.class)); |
| | | |
| | | //User createUser = UserCache.getUser(CodeClsflowtemp.getCreateUser()); |
| | | //User updateUser = UserCache.getUser(CodeClsflowtemp.getUpdateUser()); |
| | | //CodeClsflowtempVO.setCreateUserName(createUser.getName()); |
| | | //CodeClsflowtempVO.setUpdateUserName(updateUser.getName()); |
| | | |
| | | return CodeClsflowtempVO; |
| | | } |
| | | |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | /* |
| | | * Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
| | | * |
| | | * Redistribution and use in source and binary forms, with or without |
| | | * modification, are permitted provided that the following conditions are met: |
| | | * |
| | | * Redistributions of source code must retain the above copyright notice, |
| | | * this list of conditions and the following disclaimer. |
| | | * Redistributions in binary form must reproduce the above copyright |
| | | * notice, this list of conditions and the following disclaimer in the |
| | | * documentation and/or other materials provided with the distribution. |
| | | * Neither the name of the dreamlu.net developer nor the names of its |
| | | * contributors may be used to endorse or promote products derived from |
| | | * this software without specific prior written permission. |
| | | * Author: Chill åºéª (smallchill@163.com) |
| | | */ |
| | | package com.vci.ubcs.code.wrapper; |
| | | |
| | | import org.springblade.core.mp.support.BaseEntityWrapper; |
| | | import org.springblade.core.tool.utils.BeanUtil; |
| | | import com.vci.ubcs.code.entity.CodeClstempattrEntity; |
| | | import com.vci.ubcs.code.vo.CodeClstempattrVO; |
| | | import java.util.Objects; |
| | | |
| | | /** |
| | | * ç¼ç åºå®ä¹-模æ¿å±æ§ å
è£
ç±»,è¿åè§å¾å±æéçåæ®µ |
| | | * |
| | | * @author yuxc |
| | | * @since 2023-04-19 |
| | | */ |
| | | public class CodeClstempattrWrapper extends BaseEntityWrapper<CodeClstempattrEntity, CodeClstempattrVO> { |
| | | |
| | | public static CodeClstempattrWrapper build() { |
| | | return new CodeClstempattrWrapper(); |
| | | } |
| | | |
| | | @Override |
| | | public CodeClstempattrVO entityVO(CodeClstempattrEntity CodeClstempattr) { |
| | | CodeClstempattrVO CodeClstempattrVO = Objects.requireNonNull(BeanUtil.copy(CodeClstempattr, CodeClstempattrVO.class)); |
| | | |
| | | //User createUser = UserCache.getUser(CodeClstempattr.getCreateUser()); |
| | | //User updateUser = UserCache.getUser(CodeClstempattr.getUpdateUser()); |
| | | //CodeClstempattrVO.setCreateUserName(createUser.getName()); |
| | | //CodeClstempattrVO.setUpdateUserName(updateUser.getName()); |
| | | |
| | | return CodeClstempattrVO; |
| | | } |
| | | |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | /* |
| | | * Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
| | | * |
| | | * Redistribution and use in source and binary forms, with or without |
| | | * modification, are permitted provided that the following conditions are met: |
| | | * |
| | | * Redistributions of source code must retain the above copyright notice, |
| | | * this list of conditions and the following disclaimer. |
| | | * Redistributions in binary form must reproduce the above copyright |
| | | * notice, this list of conditions and the following disclaimer in the |
| | | * documentation and/or other materials provided with the distribution. |
| | | * Neither the name of the dreamlu.net developer nor the names of its |
| | | * contributors may be used to endorse or promote products derived from |
| | | * this software without specific prior written permission. |
| | | * Author: Chill åºéª (smallchill@163.com) |
| | | */ |
| | | package com.vci.ubcs.code.wrapper; |
| | | |
| | | import org.springblade.core.mp.support.BaseEntityWrapper; |
| | | import org.springblade.core.tool.utils.BeanUtil; |
| | | import com.vci.ubcs.code.entity.CodePhaseattrEntity; |
| | | import com.vci.ubcs.code.vo.CodePhaseattrVO; |
| | | import java.util.Objects; |
| | | |
| | | /** |
| | | * ç¼ç åºå®ä¹-模æ¿é¶æ®µ-屿§ å
è£
ç±»,è¿åè§å¾å±æéçåæ®µ |
| | | * |
| | | * @author yuxc |
| | | * @since 2023-04-20 |
| | | */ |
| | | public class CodePhaseattrWrapper extends BaseEntityWrapper<CodePhaseattrEntity, CodePhaseattrVO> { |
| | | |
| | | public static CodePhaseattrWrapper build() { |
| | | return new CodePhaseattrWrapper(); |
| | | } |
| | | |
| | | @Override |
| | | public CodePhaseattrVO entityVO(CodePhaseattrEntity CodePhaseattr) { |
| | | CodePhaseattrVO CodePhaseattrVO = Objects.requireNonNull(BeanUtil.copy(CodePhaseattr, CodePhaseattrVO.class)); |
| | | |
| | | //User createUser = UserCache.getUser(CodePhaseattr.getCreateUser()); |
| | | //User updateUser = UserCache.getUser(CodePhaseattr.getUpdateUser()); |
| | | //CodePhaseattrVO.setCreateUserName(createUser.getName()); |
| | | //CodePhaseattrVO.setUpdateUserName(updateUser.getName()); |
| | | |
| | | return CodePhaseattrVO; |
| | | } |
| | | |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | /* |
| | | * Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
| | | * |
| | | * Redistribution and use in source and binary forms, with or without |
| | | * modification, are permitted provided that the following conditions are met: |
| | | * |
| | | * Redistributions of source code must retain the above copyright notice, |
| | | * this list of conditions and the following disclaimer. |
| | | * Redistributions in binary form must reproduce the above copyright |
| | | * notice, this list of conditions and the following disclaimer in the |
| | | * documentation and/or other materials provided with the distribution. |
| | | * Neither the name of the dreamlu.net developer nor the names of its |
| | | * contributors may be used to endorse or promote products derived from |
| | | * this software without specific prior written permission. |
| | | * Author: Chill åºéª (smallchill@163.com) |
| | | */ |
| | | package com.vci.ubcs.code.wrapper; |
| | | |
| | | import org.springblade.core.mp.support.BaseEntityWrapper; |
| | | import org.springblade.core.tool.utils.BeanUtil; |
| | | import com.vci.ubcs.code.entity.CodeTempbuttonEntity; |
| | | import com.vci.ubcs.code.vo.CodeTempbuttonVO; |
| | | import java.util.Objects; |
| | | |
| | | /** |
| | | * ç¼ç åºå®ä¹-æ¨¡æ¿æé®æ©å± å
è£
ç±»,è¿åè§å¾å±æéçåæ®µ |
| | | * |
| | | * @author yuxc |
| | | * @since 2023-04-20 |
| | | */ |
| | | public class CodeTempbuttonWrapper extends BaseEntityWrapper<CodeTempbuttonEntity, CodeTempbuttonVO> { |
| | | |
| | | public static CodeTempbuttonWrapper build() { |
| | | return new CodeTempbuttonWrapper(); |
| | | } |
| | | |
| | | @Override |
| | | public CodeTempbuttonVO entityVO(CodeTempbuttonEntity CodeTempbutton) { |
| | | CodeTempbuttonVO CodeTempbuttonVO = Objects.requireNonNull(BeanUtil.copy(CodeTempbutton, CodeTempbuttonVO.class)); |
| | | |
| | | //User createUser = UserCache.getUser(CodeTempbutton.getCreateUser()); |
| | | //User updateUser = UserCache.getUser(CodeTempbutton.getUpdateUser()); |
| | | //CodeTempbuttonVO.setCreateUserName(createUser.getName()); |
| | | //CodeTempbuttonVO.setUpdateUserName(updateUser.getName()); |
| | | |
| | | return CodeTempbuttonVO; |
| | | } |
| | | |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | /* |
| | | * Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
| | | * |
| | | * Redistribution and use in source and binary forms, with or without |
| | | * modification, are permitted provided that the following conditions are met: |
| | | * |
| | | * Redistributions of source code must retain the above copyright notice, |
| | | * this list of conditions and the following disclaimer. |
| | | * Redistributions in binary form must reproduce the above copyright |
| | | * notice, this list of conditions and the following disclaimer in the |
| | | * documentation and/or other materials provided with the distribution. |
| | | * Neither the name of the dreamlu.net developer nor the names of its |
| | | * contributors may be used to endorse or promote products derived from |
| | | * this software without specific prior written permission. |
| | | * Author: Chill åºéª (smallchill@163.com) |
| | | */ |
| | | package com.vci.ubcs.code.wrapper; |
| | | |
| | | import org.springblade.core.mp.support.BaseEntityWrapper; |
| | | import org.springblade.core.tool.utils.BeanUtil; |
| | | import com.vci.ubcs.code.entity.CodeTempphaseEntity; |
| | | import com.vci.ubcs.code.vo.CodeTempphaseVO; |
| | | import java.util.Objects; |
| | | |
| | | /** |
| | | * ç¼ç åºå®ä¹-模æ¿é¶æ®µ å
è£
ç±»,è¿åè§å¾å±æéçåæ®µ |
| | | * |
| | | * @author yuxc |
| | | * @since 2023-04-20 |
| | | */ |
| | | public class CodeTempphaseWrapper extends BaseEntityWrapper<CodeTempphaseEntity, CodeTempphaseVO> { |
| | | |
| | | public static CodeTempphaseWrapper build() { |
| | | return new CodeTempphaseWrapper(); |
| | | } |
| | | |
| | | @Override |
| | | public CodeTempphaseVO entityVO(CodeTempphaseEntity CodeTempphase) { |
| | | CodeTempphaseVO CodeTempphaseVO = Objects.requireNonNull(BeanUtil.copy(CodeTempphase, CodeTempphaseVO.class)); |
| | | |
| | | //User createUser = UserCache.getUser(CodeTempphase.getCreateUser()); |
| | | //User updateUser = UserCache.getUser(CodeTempphase.getUpdateUser()); |
| | | //CodeTempphaseVO.setCreateUserName(createUser.getName()); |
| | | //CodeTempphaseVO.setUpdateUserName(updateUser.getName()); |
| | | |
| | | return CodeTempphaseVO; |
| | | } |
| | | |
| | | |
| | | } |
| | |
| | | on codeclassify0.codeKeyAttrRepeatOid = codekeyattrrepeatoid.oid |
| | | left join pl_code_resemblerule coderesembleruleoid |
| | | on codeclassify0.codeResembleRuleOid = coderesembleruleoid.oid |
| | | where |
| | | <where> |
| | | <if test="oid != null and oid != ''"> |
| | | codeclassify0.parentcodeclassifyoid = #{oid} |
| | | codeclassify0.parentcodeclassifyoid = '${oid}' |
| | | </if> |
| | | <if test="oid = null or oid = ''"> |
| | | <if test="oid = null"> |
| | | codeclassify0.parentcodeclassifyoid is null |
| | | </if> |
| | | </where> |
| | |
| | | left join pl_code_resemblerule coderesembleruleoid |
| | | on codeclassify0.codeResembleRuleOid = coderesembleruleoid.oid |
| | | START WITH |
| | | <where> |
| | | <if test="oid != null and oid != ''"> |
| | | codeclassify0.parentCodeClassifyOid = #{oid} |
| | | <if test="oid != null "> |
| | | codeclassify0.parentCodeClassifyOid = '${oid}' |
| | | </if> |
| | | <if test="oid = null or oid = ''"> |
| | | <if test="oid = null "> |
| | | codeclassify0.parentCodeClassifyOid is null |
| | | </if> |
| | | </where> |
| | | CONNECT BY PRIOR codeclassify0.OID = codeclassify0.parentCodeClassifyOid |
| | | </select> |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?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.CodeClsflowtempMapper"> |
| | | |
| | | <!-- éç¨æ¥è¯¢æ å°ç»æ --> |
| | | <resultMap id="CodeClsflowtempResultMap" type="com.vci.ubcs.code.entity.CodeClsflowtempEntity"> |
| | | <result column="OID" property="oid"/> |
| | | <result column="REVISIONOID" property="revisionOid"/> |
| | | <result column="NAMEOID" property="nameOid"/> |
| | | <result column="BTMNAME" property="btmname"/> |
| | | <result column="ISLASTR" property="islastr"/> |
| | | <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="CODECLASSIFYOID" property="codeclassifyoid"/> |
| | | <result column="CLASSIFYTEMPLATEOID" property="classifytemplateoid"/> |
| | | <result column="CODEPROCESSUSE" property="codeprocessuse"/> |
| | | <result column="PROCESSVERSION" property="processversion"/> |
| | | <result column="CODETEMPATTROIDARR" property="codetempattroidarr"/> |
| | | <result column="CODETEMPATTROIDARRNAME" property="codetempattroidarrname"/> |
| | | </resultMap> |
| | | |
| | | |
| | | <select id="selectCodeClsflowtempPage" resultMap="CodeClsflowtempResultMap"> |
| | | select * from PL_CODE_CLSFLOWTEMP where is_deleted = 0 |
| | | </select> |
| | | |
| | | |
| | | </mapper> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?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.CodeClstempattrMapper"> |
| | | |
| | | <!-- éç¨æ¥è¯¢æ å°ç»æ --> |
| | | <resultMap id="CodeClstempattrResultMap" type="com.vci.ubcs.code.entity.CodeClstempattrEntity"> |
| | | <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="CLASSIFYTEMPLATEOID" property="classifytemplateoid"/> |
| | | <result column="ATTRIBUTEDATATYPE" property="attributedatatype"/> |
| | | <result column="KEYATTRFLAG" property="keyattrflag"/> |
| | | <result column="QUERYATTRFLAG" property="queryattrflag"/> |
| | | <result column="SENIORQUERYATTRFLAG" property="seniorqueryattrflag"/> |
| | | <result column="SAMEREPEATATTRFLAG" property="samerepeatattrflag"/> |
| | | <result column="SORTATTRFLAG" property="sortattrflag"/> |
| | | <result column="QRCODEFLAG" property="qrcodeflag"/> |
| | | <result column="BARCODEFLAG" property="barcodeflag"/> |
| | | <result column="COMPONENTRULE" property="componentrule"/> |
| | | <result column="VERIFYRULE" property="verifyrule"/> |
| | | <result column="CLASSIFYINVOKELEVEL" property="classifyinvokelevel"/> |
| | | <result column="CLASSIFYINVOKEATTR" property="classifyinvokeattr"/> |
| | | <result column="CLASSIFYINVOKEATTRNAME" property="classifyinvokeattrname"/> |
| | | <result column="CLASSIFYINVOKEEDITFLAG" property="classifyinvokeeditflag"/> |
| | | <result column="ORDERNUM" property="ordernum"/> |
| | | <result column="FORMDISPLAYFLAG" property="formdisplayflag"/> |
| | | <result column="TABLEDISPLAYFLAG" property="tabledisplayflag"/> |
| | | <result column="ATTRIBUTEGROUP" property="attributegroup"/> |
| | | <result column="ENUMID" property="enumid"/> |
| | | <result column="ENUMNAME" property="enumname"/> |
| | | <result column="ENUMEDITFLAG" property="enumeditflag"/> |
| | | <result column="REFERBTMID" property="referbtmid"/> |
| | | <result column="REFERBTMNAME" property="referbtmname"/> |
| | | <result column="REFERCONFIG" property="referconfig"/> |
| | | <result column="REQUIREFLAG" property="requireflag"/> |
| | | <result column="READONLYFLAG" property="readonlyflag"/> |
| | | <result column="CONTROLLENGTH" property="controllength"/> |
| | | <result column="FORMDISPLAYSTYLE" property="formdisplaystyle"/> |
| | | <result column="TABLEDISPLAYSTYLE" property="tabledisplaystyle"/> |
| | | <result column="FORMHREF" property="formhref"/> |
| | | <result column="TABLEHREF" property="tablehref"/> |
| | | <result column="PRECISIONLENGTH" property="precisionlength"/> |
| | | <result column="SCALELENGTH" property="scalelength"/> |
| | | <result column="VALUEAREA" property="valuearea"/> |
| | | <result column="CODEDATEFORMAT" property="codedateformat"/> |
| | | <result column="TABLEDISPLAYJS" property="tabledisplayjs"/> |
| | | <result column="TEXTAREAFLAG" property="textareaflag"/> |
| | | <result column="IMAGEFLAG" property="imageflag"/> |
| | | <result column="DEFAULTVALUE" property="defaultvalue"/> |
| | | <result column="PREFIXVALUE" property="prefixvalue"/> |
| | | <result column="SUFFIXVALUE" property="suffixvalue"/> |
| | | <result column="FILTERSOURCEATTR" property="filtersourceattr"/> |
| | | <result column="FILTERSOURCEATTRNAME" property="filtersourceattrname"/> |
| | | <result column="ENUMSTRING" property="enumstring"/> |
| | | <result column="ATTRTABLEWIDTH" property="attrtablewidth"/> |
| | | <result column="EXPLAIN" property="explain"/> |
| | | <result column="LIBRARYIDENTIFICATION" property="libraryidentification"/> |
| | | <result column="PARENTCODE" property="parentcode"/> |
| | | <result column="PARENTNAME" property="parentname"/> |
| | | <result column="PARENTQUERYATTR" property="parentqueryattr"/> |
| | | </resultMap> |
| | | |
| | | |
| | | <select id="selectCodeClstempattrPage" resultMap="CodeClstempattrResultMap"> |
| | | select * from PL_CODE_CLSTEMPATTR where is_deleted = 0 |
| | | </select> |
| | | |
| | | <select id="selectByClassifytemplateoid" resultMap="CodeClstempattrResultMap"> |
| | | select * from PL_CODE_CLSTEMPATTR where classifytemplateoid in (${classifytemplateoid}) |
| | | </select> |
| | | |
| | | <select id="selectRefByOid" resultType="com.vci.ubcs.code.entity.CodeClstempattrEntity"> |
| | | select codeclstempattr0.EXPLAIN as explain, |
| | | codeclstempattr0.SAMEREPEATATTRFLAG as samerepeatattrflag, |
| | | codeclstempattr0.LASTMODIFIER as lastmodifier, |
| | | codeclstempattr0.ATTRTABLEWIDTH as attrtablewidth, |
| | | codeclstempattr0.CONTROLLENGTH as controllength, |
| | | codeclstempattr0.CLASSIFYTEMPLATEOID as classifytemplateoid, |
| | | codeclstempattr0.VERIFYRULE as verifyrule, |
| | | codeclstempattr0.ENUMNAME as enumname, |
| | | codeclstempattr0.TABLEDISPLAYFLAG as tabledisplayflag, |
| | | codeclstempattr0.PARENTQUERYATTR as parentqueryattr, |
| | | codeclstempattr0.ID as id, |
| | | codeclstempattr0.FILTERSOURCEATTRNAME as filtersourceattrname, |
| | | codeclstempattr0.VALUEAREA as valuearea, |
| | | codeclstempattr0.TABLEDISPLAYSTYLE as tabledisplaystyle, |
| | | codeclstempattr0.TABLEDISPLAYJS as tabledisplayjs, |
| | | codeclstempattr0.FORMDISPLAYFLAG as formdisplayflag, |
| | | codeclstempattr0.DEFAULTVALUE as defaultvalue, |
| | | codeclstempattr0.FORMHREF as formhref, |
| | | codeclstempattr0.BTMNAME as btmname, |
| | | codeclstempattr0.READONLYFLAG as readonlyflag, |
| | | codeclstempattr0.NAME as name, |
| | | codeclstempattr0.COMPONENTRULE as componentrule, |
| | | codeclstempattr0.SORTATTRFLAG as sortattrflag, |
| | | codeclstempattr0.REFERBTMNAME as referbtmname, |
| | | codeclstempattr0.ENUMID as enumid, |
| | | codeclstempattr0.FORMDISPLAYSTYLE as formdisplaystyle, |
| | | codeclstempattr0.SCALELENGTH as scalelength, |
| | | codeclstempattr0.PARENTNAME as parentname, |
| | | codeclstempattr0.PRECISIONLENGTH as precisionlength, |
| | | codeclstempattr0.PREFIXVALUE as prefixvalue, |
| | | codeclstempattr0.FILTERSOURCEATTR as filtersourceattr, |
| | | codeclstempattr0.TEXTAREAFLAG as textareaflag, |
| | | codeclstempattr0.BARCODEFLAG as barcodeflag, |
| | | codeclstempattr0.DESCRIPTION as description, |
| | | codeclstempattr0.KEYATTRFLAG as keyattrflag, |
| | | codeclstempattr0.QRCODEFLAG as qrcodeflag, |
| | | codeclstempattr0.OID as oid, |
| | | codeclstempattr0.CLASSIFYINVOKELEVEL as classifyinvokelevel, |
| | | codeclstempattr0.CLASSIFYINVOKEATTRNAME as classifyinvokeattrname, |
| | | codeclstempattr0.CLASSIFYINVOKEATTR as classifyinvokeattr, |
| | | codeclstempattr0.REFERBTMID as referbtmid, |
| | | codeclstempattr0.CLASSIFYINVOKEEDITFLAG as classifyinvokeeditflag, |
| | | codeclstempattr0.CODEDATEFORMAT as codedateformat, |
| | | codeclstempattr0.SENIORQUERYATTRFLAG as seniorqueryattrflag, |
| | | codeclstempattr0.OWNER as owner, |
| | | codeclstempattr0.ATTRIBUTEDATATYPE as attributedatatype, |
| | | codeclstempattr0.CREATOR as creator, |
| | | codeclstempattr0.CREATETIME as createtime, |
| | | codeclstempattr0.ENUMEDITFLAG as enumeditflag, |
| | | codeclstempattr0.ATTRIBUTEGROUP as attributegroup, |
| | | codeclstempattr0.PARENTCODE as parentcode, |
| | | codeclstempattr0.SUFFIXVALUE as suffixvalue, |
| | | codeclstempattr0.ORDERNUM as ordernum, |
| | | codeclstempattr0.REFERCONFIG as referconfig, |
| | | codeclstempattr0.REQUIREFLAG as requireflag, |
| | | codeclstempattr0.LIBRARYIDENTIFICATION as libraryidentification, |
| | | codeclstempattr0.ENUMSTRING as enumstring, |
| | | codeclstempattr0.IMAGEFLAG as imageflag, |
| | | codeclstempattr0.LASTMODIFYTIME as lastmodifytime, |
| | | codeclstempattr0.TABLEHREF as tablehref, |
| | | codeclstempattr0.QUERYATTRFLAG as queryattrflag, |
| | | codeclstempattr0.TS as ts, |
| | | classifytemplateoid.name as classifyTemplateOidName |
| | | from platformbtm_codeclstempattr codeclstempattr0 |
| | | left join platformbtm_codeclstemplate classifytemplateoid |
| | | on codeclstempattr0.classifyTemplateOid = classifytemplateoid.oid |
| | | where codeclstempattr0.classifytemplateoid = #{oid} |
| | | </select> |
| | | |
| | | |
| | | </mapper> |
| | |
| | | select * from PL_CODE_CLSTEMPLATE where is_deleted = 0 |
| | | </select> |
| | | |
| | | <select id="selectAllLevelChildOid" resultType="java.lang.String" > |
| | | select oid from PL_CODE_CLSTEMPLATE START WITH codeClassifyOid = #{oid} CONNECT BY PRIOR codeClassifyOid= OID |
| | | </select> |
| | | |
| | | <select id="countAllLevelChildOid" resultType="java.lang.Integer" > |
| | | select count(OID) countsize from platformbtm_codeclstemplate START WITH codeClassifyOid = #{oid} CONNECT BY PRIOR codeClassifyOid = OID |
| | | </select> |
| | | |
| | | </mapper> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?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.CodePhaseattrMapper"> |
| | | |
| | | <!-- éç¨æ¥è¯¢æ å°ç»æ --> |
| | | <resultMap id="CodePhaseattrResultMap" type="com.vci.ubcs.code.entity.CodePhaseattrEntity"> |
| | | <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="CODEPHASEOID" property="codephaseoid"/> |
| | | <result column="ATTRIBUTEGROUP" property="attributegroup"/> |
| | | </resultMap> |
| | | |
| | | |
| | | <select id="selectCodePhaseattrPage" resultMap="CodePhaseattrResultMap"> |
| | | select * from PL_CODE_PHASEATTR where is_deleted = 0 |
| | | </select> |
| | | <select id="selectByPhasea" resultType="com.vci.ubcs.code.entity.CodePhaseattrEntity"> |
| | | select lastmodifier, |
| | | revisionseq, |
| | | versionvalue, |
| | | description, |
| | | oid, |
| | | versionseq, |
| | | checkinby, |
| | | revisionrule, |
| | | lctid, |
| | | id, |
| | | owner, |
| | | checkoutby, |
| | | creator, |
| | | createtime, |
| | | isfirstv, |
| | | attributegroup, |
| | | revisionoid, |
| | | btmname, |
| | | checkouttime, |
| | | revisionvalue, |
| | | versionrule, |
| | | name, |
| | | islastr, |
| | | lastmodifytime, |
| | | copyfromversion, |
| | | nameoid, |
| | | lcstatus, |
| | | islastv, |
| | | checkintime, |
| | | codephaseoid, |
| | | isfirstr |
| | | from platformbtm_codephaseattr |
| | | where codephaseoid in |
| | | (select oid |
| | | from platformbtm_codetempphase |
| | | where codeClassifyTemplateOid = #{oid}) |
| | | </select> |
| | | |
| | | |
| | | </mapper> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?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.CodeTempbuttonMapper"> |
| | | |
| | | <!-- éç¨æ¥è¯¢æ å°ç»æ --> |
| | | <resultMap id="CodeTempbuttonResultMap" type="com.vci.ubcs.code.entity.CodeTempbuttonEntity"> |
| | | <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="CLASSIFYTEMPLATEOID" property="classifytemplateoid"/> |
| | | <result column="CLASSIFYBUTTONOID" property="classifybuttonoid"/> |
| | | <result column="BUTTONUSE" property="buttonuse"/> |
| | | <result column="ORDERNUM" property="ordernum"/> |
| | | </resultMap> |
| | | |
| | | |
| | | <select id="selectCodeTempbuttonPage" resultMap="CodeTempbuttonResultMap"> |
| | | select * from PL_CODE_TEMPBUTTON where is_deleted = 0 |
| | | </select> |
| | | |
| | | |
| | | </mapper> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?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.CodeTempphaseMapper"> |
| | | |
| | | <!-- éç¨æ¥è¯¢æ å°ç»æ --> |
| | | <resultMap id="CodeTempphaseResultMap" type="com.vci.ubcs.code.entity.CodeTempphaseEntity"> |
| | | <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="CODECLASSIFYTEMPLATEOID" property="codeclassifytemplateoid"/> |
| | | <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"/> |
| | | </resultMap> |
| | | |
| | | |
| | | <select id="selectCodeTempphasePage" resultMap="CodeTempphaseResultMap"> |
| | | select * from PL_CODE_TEMPPHASE where is_deleted = 0 |
| | | </select> |
| | | |
| | | |
| | | </mapper> |
ÎļþÃû´Ó Source/UBCS/ubcs-service/ubcs-omd/src/main/java/com/vci/ubcs/omd/controller/DictBizOmdController.java ÐÞ¸Ä |
| | |
| | | package com.vci.ubcs.omd.controller; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; |
| | | import com.vci.ubcs.omd.entity.DictBizM; |
| | | import com.vci.ubcs.omd.service.IDictBizService; |
| | | import com.vci.ubcs.omd.vo.DictBizMVO; |
| | | import com.vci.ubcs.omd.wrapper.DictBizWrapper; |
| | | import com.vci.ubcs.common.constant.CommonConstant; |
| | | import com.vci.ubcs.omd.entity.Dict; |
| | | import com.vci.ubcs.omd.service.IDictService; |
| | | import com.vci.ubcs.omd.vo.DictVO; |
| | | import com.vci.ubcs.omd.wrapper.DictWrapper; |
| | | import io.swagger.annotations.*; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springblade.core.boot.ctrl.BladeController; |
| | |
| | | import org.springblade.core.mp.support.Query; |
| | | import org.springblade.core.tenant.annotation.NonDS; |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springblade.core.tool.utils.StringPool; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import springfox.documentation.annotations.ApiIgnore; |
| | | |
| | |
| | | @NonDS |
| | | @RestController |
| | | @AllArgsConstructor |
| | | @RequestMapping("/dict-biz") |
| | | @Api(value = "ä¸å¡åå
¸", tags = "ä¸å¡åå
¸") |
| | | public class DictBizOmdController extends BladeController { |
| | | @RequestMapping("/dict") |
| | | @Api(value = "æä¸¾å®ä¹", tags = "æä¸¾å®ä¹") |
| | | public class DictController extends BladeController { |
| | | |
| | | private final IDictBizService dictService; |
| | | private final IDictService dictService; |
| | | |
| | | /** |
| | | * 详æ
|
| | |
| | | @GetMapping("/detail") |
| | | @ApiOperationSupport(order = 1) |
| | | @ApiOperation(value = "详æ
", notes = "ä¼ å
¥dict") |
| | | public R<DictBizMVO> detail(DictBizM dict) { |
| | | DictBizM detail = dictService.getOne(Condition.getQueryWrapper(dict)); |
| | | return R.data(DictBizWrapper.build().entityVO(detail)); |
| | | public R<DictVO> detail(Dict dict) { |
| | | Dict detail = dictService.getOne(Condition.getQueryWrapper(dict)); |
| | | return R.data(DictWrapper.build().entityVO(detail)); |
| | | } |
| | | |
| | | /** |
| | |
| | | */ |
| | | @GetMapping("/list") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "code", value = "åå
¸ç¼å·", paramType = "query", dataType = "string"), |
| | | @ApiImplicitParam(name = "dictValue", value = "åå
¸åç§°", paramType = "query", dataType = "string") |
| | | @ApiImplicitParam(name = "code", value = "æä¸¾ç¼å·", paramType = "query", dataType = "string"), |
| | | @ApiImplicitParam(name = "dictValue", value = "æä¸¾åç§°", paramType = "query", dataType = "string") |
| | | }) |
| | | @ApiOperationSupport(order = 2) |
| | | @ApiOperation(value = "å表", notes = "ä¼ å
¥dict") |
| | | public R<List<DictBizMVO>> list(@ApiIgnore @RequestParam Map<String, Object> dict) { |
| | | List<DictBizM> list = dictService.list(Condition.getQueryWrapper(dict, DictBizM.class).lambda().orderByAsc(DictBizM::getSort)); |
| | | return R.data(DictBizWrapper.build().listNodeVO(list)); |
| | | public R<List<DictVO>> list(@ApiIgnore @RequestParam Map<String, Object> dict) { |
| | | List<Dict> list = dictService.list(Condition.getQueryWrapper(dict, Dict.class).lambda().orderByAsc(Dict::getSort)); |
| | | return R.data(DictWrapper.build().listNodeVO(list)); |
| | | } |
| | | |
| | | /** |
| | |
| | | */ |
| | | @GetMapping("/parent-list") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "code", value = "åå
¸ç¼å·", paramType = "query", dataType = "string"), |
| | | @ApiImplicitParam(name = "dictValue", value = "åå
¸åç§°", paramType = "query", dataType = "string") |
| | | @ApiImplicitParam(name = "code", value = "æä¸¾ç¼å·", paramType = "query", dataType = "string"), |
| | | @ApiImplicitParam(name = "dictValue", value = "æä¸¾åç§°", paramType = "query", dataType = "string") |
| | | }) |
| | | @ApiOperationSupport(order = 3) |
| | | @ApiOperation(value = "å表", notes = "ä¼ å
¥dict") |
| | | public R<IPage<DictBizMVO>> parentList(@ApiIgnore @RequestParam Map<String, Object> dict, Query query) { |
| | | public R<IPage<DictVO>> parentList(@ApiIgnore @RequestParam Map<String, Object> dict, Query query) { |
| | | return R.data(dictService.parentList(dict, query)); |
| | | } |
| | | |
| | |
| | | }) |
| | | @ApiOperationSupport(order = 4) |
| | | @ApiOperation(value = "å表", notes = "ä¼ å
¥dict") |
| | | public R<List<DictBizMVO>> childList(@ApiIgnore @RequestParam Map<String, Object> dict, @RequestParam(required = false, defaultValue = "-1") Long parentId) { |
| | | public R<List<DictVO>> childList(@ApiIgnore @RequestParam Map<String, Object> dict, @RequestParam(required = false, defaultValue = "-1") Long parentId) { |
| | | return R.data(dictService.childList(dict, parentId)); |
| | | } |
| | | |
| | |
| | | @GetMapping("/tree") |
| | | @ApiOperationSupport(order = 5) |
| | | @ApiOperation(value = "æ å½¢ç»æ", notes = "æ å½¢ç»æ") |
| | | public R<List<DictBizMVO>> tree() { |
| | | List<DictBizMVO> tree = dictService.tree(); |
| | | public R<List<DictVO>> tree() { |
| | | List<DictVO> tree = dictService.tree(); |
| | | return R.data(tree); |
| | | } |
| | | |
| | |
| | | @GetMapping("/parent-tree") |
| | | @ApiOperationSupport(order = 5) |
| | | @ApiOperation(value = "æ å½¢ç»æ", notes = "æ å½¢ç»æ") |
| | | public R<List<DictBizMVO>> parentTree() { |
| | | List<DictBizMVO> tree = dictService.parentTree(); |
| | | public R<List<DictVO>> parentTree() { |
| | | List<DictVO> tree = dictService.parentTree(); |
| | | return R.data(tree); |
| | | } |
| | | |
| | |
| | | @PostMapping("/submit") |
| | | @ApiOperationSupport(order = 6) |
| | | @ApiOperation(value = "æ°å¢æä¿®æ¹", notes = "ä¼ å
¥dict") |
| | | public R submit(@Valid @RequestBody DictBizM dict) { |
| | | public R submit(@Valid @RequestBody Dict dict) { |
| | | CacheUtil.clear(DICT_CACHE); |
| | | return R.status(dictService.submit(dict)); |
| | | } |
| | |
| | | @GetMapping("/dictionary") |
| | | @ApiOperationSupport(order = 8) |
| | | @ApiOperation(value = "è·ååå
¸", notes = "è·ååå
¸") |
| | | public R<List<DictBizM>> dictionary(String code) { |
| | | List<DictBizM> tree = dictService.getList(code); |
| | | public R<List<Dict>> dictionary(String code) { |
| | | List<Dict> tree = dictService.getList(code); |
| | | return R.data(tree); |
| | | } |
| | | |
| | |
| | | @GetMapping("/dictionary-tree") |
| | | @ApiOperationSupport(order = 9) |
| | | @ApiOperation(value = "è·ååå
¸æ ", notes = "è·ååå
¸æ ") |
| | | public R<List<DictBizMVO>> dictionaryTree(String code) { |
| | | List<DictBizM> tree = dictService.getList(code); |
| | | return R.data(DictBizWrapper.build().listNodeVO(tree)); |
| | | public R<List<DictVO>> dictionaryTree(String code) { |
| | | List<Dict> tree = dictService.getList(code); |
| | | return R.data(DictWrapper.build().listNodeVO(tree)); |
| | | } |
| | | |
| | | /** |
| | |
| | | @PostMapping("/check") |
| | | @ApiOperationSupport(order = 6) |
| | | @ApiOperation(value = "æ°å¢æä¿®æ¹", notes = "ä¼ å
¥dict") |
| | | public R checkOrInsert(@Valid @RequestBody DictBizM dict) { |
| | | public R checkOrInsert(@Valid @RequestBody Dict dict) { |
| | | CacheUtil.clear(DICT_CACHE); |
| | | return dictService.checkOrInsert(dict); |
| | | } |
| | | |
| | | /** |
| | | * åå
¸é®å¼å表 |
| | | */ |
| | | @GetMapping("/select") |
| | | @ApiOperationSupport(order = 10) |
| | | @ApiOperation(value = "åå
¸é®å¼å表", notes = "åå
¸é®å¼å表") |
| | | public R<List<Dict>> select() { |
| | | List<Dict> list = dictService.list(Wrappers.<Dict>query().lambda().eq(Dict::getParentId, CommonConstant.TOP_PARENT_ID)); |
| | | list.forEach(dict -> dict.setDictValue(dict.getCode() + StringPool.COLON + StringPool.SPACE + dict.getDictValue())); |
| | | return R.data(list); |
| | | } |
| | | |
| | | } |
ÎļþÃû´Ó Source/UBCS/ubcs-service/ubcs-omd/src/main/java/com/vci/ubcs/omd/feign/DictBizClient.java ÐÞ¸Ä |
| | |
| | | package com.vci.ubcs.omd.feign; |
| | | |
| | | |
| | | import com.vci.ubcs.omd.entity.DictBizM; |
| | | import com.vci.ubcs.omd.service.IDictBizService; |
| | | import com.vci.ubcs.omd.entity.Dict; |
| | | import com.vci.ubcs.omd.service.IDictService; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springblade.core.tenant.annotation.NonDS; |
| | | import org.springblade.core.tool.api.R; |
| | |
| | | @ApiIgnore |
| | | @RestController |
| | | @AllArgsConstructor |
| | | public class DictBizClient implements IDictBizClient { |
| | | public class DictClient implements IDictClient { |
| | | |
| | | private final IDictBizService service; |
| | | private final IDictService service; |
| | | |
| | | @Override |
| | | @GetMapping(GET_BY_ID) |
| | | public R<DictBizM> getById(Long id) { |
| | | public R<Dict> getById(Long id) { |
| | | return R.data(service.getById(id)); |
| | | } |
| | | |
| | |
| | | |
| | | @Override |
| | | @GetMapping(GET_LIST) |
| | | public R<List<DictBizM>> getList(String code) { |
| | | public R<List<Dict>> getList(String code) { |
| | | return R.data(service.getList(code)); |
| | | } |
| | | |
| | | @Override |
| | | @GetMapping(CHECK_VALUE) |
| | | public R getCheck(DictBizM dict) { |
| | | public R getCheck(Dict dict) { |
| | | return service.checkOrInsert(dict); |
| | | } |
| | | |
ÎļþÃû´Ó Source/UBCS/ubcs-service/ubcs-omd/src/main/java/com/vci/ubcs/omd/mapper/DictBizMapper.java ÐÞ¸Ä |
| | |
| | | |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.vci.ubcs.omd.entity.DictBizM; |
| | | import com.vci.ubcs.omd.vo.DictBizMVO; |
| | | import com.vci.ubcs.omd.entity.Dict; |
| | | import com.vci.ubcs.omd.vo.DictVO; |
| | | |
| | | import java.util.List; |
| | | |
| | |
| | | * |
| | | * @author Chill |
| | | */ |
| | | public interface DictBizMapper extends BaseMapper<DictBizM> { |
| | | public interface DictMapper extends BaseMapper<Dict> { |
| | | |
| | | /** |
| | | * è·ååå
¸è¡¨å¯¹åºä¸æ |
| | |
| | | * @param code åå
¸ç¼å· |
| | | * @return |
| | | */ |
| | | List<DictBizM> getList(String code); |
| | | List<Dict> getList(String code); |
| | | |
| | | /** |
| | | * è·åæ å½¢èç¹ |
| | | * |
| | | * @return |
| | | */ |
| | | List<DictBizMVO> tree(); |
| | | List<DictVO> tree(); |
| | | |
| | | /** |
| | | * è·åæ å½¢èç¹ |
| | | * |
| | | * @return |
| | | */ |
| | | List<DictBizMVO> parentTree(); |
| | | List<DictVO> parentTree(); |
| | | |
| | | } |
ÎļþÃû´Ó Source/UBCS/ubcs-service/ubcs-omd/src/main/java/com/vci/ubcs/omd/service/IDictBizService.java ÐÞ¸Ä |
| | |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.vci.ubcs.omd.entity.DictBizM; |
| | | import com.vci.ubcs.omd.vo.DictBizMVO; |
| | | import com.vci.ubcs.omd.entity.Dict; |
| | | import com.vci.ubcs.omd.vo.DictVO; |
| | | import org.springblade.core.mp.support.Query; |
| | | import org.springblade.core.tool.api.R; |
| | | |
| | |
| | | * |
| | | * @author Chill |
| | | */ |
| | | public interface IDictBizService extends IService<DictBizM> { |
| | | public interface IDictService extends IService<Dict> { |
| | | |
| | | /** |
| | | * æ å½¢ç»æ |
| | | * |
| | | * @return |
| | | */ |
| | | List<DictBizMVO> tree(); |
| | | List<DictVO> tree(); |
| | | |
| | | /** |
| | | * æ å½¢ç»æ |
| | | * |
| | | * @return |
| | | */ |
| | | List<DictBizMVO> parentTree(); |
| | | List<DictVO> parentTree(); |
| | | |
| | | /** |
| | | * è·ååå
¸è¡¨å¯¹åºä¸æ |
| | | * è·åæä¸¾è¡¨å¯¹åºä¸æ |
| | | * |
| | | * @param code åå
¸ç¼å· |
| | | * @param dictKey åå
¸åºå· |
| | | * @param code æä¸¾ç¼å· |
| | | * @param dictKey æä¸¾åºå· |
| | | * @return |
| | | */ |
| | | String getValue(String code, String dictKey); |
| | | |
| | | /** |
| | | * è·ååå
¸è¡¨ |
| | | * è·åæä¸¾è¡¨ |
| | | * |
| | | * @param code åå
¸ç¼å· |
| | | * @param code æä¸¾ç¼å· |
| | | * @return |
| | | */ |
| | | List<DictBizM> getList(String code); |
| | | List<Dict> getList(String code); |
| | | |
| | | /** |
| | | * æ°å¢æä¿®æ¹ |
| | |
| | | * @param dict |
| | | * @return |
| | | */ |
| | | boolean submit(DictBizM dict); |
| | | boolean submit(Dict dict); |
| | | |
| | | /** |
| | | * å é¤åå
¸ |
| | |
| | | * @param query |
| | | * @return |
| | | */ |
| | | IPage<DictBizMVO> parentList(Map<String, Object> dict, Query query); |
| | | IPage<DictVO> parentList(Map<String, Object> dict, Query query); |
| | | |
| | | /** |
| | | * åå表 |
| | |
| | | * @param parentId |
| | | * @return |
| | | */ |
| | | List<DictBizMVO> childList(Map<String, Object> dict, Long parentId); |
| | | List<DictVO> childList(Map<String, Object> dict, Long parentId); |
| | | |
| | | /** |
| | | * æ°å¢æä¿®æ¹ |
| | |
| | | * @param dict |
| | | * @return |
| | | */ |
| | | R checkOrInsert(DictBizM dict); |
| | | R checkOrInsert(Dict dict); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.omd.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.vci.ubcs.core.log.exception.ServiceException; |
| | | import com.vci.ubcs.omd.mapper.DictMapper; |
| | | import com.vci.ubcs.omd.service.IDictService; |
| | | import com.vci.ubcs.omd.wrapper.DictWrapper; |
| | | import com.vci.ubcs.common.constant.CommonConstant; |
| | | import org.springblade.core.cache.utils.CacheUtil; |
| | | import org.springblade.core.mp.support.Condition; |
| | | import org.springblade.core.mp.support.Query; |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springblade.core.tool.constant.BladeConstant; |
| | | import org.springblade.core.tool.node.ForestNodeMerger; |
| | | import org.springblade.core.tool.utils.Func; |
| | | import org.springblade.core.tool.utils.StringPool; |
| | | import com.vci.ubcs.omd.cache.DictCache; |
| | | import com.vci.ubcs.omd.entity.Dict; |
| | | import com.vci.ubcs.omd.vo.DictVO; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | import static org.springblade.core.cache.constant.CacheConstant.DICT_CACHE; |
| | | |
| | | /** |
| | | * æå¡å®ç°ç±» |
| | | * |
| | | * @author Chill |
| | | */ |
| | | @Service |
| | | public class DictServiceImpl extends ServiceImpl<DictMapper, Dict> implements IDictService { |
| | | |
| | | @Override |
| | | public List tree() { |
| | | return ForestNodeMerger.merge((List)baseMapper.tree()); |
| | | } |
| | | |
| | | @Override |
| | | public List<DictVO> parentTree() { |
| | | return ForestNodeMerger.merge((List)baseMapper.parentTree()); |
| | | } |
| | | |
| | | @Override |
| | | public String getValue(String code, String dictKey) { |
| | | return Func.toStr(baseMapper.getValue(code, dictKey), StringPool.EMPTY); |
| | | } |
| | | |
| | | @Override |
| | | public List<Dict> getList(String code) { |
| | | return baseMapper.getList(code); |
| | | } |
| | | |
| | | @Override |
| | | public boolean submit(Dict dict) { |
| | | LambdaQueryWrapper<Dict> lqw = Wrappers.<Dict>query().lambda().eq(Dict::getCode, dict.getCode()).eq(Dict::getDictKey, dict.getDictKey()); |
| | | Long cnt = baseMapper.selectCount((Func.isEmpty(dict.getId())) ? lqw : lqw.notIn(Dict::getId, dict.getId())); |
| | | if (cnt > 0L) { |
| | | throw new ServiceException("å½åæä¸¾é®å¼å·²åå¨!"); |
| | | } |
| | | // ä¿®æ¹é¡¶çº§åå
¸ååæ¥æ´æ°ä¸å±åå
¸çç¼å· |
| | | if (Func.isNotEmpty(dict.getId()) && dict.getParentId().longValue() == BladeConstant.TOP_PARENT_ID) { |
| | | Dict parent = DictCache.getById(dict.getId()); |
| | | this.update(Wrappers.<Dict>update().lambda().set(Dict::getCode, dict.getCode()).eq(Dict::getCode, parent.getCode()).ne(Dict::getParentId, BladeConstant.TOP_PARENT_ID)); |
| | | } |
| | | if (Func.isEmpty(dict.getParentId())) { |
| | | dict.setParentId(BladeConstant.TOP_PARENT_ID); |
| | | } |
| | | dict.setIsDeleted(BladeConstant.DB_NOT_DELETED); |
| | | CacheUtil.clear(DICT_CACHE); |
| | | return saveOrUpdate(dict); |
| | | } |
| | | |
| | | @Override |
| | | public boolean removeDict(String ids) { |
| | | Long cnt = baseMapper.selectCount(Wrappers.<Dict>query().lambda().in(Dict::getParentId, Func.toLongList(ids))); |
| | | if (cnt > 0L) { |
| | | throw new ServiceException("请å
å é¤åèç¹!"); |
| | | } |
| | | return removeByIds(Func.toLongList(ids)); |
| | | } |
| | | |
| | | @Override |
| | | public IPage<DictVO> parentList(Map<String, Object> dict, Query query) { |
| | | IPage<Dict> page = this.page(Condition.getPage(query), Condition.getQueryWrapper(dict, Dict.class).lambda().eq(Dict::getParentId, CommonConstant.TOP_PARENT_ID).orderByAsc(Dict::getSort)); |
| | | return DictWrapper.build().pageVO(page); |
| | | } |
| | | |
| | | @Override |
| | | public List<DictVO> childList(Map<String, Object> dict, Long parentId) { |
| | | if (parentId < 0) { |
| | | return new ArrayList<>(); |
| | | } |
| | | dict.remove("parentId"); |
| | | Dict parentDict = DictCache.getById(parentId); |
| | | List<Dict> list = this.list(Condition.getQueryWrapper(dict, Dict.class).lambda().ne(Dict::getId, parentId).eq(Dict::getCode, parentDict.getCode()).orderByAsc(Dict::getSort)); |
| | | return DictWrapper.build().listNodeVO(list); |
| | | } |
| | | |
| | | @Override |
| | | public R checkOrInsert(Dict dict) { |
| | | |
| | | LambdaQueryWrapper<Dict> lqw = Wrappers.<Dict>query().lambda().eq(Dict::getCode, dict.getCode()).eq(Dict::getDictKey, dict.getDictKey()); |
| | | Long cnt = baseMapper.selectCount((Func.isEmpty(dict.getId())) ? lqw : lqw.notIn(Dict::getId, dict.getId())); |
| | | if (cnt > 0L) { |
| | | return R.fail("æä¸¾å·²ç»åå¨ï¼"); |
| | | } |
| | | |
| | | if (Func.isEmpty(dict.getParentId())) { |
| | | dict.setParentId(BladeConstant.TOP_PARENT_ID); |
| | | } |
| | | dict.setIsDeleted(BladeConstant.DB_NOT_DELETED); |
| | | CacheUtil.clear(DICT_CACHE); |
| | | |
| | | if(saveOrUpdate(dict) == true){ |
| | | return R.success("æä½æå!"); |
| | | } |
| | | return R.fail("æä½å¤±è´¥ï¼"); |
| | | |
| | | } |
| | | } |
ÎļþÃû´Ó Source/UBCS/ubcs-service/ubcs-omd/src/main/java/com/vci/ubcs/omd/wrapper/DictBizWrapper.java ÐÞ¸Ä |
| | |
| | | */ |
| | | package com.vci.ubcs.omd.wrapper; |
| | | |
| | | import com.vci.ubcs.omd.cache.DictBizCache; |
| | | import com.vci.ubcs.omd.entity.DictBizM; |
| | | import com.vci.ubcs.omd.vo.DictBizMVO; |
| | | import com.vci.ubcs.omd.cache.DictCache; |
| | | import com.vci.ubcs.omd.entity.Dict; |
| | | import com.vci.ubcs.omd.vo.DictVO; |
| | | import org.springblade.core.mp.support.BaseEntityWrapper; |
| | | import org.springblade.core.tool.constant.BladeConstant; |
| | | import org.springblade.core.tool.node.ForestNodeMerger; |
| | |
| | | * |
| | | * @author Chill |
| | | */ |
| | | public class DictBizWrapper extends BaseEntityWrapper<DictBizM, DictBizMVO> { |
| | | public class DictWrapper extends BaseEntityWrapper<Dict, DictVO> { |
| | | |
| | | public static DictBizWrapper build() { |
| | | return new DictBizWrapper(); |
| | | public static DictWrapper build() { |
| | | return new DictWrapper(); |
| | | } |
| | | |
| | | @Override |
| | | public DictBizMVO entityVO(DictBizM dict) { |
| | | DictBizMVO dictVO = Objects.requireNonNull(BeanUtil.copy(dict, DictBizMVO.class)); |
| | | public DictVO entityVO(Dict dict) { |
| | | DictVO dictVO = Objects.requireNonNull(BeanUtil.copy(dict, DictVO.class)); |
| | | if (Func.equals(dict.getParentId(), BladeConstant.TOP_PARENT_ID)) { |
| | | dictVO.setParentName(BladeConstant.TOP_PARENT_NAME); |
| | | } else { |
| | | DictBizM parent = DictBizCache.getById(dict.getParentId()); |
| | | Dict parent = DictCache.getById(dict.getParentId()); |
| | | dictVO.setParentName(parent.getDictValue()); |
| | | } |
| | | return dictVO; |
| | | } |
| | | |
| | | public List<DictBizMVO> listNodeVO(List<DictBizM> list) { |
| | | List<DictBizMVO> collect = list.stream().map(dict -> BeanUtil.copy(dict, DictBizMVO.class)).collect(Collectors.toList()); |
| | | public List<DictVO> listNodeVO(List<Dict> list) { |
| | | List<DictVO> collect = list.stream().map(dict -> BeanUtil.copy(dict, DictVO.class)).collect(Collectors.toList()); |
| | | return ForestNodeMerger.merge((List)collect); |
| | | } |
| | | |
ÎļþÃû´Ó Source/UBCS/ubcs-service/ubcs-omd/src/main/resources/mapper/DictBizMapper.xml ÐÞ¸Ä |
| | |
| | | <?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.omd.mapper.DictBizMapper"> |
| | | <mapper namespace="com.vci.ubcs.omd.mapper.DictMapper"> |
| | | |
| | | <!-- éç¨æ¥è¯¢æ å°ç»æ --> |
| | | <resultMap id="dictResultMap" type="com.vci.ubcs.omd.entity.DictBizM"> |
| | | <resultMap id="dictResultMap" type="com.vci.ubcs.omd.entity.Dict"> |
| | | <id column="id" property="id"/> |
| | | <result column="tenant_id" property="tenantId"/> |
| | | <result column="parent_id" property="parentId"/> |
| | | <result column="code" property="code"/> |
| | | <result column="dict_key" property="dictKey"/> |
| | |
| | | <select id="getValue" resultType="java.lang.String"> |
| | | select |
| | | dict_value |
| | | from pl_sys_dict_biz where code = #{param1} and dict_key = #{param2} and is_deleted = 0 |
| | | from pl_sys_dict where code = #{param1} and dict_key = #{param2} and is_deleted = 0 |
| | | </select> |
| | | |
| | | <!-- oracle çæ¬ --> |
| | |
| | | </select>--> |
| | | |
| | | <select id="getList" resultMap="dictResultMap"> |
| | | select id, tenant_id, parent_id, code, dict_key, dict_value, sort, remark from pl_sys_dict_biz where code = #{param1} and parent_id > 0 and is_sealed = 0 and is_deleted = 0 |
| | | select id, parent_id, code, dict_key, dict_value, sort, remark from pl_sys_dict where code = #{param1} and parent_id > 0 and is_sealed = 0 and is_deleted = 0 |
| | | </select> |
| | | |
| | | <select id="tree" resultMap="treeNodeResultMap"> |
| | | select id, parent_id, dict_value as title, id as "value", id as "key" from pl_sys_dict_biz where is_deleted = 0 |
| | | select id, parent_id, dict_value as title, id as "value", id as "key" from pl_sys_dict where is_deleted = 0 |
| | | </select> |
| | | |
| | | <select id="parentTree" resultMap="treeNodeResultMap"> |
| | | select id, parent_id, dict_value as title, id as "value", id as "key" from pl_sys_dict_biz where is_deleted = 0 and parent_id = 0 |
| | | select id, parent_id, dict_value as title, id as "value", id as "key" from pl_sys_dict where is_deleted = 0 and parent_id = 0 |
| | | </select> |
| | | |
| | | </mapper> |
| | |
| | | return R.data(service.getList(code)); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢æä¿®æ¹ |
| | | * |
| | | * @param dictBiz |
| | | * @return |
| | | */ |
| | | @Override |
| | | @GetMapping(CHECK_VALUE) |
| | | public R getCheck(DictBiz dictBiz) { |
| | | return service.checkOrInsert(dictBiz); |
| | | } |
| | | } |
| | |
| | | import org.springblade.core.mp.support.Query; |
| | | import com.vci.ubcs.system.entity.DictBiz; |
| | | import com.vci.ubcs.system.vo.DictBizVO; |
| | | import org.springblade.core.tool.api.R; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | |
| | | */ |
| | | List<DictBizVO> childList(Map<String, Object> dict, Long parentId); |
| | | |
| | | /** |
| | | * æ°å¢æä¿®æ¹ |
| | | * |
| | | * @param dictBiz |
| | | * @return |
| | | */ |
| | | R checkOrInsert(DictBiz dictBiz); |
| | | } |
| | |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.vci.ubcs.common.constant.CommonConstant; |
| | | import org.springblade.core.log.exception.ServiceException; |
| | | import com.vci.ubcs.core.log.exception.ServiceException; |
| | | import com.vci.ubcs.system.cache.DictBizCache; |
| | | import com.vci.ubcs.system.entity.DictBiz; |
| | | import com.vci.ubcs.system.mapper.DictBizMapper; |
| | |
| | | import org.springblade.core.cache.utils.CacheUtil; |
| | | import org.springblade.core.mp.support.Condition; |
| | | import org.springblade.core.mp.support.Query; |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springblade.core.tool.constant.BladeConstant; |
| | | import org.springblade.core.tool.node.ForestNodeMerger; |
| | | import org.springblade.core.tool.utils.Func; |
| | |
| | | List<DictBiz> list = this.list(Condition.getQueryWrapper(dict, DictBiz.class).lambda().ne(DictBiz::getId, parentId).eq(DictBiz::getCode, parentDict.getCode()).orderByAsc(DictBiz::getSort)); |
| | | return DictBizWrapper.build().listNodeVO(list); |
| | | } |
| | | |
| | | @Override |
| | | public R checkOrInsert(DictBiz dictBiz) { |
| | | |
| | | LambdaQueryWrapper<DictBiz> lqw = Wrappers.<DictBiz>query().lambda().eq(DictBiz::getCode, dictBiz.getCode()).eq(DictBiz::getDictKey, dictBiz.getDictKey()); |
| | | Long cnt = baseMapper.selectCount((Func.isEmpty(dictBiz.getId())) ? lqw : lqw.notIn(DictBiz::getId, dictBiz.getId())); |
| | | if (cnt > 0L) { |
| | | return R.fail("åå
¸å·²ç»åå¨ï¼"); |
| | | } |
| | | |
| | | if (Func.isEmpty(dictBiz.getParentId())) { |
| | | dictBiz.setParentId(BladeConstant.TOP_PARENT_ID); |
| | | } |
| | | dictBiz.setIsDeleted(BladeConstant.DB_NOT_DELETED); |
| | | CacheUtil.clear(DICT_CACHE); |
| | | |
| | | if(saveOrUpdate(dictBiz) == true){ |
| | | return R.success("æä½æå!"); |
| | | } |
| | | return R.fail("æä½å¤±è´¥ï¼"); |
| | | |
| | | } |
| | | } |