fix: 站点基础信息模块功能字典查询
This commit is contained in:
parent
9481dc1c3b
commit
c9ff984bd5
@ -37,6 +37,9 @@ public class SdAiboxBH implements Serializable {
|
|||||||
*/
|
*/
|
||||||
private String sttp;
|
private String sttp;
|
||||||
|
|
||||||
|
@TableField(exist = false)
|
||||||
|
private String sttpName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 数据时间
|
* 数据时间
|
||||||
*/
|
*/
|
||||||
@ -80,6 +83,9 @@ public class SdAiboxBH implements Serializable {
|
|||||||
*/
|
*/
|
||||||
private Integer bldsttCode;
|
private Integer bldsttCode;
|
||||||
|
|
||||||
|
@TableField(exist = false)
|
||||||
|
private String bldsttCodeName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 是否启用
|
* 是否启用
|
||||||
*/
|
*/
|
||||||
@ -90,6 +96,9 @@ public class SdAiboxBH implements Serializable {
|
|||||||
*/
|
*/
|
||||||
private Integer dtin;
|
private Integer dtin;
|
||||||
|
|
||||||
|
@TableField(exist = false)
|
||||||
|
private String dtinName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 数据接入时间
|
* 数据接入时间
|
||||||
*/
|
*/
|
||||||
@ -101,6 +110,9 @@ public class SdAiboxBH implements Serializable {
|
|||||||
*/
|
*/
|
||||||
private Integer mway;
|
private Integer mway;
|
||||||
|
|
||||||
|
@TableField(exist = false)
|
||||||
|
private String mwayName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 站索引
|
* 站索引
|
||||||
*/
|
*/
|
||||||
@ -121,6 +133,9 @@ public class SdAiboxBH implements Serializable {
|
|||||||
*/
|
*/
|
||||||
private String baseId;
|
private String baseId;
|
||||||
|
|
||||||
|
@TableField(exist = false)
|
||||||
|
private String baseName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 所属基地流域编码
|
* 所属基地流域编码
|
||||||
*/
|
*/
|
||||||
|
|||||||
@ -37,6 +37,9 @@ public class SdArtsgBH implements Serializable {
|
|||||||
*/
|
*/
|
||||||
private String sttp;
|
private String sttp;
|
||||||
|
|
||||||
|
@TableField(exist = false)
|
||||||
|
private String sttpName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 数据时间
|
* 数据时间
|
||||||
*/
|
*/
|
||||||
@ -73,6 +76,9 @@ public class SdArtsgBH implements Serializable {
|
|||||||
*/
|
*/
|
||||||
private Integer dtin;
|
private Integer dtin;
|
||||||
|
|
||||||
|
@TableField(exist = false)
|
||||||
|
private String dtinName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 数据接入时间
|
* 数据接入时间
|
||||||
*/
|
*/
|
||||||
@ -94,6 +100,9 @@ public class SdArtsgBH implements Serializable {
|
|||||||
*/
|
*/
|
||||||
private String baseId;
|
private String baseId;
|
||||||
|
|
||||||
|
@TableField(exist = false)
|
||||||
|
private String baseName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 所属基地流域编码
|
* 所属基地流域编码
|
||||||
*/
|
*/
|
||||||
@ -150,6 +159,8 @@ public class SdArtsgBH implements Serializable {
|
|||||||
*/
|
*/
|
||||||
private Integer bldsttCode;
|
private Integer bldsttCode;
|
||||||
|
|
||||||
|
private String bldsttCodeName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 简介
|
* 简介
|
||||||
*/
|
*/
|
||||||
|
|||||||
@ -43,6 +43,9 @@ public class SdDwBH implements Serializable {
|
|||||||
*/
|
*/
|
||||||
private String sttp;
|
private String sttp;
|
||||||
|
|
||||||
|
@TableField(exist = false)
|
||||||
|
private String sttpName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 位置经度
|
* 位置经度
|
||||||
*/
|
*/
|
||||||
@ -73,6 +76,9 @@ public class SdDwBH implements Serializable {
|
|||||||
*/
|
*/
|
||||||
private Integer dtin;
|
private Integer dtin;
|
||||||
|
|
||||||
|
@TableField(exist = false)
|
||||||
|
private String dtinName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 数据接入时间
|
* 数据接入时间
|
||||||
*/
|
*/
|
||||||
@ -89,6 +95,9 @@ public class SdDwBH implements Serializable {
|
|||||||
*/
|
*/
|
||||||
private String baseId;
|
private String baseId;
|
||||||
|
|
||||||
|
@TableField(exist = false)
|
||||||
|
private String baseName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 所属基地流域编码
|
* 所属基地流域编码
|
||||||
*/
|
*/
|
||||||
@ -140,6 +149,9 @@ public class SdDwBH implements Serializable {
|
|||||||
*/
|
*/
|
||||||
private Integer bldsttCode;
|
private Integer bldsttCode;
|
||||||
|
|
||||||
|
@TableField(exist = false)
|
||||||
|
private String bldsttCodeName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 简介
|
* 简介
|
||||||
*/
|
*/
|
||||||
|
|||||||
@ -43,6 +43,9 @@ public class SdEqBH implements Serializable {
|
|||||||
*/
|
*/
|
||||||
private String sttp;
|
private String sttp;
|
||||||
|
|
||||||
|
@TableField(exist = false)
|
||||||
|
private String sttpName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 所属建设阶段
|
* 所属建设阶段
|
||||||
*/
|
*/
|
||||||
@ -78,6 +81,9 @@ public class SdEqBH implements Serializable {
|
|||||||
*/
|
*/
|
||||||
private Integer dtin;
|
private Integer dtin;
|
||||||
|
|
||||||
|
@TableField(exist = false)
|
||||||
|
private String dtinName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 数据接入时间
|
* 数据接入时间
|
||||||
*/
|
*/
|
||||||
@ -99,6 +105,9 @@ public class SdEqBH implements Serializable {
|
|||||||
*/
|
*/
|
||||||
private String baseId;
|
private String baseId;
|
||||||
|
|
||||||
|
@TableField(exist = false)
|
||||||
|
private String baseName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 所属基地流域编码
|
* 所属基地流域编码
|
||||||
*/
|
*/
|
||||||
@ -145,6 +154,9 @@ public class SdEqBH implements Serializable {
|
|||||||
*/
|
*/
|
||||||
private Integer bldsttCode;
|
private Integer bldsttCode;
|
||||||
|
|
||||||
|
@TableField(exist = false)
|
||||||
|
private String bldsttCodeName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 简介
|
* 简介
|
||||||
*/
|
*/
|
||||||
|
|||||||
@ -37,6 +37,9 @@ public class SdFbrdBH implements Serializable {
|
|||||||
*/
|
*/
|
||||||
private String sttp;
|
private String sttp;
|
||||||
|
|
||||||
|
@TableField(exist = false)
|
||||||
|
private String sttpName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 数据时间
|
* 数据时间
|
||||||
*/
|
*/
|
||||||
@ -78,6 +81,9 @@ public class SdFbrdBH implements Serializable {
|
|||||||
*/
|
*/
|
||||||
private Integer dtin;
|
private Integer dtin;
|
||||||
|
|
||||||
|
@TableField(exist = false)
|
||||||
|
private String dtinName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 数据接入时间
|
* 数据接入时间
|
||||||
*/
|
*/
|
||||||
@ -99,6 +105,9 @@ public class SdFbrdBH implements Serializable {
|
|||||||
*/
|
*/
|
||||||
private String baseId;
|
private String baseId;
|
||||||
|
|
||||||
|
@TableField(exist = false)
|
||||||
|
private String baseName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 所属基地流域编码
|
* 所属基地流域编码
|
||||||
*/
|
*/
|
||||||
@ -150,6 +159,9 @@ public class SdFbrdBH implements Serializable {
|
|||||||
*/
|
*/
|
||||||
private Integer bldsttCode;
|
private Integer bldsttCode;
|
||||||
|
|
||||||
|
@TableField(exist = false)
|
||||||
|
private String bldsttCodeName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 简介
|
* 简介
|
||||||
*/
|
*/
|
||||||
|
|||||||
@ -73,6 +73,9 @@ public class SdFhbtBH implements Serializable {
|
|||||||
*/
|
*/
|
||||||
private Integer dtin;
|
private Integer dtin;
|
||||||
|
|
||||||
|
@TableField(exist = false)
|
||||||
|
private String dtinName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 数据接入时间
|
* 数据接入时间
|
||||||
*/
|
*/
|
||||||
@ -94,6 +97,9 @@ public class SdFhbtBH implements Serializable {
|
|||||||
*/
|
*/
|
||||||
private String baseId;
|
private String baseId;
|
||||||
|
|
||||||
|
@TableField(exist = false)
|
||||||
|
private String baseName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 所属基地流域编码
|
* 所属基地流域编码
|
||||||
*/
|
*/
|
||||||
|
|||||||
@ -20,6 +20,9 @@ public class SdOpinfoBH implements Serializable {
|
|||||||
|
|
||||||
private String sttp;
|
private String sttp;
|
||||||
|
|
||||||
|
@TableField(exist = false)
|
||||||
|
private String sttpName;
|
||||||
|
|
||||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||||
private Date tm;
|
private Date tm;
|
||||||
|
|
||||||
@ -37,6 +40,9 @@ public class SdOpinfoBH implements Serializable {
|
|||||||
|
|
||||||
private Integer dtin;
|
private Integer dtin;
|
||||||
|
|
||||||
|
@TableField(exist = false)
|
||||||
|
private String dtinName;
|
||||||
|
|
||||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||||
@TableField("DTIN_TM")
|
@TableField("DTIN_TM")
|
||||||
private Date dtinTm;
|
private Date dtinTm;
|
||||||
@ -49,6 +55,9 @@ public class SdOpinfoBH implements Serializable {
|
|||||||
@TableField("BASE_ID")
|
@TableField("BASE_ID")
|
||||||
private String baseId;
|
private String baseId;
|
||||||
|
|
||||||
|
@TableField(exist = false)
|
||||||
|
private String baseName;
|
||||||
|
|
||||||
private String hbrvcd;
|
private String hbrvcd;
|
||||||
|
|
||||||
private String rvcd;
|
private String rvcd;
|
||||||
@ -82,6 +91,9 @@ public class SdOpinfoBH implements Serializable {
|
|||||||
@TableField("BLDSTT_CODE")
|
@TableField("BLDSTT_CODE")
|
||||||
private Integer bldsttCode;
|
private Integer bldsttCode;
|
||||||
|
|
||||||
|
@TableField(exist = false)
|
||||||
|
private String bldsttCodeName;
|
||||||
|
|
||||||
private String introduce;
|
private String introduce;
|
||||||
|
|
||||||
private String logo;
|
private String logo;
|
||||||
|
|||||||
@ -20,6 +20,9 @@ public class SdOtteBH implements Serializable {
|
|||||||
|
|
||||||
private String sttp;
|
private String sttp;
|
||||||
|
|
||||||
|
@TableField(exist = false)
|
||||||
|
private String sttpName;
|
||||||
|
|
||||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||||
private Date tm;
|
private Date tm;
|
||||||
|
|
||||||
@ -37,6 +40,9 @@ public class SdOtteBH implements Serializable {
|
|||||||
|
|
||||||
private Integer dtin;
|
private Integer dtin;
|
||||||
|
|
||||||
|
@TableField(exist = false)
|
||||||
|
private String dtinName;
|
||||||
|
|
||||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||||
@TableField("DTIN_TM")
|
@TableField("DTIN_TM")
|
||||||
private Date dtinTm;
|
private Date dtinTm;
|
||||||
@ -49,6 +55,9 @@ public class SdOtteBH implements Serializable {
|
|||||||
@TableField("BASE_ID")
|
@TableField("BASE_ID")
|
||||||
private String baseId;
|
private String baseId;
|
||||||
|
|
||||||
|
@TableField(exist = false)
|
||||||
|
private String baseName;
|
||||||
|
|
||||||
private String hbrvcd;
|
private String hbrvcd;
|
||||||
|
|
||||||
private String rvcd;
|
private String rvcd;
|
||||||
@ -82,6 +91,9 @@ public class SdOtteBH implements Serializable {
|
|||||||
@TableField("BLDSTT_CODE")
|
@TableField("BLDSTT_CODE")
|
||||||
private Integer bldsttCode;
|
private Integer bldsttCode;
|
||||||
|
|
||||||
|
@TableField(exist = false)
|
||||||
|
private String bldsttCodeName;
|
||||||
|
|
||||||
private String introduce;
|
private String introduce;
|
||||||
|
|
||||||
private String logo;
|
private String logo;
|
||||||
|
|||||||
@ -20,6 +20,9 @@ public class SdOtweBH implements Serializable {
|
|||||||
|
|
||||||
private String sttp;
|
private String sttp;
|
||||||
|
|
||||||
|
@TableField(exist = false)
|
||||||
|
private String sttpName;
|
||||||
|
|
||||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||||
private Date tm;
|
private Date tm;
|
||||||
|
|
||||||
@ -37,6 +40,9 @@ public class SdOtweBH implements Serializable {
|
|||||||
|
|
||||||
private Integer dtin;
|
private Integer dtin;
|
||||||
|
|
||||||
|
@TableField(exist = false)
|
||||||
|
private String dtinName;
|
||||||
|
|
||||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||||
@TableField("DTIN_TM")
|
@TableField("DTIN_TM")
|
||||||
private Date dtinTm;
|
private Date dtinTm;
|
||||||
@ -49,6 +55,9 @@ public class SdOtweBH implements Serializable {
|
|||||||
@TableField("BASE_ID")
|
@TableField("BASE_ID")
|
||||||
private String baseId;
|
private String baseId;
|
||||||
|
|
||||||
|
@TableField(exist = false)
|
||||||
|
private String baseName;
|
||||||
|
|
||||||
private String hbrvcd;
|
private String hbrvcd;
|
||||||
|
|
||||||
private String rvcd;
|
private String rvcd;
|
||||||
@ -82,6 +91,9 @@ public class SdOtweBH implements Serializable {
|
|||||||
@TableField("BLDSTT_CODE")
|
@TableField("BLDSTT_CODE")
|
||||||
private Integer bldsttCode;
|
private Integer bldsttCode;
|
||||||
|
|
||||||
|
@TableField(exist = false)
|
||||||
|
private String bldsttCodeName;
|
||||||
|
|
||||||
private String introduce;
|
private String introduce;
|
||||||
|
|
||||||
private String logo;
|
private String logo;
|
||||||
|
|||||||
@ -22,6 +22,9 @@ public class SdSonarBH implements Serializable {
|
|||||||
|
|
||||||
private String sttp;
|
private String sttp;
|
||||||
|
|
||||||
|
@TableField(exist = false)
|
||||||
|
private String sttpName;
|
||||||
|
|
||||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||||
private Date tm;
|
private Date tm;
|
||||||
|
|
||||||
@ -44,16 +47,25 @@ public class SdSonarBH implements Serializable {
|
|||||||
@TableField("BLDSTT_CODE")
|
@TableField("BLDSTT_CODE")
|
||||||
private Integer bldsttCode;
|
private Integer bldsttCode;
|
||||||
|
|
||||||
|
@TableField(exist = false)
|
||||||
|
private String bldsttCodeName;
|
||||||
|
|
||||||
private Integer usfl;
|
private Integer usfl;
|
||||||
|
|
||||||
private Integer dtin;
|
private Integer dtin;
|
||||||
|
|
||||||
|
@TableField(exist = false)
|
||||||
|
private String dtinName;
|
||||||
|
|
||||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||||
@TableField("DTIN_TM")
|
@TableField("DTIN_TM")
|
||||||
private Date dtinTm;
|
private Date dtinTm;
|
||||||
|
|
||||||
private Integer mway;
|
private Integer mway;
|
||||||
|
|
||||||
|
@TableField(exist = false)
|
||||||
|
private String mwayName;
|
||||||
|
|
||||||
private String stindx;
|
private String stindx;
|
||||||
|
|
||||||
@TableField("ORDER_INDEX")
|
@TableField("ORDER_INDEX")
|
||||||
@ -64,6 +76,9 @@ public class SdSonarBH implements Serializable {
|
|||||||
@TableField("BASE_ID")
|
@TableField("BASE_ID")
|
||||||
private String baseId;
|
private String baseId;
|
||||||
|
|
||||||
|
@TableField(exist = false)
|
||||||
|
private String baseName;
|
||||||
|
|
||||||
private String hbrvcd;
|
private String hbrvcd;
|
||||||
|
|
||||||
private String rvcd;
|
private String rvcd;
|
||||||
|
|||||||
@ -20,6 +20,9 @@ public class SdTeBH implements Serializable {
|
|||||||
|
|
||||||
private String sttp;
|
private String sttp;
|
||||||
|
|
||||||
|
@TableField(exist = false)
|
||||||
|
private String sttpName;
|
||||||
|
|
||||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||||
private Date tm;
|
private Date tm;
|
||||||
|
|
||||||
@ -35,6 +38,9 @@ public class SdTeBH implements Serializable {
|
|||||||
|
|
||||||
private Integer dtin;
|
private Integer dtin;
|
||||||
|
|
||||||
|
@TableField(exist = false)
|
||||||
|
private String dtinName;
|
||||||
|
|
||||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||||
@TableField("DTIN_TM")
|
@TableField("DTIN_TM")
|
||||||
private Date dtinTm;
|
private Date dtinTm;
|
||||||
@ -47,6 +53,9 @@ public class SdTeBH implements Serializable {
|
|||||||
@TableField("BASE_ID")
|
@TableField("BASE_ID")
|
||||||
private String baseId;
|
private String baseId;
|
||||||
|
|
||||||
|
@TableField(exist = false)
|
||||||
|
private String baseName;
|
||||||
|
|
||||||
private String hbrvcd;
|
private String hbrvcd;
|
||||||
|
|
||||||
private String rvcd;
|
private String rvcd;
|
||||||
@ -80,6 +89,9 @@ public class SdTeBH implements Serializable {
|
|||||||
@TableField("BLDSTT_CODE")
|
@TableField("BLDSTT_CODE")
|
||||||
private Integer bldsttCode;
|
private Integer bldsttCode;
|
||||||
|
|
||||||
|
@TableField(exist = false)
|
||||||
|
private String bldsttCodeName;
|
||||||
|
|
||||||
private String introduce;
|
private String introduce;
|
||||||
|
|
||||||
private String logo;
|
private String logo;
|
||||||
|
|||||||
@ -20,6 +20,9 @@ public class SdVaBH implements Serializable {
|
|||||||
|
|
||||||
private String sttp;
|
private String sttp;
|
||||||
|
|
||||||
|
@TableField(exist = false)
|
||||||
|
private String sttpName;
|
||||||
|
|
||||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||||
private Date tm;
|
private Date tm;
|
||||||
|
|
||||||
@ -36,6 +39,8 @@ public class SdVaBH implements Serializable {
|
|||||||
private Integer usfl;
|
private Integer usfl;
|
||||||
|
|
||||||
private Integer dtin;
|
private Integer dtin;
|
||||||
|
@TableField(exist = false)
|
||||||
|
private String dtinName;
|
||||||
|
|
||||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||||
@TableField("DTIN_TM")
|
@TableField("DTIN_TM")
|
||||||
@ -49,6 +54,9 @@ public class SdVaBH implements Serializable {
|
|||||||
@TableField("BASE_ID")
|
@TableField("BASE_ID")
|
||||||
private String baseId;
|
private String baseId;
|
||||||
|
|
||||||
|
@TableField(exist = false)
|
||||||
|
private String baseName;
|
||||||
|
|
||||||
private String hbrvcd;
|
private String hbrvcd;
|
||||||
|
|
||||||
private String rstcdmap;
|
private String rstcdmap;
|
||||||
@ -80,6 +88,9 @@ public class SdVaBH implements Serializable {
|
|||||||
@TableField("BLDSTT_CODE")
|
@TableField("BLDSTT_CODE")
|
||||||
private Integer bldsttCode;
|
private Integer bldsttCode;
|
||||||
|
|
||||||
|
@TableField(exist = false)
|
||||||
|
private String bldsttCodeName;
|
||||||
|
|
||||||
private String introduce;
|
private String introduce;
|
||||||
|
|
||||||
private String logo;
|
private String logo;
|
||||||
|
|||||||
@ -28,6 +28,9 @@ public class SdVdinfoB implements Serializable {
|
|||||||
|
|
||||||
private String sttp;
|
private String sttp;
|
||||||
|
|
||||||
|
@TableField(exist = false)
|
||||||
|
private String sttpName;
|
||||||
|
|
||||||
private BigDecimal lgtd;
|
private BigDecimal lgtd;
|
||||||
|
|
||||||
private BigDecimal lttd;
|
private BigDecimal lttd;
|
||||||
@ -53,6 +56,9 @@ public class SdVdinfoB implements Serializable {
|
|||||||
@TableField("BASE_ID")
|
@TableField("BASE_ID")
|
||||||
private String baseId;
|
private String baseId;
|
||||||
|
|
||||||
|
@TableField(exist = false)
|
||||||
|
private String baseName;
|
||||||
|
|
||||||
private String hbrvcd;
|
private String hbrvcd;
|
||||||
|
|
||||||
private String fhstcd;
|
private String fhstcd;
|
||||||
@ -69,10 +75,16 @@ public class SdVdinfoB implements Serializable {
|
|||||||
@TableField("BLDSTT_CODE")
|
@TableField("BLDSTT_CODE")
|
||||||
private Integer bldsttCode;
|
private Integer bldsttCode;
|
||||||
|
|
||||||
|
@TableField(exist = false)
|
||||||
|
private String bldsttCodeName;
|
||||||
|
|
||||||
private Integer usfl;
|
private Integer usfl;
|
||||||
|
|
||||||
private Integer dtin;
|
private Integer dtin;
|
||||||
|
|
||||||
|
@TableField(exist = false)
|
||||||
|
private String dtinName;
|
||||||
|
|
||||||
@TableField("DTIN_SRC")
|
@TableField("DTIN_SRC")
|
||||||
private String dtinSrc;
|
private String dtinSrc;
|
||||||
|
|
||||||
|
|||||||
@ -23,6 +23,10 @@ public class SdVpBH implements Serializable {
|
|||||||
|
|
||||||
private String sttp;
|
private String sttp;
|
||||||
|
|
||||||
|
@TableField(exist = false)
|
||||||
|
private String sttpName;
|
||||||
|
|
||||||
|
|
||||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||||
private Date tm;
|
private Date tm;
|
||||||
|
|
||||||
@ -40,6 +44,9 @@ public class SdVpBH implements Serializable {
|
|||||||
|
|
||||||
private Integer dtin;
|
private Integer dtin;
|
||||||
|
|
||||||
|
@TableField(exist = false)
|
||||||
|
private String dtinName;
|
||||||
|
|
||||||
@TableField("DTIN_TM")
|
@TableField("DTIN_TM")
|
||||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||||
private Date dtinTm;
|
private Date dtinTm;
|
||||||
@ -52,6 +59,9 @@ public class SdVpBH implements Serializable {
|
|||||||
@TableField("BASE_ID")
|
@TableField("BASE_ID")
|
||||||
private String baseId;
|
private String baseId;
|
||||||
|
|
||||||
|
@TableField(exist = false)
|
||||||
|
private String baseName;
|
||||||
|
|
||||||
private String hbrvcd;
|
private String hbrvcd;
|
||||||
|
|
||||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||||
@ -75,6 +85,9 @@ public class SdVpBH implements Serializable {
|
|||||||
@TableField("BLDSTT_CODE")
|
@TableField("BLDSTT_CODE")
|
||||||
private Integer bldsttCode;
|
private Integer bldsttCode;
|
||||||
|
|
||||||
|
@TableField(exist = false)
|
||||||
|
private String bldsttCodeName;
|
||||||
|
|
||||||
private String introduce;
|
private String introduce;
|
||||||
|
|
||||||
private String logo;
|
private String logo;
|
||||||
|
|||||||
@ -23,6 +23,9 @@ public class SdWeBH implements Serializable {
|
|||||||
|
|
||||||
private String sttp;
|
private String sttp;
|
||||||
|
|
||||||
|
@TableField(exist = false)
|
||||||
|
private String sttpName;
|
||||||
|
|
||||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||||
private Date tm;
|
private Date tm;
|
||||||
|
|
||||||
@ -38,6 +41,9 @@ public class SdWeBH implements Serializable {
|
|||||||
|
|
||||||
private Integer dtin;
|
private Integer dtin;
|
||||||
|
|
||||||
|
@TableField(exist = false)
|
||||||
|
private String dtinName;
|
||||||
|
|
||||||
@TableField("DTIN_TM")
|
@TableField("DTIN_TM")
|
||||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||||
private Date dtinTm;
|
private Date dtinTm;
|
||||||
@ -50,6 +56,9 @@ public class SdWeBH implements Serializable {
|
|||||||
@TableField("BASE_ID")
|
@TableField("BASE_ID")
|
||||||
private String baseId;
|
private String baseId;
|
||||||
|
|
||||||
|
@TableField(exist = false)
|
||||||
|
private String baseName;
|
||||||
|
|
||||||
private String hbrvcd;
|
private String hbrvcd;
|
||||||
|
|
||||||
private String rvcd;
|
private String rvcd;
|
||||||
@ -77,6 +86,9 @@ public class SdWeBH implements Serializable {
|
|||||||
@TableField("BLDSTT_CODE")
|
@TableField("BLDSTT_CODE")
|
||||||
private Integer bldsttCode;
|
private Integer bldsttCode;
|
||||||
|
|
||||||
|
@TableField(exist = false)
|
||||||
|
private String bldsttCodeName;
|
||||||
|
|
||||||
private String introduce;
|
private String introduce;
|
||||||
|
|
||||||
private String logo;
|
private String logo;
|
||||||
|
|||||||
@ -26,6 +26,9 @@ public class SdWqBH implements Serializable {
|
|||||||
|
|
||||||
private String sttp;
|
private String sttp;
|
||||||
|
|
||||||
|
@TableField(exist = false)
|
||||||
|
private String sttpName;
|
||||||
|
|
||||||
private BigDecimal lgtd;
|
private BigDecimal lgtd;
|
||||||
|
|
||||||
private BigDecimal lttd;
|
private BigDecimal lttd;
|
||||||
@ -47,6 +50,9 @@ public class SdWqBH implements Serializable {
|
|||||||
@TableField("BLDSTT_CODE")
|
@TableField("BLDSTT_CODE")
|
||||||
private Integer bldsttCode;
|
private Integer bldsttCode;
|
||||||
|
|
||||||
|
@TableField(exist = false)
|
||||||
|
private String bldsttCodeName;
|
||||||
|
|
||||||
private String introduce;
|
private String introduce;
|
||||||
|
|
||||||
private String logo;
|
private String logo;
|
||||||
@ -57,18 +63,27 @@ public class SdWqBH implements Serializable {
|
|||||||
|
|
||||||
private Integer dtin;
|
private Integer dtin;
|
||||||
|
|
||||||
|
@TableField(exist = false)
|
||||||
|
private String dtinName;
|
||||||
|
|
||||||
@TableField("DTIN_SRC")
|
@TableField("DTIN_SRC")
|
||||||
private String dtinSrc;
|
private String dtinSrc;
|
||||||
|
|
||||||
@TableField("DTIN_TYPE")
|
@TableField("DTIN_TYPE")
|
||||||
private Integer dtinType;
|
private Integer dtinType;
|
||||||
|
|
||||||
|
@TableField(exist = false)
|
||||||
|
private String dtinTypeName;
|
||||||
|
|
||||||
@TableField("DTIN_TM")
|
@TableField("DTIN_TM")
|
||||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||||
private Date dtinTm;
|
private Date dtinTm;
|
||||||
|
|
||||||
private Integer mway;
|
private Integer mway;
|
||||||
|
|
||||||
|
@TableField(exist = false)
|
||||||
|
private Integer mwayName;
|
||||||
|
|
||||||
private String stindx;
|
private String stindx;
|
||||||
|
|
||||||
@TableField("ORDER_INDEX")
|
@TableField("ORDER_INDEX")
|
||||||
@ -79,6 +94,9 @@ public class SdWqBH implements Serializable {
|
|||||||
@TableField("BASE_ID")
|
@TableField("BASE_ID")
|
||||||
private String baseId;
|
private String baseId;
|
||||||
|
|
||||||
|
@TableField(exist = false)
|
||||||
|
private String baseName;
|
||||||
|
|
||||||
private String hbrvcd;
|
private String hbrvcd;
|
||||||
|
|
||||||
private String fhstcd;
|
private String fhstcd;
|
||||||
|
|||||||
@ -26,6 +26,9 @@ public class SdWtBH implements Serializable {
|
|||||||
|
|
||||||
private String sttp;
|
private String sttp;
|
||||||
|
|
||||||
|
@TableField(exist = false)
|
||||||
|
private String sttpName;
|
||||||
|
|
||||||
private BigDecimal lgtd;
|
private BigDecimal lgtd;
|
||||||
|
|
||||||
private BigDecimal lttd;
|
private BigDecimal lttd;
|
||||||
@ -62,6 +65,9 @@ public class SdWtBH implements Serializable {
|
|||||||
@TableField("BLDSTT_CODE")
|
@TableField("BLDSTT_CODE")
|
||||||
private Integer bldsttCode;
|
private Integer bldsttCode;
|
||||||
|
|
||||||
|
@TableField(exist = false)
|
||||||
|
private String bldsttCodeName;
|
||||||
|
|
||||||
private BigDecimal inv;
|
private BigDecimal inv;
|
||||||
|
|
||||||
private Integer invinmn;
|
private Integer invinmn;
|
||||||
@ -76,18 +82,27 @@ public class SdWtBH implements Serializable {
|
|||||||
|
|
||||||
private Integer dtin;
|
private Integer dtin;
|
||||||
|
|
||||||
|
@TableField(exist = false)
|
||||||
|
private String dtinName;
|
||||||
|
|
||||||
@TableField("DTIN_SRC")
|
@TableField("DTIN_SRC")
|
||||||
private String dtinSrc;
|
private String dtinSrc;
|
||||||
|
|
||||||
@TableField("DTIN_TYPE")
|
@TableField("DTIN_TYPE")
|
||||||
private Integer dtinType;
|
private Integer dtinType;
|
||||||
|
|
||||||
|
@TableField(exist = false)
|
||||||
|
private String dtinTypeName;
|
||||||
|
|
||||||
@TableField("DTIN_TM")
|
@TableField("DTIN_TM")
|
||||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||||
private Date dtinTm;
|
private Date dtinTm;
|
||||||
|
|
||||||
private Integer mway;
|
private Integer mway;
|
||||||
|
|
||||||
|
@TableField(exist = false)
|
||||||
|
private String mwayName;
|
||||||
|
|
||||||
private String stindx;
|
private String stindx;
|
||||||
|
|
||||||
@TableField("ORDER_INDEX")
|
@TableField("ORDER_INDEX")
|
||||||
@ -140,6 +155,9 @@ public class SdWtBH implements Serializable {
|
|||||||
@TableField("BASE_ID")
|
@TableField("BASE_ID")
|
||||||
private String baseId;
|
private String baseId;
|
||||||
|
|
||||||
|
@TableField(exist = false)
|
||||||
|
private String baseName;
|
||||||
|
|
||||||
private String hbrvcd;
|
private String hbrvcd;
|
||||||
|
|
||||||
@TableField("WARN_STATE")
|
@TableField("WARN_STATE")
|
||||||
|
|||||||
@ -8,12 +8,15 @@ import com.yfd.platform.qgc_base.domain.SdAiboxBH;
|
|||||||
import com.yfd.platform.qgc_base.mapper.SdAiboxBHMapper;
|
import com.yfd.platform.qgc_base.mapper.SdAiboxBHMapper;
|
||||||
import com.yfd.platform.qgc_base.service.IMsOperationLogService;
|
import com.yfd.platform.qgc_base.service.IMsOperationLogService;
|
||||||
import com.yfd.platform.qgc_base.service.ISdAiboxBHService;
|
import com.yfd.platform.qgc_base.service.ISdAiboxBHService;
|
||||||
|
import com.yfd.platform.utils.CodeToNameMetadataBo;
|
||||||
import com.yfd.platform.utils.DataSourceRequestUtil;
|
import com.yfd.platform.utils.DataSourceRequestUtil;
|
||||||
|
import com.yfd.platform.utils.DictCodeToNameConverter;
|
||||||
import com.yfd.platform.utils.SecurityUtils;
|
import com.yfd.platform.utils.SecurityUtils;
|
||||||
import jakarta.annotation.Resource;
|
import jakarta.annotation.Resource;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import org.springframework.transaction.annotation.Transactional;
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@ -25,9 +28,40 @@ public class SdAiboxBHServiceImpl extends ServiceImpl<SdAiboxBHMapper, SdAiboxBH
|
|||||||
@Resource
|
@Resource
|
||||||
private IMsOperationLogService msOperationLogService;
|
private IMsOperationLogService msOperationLogService;
|
||||||
|
|
||||||
|
@Resource
|
||||||
|
private DictCodeToNameConverter dictCodeToNameConverter;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 代码转名称元数据配置列表(静态初始化)
|
||||||
|
* <p>
|
||||||
|
* 每个模块的 ServiceImpl 中可按需定义自己的 codeToNameMetadataBoList,
|
||||||
|
* 在查询方法返回前调用 dictCodeToNameConverter.convertCodeToName(voList, codeToNameMetadataBoList)
|
||||||
|
* 即可自动将 code 字段转为对应的 name 字段。
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* <pre>
|
||||||
|
* 使用示例:
|
||||||
|
* // 在查询方法末尾调用:
|
||||||
|
* dictCodeToNameConverter.convertCodeToName(voList, CODE_TO_NAME_META_LIST);
|
||||||
|
* </pre>
|
||||||
|
*/
|
||||||
|
private static final List<CodeToNameMetadataBo> CODE_TO_NAME_META_LIST = new ArrayList<>();
|
||||||
|
|
||||||
|
static {
|
||||||
|
CODE_TO_NAME_META_LIST.add(CodeToNameMetadataBo.builder().codeProperty("dtin").modifyProperty("dtinName").dictType("STATIC").dictSource("DTIN").build());
|
||||||
|
CODE_TO_NAME_META_LIST.add(CodeToNameMetadataBo.builder().codeProperty("mway").modifyProperty("mwayName").dictType("STATIC").dictSource("MWAY").build());
|
||||||
|
CODE_TO_NAME_META_LIST.add(CodeToNameMetadataBo.builder().codeProperty("bldsttCode").modifyProperty("bldsttCodeName").dictType("STATIC").dictSource("BLDSTT_CODE").build());
|
||||||
|
// CODE_TO_NAME_META_LIST.add(CodeToNameMetadataBo.builder().codeProperty("dtinType").modifyProperty("dtinTypeName").dictType("STATIC").dictSource("DTIN_TYPE").build());
|
||||||
|
CODE_TO_NAME_META_LIST.add(CodeToNameMetadataBo.builder().codeProperty("sttp").modifyProperty("sttpName").dictType("DYNAMIC").dictSource("SD_STTP_B").codeColumn("STTP_CODE").nameColumn("STTP_NAME").filter("NVL(IS_DELETED, 0) = 0 ").build());
|
||||||
|
CODE_TO_NAME_META_LIST.add(CodeToNameMetadataBo.builder().codeProperty("baseId").modifyProperty("baseName").dictType("DYNAMIC").dictSource("SD_HYDROBASE").codeColumn("BASEID").nameColumn("BASENAME").filter("NVL(IS_DELETED, 0) = 0 ").build());
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Page<SdAiboxBH> queryPageList(DataSourceRequest request) {
|
public Page<SdAiboxBH> queryPageList(DataSourceRequest request) {
|
||||||
return DataSourceRequestUtil.executeQuery(request, SdAiboxBH.class, this);
|
Page<SdAiboxBH> sdAiboxBHPage = DataSourceRequestUtil.executeQuery(request, SdAiboxBH.class, this);
|
||||||
|
dictCodeToNameConverter.convertCodeToName(sdAiboxBHPage, CODE_TO_NAME_META_LIST);
|
||||||
|
return sdAiboxBHPage;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@ -7,11 +7,14 @@ import com.yfd.platform.qgc_base.domain.SdArtsgBH;
|
|||||||
import com.yfd.platform.qgc_base.mapper.SdArtsgBHMapper;
|
import com.yfd.platform.qgc_base.mapper.SdArtsgBHMapper;
|
||||||
import com.yfd.platform.qgc_base.service.IMsOperationLogService;
|
import com.yfd.platform.qgc_base.service.IMsOperationLogService;
|
||||||
import com.yfd.platform.qgc_base.service.ISdArtsgBHService;
|
import com.yfd.platform.qgc_base.service.ISdArtsgBHService;
|
||||||
|
import com.yfd.platform.utils.CodeToNameMetadataBo;
|
||||||
import com.yfd.platform.utils.DataSourceRequestUtil;
|
import com.yfd.platform.utils.DataSourceRequestUtil;
|
||||||
|
import com.yfd.platform.utils.DictCodeToNameConverter;
|
||||||
import jakarta.annotation.Resource;
|
import jakarta.annotation.Resource;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import org.springframework.transaction.annotation.Transactional;
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@Service
|
@Service
|
||||||
@ -19,12 +22,42 @@ public class SdArtsgBHServiceImpl extends ServiceImpl<SdArtsgBHMapper, SdArtsgBH
|
|||||||
|
|
||||||
private static final String TABLE_NAME = "SD_ARTSG_B_H";
|
private static final String TABLE_NAME = "SD_ARTSG_B_H";
|
||||||
|
|
||||||
|
@Resource
|
||||||
|
private DictCodeToNameConverter dictCodeToNameConverter;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 代码转名称元数据配置列表(静态初始化)
|
||||||
|
* <p>
|
||||||
|
* 每个模块的 ServiceImpl 中可按需定义自己的 codeToNameMetadataBoList,
|
||||||
|
* 在查询方法返回前调用 dictCodeToNameConverter.convertCodeToName(voList, codeToNameMetadataBoList)
|
||||||
|
* 即可自动将 code 字段转为对应的 name 字段。
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* <pre>
|
||||||
|
* 使用示例:
|
||||||
|
* // 在查询方法末尾调用:
|
||||||
|
* dictCodeToNameConverter.convertCodeToName(voList, CODE_TO_NAME_META_LIST);
|
||||||
|
* </pre>
|
||||||
|
*/
|
||||||
|
private static final List<CodeToNameMetadataBo> CODE_TO_NAME_META_LIST = new ArrayList<>();
|
||||||
|
|
||||||
|
static {
|
||||||
|
CODE_TO_NAME_META_LIST.add(CodeToNameMetadataBo.builder().codeProperty("dtin").modifyProperty("dtinName").dictType("STATIC").dictSource("DTIN").build());
|
||||||
|
CODE_TO_NAME_META_LIST.add(CodeToNameMetadataBo.builder().codeProperty("bldsttCode").modifyProperty("bldsttCodeName").dictType("STATIC").dictSource("BLDSTT_CODE").build());
|
||||||
|
// CODE_TO_NAME_META_LIST.add(CodeToNameMetadataBo.builder().codeProperty("dtinType").modifyProperty("dtinTypeName").dictType("STATIC").dictSource("DTIN_TYPE").build());
|
||||||
|
CODE_TO_NAME_META_LIST.add(CodeToNameMetadataBo.builder().codeProperty("sttp").modifyProperty("sttpName").dictType("DYNAMIC").dictSource("SD_STTP_B").codeColumn("STTP_CODE").nameColumn("STTP_NAME").filter("NVL(IS_DELETED, 0) = 0 ").build());
|
||||||
|
CODE_TO_NAME_META_LIST.add(CodeToNameMetadataBo.builder().codeProperty("baseId").modifyProperty("baseName").dictType("DYNAMIC").dictSource("SD_HYDROBASE").codeColumn("BASEID").nameColumn("BASENAME").filter("NVL(IS_DELETED, 0) = 0 ").build());
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
@Resource
|
@Resource
|
||||||
private IMsOperationLogService msOperationLogService;
|
private IMsOperationLogService msOperationLogService;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Page<SdArtsgBH> queryPageList(DataSourceRequest request) {
|
public Page<SdArtsgBH> queryPageList(DataSourceRequest request) {
|
||||||
return DataSourceRequestUtil.executeQuery(request, SdArtsgBH.class, this);
|
Page<SdArtsgBH> sdArtsgBHPage = DataSourceRequestUtil.executeQuery(request, SdArtsgBH.class, this);
|
||||||
|
dictCodeToNameConverter.convertCodeToName(sdArtsgBHPage, CODE_TO_NAME_META_LIST);
|
||||||
|
return sdArtsgBHPage;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@ -8,12 +8,15 @@ import com.yfd.platform.qgc_base.domain.SdDwBH;
|
|||||||
import com.yfd.platform.qgc_base.mapper.SdDwBHMapper;
|
import com.yfd.platform.qgc_base.mapper.SdDwBHMapper;
|
||||||
import com.yfd.platform.qgc_base.service.IMsOperationLogService;
|
import com.yfd.platform.qgc_base.service.IMsOperationLogService;
|
||||||
import com.yfd.platform.qgc_base.service.ISdDwBHService;
|
import com.yfd.platform.qgc_base.service.ISdDwBHService;
|
||||||
|
import com.yfd.platform.utils.CodeToNameMetadataBo;
|
||||||
import com.yfd.platform.utils.DataSourceRequestUtil;
|
import com.yfd.platform.utils.DataSourceRequestUtil;
|
||||||
|
import com.yfd.platform.utils.DictCodeToNameConverter;
|
||||||
import com.yfd.platform.utils.SecurityUtils;
|
import com.yfd.platform.utils.SecurityUtils;
|
||||||
import jakarta.annotation.Resource;
|
import jakarta.annotation.Resource;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import org.springframework.transaction.annotation.Transactional;
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@ -25,9 +28,39 @@ public class SdDwBHServiceImpl extends ServiceImpl<SdDwBHMapper, SdDwBH> impleme
|
|||||||
@Resource
|
@Resource
|
||||||
private IMsOperationLogService msOperationLogService;
|
private IMsOperationLogService msOperationLogService;
|
||||||
|
|
||||||
|
@Resource
|
||||||
|
private DictCodeToNameConverter dictCodeToNameConverter;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 代码转名称元数据配置列表(静态初始化)
|
||||||
|
* <p>
|
||||||
|
* 每个模块的 ServiceImpl 中可按需定义自己的 codeToNameMetadataBoList,
|
||||||
|
* 在查询方法返回前调用 dictCodeToNameConverter.convertCodeToName(voList, codeToNameMetadataBoList)
|
||||||
|
* 即可自动将 code 字段转为对应的 name 字段。
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* <pre>
|
||||||
|
* 使用示例:
|
||||||
|
* // 在查询方法末尾调用:
|
||||||
|
* dictCodeToNameConverter.convertCodeToName(voList, CODE_TO_NAME_META_LIST);
|
||||||
|
* </pre>
|
||||||
|
*/
|
||||||
|
private static final List<CodeToNameMetadataBo> CODE_TO_NAME_META_LIST = new ArrayList<>();
|
||||||
|
|
||||||
|
static {
|
||||||
|
CODE_TO_NAME_META_LIST.add(CodeToNameMetadataBo.builder().codeProperty("dtin").modifyProperty("dtinName").dictType("STATIC").dictSource("DTIN").build());
|
||||||
|
CODE_TO_NAME_META_LIST.add(CodeToNameMetadataBo.builder().codeProperty("bldsttCode").modifyProperty("bldsttCodeName").dictType("STATIC").dictSource("BLDSTT_CODE").build());
|
||||||
|
// CODE_TO_NAME_META_LIST.add(CodeToNameMetadataBo.builder().codeProperty("dtinType").modifyProperty("dtinTypeName").dictType("STATIC").dictSource("DTIN_TYPE").build());
|
||||||
|
CODE_TO_NAME_META_LIST.add(CodeToNameMetadataBo.builder().codeProperty("sttp").modifyProperty("sttpName").dictType("DYNAMIC").dictSource("SD_STTP_B").codeColumn("STTP_CODE").nameColumn("STTP_NAME").filter("NVL(IS_DELETED, 0) = 0 ").build());
|
||||||
|
CODE_TO_NAME_META_LIST.add(CodeToNameMetadataBo.builder().codeProperty("baseId").modifyProperty("baseName").dictType("DYNAMIC").dictSource("SD_HYDROBASE").codeColumn("BASEID").nameColumn("BASENAME").filter("NVL(IS_DELETED, 0) = 0 ").build());
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Page<SdDwBH> queryPageList(DataSourceRequest request) {
|
public Page<SdDwBH> queryPageList(DataSourceRequest request) {
|
||||||
return DataSourceRequestUtil.executeQuery(request, SdDwBH.class, this);
|
Page<SdDwBH> sdDwBHPage = DataSourceRequestUtil.executeQuery(request, SdDwBH.class, this);
|
||||||
|
dictCodeToNameConverter.convertCodeToName(sdDwBHPage, CODE_TO_NAME_META_LIST);
|
||||||
|
return sdDwBHPage;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@ -8,12 +8,15 @@ import com.yfd.platform.qgc_base.domain.SdEqBH;
|
|||||||
import com.yfd.platform.qgc_base.mapper.SdEqBHMapper;
|
import com.yfd.platform.qgc_base.mapper.SdEqBHMapper;
|
||||||
import com.yfd.platform.qgc_base.service.IMsOperationLogService;
|
import com.yfd.platform.qgc_base.service.IMsOperationLogService;
|
||||||
import com.yfd.platform.qgc_base.service.ISdEqBHService;
|
import com.yfd.platform.qgc_base.service.ISdEqBHService;
|
||||||
|
import com.yfd.platform.utils.CodeToNameMetadataBo;
|
||||||
import com.yfd.platform.utils.DataSourceRequestUtil;
|
import com.yfd.platform.utils.DataSourceRequestUtil;
|
||||||
|
import com.yfd.platform.utils.DictCodeToNameConverter;
|
||||||
import com.yfd.platform.utils.SecurityUtils;
|
import com.yfd.platform.utils.SecurityUtils;
|
||||||
import jakarta.annotation.Resource;
|
import jakarta.annotation.Resource;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import org.springframework.transaction.annotation.Transactional;
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@ -25,9 +28,39 @@ public class SdEqBHServiceImpl extends ServiceImpl<SdEqBHMapper, SdEqBH> impleme
|
|||||||
@Resource
|
@Resource
|
||||||
private IMsOperationLogService msOperationLogService;
|
private IMsOperationLogService msOperationLogService;
|
||||||
|
|
||||||
|
@Resource
|
||||||
|
private DictCodeToNameConverter dictCodeToNameConverter;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 代码转名称元数据配置列表(静态初始化)
|
||||||
|
* <p>
|
||||||
|
* 每个模块的 ServiceImpl 中可按需定义自己的 codeToNameMetadataBoList,
|
||||||
|
* 在查询方法返回前调用 dictCodeToNameConverter.convertCodeToName(voList, codeToNameMetadataBoList)
|
||||||
|
* 即可自动将 code 字段转为对应的 name 字段。
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* <pre>
|
||||||
|
* 使用示例:
|
||||||
|
* // 在查询方法末尾调用:
|
||||||
|
* dictCodeToNameConverter.convertCodeToName(voList, CODE_TO_NAME_META_LIST);
|
||||||
|
* </pre>
|
||||||
|
*/
|
||||||
|
private static final List<CodeToNameMetadataBo> CODE_TO_NAME_META_LIST = new ArrayList<>();
|
||||||
|
|
||||||
|
static {
|
||||||
|
CODE_TO_NAME_META_LIST.add(CodeToNameMetadataBo.builder().codeProperty("dtin").modifyProperty("dtinName").dictType("STATIC").dictSource("DTIN").build());
|
||||||
|
CODE_TO_NAME_META_LIST.add(CodeToNameMetadataBo.builder().codeProperty("bldsttCode").modifyProperty("bldsttCodeName").dictType("STATIC").dictSource("BLDSTT_CODE").build());
|
||||||
|
// CODE_TO_NAME_META_LIST.add(CodeToNameMetadataBo.builder().codeProperty("dtinType").modifyProperty("dtinTypeName").dictType("STATIC").dictSource("DTIN_TYPE").build());
|
||||||
|
CODE_TO_NAME_META_LIST.add(CodeToNameMetadataBo.builder().codeProperty("sttp").modifyProperty("sttpName").dictType("DYNAMIC").dictSource("SD_STTP_B").codeColumn("STTP_CODE").nameColumn("STTP_NAME").filter("NVL(IS_DELETED, 0) = 0 ").build());
|
||||||
|
CODE_TO_NAME_META_LIST.add(CodeToNameMetadataBo.builder().codeProperty("baseId").modifyProperty("baseName").dictType("DYNAMIC").dictSource("SD_HYDROBASE").codeColumn("BASEID").nameColumn("BASENAME").filter("NVL(IS_DELETED, 0) = 0 ").build());
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Page<SdEqBH> queryPageList(DataSourceRequest request) {
|
public Page<SdEqBH> queryPageList(DataSourceRequest request) {
|
||||||
return DataSourceRequestUtil.executeQuery(request, SdEqBH.class, this);
|
Page<SdEqBH> sdEqBHPage = DataSourceRequestUtil.executeQuery(request, SdEqBH.class, this);
|
||||||
|
dictCodeToNameConverter.convertCodeToName(sdEqBHPage, CODE_TO_NAME_META_LIST);
|
||||||
|
return sdEqBHPage;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@ -7,11 +7,14 @@ import com.yfd.platform.qgc_base.domain.SdFbrdBH;
|
|||||||
import com.yfd.platform.qgc_base.mapper.SdFbrdBHMapper;
|
import com.yfd.platform.qgc_base.mapper.SdFbrdBHMapper;
|
||||||
import com.yfd.platform.qgc_base.service.IMsOperationLogService;
|
import com.yfd.platform.qgc_base.service.IMsOperationLogService;
|
||||||
import com.yfd.platform.qgc_base.service.ISdFbrdBHService;
|
import com.yfd.platform.qgc_base.service.ISdFbrdBHService;
|
||||||
|
import com.yfd.platform.utils.CodeToNameMetadataBo;
|
||||||
import com.yfd.platform.utils.DataSourceRequestUtil;
|
import com.yfd.platform.utils.DataSourceRequestUtil;
|
||||||
|
import com.yfd.platform.utils.DictCodeToNameConverter;
|
||||||
import jakarta.annotation.Resource;
|
import jakarta.annotation.Resource;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import org.springframework.transaction.annotation.Transactional;
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@Service
|
@Service
|
||||||
@ -22,9 +25,39 @@ public class SdFbrdBHServiceImpl extends ServiceImpl<SdFbrdBHMapper, SdFbrdBH> i
|
|||||||
@Resource
|
@Resource
|
||||||
private IMsOperationLogService msOperationLogService;
|
private IMsOperationLogService msOperationLogService;
|
||||||
|
|
||||||
|
@Resource
|
||||||
|
private DictCodeToNameConverter dictCodeToNameConverter;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 代码转名称元数据配置列表(静态初始化)
|
||||||
|
* <p>
|
||||||
|
* 每个模块的 ServiceImpl 中可按需定义自己的 codeToNameMetadataBoList,
|
||||||
|
* 在查询方法返回前调用 dictCodeToNameConverter.convertCodeToName(voList, codeToNameMetadataBoList)
|
||||||
|
* 即可自动将 code 字段转为对应的 name 字段。
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* <pre>
|
||||||
|
* 使用示例:
|
||||||
|
* // 在查询方法末尾调用:
|
||||||
|
* dictCodeToNameConverter.convertCodeToName(voList, CODE_TO_NAME_META_LIST);
|
||||||
|
* </pre>
|
||||||
|
*/
|
||||||
|
private static final List<CodeToNameMetadataBo> CODE_TO_NAME_META_LIST = new ArrayList<>();
|
||||||
|
|
||||||
|
static {
|
||||||
|
CODE_TO_NAME_META_LIST.add(CodeToNameMetadataBo.builder().codeProperty("dtin").modifyProperty("dtinName").dictType("STATIC").dictSource("DTIN").build());
|
||||||
|
CODE_TO_NAME_META_LIST.add(CodeToNameMetadataBo.builder().codeProperty("bldsttCode").modifyProperty("bldsttCodeName").dictType("STATIC").dictSource("BLDSTT_CODE").build());
|
||||||
|
// CODE_TO_NAME_META_LIST.add(CodeToNameMetadataBo.builder().codeProperty("dtinType").modifyProperty("dtinTypeName").dictType("STATIC").dictSource("DTIN_TYPE").build());
|
||||||
|
CODE_TO_NAME_META_LIST.add(CodeToNameMetadataBo.builder().codeProperty("sttp").modifyProperty("sttpName").dictType("DYNAMIC").dictSource("SD_STTP_B").codeColumn("STTP_CODE").nameColumn("STTP_NAME").filter("NVL(IS_DELETED, 0) = 0 ").build());
|
||||||
|
CODE_TO_NAME_META_LIST.add(CodeToNameMetadataBo.builder().codeProperty("baseId").modifyProperty("baseName").dictType("DYNAMIC").dictSource("SD_HYDROBASE").codeColumn("BASEID").nameColumn("BASENAME").filter("NVL(IS_DELETED, 0) = 0 ").build());
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Page<SdFbrdBH> queryPageList(DataSourceRequest request) {
|
public Page<SdFbrdBH> queryPageList(DataSourceRequest request) {
|
||||||
return DataSourceRequestUtil.executeQuery(request, SdFbrdBH.class, this);
|
Page<SdFbrdBH> sdFbrdBHPage = DataSourceRequestUtil.executeQuery(request, SdFbrdBH.class, this);
|
||||||
|
dictCodeToNameConverter.convertCodeToName(sdFbrdBHPage, CODE_TO_NAME_META_LIST);
|
||||||
|
return sdFbrdBHPage;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@ -8,12 +8,15 @@ import com.yfd.platform.qgc_base.domain.SdFhbtBH;
|
|||||||
import com.yfd.platform.qgc_base.mapper.SdFhbtBHMapper;
|
import com.yfd.platform.qgc_base.mapper.SdFhbtBHMapper;
|
||||||
import com.yfd.platform.qgc_base.service.IMsOperationLogService;
|
import com.yfd.platform.qgc_base.service.IMsOperationLogService;
|
||||||
import com.yfd.platform.qgc_base.service.ISdFhbtBHService;
|
import com.yfd.platform.qgc_base.service.ISdFhbtBHService;
|
||||||
|
import com.yfd.platform.utils.CodeToNameMetadataBo;
|
||||||
import com.yfd.platform.utils.DataSourceRequestUtil;
|
import com.yfd.platform.utils.DataSourceRequestUtil;
|
||||||
|
import com.yfd.platform.utils.DictCodeToNameConverter;
|
||||||
import com.yfd.platform.utils.SecurityUtils;
|
import com.yfd.platform.utils.SecurityUtils;
|
||||||
import jakarta.annotation.Resource;
|
import jakarta.annotation.Resource;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import org.springframework.transaction.annotation.Transactional;
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@ -25,9 +28,39 @@ public class SdFhbtBHServiceImpl extends ServiceImpl<SdFhbtBHMapper, SdFhbtBH> i
|
|||||||
@Resource
|
@Resource
|
||||||
private IMsOperationLogService msOperationLogService;
|
private IMsOperationLogService msOperationLogService;
|
||||||
|
|
||||||
|
@Resource
|
||||||
|
private DictCodeToNameConverter dictCodeToNameConverter;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 代码转名称元数据配置列表(静态初始化)
|
||||||
|
* <p>
|
||||||
|
* 每个模块的 ServiceImpl 中可按需定义自己的 codeToNameMetadataBoList,
|
||||||
|
* 在查询方法返回前调用 dictCodeToNameConverter.convertCodeToName(voList, codeToNameMetadataBoList)
|
||||||
|
* 即可自动将 code 字段转为对应的 name 字段。
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* <pre>
|
||||||
|
* 使用示例:
|
||||||
|
* // 在查询方法末尾调用:
|
||||||
|
* dictCodeToNameConverter.convertCodeToName(voList, CODE_TO_NAME_META_LIST);
|
||||||
|
* </pre>
|
||||||
|
*/
|
||||||
|
private static final List<CodeToNameMetadataBo> CODE_TO_NAME_META_LIST = new ArrayList<>();
|
||||||
|
|
||||||
|
static {
|
||||||
|
CODE_TO_NAME_META_LIST.add(CodeToNameMetadataBo.builder().codeProperty("dtin").modifyProperty("dtinName").dictType("STATIC").dictSource("DTIN").build());
|
||||||
|
// CODE_TO_NAME_META_LIST.add(CodeToNameMetadataBo.builder().codeProperty("bldsttCode").modifyProperty("bldsttCodeName").dictType("STATIC").dictSource("BLDSTT_CODE").build());
|
||||||
|
// CODE_TO_NAME_META_LIST.add(CodeToNameMetadataBo.builder().codeProperty("dtinType").modifyProperty("dtinTypeName").dictType("STATIC").dictSource("DTIN_TYPE").build());
|
||||||
|
// CODE_TO_NAME_META_LIST.add(CodeToNameMetadataBo.builder().codeProperty("sttp").modifyProperty("sttpName").dictType("DYNAMIC").dictSource("SD_STTP_B").codeColumn("STTP_CODE").nameColumn("STTP_NAME").filter("NVL(IS_DELETED, 0) = 0 ").build());
|
||||||
|
CODE_TO_NAME_META_LIST.add(CodeToNameMetadataBo.builder().codeProperty("baseId").modifyProperty("baseName").dictType("DYNAMIC").dictSource("SD_HYDROBASE").codeColumn("BASEID").nameColumn("BASENAME").filter("NVL(IS_DELETED, 0) = 0 ").build());
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Page<SdFhbtBH> queryPageList(DataSourceRequest request) {
|
public Page<SdFhbtBH> queryPageList(DataSourceRequest request) {
|
||||||
return DataSourceRequestUtil.executeQuery(request, SdFhbtBH.class, this);
|
Page<SdFhbtBH> sdFhbtBHPage = DataSourceRequestUtil.executeQuery(request, SdFhbtBH.class, this);
|
||||||
|
dictCodeToNameConverter.convertCodeToName(sdFhbtBHPage, CODE_TO_NAME_META_LIST);
|
||||||
|
return sdFhbtBHPage;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@ -8,12 +8,15 @@ import com.yfd.platform.qgc_base.domain.SdOpinfoBH;
|
|||||||
import com.yfd.platform.qgc_base.mapper.SdOpinfoBHMapper;
|
import com.yfd.platform.qgc_base.mapper.SdOpinfoBHMapper;
|
||||||
import com.yfd.platform.qgc_base.service.IMsOperationLogService;
|
import com.yfd.platform.qgc_base.service.IMsOperationLogService;
|
||||||
import com.yfd.platform.qgc_base.service.ISdOpinfoBHService;
|
import com.yfd.platform.qgc_base.service.ISdOpinfoBHService;
|
||||||
|
import com.yfd.platform.utils.CodeToNameMetadataBo;
|
||||||
import com.yfd.platform.utils.DataSourceRequestUtil;
|
import com.yfd.platform.utils.DataSourceRequestUtil;
|
||||||
|
import com.yfd.platform.utils.DictCodeToNameConverter;
|
||||||
import com.yfd.platform.utils.SecurityUtils;
|
import com.yfd.platform.utils.SecurityUtils;
|
||||||
import jakarta.annotation.Resource;
|
import jakarta.annotation.Resource;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import org.springframework.transaction.annotation.Transactional;
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@ -25,9 +28,39 @@ public class SdOpinfoBHServiceImpl extends ServiceImpl<SdOpinfoBHMapper, SdOpinf
|
|||||||
@Resource
|
@Resource
|
||||||
private IMsOperationLogService msOperationLogService;
|
private IMsOperationLogService msOperationLogService;
|
||||||
|
|
||||||
|
@Resource
|
||||||
|
private DictCodeToNameConverter dictCodeToNameConverter;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 代码转名称元数据配置列表(静态初始化)
|
||||||
|
* <p>
|
||||||
|
* 每个模块的 ServiceImpl 中可按需定义自己的 codeToNameMetadataBoList,
|
||||||
|
* 在查询方法返回前调用 dictCodeToNameConverter.convertCodeToName(voList, codeToNameMetadataBoList)
|
||||||
|
* 即可自动将 code 字段转为对应的 name 字段。
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* <pre>
|
||||||
|
* 使用示例:
|
||||||
|
* // 在查询方法末尾调用:
|
||||||
|
* dictCodeToNameConverter.convertCodeToName(voList, CODE_TO_NAME_META_LIST);
|
||||||
|
* </pre>
|
||||||
|
*/
|
||||||
|
private static final List<CodeToNameMetadataBo> CODE_TO_NAME_META_LIST = new ArrayList<>();
|
||||||
|
|
||||||
|
static {
|
||||||
|
CODE_TO_NAME_META_LIST.add(CodeToNameMetadataBo.builder().codeProperty("dtin").modifyProperty("dtinName").dictType("STATIC").dictSource("DTIN").build());
|
||||||
|
CODE_TO_NAME_META_LIST.add(CodeToNameMetadataBo.builder().codeProperty("bldsttCode").modifyProperty("bldsttCodeName").dictType("STATIC").dictSource("BLDSTT_CODE").build());
|
||||||
|
// CODE_TO_NAME_META_LIST.add(CodeToNameMetadataBo.builder().codeProperty("dtinType").modifyProperty("dtinTypeName").dictType("STATIC").dictSource("DTIN_TYPE").build());
|
||||||
|
CODE_TO_NAME_META_LIST.add(CodeToNameMetadataBo.builder().codeProperty("sttp").modifyProperty("sttpName").dictType("DYNAMIC").dictSource("SD_STTP_B").codeColumn("STTP_CODE").nameColumn("STTP_NAME").filter("NVL(IS_DELETED, 0) = 0 ").build());
|
||||||
|
CODE_TO_NAME_META_LIST.add(CodeToNameMetadataBo.builder().codeProperty("baseId").modifyProperty("baseName").dictType("DYNAMIC").dictSource("SD_HYDROBASE").codeColumn("BASEID").nameColumn("BASENAME").filter("NVL(IS_DELETED, 0) = 0 ").build());
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Page<SdOpinfoBH> queryPageList(DataSourceRequest request) {
|
public Page<SdOpinfoBH> queryPageList(DataSourceRequest request) {
|
||||||
return DataSourceRequestUtil.executeQuery(request, SdOpinfoBH.class, this);
|
Page<SdOpinfoBH> sdOpinfoBHPage = DataSourceRequestUtil.executeQuery(request, SdOpinfoBH.class, this);
|
||||||
|
dictCodeToNameConverter.convertCodeToName(sdOpinfoBHPage, CODE_TO_NAME_META_LIST);
|
||||||
|
return sdOpinfoBHPage;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@ -7,11 +7,14 @@ import com.yfd.platform.qgc_base.domain.SdOtteBH;
|
|||||||
import com.yfd.platform.qgc_base.mapper.SdOtteBHMapper;
|
import com.yfd.platform.qgc_base.mapper.SdOtteBHMapper;
|
||||||
import com.yfd.platform.qgc_base.service.IMsOperationLogService;
|
import com.yfd.platform.qgc_base.service.IMsOperationLogService;
|
||||||
import com.yfd.platform.qgc_base.service.ISdOtteBHService;
|
import com.yfd.platform.qgc_base.service.ISdOtteBHService;
|
||||||
|
import com.yfd.platform.utils.CodeToNameMetadataBo;
|
||||||
import com.yfd.platform.utils.DataSourceRequestUtil;
|
import com.yfd.platform.utils.DataSourceRequestUtil;
|
||||||
|
import com.yfd.platform.utils.DictCodeToNameConverter;
|
||||||
import jakarta.annotation.Resource;
|
import jakarta.annotation.Resource;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import org.springframework.transaction.annotation.Transactional;
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@Service
|
@Service
|
||||||
@ -22,9 +25,39 @@ public class SdOtteBHServiceImpl extends ServiceImpl<SdOtteBHMapper, SdOtteBH> i
|
|||||||
@Resource
|
@Resource
|
||||||
private IMsOperationLogService msOperationLogService;
|
private IMsOperationLogService msOperationLogService;
|
||||||
|
|
||||||
|
@Resource
|
||||||
|
private DictCodeToNameConverter dictCodeToNameConverter;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 代码转名称元数据配置列表(静态初始化)
|
||||||
|
* <p>
|
||||||
|
* 每个模块的 ServiceImpl 中可按需定义自己的 codeToNameMetadataBoList,
|
||||||
|
* 在查询方法返回前调用 dictCodeToNameConverter.convertCodeToName(voList, codeToNameMetadataBoList)
|
||||||
|
* 即可自动将 code 字段转为对应的 name 字段。
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* <pre>
|
||||||
|
* 使用示例:
|
||||||
|
* // 在查询方法末尾调用:
|
||||||
|
* dictCodeToNameConverter.convertCodeToName(voList, CODE_TO_NAME_META_LIST);
|
||||||
|
* </pre>
|
||||||
|
*/
|
||||||
|
private static final List<CodeToNameMetadataBo> CODE_TO_NAME_META_LIST = new ArrayList<>();
|
||||||
|
|
||||||
|
static {
|
||||||
|
CODE_TO_NAME_META_LIST.add(CodeToNameMetadataBo.builder().codeProperty("dtin").modifyProperty("dtinName").dictType("STATIC").dictSource("DTIN").build());
|
||||||
|
CODE_TO_NAME_META_LIST.add(CodeToNameMetadataBo.builder().codeProperty("bldsttCode").modifyProperty("bldsttCodeName").dictType("STATIC").dictSource("BLDSTT_CODE").build());
|
||||||
|
// CODE_TO_NAME_META_LIST.add(CodeToNameMetadataBo.builder().codeProperty("dtinType").modifyProperty("dtinTypeName").dictType("STATIC").dictSource("DTIN_TYPE").build());
|
||||||
|
CODE_TO_NAME_META_LIST.add(CodeToNameMetadataBo.builder().codeProperty("sttp").modifyProperty("sttpName").dictType("DYNAMIC").dictSource("SD_STTP_B").codeColumn("STTP_CODE").nameColumn("STTP_NAME").filter("NVL(IS_DELETED, 0) = 0 ").build());
|
||||||
|
CODE_TO_NAME_META_LIST.add(CodeToNameMetadataBo.builder().codeProperty("baseId").modifyProperty("baseName").dictType("DYNAMIC").dictSource("SD_HYDROBASE").codeColumn("BASEID").nameColumn("BASENAME").filter("NVL(IS_DELETED, 0) = 0 ").build());
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Page<SdOtteBH> queryPageList(DataSourceRequest request) {
|
public Page<SdOtteBH> queryPageList(DataSourceRequest request) {
|
||||||
return DataSourceRequestUtil.executeQuery(request, SdOtteBH.class, this);
|
Page<SdOtteBH> sdOtteBHPage = DataSourceRequestUtil.executeQuery(request, SdOtteBH.class, this);
|
||||||
|
dictCodeToNameConverter.convertCodeToName(sdOtteBHPage, CODE_TO_NAME_META_LIST);
|
||||||
|
return sdOtteBHPage;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@ -7,11 +7,14 @@ import com.yfd.platform.qgc_base.domain.SdOtweBH;
|
|||||||
import com.yfd.platform.qgc_base.mapper.SdOtweBHMapper;
|
import com.yfd.platform.qgc_base.mapper.SdOtweBHMapper;
|
||||||
import com.yfd.platform.qgc_base.service.IMsOperationLogService;
|
import com.yfd.platform.qgc_base.service.IMsOperationLogService;
|
||||||
import com.yfd.platform.qgc_base.service.ISdOtweBHService;
|
import com.yfd.platform.qgc_base.service.ISdOtweBHService;
|
||||||
|
import com.yfd.platform.utils.CodeToNameMetadataBo;
|
||||||
import com.yfd.platform.utils.DataSourceRequestUtil;
|
import com.yfd.platform.utils.DataSourceRequestUtil;
|
||||||
|
import com.yfd.platform.utils.DictCodeToNameConverter;
|
||||||
import jakarta.annotation.Resource;
|
import jakarta.annotation.Resource;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import org.springframework.transaction.annotation.Transactional;
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@Service
|
@Service
|
||||||
@ -21,10 +24,39 @@ public class SdOtweBHServiceImpl extends ServiceImpl<SdOtweBHMapper, SdOtweBH> i
|
|||||||
|
|
||||||
@Resource
|
@Resource
|
||||||
private IMsOperationLogService msOperationLogService;
|
private IMsOperationLogService msOperationLogService;
|
||||||
|
@Resource
|
||||||
|
private DictCodeToNameConverter dictCodeToNameConverter;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 代码转名称元数据配置列表(静态初始化)
|
||||||
|
* <p>
|
||||||
|
* 每个模块的 ServiceImpl 中可按需定义自己的 codeToNameMetadataBoList,
|
||||||
|
* 在查询方法返回前调用 dictCodeToNameConverter.convertCodeToName(voList, codeToNameMetadataBoList)
|
||||||
|
* 即可自动将 code 字段转为对应的 name 字段。
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* <pre>
|
||||||
|
* 使用示例:
|
||||||
|
* // 在查询方法末尾调用:
|
||||||
|
* dictCodeToNameConverter.convertCodeToName(voList, CODE_TO_NAME_META_LIST);
|
||||||
|
* </pre>
|
||||||
|
*/
|
||||||
|
private static final List<CodeToNameMetadataBo> CODE_TO_NAME_META_LIST = new ArrayList<>();
|
||||||
|
|
||||||
|
static {
|
||||||
|
CODE_TO_NAME_META_LIST.add(CodeToNameMetadataBo.builder().codeProperty("dtin").modifyProperty("dtinName").dictType("STATIC").dictSource("DTIN").build());
|
||||||
|
CODE_TO_NAME_META_LIST.add(CodeToNameMetadataBo.builder().codeProperty("bldsttCode").modifyProperty("bldsttCodeName").dictType("STATIC").dictSource("BLDSTT_CODE").build());
|
||||||
|
// CODE_TO_NAME_META_LIST.add(CodeToNameMetadataBo.builder().codeProperty("dtinType").modifyProperty("dtinTypeName").dictType("STATIC").dictSource("DTIN_TYPE").build());
|
||||||
|
CODE_TO_NAME_META_LIST.add(CodeToNameMetadataBo.builder().codeProperty("sttp").modifyProperty("sttpName").dictType("DYNAMIC").dictSource("SD_STTP_B").codeColumn("STTP_CODE").nameColumn("STTP_NAME").filter("NVL(IS_DELETED, 0) = 0 ").build());
|
||||||
|
CODE_TO_NAME_META_LIST.add(CodeToNameMetadataBo.builder().codeProperty("baseId").modifyProperty("baseName").dictType("DYNAMIC").dictSource("SD_HYDROBASE").codeColumn("BASEID").nameColumn("BASENAME").filter("NVL(IS_DELETED, 0) = 0 ").build());
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Page<SdOtweBH> queryPageList(DataSourceRequest request) {
|
public Page<SdOtweBH> queryPageList(DataSourceRequest request) {
|
||||||
return DataSourceRequestUtil.executeQuery(request, SdOtweBH.class, this);
|
Page<SdOtweBH> sdOtweBHPage = DataSourceRequestUtil.executeQuery(request, SdOtweBH.class, this);
|
||||||
|
dictCodeToNameConverter.convertCodeToName(sdOtweBHPage, CODE_TO_NAME_META_LIST);
|
||||||
|
return sdOtweBHPage;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@ -8,12 +8,15 @@ import com.yfd.platform.qgc_base.domain.SdSonarBH;
|
|||||||
import com.yfd.platform.qgc_base.mapper.SdSonarBHMapper;
|
import com.yfd.platform.qgc_base.mapper.SdSonarBHMapper;
|
||||||
import com.yfd.platform.qgc_base.service.IMsOperationLogService;
|
import com.yfd.platform.qgc_base.service.IMsOperationLogService;
|
||||||
import com.yfd.platform.qgc_base.service.ISdSonarBHService;
|
import com.yfd.platform.qgc_base.service.ISdSonarBHService;
|
||||||
|
import com.yfd.platform.utils.CodeToNameMetadataBo;
|
||||||
import com.yfd.platform.utils.DataSourceRequestUtil;
|
import com.yfd.platform.utils.DataSourceRequestUtil;
|
||||||
|
import com.yfd.platform.utils.DictCodeToNameConverter;
|
||||||
import com.yfd.platform.utils.SecurityUtils;
|
import com.yfd.platform.utils.SecurityUtils;
|
||||||
import jakarta.annotation.Resource;
|
import jakarta.annotation.Resource;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import org.springframework.transaction.annotation.Transactional;
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@ -24,10 +27,40 @@ public class SdSonarBHServiceImpl extends ServiceImpl<SdSonarBHMapper, SdSonarBH
|
|||||||
|
|
||||||
@Resource
|
@Resource
|
||||||
private IMsOperationLogService msOperationLogService;
|
private IMsOperationLogService msOperationLogService;
|
||||||
|
@Resource
|
||||||
|
private DictCodeToNameConverter dictCodeToNameConverter;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 代码转名称元数据配置列表(静态初始化)
|
||||||
|
* <p>
|
||||||
|
* 每个模块的 ServiceImpl 中可按需定义自己的 codeToNameMetadataBoList,
|
||||||
|
* 在查询方法返回前调用 dictCodeToNameConverter.convertCodeToName(voList, codeToNameMetadataBoList)
|
||||||
|
* 即可自动将 code 字段转为对应的 name 字段。
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* <pre>
|
||||||
|
* 使用示例:
|
||||||
|
* // 在查询方法末尾调用:
|
||||||
|
* dictCodeToNameConverter.convertCodeToName(voList, CODE_TO_NAME_META_LIST);
|
||||||
|
* </pre>
|
||||||
|
*/
|
||||||
|
private static final List<CodeToNameMetadataBo> CODE_TO_NAME_META_LIST = new ArrayList<>();
|
||||||
|
|
||||||
|
static {
|
||||||
|
CODE_TO_NAME_META_LIST.add(CodeToNameMetadataBo.builder().codeProperty("dtin").modifyProperty("dtinName").dictType("STATIC").dictSource("DTIN").build());
|
||||||
|
CODE_TO_NAME_META_LIST.add(CodeToNameMetadataBo.builder().codeProperty("mway").modifyProperty("mwayName").dictType("STATIC").dictSource("MWAY").build());
|
||||||
|
CODE_TO_NAME_META_LIST.add(CodeToNameMetadataBo.builder().codeProperty("bldsttCode").modifyProperty("bldsttCodeName").dictType("STATIC").dictSource("BLDSTT_CODE").build());
|
||||||
|
// CODE_TO_NAME_META_LIST.add(CodeToNameMetadataBo.builder().codeProperty("dtinType").modifyProperty("dtinTypeName").dictType("STATIC").dictSource("DTIN_TYPE").build());
|
||||||
|
CODE_TO_NAME_META_LIST.add(CodeToNameMetadataBo.builder().codeProperty("sttp").modifyProperty("sttpName").dictType("DYNAMIC").dictSource("SD_STTP_B").codeColumn("STTP_CODE").nameColumn("STTP_NAME").filter("NVL(IS_DELETED, 0) = 0 ").build());
|
||||||
|
CODE_TO_NAME_META_LIST.add(CodeToNameMetadataBo.builder().codeProperty("baseId").modifyProperty("baseName").dictType("DYNAMIC").dictSource("SD_HYDROBASE").codeColumn("BASEID").nameColumn("BASENAME").filter("NVL(IS_DELETED, 0) = 0 ").build());
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Page<SdSonarBH> queryPageList(DataSourceRequest request) {
|
public Page<SdSonarBH> queryPageList(DataSourceRequest request) {
|
||||||
return DataSourceRequestUtil.executeQuery(request, SdSonarBH.class, this);
|
Page<SdSonarBH> sdSonarBHPage = DataSourceRequestUtil.executeQuery(request, SdSonarBH.class, this);
|
||||||
|
dictCodeToNameConverter.convertCodeToName(sdSonarBHPage, CODE_TO_NAME_META_LIST);
|
||||||
|
return sdSonarBHPage;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@ -7,11 +7,14 @@ import com.yfd.platform.qgc_base.domain.SdTeBH;
|
|||||||
import com.yfd.platform.qgc_base.mapper.SdTeBHMapper;
|
import com.yfd.platform.qgc_base.mapper.SdTeBHMapper;
|
||||||
import com.yfd.platform.qgc_base.service.IMsOperationLogService;
|
import com.yfd.platform.qgc_base.service.IMsOperationLogService;
|
||||||
import com.yfd.platform.qgc_base.service.ISdTeBHService;
|
import com.yfd.platform.qgc_base.service.ISdTeBHService;
|
||||||
|
import com.yfd.platform.utils.CodeToNameMetadataBo;
|
||||||
import com.yfd.platform.utils.DataSourceRequestUtil;
|
import com.yfd.platform.utils.DataSourceRequestUtil;
|
||||||
|
import com.yfd.platform.utils.DictCodeToNameConverter;
|
||||||
import jakarta.annotation.Resource;
|
import jakarta.annotation.Resource;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import org.springframework.transaction.annotation.Transactional;
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@Service
|
@Service
|
||||||
@ -21,10 +24,39 @@ public class SdTeBHServiceImpl extends ServiceImpl<SdTeBHMapper, SdTeBH> impleme
|
|||||||
|
|
||||||
@Resource
|
@Resource
|
||||||
private IMsOperationLogService msOperationLogService;
|
private IMsOperationLogService msOperationLogService;
|
||||||
|
@Resource
|
||||||
|
private DictCodeToNameConverter dictCodeToNameConverter;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 代码转名称元数据配置列表(静态初始化)
|
||||||
|
* <p>
|
||||||
|
* 每个模块的 ServiceImpl 中可按需定义自己的 codeToNameMetadataBoList,
|
||||||
|
* 在查询方法返回前调用 dictCodeToNameConverter.convertCodeToName(voList, codeToNameMetadataBoList)
|
||||||
|
* 即可自动将 code 字段转为对应的 name 字段。
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* <pre>
|
||||||
|
* 使用示例:
|
||||||
|
* // 在查询方法末尾调用:
|
||||||
|
* dictCodeToNameConverter.convertCodeToName(voList, CODE_TO_NAME_META_LIST);
|
||||||
|
* </pre>
|
||||||
|
*/
|
||||||
|
private static final List<CodeToNameMetadataBo> CODE_TO_NAME_META_LIST = new ArrayList<>();
|
||||||
|
|
||||||
|
static {
|
||||||
|
CODE_TO_NAME_META_LIST.add(CodeToNameMetadataBo.builder().codeProperty("dtin").modifyProperty("dtinName").dictType("STATIC").dictSource("DTIN").build());
|
||||||
|
CODE_TO_NAME_META_LIST.add(CodeToNameMetadataBo.builder().codeProperty("bldsttCode").modifyProperty("bldsttCodeName").dictType("STATIC").dictSource("BLDSTT_CODE").build());
|
||||||
|
// CODE_TO_NAME_META_LIST.add(CodeToNameMetadataBo.builder().codeProperty("dtinType").modifyProperty("dtinTypeName").dictType("STATIC").dictSource("DTIN_TYPE").build());
|
||||||
|
CODE_TO_NAME_META_LIST.add(CodeToNameMetadataBo.builder().codeProperty("sttp").modifyProperty("sttpName").dictType("DYNAMIC").dictSource("SD_STTP_B").codeColumn("STTP_CODE").nameColumn("STTP_NAME").filter("NVL(IS_DELETED, 0) = 0 ").build());
|
||||||
|
CODE_TO_NAME_META_LIST.add(CodeToNameMetadataBo.builder().codeProperty("baseId").modifyProperty("baseName").dictType("DYNAMIC").dictSource("SD_HYDROBASE").codeColumn("BASEID").nameColumn("BASENAME").filter("NVL(IS_DELETED, 0) = 0 ").build());
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Page<SdTeBH> queryPageList(DataSourceRequest request) {
|
public Page<SdTeBH> queryPageList(DataSourceRequest request) {
|
||||||
return DataSourceRequestUtil.executeQuery(request, SdTeBH.class, this);
|
Page<SdTeBH> sdTeBHPage = DataSourceRequestUtil.executeQuery(request, SdTeBH.class, this);
|
||||||
|
dictCodeToNameConverter.convertCodeToName(sdTeBHPage, CODE_TO_NAME_META_LIST);
|
||||||
|
return sdTeBHPage;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@ -8,12 +8,15 @@ import com.yfd.platform.qgc_base.domain.SdVaBH;
|
|||||||
import com.yfd.platform.qgc_base.mapper.SdVaBHMapper;
|
import com.yfd.platform.qgc_base.mapper.SdVaBHMapper;
|
||||||
import com.yfd.platform.qgc_base.service.IMsOperationLogService;
|
import com.yfd.platform.qgc_base.service.IMsOperationLogService;
|
||||||
import com.yfd.platform.qgc_base.service.ISdVaBHService;
|
import com.yfd.platform.qgc_base.service.ISdVaBHService;
|
||||||
|
import com.yfd.platform.utils.CodeToNameMetadataBo;
|
||||||
import com.yfd.platform.utils.DataSourceRequestUtil;
|
import com.yfd.platform.utils.DataSourceRequestUtil;
|
||||||
|
import com.yfd.platform.utils.DictCodeToNameConverter;
|
||||||
import com.yfd.platform.utils.SecurityUtils;
|
import com.yfd.platform.utils.SecurityUtils;
|
||||||
import jakarta.annotation.Resource;
|
import jakarta.annotation.Resource;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import org.springframework.transaction.annotation.Transactional;
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@ -24,10 +27,39 @@ public class SdVaBHServiceImpl extends ServiceImpl<SdVaBHMapper, SdVaBH> impleme
|
|||||||
|
|
||||||
@Resource
|
@Resource
|
||||||
private IMsOperationLogService msOperationLogService;
|
private IMsOperationLogService msOperationLogService;
|
||||||
|
@Resource
|
||||||
|
private DictCodeToNameConverter dictCodeToNameConverter;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 代码转名称元数据配置列表(静态初始化)
|
||||||
|
* <p>
|
||||||
|
* 每个模块的 ServiceImpl 中可按需定义自己的 codeToNameMetadataBoList,
|
||||||
|
* 在查询方法返回前调用 dictCodeToNameConverter.convertCodeToName(voList, codeToNameMetadataBoList)
|
||||||
|
* 即可自动将 code 字段转为对应的 name 字段。
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* <pre>
|
||||||
|
* 使用示例:
|
||||||
|
* // 在查询方法末尾调用:
|
||||||
|
* dictCodeToNameConverter.convertCodeToName(voList, CODE_TO_NAME_META_LIST);
|
||||||
|
* </pre>
|
||||||
|
*/
|
||||||
|
private static final List<CodeToNameMetadataBo> CODE_TO_NAME_META_LIST = new ArrayList<>();
|
||||||
|
|
||||||
|
static {
|
||||||
|
CODE_TO_NAME_META_LIST.add(CodeToNameMetadataBo.builder().codeProperty("dtin").modifyProperty("dtinName").dictType("STATIC").dictSource("DTIN").build());
|
||||||
|
CODE_TO_NAME_META_LIST.add(CodeToNameMetadataBo.builder().codeProperty("bldsttCode").modifyProperty("bldsttCodeName").dictType("STATIC").dictSource("BLDSTT_CODE").build());
|
||||||
|
// CODE_TO_NAME_META_LIST.add(CodeToNameMetadataBo.builder().codeProperty("dtinType").modifyProperty("dtinTypeName").dictType("STATIC").dictSource("DTIN_TYPE").build());
|
||||||
|
CODE_TO_NAME_META_LIST.add(CodeToNameMetadataBo.builder().codeProperty("sttp").modifyProperty("sttpName").dictType("DYNAMIC").dictSource("SD_STTP_B").codeColumn("STTP_CODE").nameColumn("STTP_NAME").filter("NVL(IS_DELETED, 0) = 0 ").build());
|
||||||
|
CODE_TO_NAME_META_LIST.add(CodeToNameMetadataBo.builder().codeProperty("baseId").modifyProperty("baseName").dictType("DYNAMIC").dictSource("SD_HYDROBASE").codeColumn("BASEID").nameColumn("BASENAME").filter("NVL(IS_DELETED, 0) = 0 ").build());
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Page<SdVaBH> queryPageList(DataSourceRequest request) {
|
public Page<SdVaBH> queryPageList(DataSourceRequest request) {
|
||||||
return DataSourceRequestUtil.executeQuery(request, SdVaBH.class, this);
|
Page<SdVaBH> sdVaBHPage = DataSourceRequestUtil.executeQuery(request, SdVaBH.class, this);
|
||||||
|
dictCodeToNameConverter.convertCodeToName(sdVaBHPage, CODE_TO_NAME_META_LIST);
|
||||||
|
return sdVaBHPage;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@ -7,11 +7,14 @@ import com.yfd.platform.qgc_base.domain.SdVdinfoB;
|
|||||||
import com.yfd.platform.qgc_base.mapper.SdVdinfoBMapper;
|
import com.yfd.platform.qgc_base.mapper.SdVdinfoBMapper;
|
||||||
import com.yfd.platform.qgc_base.service.IMsOperationLogService;
|
import com.yfd.platform.qgc_base.service.IMsOperationLogService;
|
||||||
import com.yfd.platform.qgc_base.service.ISdVdinfoBService;
|
import com.yfd.platform.qgc_base.service.ISdVdinfoBService;
|
||||||
|
import com.yfd.platform.utils.CodeToNameMetadataBo;
|
||||||
import com.yfd.platform.utils.DataSourceRequestUtil;
|
import com.yfd.platform.utils.DataSourceRequestUtil;
|
||||||
|
import com.yfd.platform.utils.DictCodeToNameConverter;
|
||||||
import jakarta.annotation.Resource;
|
import jakarta.annotation.Resource;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import org.springframework.transaction.annotation.Transactional;
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@Service
|
@Service
|
||||||
@ -21,10 +24,39 @@ public class SdVdinfoBServiceImpl extends ServiceImpl<SdVdinfoBMapper, SdVdinfoB
|
|||||||
|
|
||||||
@Resource
|
@Resource
|
||||||
private IMsOperationLogService msOperationLogService;
|
private IMsOperationLogService msOperationLogService;
|
||||||
|
@Resource
|
||||||
|
private DictCodeToNameConverter dictCodeToNameConverter;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 代码转名称元数据配置列表(静态初始化)
|
||||||
|
* <p>
|
||||||
|
* 每个模块的 ServiceImpl 中可按需定义自己的 codeToNameMetadataBoList,
|
||||||
|
* 在查询方法返回前调用 dictCodeToNameConverter.convertCodeToName(voList, codeToNameMetadataBoList)
|
||||||
|
* 即可自动将 code 字段转为对应的 name 字段。
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* <pre>
|
||||||
|
* 使用示例:
|
||||||
|
* // 在查询方法末尾调用:
|
||||||
|
* dictCodeToNameConverter.convertCodeToName(voList, CODE_TO_NAME_META_LIST);
|
||||||
|
* </pre>
|
||||||
|
*/
|
||||||
|
private static final List<CodeToNameMetadataBo> CODE_TO_NAME_META_LIST = new ArrayList<>();
|
||||||
|
|
||||||
|
static {
|
||||||
|
CODE_TO_NAME_META_LIST.add(CodeToNameMetadataBo.builder().codeProperty("dtin").modifyProperty("dtinName").dictType("STATIC").dictSource("DTIN").build());
|
||||||
|
CODE_TO_NAME_META_LIST.add(CodeToNameMetadataBo.builder().codeProperty("bldsttCode").modifyProperty("bldsttCodeName").dictType("STATIC").dictSource("BLDSTT_CODE").build());
|
||||||
|
// CODE_TO_NAME_META_LIST.add(CodeToNameMetadataBo.builder().codeProperty("dtinType").modifyProperty("dtinTypeName").dictType("STATIC").dictSource("DTIN_TYPE").build());
|
||||||
|
CODE_TO_NAME_META_LIST.add(CodeToNameMetadataBo.builder().codeProperty("sttp").modifyProperty("sttpName").dictType("DYNAMIC").dictSource("SD_STTP_B").codeColumn("STTP_CODE").nameColumn("STTP_NAME").filter("NVL(IS_DELETED, 0) = 0 ").build());
|
||||||
|
CODE_TO_NAME_META_LIST.add(CodeToNameMetadataBo.builder().codeProperty("baseId").modifyProperty("baseName").dictType("DYNAMIC").dictSource("SD_HYDROBASE").codeColumn("BASEID").nameColumn("BASENAME").filter("NVL(IS_DELETED, 0) = 0 ").build());
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Page<SdVdinfoB> queryPageList(DataSourceRequest request) {
|
public Page<SdVdinfoB> queryPageList(DataSourceRequest request) {
|
||||||
return DataSourceRequestUtil.executeQuery(request, SdVdinfoB.class, this);
|
Page<SdVdinfoB> sdVdinfoBPage = DataSourceRequestUtil.executeQuery(request, SdVdinfoB.class, this);
|
||||||
|
dictCodeToNameConverter.convertCodeToName(sdVdinfoBPage, CODE_TO_NAME_META_LIST);
|
||||||
|
return sdVdinfoBPage;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@ -8,12 +8,15 @@ import com.yfd.platform.qgc_base.domain.SdVpBH;
|
|||||||
import com.yfd.platform.qgc_base.mapper.SdVpBHMapper;
|
import com.yfd.platform.qgc_base.mapper.SdVpBHMapper;
|
||||||
import com.yfd.platform.qgc_base.service.IMsOperationLogService;
|
import com.yfd.platform.qgc_base.service.IMsOperationLogService;
|
||||||
import com.yfd.platform.qgc_base.service.ISdVpBHService;
|
import com.yfd.platform.qgc_base.service.ISdVpBHService;
|
||||||
|
import com.yfd.platform.utils.CodeToNameMetadataBo;
|
||||||
import com.yfd.platform.utils.DataSourceRequestUtil;
|
import com.yfd.platform.utils.DataSourceRequestUtil;
|
||||||
|
import com.yfd.platform.utils.DictCodeToNameConverter;
|
||||||
import com.yfd.platform.utils.SecurityUtils;
|
import com.yfd.platform.utils.SecurityUtils;
|
||||||
import jakarta.annotation.Resource;
|
import jakarta.annotation.Resource;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import org.springframework.transaction.annotation.Transactional;
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@ -24,10 +27,39 @@ public class SdVpBHServiceImpl extends ServiceImpl<SdVpBHMapper, SdVpBH> impleme
|
|||||||
|
|
||||||
@Resource
|
@Resource
|
||||||
private IMsOperationLogService msOperationLogService;
|
private IMsOperationLogService msOperationLogService;
|
||||||
|
@Resource
|
||||||
|
private DictCodeToNameConverter dictCodeToNameConverter;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 代码转名称元数据配置列表(静态初始化)
|
||||||
|
* <p>
|
||||||
|
* 每个模块的 ServiceImpl 中可按需定义自己的 codeToNameMetadataBoList,
|
||||||
|
* 在查询方法返回前调用 dictCodeToNameConverter.convertCodeToName(voList, codeToNameMetadataBoList)
|
||||||
|
* 即可自动将 code 字段转为对应的 name 字段。
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* <pre>
|
||||||
|
* 使用示例:
|
||||||
|
* // 在查询方法末尾调用:
|
||||||
|
* dictCodeToNameConverter.convertCodeToName(voList, CODE_TO_NAME_META_LIST);
|
||||||
|
* </pre>
|
||||||
|
*/
|
||||||
|
private static final List<CodeToNameMetadataBo> CODE_TO_NAME_META_LIST = new ArrayList<>();
|
||||||
|
|
||||||
|
static {
|
||||||
|
CODE_TO_NAME_META_LIST.add(CodeToNameMetadataBo.builder().codeProperty("dtin").modifyProperty("dtinName").dictType("STATIC").dictSource("DTIN").build());
|
||||||
|
CODE_TO_NAME_META_LIST.add(CodeToNameMetadataBo.builder().codeProperty("bldsttCode").modifyProperty("bldsttCodeName").dictType("STATIC").dictSource("BLDSTT_CODE").build());
|
||||||
|
// CODE_TO_NAME_META_LIST.add(CodeToNameMetadataBo.builder().codeProperty("dtinType").modifyProperty("dtinTypeName").dictType("STATIC").dictSource("DTIN_TYPE").build());
|
||||||
|
CODE_TO_NAME_META_LIST.add(CodeToNameMetadataBo.builder().codeProperty("sttp").modifyProperty("sttpName").dictType("DYNAMIC").dictSource("SD_STTP_B").codeColumn("STTP_CODE").nameColumn("STTP_NAME").filter("NVL(IS_DELETED, 0) = 0 ").build());
|
||||||
|
CODE_TO_NAME_META_LIST.add(CodeToNameMetadataBo.builder().codeProperty("baseId").modifyProperty("baseName").dictType("DYNAMIC").dictSource("SD_HYDROBASE").codeColumn("BASEID").nameColumn("BASENAME").filter("NVL(IS_DELETED, 0) = 0 ").build());
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Page<SdVpBH> queryPageList(DataSourceRequest request) {
|
public Page<SdVpBH> queryPageList(DataSourceRequest request) {
|
||||||
return DataSourceRequestUtil.executeQuery(request, SdVpBH.class, this);
|
Page<SdVpBH> sdVpBHPage = DataSourceRequestUtil.executeQuery(request, SdVpBH.class, this);
|
||||||
|
dictCodeToNameConverter.convertCodeToName(sdVpBHPage, CODE_TO_NAME_META_LIST);
|
||||||
|
return sdVpBHPage;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@ -7,11 +7,14 @@ import com.yfd.platform.qgc_base.domain.SdWeBH;
|
|||||||
import com.yfd.platform.qgc_base.mapper.SdWeBHMapper;
|
import com.yfd.platform.qgc_base.mapper.SdWeBHMapper;
|
||||||
import com.yfd.platform.qgc_base.service.IMsOperationLogService;
|
import com.yfd.platform.qgc_base.service.IMsOperationLogService;
|
||||||
import com.yfd.platform.qgc_base.service.ISdWeBHService;
|
import com.yfd.platform.qgc_base.service.ISdWeBHService;
|
||||||
|
import com.yfd.platform.utils.CodeToNameMetadataBo;
|
||||||
import com.yfd.platform.utils.DataSourceRequestUtil;
|
import com.yfd.platform.utils.DataSourceRequestUtil;
|
||||||
|
import com.yfd.platform.utils.DictCodeToNameConverter;
|
||||||
import jakarta.annotation.Resource;
|
import jakarta.annotation.Resource;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import org.springframework.transaction.annotation.Transactional;
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@Service
|
@Service
|
||||||
@ -22,9 +25,40 @@ public class SdWeBHServiceImpl extends ServiceImpl<SdWeBHMapper, SdWeBH> impleme
|
|||||||
@Resource
|
@Resource
|
||||||
private IMsOperationLogService msOperationLogService;
|
private IMsOperationLogService msOperationLogService;
|
||||||
|
|
||||||
|
@Resource
|
||||||
|
private DictCodeToNameConverter dictCodeToNameConverter;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 代码转名称元数据配置列表(静态初始化)
|
||||||
|
* <p>
|
||||||
|
* 每个模块的 ServiceImpl 中可按需定义自己的 codeToNameMetadataBoList,
|
||||||
|
* 在查询方法返回前调用 dictCodeToNameConverter.convertCodeToName(voList, codeToNameMetadataBoList)
|
||||||
|
* 即可自动将 code 字段转为对应的 name 字段。
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* <pre>
|
||||||
|
* 使用示例:
|
||||||
|
* // 在查询方法末尾调用:
|
||||||
|
* dictCodeToNameConverter.convertCodeToName(voList, CODE_TO_NAME_META_LIST);
|
||||||
|
* </pre>
|
||||||
|
*/
|
||||||
|
private static final List<CodeToNameMetadataBo> CODE_TO_NAME_META_LIST = new ArrayList<>();
|
||||||
|
|
||||||
|
static {
|
||||||
|
CODE_TO_NAME_META_LIST.add(CodeToNameMetadataBo.builder().codeProperty("dtin").modifyProperty("dtinName").dictType("STATIC").dictSource("DTIN").build());
|
||||||
|
// CODE_TO_NAME_META_LIST.add(CodeToNameMetadataBo.builder().codeProperty("mway").modifyProperty("mwayName").dictType("STATIC").dictSource("MWAY").build());
|
||||||
|
CODE_TO_NAME_META_LIST.add(CodeToNameMetadataBo.builder().codeProperty("bldsttCode").modifyProperty("bldsttCodeName").dictType("STATIC").dictSource("BLDSTT_CODE").build());
|
||||||
|
// CODE_TO_NAME_META_LIST.add(CodeToNameMetadataBo.builder().codeProperty("dtinType").modifyProperty("dtinTypeName").dictType("STATIC").dictSource("DTIN_TYPE").build());
|
||||||
|
CODE_TO_NAME_META_LIST.add(CodeToNameMetadataBo.builder().codeProperty("sttp").modifyProperty("sttpName").dictType("DYNAMIC").dictSource("SD_STTP_B").codeColumn("STTP_CODE").nameColumn("STTP_NAME").filter("NVL(IS_DELETED, 0) = 0 ").build());
|
||||||
|
CODE_TO_NAME_META_LIST.add(CodeToNameMetadataBo.builder().codeProperty("baseId").modifyProperty("baseName").dictType("DYNAMIC").dictSource("SD_HYDROBASE").codeColumn("BASEID").nameColumn("BASENAME").filter("NVL(IS_DELETED, 0) = 0 ").build());
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Page<SdWeBH> queryPageList(DataSourceRequest request) {
|
public Page<SdWeBH> queryPageList(DataSourceRequest request) {
|
||||||
return DataSourceRequestUtil.executeQuery(request, SdWeBH.class, this);
|
Page<SdWeBH> sdWeBHPage = DataSourceRequestUtil.executeQuery(request, SdWeBH.class, this);
|
||||||
|
dictCodeToNameConverter.convertCodeToName(sdWeBHPage, CODE_TO_NAME_META_LIST);
|
||||||
|
return sdWeBHPage;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@ -8,12 +8,15 @@ import com.yfd.platform.qgc_base.domain.SdWqBH;
|
|||||||
import com.yfd.platform.qgc_base.mapper.SdWqBHMapper;
|
import com.yfd.platform.qgc_base.mapper.SdWqBHMapper;
|
||||||
import com.yfd.platform.qgc_base.service.IMsOperationLogService;
|
import com.yfd.platform.qgc_base.service.IMsOperationLogService;
|
||||||
import com.yfd.platform.qgc_base.service.ISdWqBHService;
|
import com.yfd.platform.qgc_base.service.ISdWqBHService;
|
||||||
|
import com.yfd.platform.utils.CodeToNameMetadataBo;
|
||||||
import com.yfd.platform.utils.DataSourceRequestUtil;
|
import com.yfd.platform.utils.DataSourceRequestUtil;
|
||||||
|
import com.yfd.platform.utils.DictCodeToNameConverter;
|
||||||
import com.yfd.platform.utils.SecurityUtils;
|
import com.yfd.platform.utils.SecurityUtils;
|
||||||
import jakarta.annotation.Resource;
|
import jakarta.annotation.Resource;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import org.springframework.transaction.annotation.Transactional;
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@ -25,9 +28,40 @@ public class SdWqBHServiceImpl extends ServiceImpl<SdWqBHMapper, SdWqBH> impleme
|
|||||||
@Resource
|
@Resource
|
||||||
private IMsOperationLogService msOperationLogService;
|
private IMsOperationLogService msOperationLogService;
|
||||||
|
|
||||||
|
@Resource
|
||||||
|
private DictCodeToNameConverter dictCodeToNameConverter;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 代码转名称元数据配置列表(静态初始化)
|
||||||
|
* <p>
|
||||||
|
* 每个模块的 ServiceImpl 中可按需定义自己的 codeToNameMetadataBoList,
|
||||||
|
* 在查询方法返回前调用 dictCodeToNameConverter.convertCodeToName(voList, codeToNameMetadataBoList)
|
||||||
|
* 即可自动将 code 字段转为对应的 name 字段。
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* <pre>
|
||||||
|
* 使用示例:
|
||||||
|
* // 在查询方法末尾调用:
|
||||||
|
* dictCodeToNameConverter.convertCodeToName(voList, CODE_TO_NAME_META_LIST);
|
||||||
|
* </pre>
|
||||||
|
*/
|
||||||
|
private static final List<CodeToNameMetadataBo> CODE_TO_NAME_META_LIST = new ArrayList<>();
|
||||||
|
|
||||||
|
static {
|
||||||
|
CODE_TO_NAME_META_LIST.add(CodeToNameMetadataBo.builder().codeProperty("dtin").modifyProperty("dtinName").dictType("STATIC").dictSource("DTIN").build());
|
||||||
|
CODE_TO_NAME_META_LIST.add(CodeToNameMetadataBo.builder().codeProperty("mway").modifyProperty("mwayName").dictType("STATIC").dictSource("MWAY").build());
|
||||||
|
CODE_TO_NAME_META_LIST.add(CodeToNameMetadataBo.builder().codeProperty("bldsttCode").modifyProperty("bldsttCodeName").dictType("STATIC").dictSource("BLDSTT_CODE").build());
|
||||||
|
CODE_TO_NAME_META_LIST.add(CodeToNameMetadataBo.builder().codeProperty("dtinType").modifyProperty("dtinTypeName").dictType("STATIC").dictSource("DTIN_TYPE").build());
|
||||||
|
CODE_TO_NAME_META_LIST.add(CodeToNameMetadataBo.builder().codeProperty("sttp").modifyProperty("sttpName").dictType("DYNAMIC").dictSource("SD_STTP_B").codeColumn("STTP_CODE").nameColumn("STTP_NAME").filter("NVL(IS_DELETED, 0) = 0 ").build());
|
||||||
|
CODE_TO_NAME_META_LIST.add(CodeToNameMetadataBo.builder().codeProperty("baseId").modifyProperty("baseName").dictType("DYNAMIC").dictSource("SD_HYDROBASE").codeColumn("BASEID").nameColumn("BASENAME").filter("NVL(IS_DELETED, 0) = 0 ").build());
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Page<SdWqBH> queryPageList(DataSourceRequest request) {
|
public Page<SdWqBH> queryPageList(DataSourceRequest request) {
|
||||||
return DataSourceRequestUtil.executeQuery(request, SdWqBH.class, this);
|
Page<SdWqBH> sdWqBHPage = DataSourceRequestUtil.executeQuery(request, SdWqBH.class, this);
|
||||||
|
dictCodeToNameConverter.convertCodeToName(sdWqBHPage, CODE_TO_NAME_META_LIST);
|
||||||
|
return sdWqBHPage;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@ -1,5 +1,6 @@
|
|||||||
package com.yfd.platform.qgc_base.service.impl;
|
package com.yfd.platform.qgc_base.service.impl;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableField;
|
||||||
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
|
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
|
||||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
@ -8,12 +9,15 @@ import com.yfd.platform.qgc_base.domain.SdWtBH;
|
|||||||
import com.yfd.platform.qgc_base.mapper.SdWtBHMapper;
|
import com.yfd.platform.qgc_base.mapper.SdWtBHMapper;
|
||||||
import com.yfd.platform.qgc_base.service.IMsOperationLogService;
|
import com.yfd.platform.qgc_base.service.IMsOperationLogService;
|
||||||
import com.yfd.platform.qgc_base.service.ISdWtBHService;
|
import com.yfd.platform.qgc_base.service.ISdWtBHService;
|
||||||
|
import com.yfd.platform.utils.CodeToNameMetadataBo;
|
||||||
import com.yfd.platform.utils.DataSourceRequestUtil;
|
import com.yfd.platform.utils.DataSourceRequestUtil;
|
||||||
|
import com.yfd.platform.utils.DictCodeToNameConverter;
|
||||||
import com.yfd.platform.utils.SecurityUtils;
|
import com.yfd.platform.utils.SecurityUtils;
|
||||||
import jakarta.annotation.Resource;
|
import jakarta.annotation.Resource;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import org.springframework.transaction.annotation.Transactional;
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@ -25,9 +29,42 @@ public class SdWtBHServiceImpl extends ServiceImpl<SdWtBHMapper, SdWtBH> impleme
|
|||||||
@Resource
|
@Resource
|
||||||
private IMsOperationLogService msOperationLogService;
|
private IMsOperationLogService msOperationLogService;
|
||||||
|
|
||||||
|
|
||||||
|
@Resource
|
||||||
|
private DictCodeToNameConverter dictCodeToNameConverter;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 代码转名称元数据配置列表(静态初始化)
|
||||||
|
* <p>
|
||||||
|
* 每个模块的 ServiceImpl 中可按需定义自己的 codeToNameMetadataBoList,
|
||||||
|
* 在查询方法返回前调用 dictCodeToNameConverter.convertCodeToName(voList, codeToNameMetadataBoList)
|
||||||
|
* 即可自动将 code 字段转为对应的 name 字段。
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* <pre>
|
||||||
|
* 使用示例:
|
||||||
|
* // 在查询方法末尾调用:
|
||||||
|
* dictCodeToNameConverter.convertCodeToName(voList, CODE_TO_NAME_META_LIST);
|
||||||
|
* </pre>
|
||||||
|
*/
|
||||||
|
private static final List<CodeToNameMetadataBo> CODE_TO_NAME_META_LIST = new ArrayList<>();
|
||||||
|
|
||||||
|
static {
|
||||||
|
CODE_TO_NAME_META_LIST.add(CodeToNameMetadataBo.builder().codeProperty("dtin").modifyProperty("dtinName").dictType("STATIC").dictSource("DTIN").build());
|
||||||
|
CODE_TO_NAME_META_LIST.add(CodeToNameMetadataBo.builder().codeProperty("mway").modifyProperty("mwayName").dictType("STATIC").dictSource("MWAY").build());
|
||||||
|
CODE_TO_NAME_META_LIST.add(CodeToNameMetadataBo.builder().codeProperty("bldsttCode").modifyProperty("bldsttCodeName").dictType("STATIC").dictSource("BLDSTT_CODE").build());
|
||||||
|
CODE_TO_NAME_META_LIST.add(CodeToNameMetadataBo.builder().codeProperty("dtinType").modifyProperty("dtinTypeName").dictType("STATIC").dictSource("DTIN_TYPE").build());
|
||||||
|
CODE_TO_NAME_META_LIST.add(CodeToNameMetadataBo.builder().codeProperty("sttp").modifyProperty("sttpName").dictType("DYNAMIC").dictSource("SD_STTP_B").codeColumn("STTP_CODE").nameColumn("STTP_NAME").filter("NVL(IS_DELETED, 0) = 0 ").build());
|
||||||
|
CODE_TO_NAME_META_LIST.add(CodeToNameMetadataBo.builder().codeProperty("baseId").modifyProperty("baseName").dictType("DYNAMIC").dictSource("SD_HYDROBASE").codeColumn("BASEID").nameColumn("BASENAME").filter("NVL(IS_DELETED, 0) = 0 ").build());
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Page<SdWtBH> queryPageList(DataSourceRequest request) {
|
public Page<SdWtBH> queryPageList(DataSourceRequest request) {
|
||||||
return DataSourceRequestUtil.executeQuery(request, SdWtBH.class, this);
|
Page<SdWtBH> sdWtBHPage = DataSourceRequestUtil.executeQuery(request, SdWtBH.class, this);
|
||||||
|
dictCodeToNameConverter.convertCodeToName(sdWtBHPage, CODE_TO_NAME_META_LIST);
|
||||||
|
return sdWtBHPage;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user