Ver a proveniência

机构

master
yaoq há 2 anos
ascendente
cometimento
275d15d6d1
4 ficheiros alterados com 217 adições e 3 eliminações
  1. +154
    -0
      smtweb-framework/bpm/src/main/java/cc/smtweb/system/bpm/web/sys/user/party/Party.java
  2. +42
    -0
      smtweb-framework/bpm/src/main/java/cc/smtweb/system/bpm/web/sys/user/party/PartyCache.java
  3. +3
    -3
      smtweb-framework/bpm/src/main/resources/config/application.yaml
  4. +18
    -0
      smtweb-framework/bpm/src/main/resources/static/event/bpm/sys/user/party/partyList.js

+ 154
- 0
smtweb-framework/bpm/src/main/java/cc/smtweb/system/bpm/web/sys/user/party/Party.java Ver ficheiro

@@ -0,0 +1,154 @@
package cc.smtweb.system.bpm.web.sys.user.party;

import cc.smtweb.framework.core.annotation.SwTable;
import cc.smtweb.framework.core.common.SwMap;
import cc.smtweb.framework.core.db.impl.DefaultEntity;

/**
* Created by 1 at 2022-07-26 17:52:16
* 实体【[机构表](SYS_PARTY)】的Entity类
*/
@SwTable("SYS_PARTY")
public class Party extends DefaultEntity {
public static final String ENTITY_NAME = "SYS_PARTY";

public Party() {
super(ENTITY_NAME);
}

/** ID */
public long getId() {
return getLong("pt_id");
}

/** ID */
public void setId(long pt_id) {
put("pt_id", pt_id);
}
/** 父ID */
public long getParentId() {
return getLong("pt_parent_id");
}

/** 父ID */
public void setParentId(long pt_parent_id) {
put("pt_parent_id", pt_parent_id);
}
/** 级次码 */
public String getLevelCode() {
return getStr("pt_level_code");
}

/** 级次码 */
public void setLevelCode(String pt_level_code) {
put("pt_level_code", pt_level_code);
}
/** 行政区划 */
public long getAreaId() {
return getLong("pt_area_id");
}

/** 行政区划 */
public void setAreaId(long pt_area_id) {
put("pt_area_id", pt_area_id);
}
/** 编码 */
public String getCode() {
return getStr("pt_code");
}

/** 编码 */
public void setCode(String pt_code) {
put("pt_code", pt_code);
}
/** 名称 */
public String getName() {
return getStr("pt_name");
}

/** 名称 */
public void setName(String pt_name) {
put("pt_name", pt_name);
}
/** 机构性质 */
public long getType() {
return getLong("pt_type");
}

/** 机构性质 */
public void setType(long pt_type) {
put("pt_type", pt_type);
}
/** 级次 */
public int getLevel() {
return getInt("pt_level");
}

/** 级次 */
public void setLevel(int pt_level) {
put("pt_level", pt_level);
}
/** 状态 */
public boolean isStatu() {
return getBool("pt_statu");
}

/** 状态 */
public void set(boolean pt_statu) {
setBool("pt_statu", pt_statu);
}
/** 联系人 */
public String getLinker() {
return getStr("pt_linker");
}

/** 联系人 */
public void setLinker(String pt_linker) {
put("pt_linker", pt_linker);
}
/** 联系方式 */
public String getTel() {
return getStr("pt_tel");
}

/** 联系方式 */
public void setTel(String pt_tel) {
put("pt_tel", pt_tel);
}
/** 地址 */
public String getAddr() {
return getStr("pt_addr");
}

/** 地址 */
public void setAddr(String pt_addr) {
put("pt_addr", pt_addr);
}
/** 经度 */
public long getLon() {
return getLong("pt_lon");
}

/** 经度 */
public void setLon(long pt_lon) {
put("pt_lon", pt_lon);
}
/** 维度 */
public long getLat() {
return getLong("pt_lat");
}

/** 维度 */
public void setLat(long pt_lat) {
put("pt_lat", pt_lat);
}
/** 备注 */
public String getRemark() {
return getStr("pt_remark");
}

/** 备注 */
public void setRemark(String pt_remark) {
put("pt_remark", pt_remark);
}
}

+ 42
- 0
smtweb-framework/bpm/src/main/java/cc/smtweb/system/bpm/web/sys/user/party/PartyCache.java Ver ficheiro

@@ -0,0 +1,42 @@
package cc.smtweb.system.bpm.web.sys.user.party;

import cc.smtweb.framework.core.annotation.SwCache;
import cc.smtweb.framework.core.cache.AbstractEntityCache;
import cc.smtweb.framework.core.cache.CacheManager;

import java.util.ArrayList;
import java.util.Comparator;
import java.util.List;
import java.util.Set;

/**
* Created by 1 at 2022-07-26 17:52:21
* 实体【[机构表](SYS_PARTY)】的缓存类
*/
@SwCache(ident = "SYS_PARTY", title = "机构表")
public class PartyCache extends AbstractEntityCache<Party> {
//缓存key:按父ID
public final static String mk_pr = "pr";
//缓存key:按编码
public final static String mk_code = "code";

public static PartyCache getInstance() {
return CacheManager.getIntance().getCache(PartyCache.class);
}

public PartyCache() {
//缓存key:按父ID
regList(mk_pr, "pt_parent_id");
//缓存key:按编码
regList(mk_code, "pt_code");
}

//缓存key:按父ID
public final Set<Party> getByPr(String key) {
return getListByKey(mk_pr, key);
}
//缓存key:按编码
public final Set<Party> getByCode(String key) {
return getListByKey(mk_code, key);
}
}

+ 3
- 3
smtweb-framework/bpm/src/main/resources/config/application.yaml Ver ficheiro

@@ -5,7 +5,7 @@ smtweb:
url: http://127.0.0.1:8888/sw/files/
bpm:
debug: true
code-java-path: 'e:/jujia/git/6.0/smtweb2/smtweb-framework'
code-java-path: 'E:/JJKJ/Code/VisualDesign/smtweb2/smtweb-framework'
db:
type: mysql
default:
@@ -27,9 +27,9 @@ spring:
password:
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://127.0.0.1:3306/smt_asp?useUnicode=true&characterEncoding=utf-8&allowMultiQueries=true&useSSL=false
url: jdbc:mysql://139.9.38.43:6032/smt?useUnicode=true&characterEncoding=utf-8&allowMultiQueries=true&useSSL=false
username: root
password: root
password: Ncmz@2022_jjkj
servlet:
multipart:
max-file-size: 104857600000


+ 18
- 0
smtweb-framework/bpm/src/main/resources/static/event/bpm/sys/user/party/partyList.js Ver ficheiro

@@ -0,0 +1,18 @@
/**
* Created by 1 at 2022-07-26 17:48:19
* 注册事件类【机构管理】,参看event.defaultEvent.js
*/
window.$swEvent.setup("bpm.sys.user.party.partyList", {
setup(page){
const { $params,$refs, $widgets, $model, $utils, $tabRouter, $api } = page || {};
const { $$message, $$http } = $utils || {};

// 示例
const demoFunc = () => {

};
return {
demoFunc,
}
}
});

Carregando…
Cancelar
Guardar