Commit d929f9e6 authored by 赵啸非's avatar 赵啸非

添加样表设备列表

parent 3f4348d0
...@@ -2574,14 +2574,10 @@ dict|object|字典对象 ...@@ -2574,14 +2574,10 @@ dict|object|字典对象
:---|:---|:---|:------ :---|:---|:---|:------
page|Integer|否|当前页 page|Integer|否|当前页
size|Integer|否|每页条数,值为-1,查询所有记录 size|Integer|否|每页条数,值为-1,查询所有记录
deviceCode|String|否|设备编码,字段前后添加%%模糊查询
siteId|Long|否|站点ID
**请求样例:** **请求样例:**
``` ```
{ {
"deviceCode":"rzc79g",
"siteId":2780,
"page":1, "page":1,
"size":10 "size":10
} }
...@@ -2603,19 +2599,18 @@ data|object|数据对象 ...@@ -2603,19 +2599,18 @@ data|object|数据对象
  deviceId|Long|设备id   deviceId|Long|设备id
  deviceCode|String|设备编码   deviceCode|String|设备编码
  deviceName|String|设备名称   deviceName|String|设备名称
  productId|Long|产品id   matterId|Long|事项id
  productCode|String|产品编码   matterCode|String|事项编码
  productName|String|产品名称   matterName|String|事项名称
  matterId|Long|事项matter id
  siteId|Long|站点ID   siteId|Long|站点ID
  deptId|Long|部门ID   deptId|Long|部门ID
  deptCode|String|部门编号   deptCode|String|部门编号
  deptName|String|部门名称   deptName|String|部门名称
  materialName|String|材料名   materialName|String|材料名
  materiaFullName|String|材料全名   materiaFullName|String|材料全名
  materialId|Long|材料id
  source|Integer|事项来源(0.政务网,1.自定义)   source|Integer|事项来源(0.政务网,1.自定义)
  isRecommend|Integer|是否推荐(0.未推荐,1.推荐)   isRecommend|Integer|是否推荐(0.未推荐,1.推荐)
  total|Integer|填单次数
  sort|Integer|排序   sort|Integer|排序
  sampleName|String|样表名称   sampleName|String|样表名称
  samplePath|String|样表地址   samplePath|String|样表地址
...@@ -2667,19 +2662,18 @@ data|object|数据对象 ...@@ -2667,19 +2662,18 @@ data|object|数据对象
 deviceId|Long|设备id  deviceId|Long|设备id
 deviceCode|String|设备编码  deviceCode|String|设备编码
 deviceName|String|设备名称  deviceName|String|设备名称
 productId|Long|产品id  matterId|Long|事项id
 productCode|String|产品编码  matterCode|String|事项编码
 productName|String|产品名称  matterName|String|事项名称
 matterId|Long|事项matter id
 siteId|Long|站点ID  siteId|Long|站点ID
 deptId|Long|部门ID  deptId|Long|部门ID
 deptCode|String|部门编号  deptCode|String|部门编号
 deptName|String|部门名称  deptName|String|部门名称
 materialName|String|材料名  materialName|String|材料名
 materiaFullName|String|材料全名  materiaFullName|String|材料全名
 materialId|Long|材料id
 source|Integer|事项来源(0.政务网,1.自定义)  source|Integer|事项来源(0.政务网,1.自定义)
 isRecommend|Integer|是否推荐(0.未推荐,1.推荐)  isRecommend|Integer|是否推荐(0.未推荐,1.推荐)
 total|Integer|填单次数
 sort|Integer|排序  sort|Integer|排序
 sampleName|String|样表名称  sampleName|String|样表名称
 samplePath|String|样表地址  samplePath|String|样表地址
...@@ -2696,29 +2690,28 @@ dict|object|字典对象 ...@@ -2696,29 +2690,28 @@ dict|object|字典对象
{ {
"code": 1, "code": 1,
"data": { "data": {
"id":5825, "id":7287,
"deviceId":6905, "deviceId":4805,
"deviceCode":"cj8jgr", "deviceCode":"ezsu52",
"deviceName":"qdzsth", "deviceName":"gio16r",
"productId":3706, "matterId":8179,
"productCode":"tg3ujg", "matterCode":"wuz4op",
"productName":"n5imno", "matterName":"3j5eg0",
"matterId":1158, "siteId":9985,
"siteId":8335, "deptId":3702,
"deptId":1677, "deptCode":"dvslci",
"deptCode":"66r1h3", "deptName":"urebgs",
"deptName":"5hc964", "materialName":"znzxp8",
"materialName":"cvzy4g", "materiaFullName":"ar03ng",
"materiaFullName":"2igxs2", "materialId":3055,
"source":5604, "source":6317,
"isRecommend":9780, "isRecommend":1887,
"total":4803, "sort":5527,
"sort":1159, "sampleName":"f6e961",
"sampleName":"77132s", "samplePath":"67xnm5",
"samplePath":"xvk0ag", "preViewPath":"r6w3s6",
"preViewPath":"rrotwe",
"createTime":"2023-03-22", "createTime":"2023-03-22",
"createUserId":4039, "createUserId":8413,
"updateTime":"2023-03-22" "updateTime":"2023-03-22"
} }
} }
...@@ -2739,49 +2732,16 @@ dict|object|字典对象 ...@@ -2739,49 +2732,16 @@ dict|object|字典对象
参数名称|类型|必填|描述 参数名称|类型|必填|描述
:---|:---|:---|:------- :---|:---|:---|:-------
deviceId|Long|否|设备id deviceId|Long|否|设备id
deviceCode|String|否|设备编码 matterId|Lon;g|否|事项id
deviceName|String|否|设备名称
productId|Long|否|产品id
productCode|String|否|产品编码
productName|String|否|产品名称
matterId|Long|否|事项matter id
siteId|Long|否|站点ID siteId|Long|否|站点ID
deptId|Long|否|部门ID materialId|Long|否|材料id
deptCode|String|否|部门编号
deptName|String|否|部门名称
materialName|String|是|材料名
materiaFullName|String|是|材料全名
source|Integer|否|事项来源(0.政务网,1.自定义)
isRecommend|Integer|否|是否推荐(0.未推荐,1.推荐)
total|Integer|否|填单次数
sort|Integer|否|排序
sampleName|String|否|样表名称
samplePath|String|否|样表地址
preViewPath|String|否|样表预览地址
**请求样例:** **请求样例:**
``` ```
{ {
"deviceId":9361, "deviceId":9730,
"deviceCode":"1agfuz", "matterId":5750,
"deviceName":"spki1w", "materialId":8061
"productId":6615,
"productCode":"i6vl7d",
"productName":"5t3w5l",
"matterId":6353,
"siteId":7531,
"deptId":6542,
"deptCode":"ztdhof",
"deptName":"fsyyb1",
"materialName":"xgj2mj",
"materiaFullName":"93hwso",
"source":8702,
"isRecommend":461,
"total":6075,
"sort":2402,
"sampleName":"rjg0l9",
"samplePath":"oxh5zs",
"preViewPath":"kgbgzv",
} }
``` ```
...@@ -2798,19 +2758,18 @@ data|object|数据对象 ...@@ -2798,19 +2758,18 @@ data|object|数据对象
  deviceId|Long|设备id   deviceId|Long|设备id
  deviceCode|String|设备编码   deviceCode|String|设备编码
  deviceName|String|设备名称   deviceName|String|设备名称
  productId|Long|产品id   matterId|Long|事项id
  productCode|String|产品编码   matterCode|String|事项编码
  productName|String|产品名称   matterName|String|事项名称
  matterId|Long|事项matter id
  siteId|Long|站点ID   siteId|Long|站点ID
  deptId|Long|部门ID   deptId|Long|部门ID
  deptCode|String|部门编号   deptCode|String|部门编号
  deptName|String|部门名称   deptName|String|部门名称
  materialName|String|材料名   materialName|String|材料名
  materiaFullName|String|材料全名   materiaFullName|String|材料全名
  materialId|Long|材料id
  source|Integer|事项来源(0.政务网,1.自定义)   source|Integer|事项来源(0.政务网,1.自定义)
  isRecommend|Integer|是否推荐(0.未推荐,1.推荐)   isRecommend|Integer|是否推荐(0.未推荐,1.推荐)
  total|Integer|填单次数
  sort|Integer|排序   sort|Integer|排序
  sampleName|String|样表名称   sampleName|String|样表名称
  samplePath|String|样表地址   samplePath|String|样表地址
...@@ -2863,4 +2822,3 @@ msg|String|消息|- ...@@ -2863,4 +2822,3 @@ msg|String|消息|-
"code":1, "code":1,
"msg":"成功" "msg":"成功"
} }
...@@ -294,19 +294,18 @@ CREATE TABLE mortals_xhx_device_matter_datum( ...@@ -294,19 +294,18 @@ CREATE TABLE mortals_xhx_device_matter_datum(
`deviceId` bigint(20) COMMENT '设备id', `deviceId` bigint(20) COMMENT '设备id',
`deviceCode` varchar(255) COMMENT '设备编码', `deviceCode` varchar(255) COMMENT '设备编码',
`deviceName` varchar(255) COMMENT '设备名称', `deviceName` varchar(255) COMMENT '设备名称',
`productId` bigint(20) COMMENT '产品id', `matterId` bigint(20) COMMENT '事项id',
`productCode` varchar(255) COMMENT '产品编码', `matterCode` varchar(255) COMMENT '事项编码',
`productName` varchar(255) COMMENT '产品名称', `matterName` varchar(255) COMMENT '事项名称',
`matterId` bigint(20) COMMENT '事项matter id',
`siteId` bigint(20) COMMENT '站点ID', `siteId` bigint(20) COMMENT '站点ID',
`deptId` bigint(20) COMMENT '部门ID', `deptId` bigint(20) COMMENT '部门ID',
`deptCode` varchar(256) COMMENT '部门编号', `deptCode` varchar(256) COMMENT '部门编号',
`deptName` varchar(256) COMMENT '部门名称', `deptName` varchar(256) COMMENT '部门名称',
`materialName` varchar(1024) NOT NULL COMMENT '材料名', `materialName` varchar(1024) COMMENT '材料名',
`materiaFullName` varchar(1024) NOT NULL COMMENT '材料全名', `materiaFullName` varchar(1024) COMMENT '材料全名',
`materialId` bigint(20) COMMENT '材料id',
`source` tinyint(2) COMMENT '事项来源(0.政务网,1.自定义)', `source` tinyint(2) COMMENT '事项来源(0.政务网,1.自定义)',
`isRecommend` tinyint(2) COMMENT '是否推荐(0.未推荐,1.推荐)', `isRecommend` tinyint(2) COMMENT '是否推荐(0.未推荐,1.推荐)',
`total` int(8) COMMENT '填单次数',
`sort` int(4) COMMENT '排序', `sort` int(4) COMMENT '排序',
`sampleName` varchar(255) COMMENT '样表名称', `sampleName` varchar(255) COMMENT '样表名称',
`samplePath` varchar(255) COMMENT '样表地址', `samplePath` varchar(255) COMMENT '样表地址',
...@@ -315,9 +314,8 @@ CREATE TABLE mortals_xhx_device_matter_datum( ...@@ -315,9 +314,8 @@ CREATE TABLE mortals_xhx_device_matter_datum(
`createUserId` bigint(20) COMMENT '创建用户', `createUserId` bigint(20) COMMENT '创建用户',
`updateTime` datetime COMMENT '修改时间', `updateTime` datetime COMMENT '修改时间',
PRIMARY KEY (`id`) PRIMARY KEY (`id`)
,KEY `deviceCode` (`deviceCode`) USING BTREE
,KEY `siteId` (`siteId`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='设备事项申请材料业务'; ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='设备事项申请材料业务';
...@@ -7,11 +7,11 @@ import com.mortals.framework.annotation.Excel; ...@@ -7,11 +7,11 @@ import com.mortals.framework.annotation.Excel;
import com.mortals.framework.model.BaseEntityLong; import com.mortals.framework.model.BaseEntityLong;
import com.mortals.xhx.module.device.model.vo.DeviceMatterDatumVo; import com.mortals.xhx.module.device.model.vo.DeviceMatterDatumVo;
/** /**
* 设备事项申请材料业务实体对象 * 设备事项申请材料业务实体对象
* *
* @author zxfei * @author zxfei
* @date 2023-02-25 * @date 2023-03-22
*/ */
public class DeviceMatterDatumEntity extends DeviceMatterDatumVo { public class DeviceMatterDatumEntity extends DeviceMatterDatumVo {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
...@@ -29,21 +29,17 @@ public class DeviceMatterDatumEntity extends DeviceMatterDatumVo { ...@@ -29,21 +29,17 @@ public class DeviceMatterDatumEntity extends DeviceMatterDatumVo {
*/ */
private String deviceName; private String deviceName;
/** /**
* 产品id * 事项id
*/
private Long productId;
/**
* 产品编码
*/ */
private String productCode; private Long matterId;
/** /**
* 产品名称 * 事项编码
*/ */
private String productName; private String matterCode;
/** /**
* 事项matter id * 事项名称
*/ */
private Long matterId; private String matterName;
/** /**
* 站点ID * 站点ID
*/ */
...@@ -68,6 +64,10 @@ public class DeviceMatterDatumEntity extends DeviceMatterDatumVo { ...@@ -68,6 +64,10 @@ public class DeviceMatterDatumEntity extends DeviceMatterDatumVo {
* 材料全名 * 材料全名
*/ */
private String materiaFullName; private String materiaFullName;
/**
* 材料id
*/
private Long materialId;
/** /**
* 事项来源(0.政务网,1.自定义) * 事项来源(0.政务网,1.自定义)
*/ */
...@@ -77,10 +77,6 @@ public class DeviceMatterDatumEntity extends DeviceMatterDatumVo { ...@@ -77,10 +77,6 @@ public class DeviceMatterDatumEntity extends DeviceMatterDatumVo {
*/ */
private Integer isRecommend; private Integer isRecommend;
/** /**
* 填单次数
*/
private Integer total;
/**
* 排序 * 排序
*/ */
private Integer sort; private Integer sort;
...@@ -143,60 +139,46 @@ public class DeviceMatterDatumEntity extends DeviceMatterDatumVo { ...@@ -143,60 +139,46 @@ public class DeviceMatterDatumEntity extends DeviceMatterDatumVo {
this.deviceName = deviceName; this.deviceName = deviceName;
} }
/** /**
* 获取 产品id * 获取 事项id
* @return Long * @return Long
*/ */
public Long getProductId(){ public Long getMatterId(){
return productId; return matterId;
} }
/** /**
* 设置 产品id * 设置 事项id
* @param productId * @param matterId
*/ */
public void setProductId(Long productId){ public void setMatterId(Long matterId){
this.productId = productId; this.matterId = matterId;
} }
/** /**
* 获取 产品编码 * 获取 事项编码
* @return String * @return String
*/ */
public String getProductCode(){ public String getMatterCode(){
return productCode; return matterCode;
} }
/** /**
* 设置 产品编码 * 设置 事项编码
* @param productCode * @param matterCode
*/ */
public void setProductCode(String productCode){ public void setMatterCode(String matterCode){
this.productCode = productCode; this.matterCode = matterCode;
} }
/** /**
* 获取 产品名称 * 获取 事项名称
* @return String * @return String
*/ */
public String getProductName(){ public String getMatterName(){
return productName; return matterName;
} }
/** /**
* 设置 产品名称 * 设置 事项名称
* @param productName * @param matterName
*/ */
public void setProductName(String productName){ public void setMatterName(String matterName){
this.productName = productName; this.matterName = matterName;
}
/**
* 获取 事项matter id
* @return Long
*/
public Long getMatterId(){
return matterId;
}
/**
* 设置 事项matter id
* @param matterId
*/
public void setMatterId(Long matterId){
this.matterId = matterId;
} }
/** /**
* 获取 站点ID * 获取 站点ID
...@@ -282,6 +264,20 @@ public class DeviceMatterDatumEntity extends DeviceMatterDatumVo { ...@@ -282,6 +264,20 @@ public class DeviceMatterDatumEntity extends DeviceMatterDatumVo {
public void setMateriaFullName(String materiaFullName){ public void setMateriaFullName(String materiaFullName){
this.materiaFullName = materiaFullName; this.materiaFullName = materiaFullName;
} }
/**
* 获取 材料id
* @return Long
*/
public Long getMaterialId(){
return materialId;
}
/**
* 设置 材料id
* @param materialId
*/
public void setMaterialId(Long materialId){
this.materialId = materialId;
}
/** /**
* 获取 事项来源(0.政务网,1.自定义) * 获取 事项来源(0.政务网,1.自定义)
* @return Integer * @return Integer
...@@ -311,20 +307,6 @@ public class DeviceMatterDatumEntity extends DeviceMatterDatumVo { ...@@ -311,20 +307,6 @@ public class DeviceMatterDatumEntity extends DeviceMatterDatumVo {
this.isRecommend = isRecommend; this.isRecommend = isRecommend;
} }
/** /**
* 获取 填单次数
* @return Integer
*/
public Integer getTotal(){
return total;
}
/**
* 设置 填单次数
* @param total
*/
public void setTotal(Integer total){
this.total = total;
}
/**
* 获取 排序 * 获取 排序
* @return Integer * @return Integer
*/ */
...@@ -405,19 +387,18 @@ public class DeviceMatterDatumEntity extends DeviceMatterDatumVo { ...@@ -405,19 +387,18 @@ public class DeviceMatterDatumEntity extends DeviceMatterDatumVo {
sb.append(",deviceId:").append(getDeviceId()); sb.append(",deviceId:").append(getDeviceId());
sb.append(",deviceCode:").append(getDeviceCode()); sb.append(",deviceCode:").append(getDeviceCode());
sb.append(",deviceName:").append(getDeviceName()); sb.append(",deviceName:").append(getDeviceName());
sb.append(",productId:").append(getProductId());
sb.append(",productCode:").append(getProductCode());
sb.append(",productName:").append(getProductName());
sb.append(",matterId:").append(getMatterId()); sb.append(",matterId:").append(getMatterId());
sb.append(",matterCode:").append(getMatterCode());
sb.append(",matterName:").append(getMatterName());
sb.append(",siteId:").append(getSiteId()); sb.append(",siteId:").append(getSiteId());
sb.append(",deptId:").append(getDeptId()); sb.append(",deptId:").append(getDeptId());
sb.append(",deptCode:").append(getDeptCode()); sb.append(",deptCode:").append(getDeptCode());
sb.append(",deptName:").append(getDeptName()); sb.append(",deptName:").append(getDeptName());
sb.append(",materialName:").append(getMaterialName()); sb.append(",materialName:").append(getMaterialName());
sb.append(",materiaFullName:").append(getMateriaFullName()); sb.append(",materiaFullName:").append(getMateriaFullName());
sb.append(",materialId:").append(getMaterialId());
sb.append(",source:").append(getSource()); sb.append(",source:").append(getSource());
sb.append(",isRecommend:").append(getIsRecommend()); sb.append(",isRecommend:").append(getIsRecommend());
sb.append(",total:").append(getTotal());
sb.append(",sort:").append(getSort()); sb.append(",sort:").append(getSort());
sb.append(",sampleName:").append(getSampleName()); sb.append(",sampleName:").append(getSampleName());
sb.append(",samplePath:").append(getSamplePath()); sb.append(",samplePath:").append(getSamplePath());
...@@ -433,13 +414,11 @@ public class DeviceMatterDatumEntity extends DeviceMatterDatumVo { ...@@ -433,13 +414,11 @@ public class DeviceMatterDatumEntity extends DeviceMatterDatumVo {
this.deviceName = null; this.deviceName = null;
this.productId = null; this.matterId = null;
this.productCode = null;
this.productName = null; this.matterCode = null;
this.matterId = null; this.matterName = null;
this.siteId = null; this.siteId = null;
...@@ -453,12 +432,12 @@ public class DeviceMatterDatumEntity extends DeviceMatterDatumVo { ...@@ -453,12 +432,12 @@ public class DeviceMatterDatumEntity extends DeviceMatterDatumVo {
this.materiaFullName = null; this.materiaFullName = null;
this.materialId = null;
this.source = null; this.source = null;
this.isRecommend = null; this.isRecommend = null;
this.total = null;
this.sort = null; this.sort = null;
this.sampleName = null; this.sampleName = null;
......
...@@ -3,11 +3,11 @@ package com.mortals.xhx.module.device.model; ...@@ -3,11 +3,11 @@ package com.mortals.xhx.module.device.model;
import java.util.List; import java.util.List;
import com.mortals.xhx.module.device.model.DeviceMatterDatumEntity; import com.mortals.xhx.module.device.model.DeviceMatterDatumEntity;
/** /**
* 设备事项申请材料业务查询对象 * 设备事项申请材料业务查询对象
* *
* @author zxfei * @author zxfei
* @date 2023-02-25 * @date 2023-03-22
*/ */
public class DeviceMatterDatumQuery extends DeviceMatterDatumEntity { public class DeviceMatterDatumQuery extends DeviceMatterDatumEntity {
/** 开始 主键,自增长 */ /** 开始 主键,自增长 */
private Long idStart; private Long idStart;
...@@ -49,46 +49,31 @@ public class DeviceMatterDatumQuery extends DeviceMatterDatumEntity { ...@@ -49,46 +49,31 @@ public class DeviceMatterDatumQuery extends DeviceMatterDatumEntity {
/** 设备名称排除列表 */ /** 设备名称排除列表 */
private List <String> deviceNameNotList; private List <String> deviceNameNotList;
/** 开始 产品id */ /** 开始 事项id */
private Long productIdStart;
/** 结束 产品id */
private Long productIdEnd;
/** 增加 产品id */
private Long productIdIncrement;
/** 产品id列表 */
private List <Long> productIdList;
/** 产品id排除列表 */
private List <Long> productIdNotList;
/** 产品编码 */
private List<String> productCodeList;
/** 产品编码排除列表 */
private List <String> productCodeNotList;
/** 产品名称 */
private List<String> productNameList;
/** 产品名称排除列表 */
private List <String> productNameNotList;
/** 开始 事项matter id */
private Long matterIdStart; private Long matterIdStart;
/** 结束 事项matter id */ /** 结束 事项id */
private Long matterIdEnd; private Long matterIdEnd;
/** 增加 事项matter id */ /** 增加 事项id */
private Long matterIdIncrement; private Long matterIdIncrement;
/** 事项matter id列表 */ /** 事项id列表 */
private List <Long> matterIdList; private List <Long> matterIdList;
/** 事项matter id排除列表 */ /** 事项id排除列表 */
private List <Long> matterIdNotList; private List <Long> matterIdNotList;
/** 事项编码 */
private List<String> matterCodeList;
/** 事项编码排除列表 */
private List <String> matterCodeNotList;
/** 事项名称 */
private List<String> matterNameList;
/** 事项名称排除列表 */
private List <String> matterNameNotList;
/** 开始 站点ID */ /** 开始 站点ID */
private Long siteIdStart; private Long siteIdStart;
...@@ -139,6 +124,21 @@ public class DeviceMatterDatumQuery extends DeviceMatterDatumEntity { ...@@ -139,6 +124,21 @@ public class DeviceMatterDatumQuery extends DeviceMatterDatumEntity {
/** 材料全名排除列表 */ /** 材料全名排除列表 */
private List <String> materiaFullNameNotList; private List <String> materiaFullNameNotList;
/** 开始 材料id */
private Long materialIdStart;
/** 结束 材料id */
private Long materialIdEnd;
/** 增加 材料id */
private Long materialIdIncrement;
/** 材料id列表 */
private List <Long> materialIdList;
/** 材料id排除列表 */
private List <Long> materialIdNotList;
/** 开始 事项来源(0.政务网,1.自定义) */ /** 开始 事项来源(0.政务网,1.自定义) */
private Integer sourceStart; private Integer sourceStart;
...@@ -169,21 +169,6 @@ public class DeviceMatterDatumQuery extends DeviceMatterDatumEntity { ...@@ -169,21 +169,6 @@ public class DeviceMatterDatumQuery extends DeviceMatterDatumEntity {
/** 是否推荐(0.未推荐,1.推荐)排除列表 */ /** 是否推荐(0.未推荐,1.推荐)排除列表 */
private List <Integer> isRecommendNotList; private List <Integer> isRecommendNotList;
/** 开始 填单次数 */
private Integer totalStart;
/** 结束 填单次数 */
private Integer totalEnd;
/** 增加 填单次数 */
private Integer totalIncrement;
/** 填单次数列表 */
private List <Integer> totalList;
/** 填单次数排除列表 */
private List <Integer> totalNotList;
/** 开始 排序 */ /** 开始 排序 */
private Integer sortStart; private Integer sortStart;
...@@ -476,231 +461,150 @@ public class DeviceMatterDatumQuery extends DeviceMatterDatumEntity { ...@@ -476,231 +461,150 @@ public class DeviceMatterDatumQuery extends DeviceMatterDatumEntity {
} }
/** /**
* 获取 开始 产品id * 获取 开始 事项id
* @return productIdStart * @return matterIdStart
*/
public Long getProductIdStart(){
return this.productIdStart;
}
/**
* 设置 开始 产品id
* @param productIdStart
*/
public void setProductIdStart(Long productIdStart){
this.productIdStart = productIdStart;
}
/**
* 获取 结束 产品id
* @return $productIdEnd
*/
public Long getProductIdEnd(){
return this.productIdEnd;
}
/**
* 设置 结束 产品id
* @param productIdEnd
*/
public void setProductIdEnd(Long productIdEnd){
this.productIdEnd = productIdEnd;
}
/**
* 获取 增加 产品id
* @return productIdIncrement
*/
public Long getProductIdIncrement(){
return this.productIdIncrement;
}
/**
* 设置 增加 产品id
* @param productIdIncrement
*/
public void setProductIdIncrement(Long productIdIncrement){
this.productIdIncrement = productIdIncrement;
}
/**
* 获取 产品id
* @return productIdList
*/
public List<Long> getProductIdList(){
return this.productIdList;
}
/**
* 设置 产品id
* @param productIdList
*/
public void setProductIdList(List<Long> productIdList){
this.productIdList = productIdList;
}
/**
* 获取 产品id
* @return productIdNotList
*/
public List<Long> getProductIdNotList(){
return this.productIdNotList;
}
/**
* 设置 产品id
* @param productIdNotList
*/ */
public void setProductIdNotList(List<Long> productIdNotList){ public Long getMatterIdStart(){
this.productIdNotList = productIdNotList; return this.matterIdStart;
} }
/** /**
* 获取 产品编码 * 设置 开始 事项id
* @return productCodeList * @param matterIdStart
*/ */
public List<String> getProductCodeList(){ public void setMatterIdStart(Long matterIdStart){
return this.productCodeList; this.matterIdStart = matterIdStart;
} }
/** /**
* 设置 产品编码 * 获取 结束 事项id
* @param productCodeList * @return $matterIdEnd
*/ */
public void setProductCodeList(List<String> productCodeList){ public Long getMatterIdEnd(){
this.productCodeList = productCodeList; return this.matterIdEnd;
} }
/** /**
* 获取 产品编码 * 设置 结束 事项id
* @return productCodeNotList * @param matterIdEnd
*/ */
public List<String> getProductCodeNotList(){ public void setMatterIdEnd(Long matterIdEnd){
return this.productCodeNotList; this.matterIdEnd = matterIdEnd;
} }
/** /**
* 设置 产品编码 * 获取 增加 事项id
* @param productCodeNotList * @return matterIdIncrement
*/ */
public void setProductCodeNotList(List<String> productCodeNotList){ public Long getMatterIdIncrement(){
this.productCodeNotList = productCodeNotList; return this.matterIdIncrement;
} }
/** /**
* 获取 产品名称 * 设置 增加 事项id
* @return productNameList * @param matterIdIncrement
*/ */
public List<String> getProductNameList(){ public void setMatterIdIncrement(Long matterIdIncrement){
return this.productNameList; this.matterIdIncrement = matterIdIncrement;
} }
/** /**
* 设置 产品名称 * 获取 事项id
* @param productNameList * @return matterIdList
*/ */
public void setProductNameList(List<String> productNameList){ public List<Long> getMatterIdList(){
this.productNameList = productNameList; return this.matterIdList;
} }
/** /**
* 获取 产品名称 * 设置 事项id
* @return productNameNotList * @param matterIdList
*/ */
public List<String> getProductNameNotList(){ public void setMatterIdList(List<Long> matterIdList){
return this.productNameNotList; this.matterIdList = matterIdList;
} }
/** /**
* 设置 产品名称 * 获取 事项id
* @param productNameNotList * @return matterIdNotList
*/ */
public void setProductNameNotList(List<String> productNameNotList){ public List<Long> getMatterIdNotList(){
this.productNameNotList = productNameNotList; return this.matterIdNotList;
} }
/** /**
* 获取 开始 事项matter id * 设置 事项id
* @return matterIdStart * @param matterIdNotList
*/ */
public Long getMatterIdStart(){ public void setMatterIdNotList(List<Long> matterIdNotList){
return this.matterIdStart; this.matterIdNotList = matterIdNotList;
} }
/**
* 设置 开始 事项matter id
* @param matterIdStart
*/
public void setMatterIdStart(Long matterIdStart){
this.matterIdStart = matterIdStart;
}
/** /**
* 获取 结束 事项matter id * 获取 事项编码
* @return $matterIdEnd * @return matterCodeList
*/ */
public Long getMatterIdEnd(){ public List<String> getMatterCodeList(){
return this.matterIdEnd; return this.matterCodeList;
} }
/** /**
* 设置 结束 事项matter id * 设置 事项编码
* @param matterIdEnd * @param matterCodeList
*/ */
public void setMatterIdEnd(Long matterIdEnd){ public void setMatterCodeList(List<String> matterCodeList){
this.matterIdEnd = matterIdEnd; this.matterCodeList = matterCodeList;
} }
/** /**
* 获取 增加 事项matter id * 获取 事项编码
* @return matterIdIncrement * @return matterCodeNotList
*/ */
public Long getMatterIdIncrement(){ public List<String> getMatterCodeNotList(){
return this.matterIdIncrement; return this.matterCodeNotList;
} }
/** /**
* 设置 增加 事项matter id * 设置 事项编码
* @param matterIdIncrement * @param matterCodeNotList
*/ */
public void setMatterIdIncrement(Long matterIdIncrement){ public void setMatterCodeNotList(List<String> matterCodeNotList){
this.matterIdIncrement = matterIdIncrement; this.matterCodeNotList = matterCodeNotList;
} }
/** /**
* 获取 事项matter id * 获取 事项名称
* @return matterIdList * @return matterNameList
*/ */
public List<Long> getMatterIdList(){ public List<String> getMatterNameList(){
return this.matterIdList; return this.matterNameList;
} }
/** /**
* 设置 事项matter id * 设置 事项名称
* @param matterIdList * @param matterNameList
*/ */
public void setMatterIdList(List<Long> matterIdList){ public void setMatterNameList(List<String> matterNameList){
this.matterIdList = matterIdList; this.matterNameList = matterNameList;
} }
/** /**
* 获取 事项matter id * 获取 事项名称
* @return matterIdNotList * @return matterNameNotList
*/ */
public List<Long> getMatterIdNotList(){ public List<String> getMatterNameNotList(){
return this.matterIdNotList; return this.matterNameNotList;
} }
/** /**
* 设置 事项matter id * 设置 事项名称
* @param matterIdNotList * @param matterNameNotList
*/ */
public void setMatterIdNotList(List<Long> matterIdNotList){ public void setMatterNameNotList(List<String> matterNameNotList){
this.matterIdNotList = matterIdNotList; this.matterNameNotList = matterNameNotList;
} }
/** /**
* 获取 开始 站点ID * 获取 开始 站点ID
* @return siteIdStart * @return siteIdStart
...@@ -991,6 +895,87 @@ public class DeviceMatterDatumQuery extends DeviceMatterDatumEntity { ...@@ -991,6 +895,87 @@ public class DeviceMatterDatumQuery extends DeviceMatterDatumEntity {
this.materiaFullNameNotList = materiaFullNameNotList; this.materiaFullNameNotList = materiaFullNameNotList;
} }
/**
* 获取 开始 材料id
* @return materialIdStart
*/
public Long getMaterialIdStart(){
return this.materialIdStart;
}
/**
* 设置 开始 材料id
* @param materialIdStart
*/
public void setMaterialIdStart(Long materialIdStart){
this.materialIdStart = materialIdStart;
}
/**
* 获取 结束 材料id
* @return $materialIdEnd
*/
public Long getMaterialIdEnd(){
return this.materialIdEnd;
}
/**
* 设置 结束 材料id
* @param materialIdEnd
*/
public void setMaterialIdEnd(Long materialIdEnd){
this.materialIdEnd = materialIdEnd;
}
/**
* 获取 增加 材料id
* @return materialIdIncrement
*/
public Long getMaterialIdIncrement(){
return this.materialIdIncrement;
}
/**
* 设置 增加 材料id
* @param materialIdIncrement
*/
public void setMaterialIdIncrement(Long materialIdIncrement){
this.materialIdIncrement = materialIdIncrement;
}
/**
* 获取 材料id
* @return materialIdList
*/
public List<Long> getMaterialIdList(){
return this.materialIdList;
}
/**
* 设置 材料id
* @param materialIdList
*/
public void setMaterialIdList(List<Long> materialIdList){
this.materialIdList = materialIdList;
}
/**
* 获取 材料id
* @return materialIdNotList
*/
public List<Long> getMaterialIdNotList(){
return this.materialIdNotList;
}
/**
* 设置 材料id
* @param materialIdNotList
*/
public void setMaterialIdNotList(List<Long> materialIdNotList){
this.materialIdNotList = materialIdNotList;
}
/** /**
* 获取 开始 事项来源(0.政务网,1.自定义) * 获取 开始 事项来源(0.政务网,1.自定义)
* @return sourceStart * @return sourceStart
...@@ -1153,87 +1138,6 @@ public class DeviceMatterDatumQuery extends DeviceMatterDatumEntity { ...@@ -1153,87 +1138,6 @@ public class DeviceMatterDatumQuery extends DeviceMatterDatumEntity {
} }
/**
* 获取 开始 填单次数
* @return totalStart
*/
public Integer getTotalStart(){
return this.totalStart;
}
/**
* 设置 开始 填单次数
* @param totalStart
*/
public void setTotalStart(Integer totalStart){
this.totalStart = totalStart;
}
/**
* 获取 结束 填单次数
* @return $totalEnd
*/
public Integer getTotalEnd(){
return this.totalEnd;
}
/**
* 设置 结束 填单次数
* @param totalEnd
*/
public void setTotalEnd(Integer totalEnd){
this.totalEnd = totalEnd;
}
/**
* 获取 增加 填单次数
* @return totalIncrement
*/
public Integer getTotalIncrement(){
return this.totalIncrement;
}
/**
* 设置 增加 填单次数
* @param totalIncrement
*/
public void setTotalIncrement(Integer totalIncrement){
this.totalIncrement = totalIncrement;
}
/**
* 获取 填单次数
* @return totalList
*/
public List<Integer> getTotalList(){
return this.totalList;
}
/**
* 设置 填单次数
* @param totalList
*/
public void setTotalList(List<Integer> totalList){
this.totalList = totalList;
}
/**
* 获取 填单次数
* @return totalNotList
*/
public List<Integer> getTotalNotList(){
return this.totalNotList;
}
/**
* 设置 填单次数
* @param totalNotList
*/
public void setTotalNotList(List<Integer> totalNotList){
this.totalNotList = totalNotList;
}
/** /**
* 获取 开始 排序 * 获取 开始 排序
* @return sortStart * @return sortStart
...@@ -1703,148 +1607,94 @@ public class DeviceMatterDatumQuery extends DeviceMatterDatumEntity { ...@@ -1703,148 +1607,94 @@ public class DeviceMatterDatumQuery extends DeviceMatterDatumEntity {
} }
/** /**
* 设置 产品id * 设置 事项id
* @param productId * @param matterId
*/
public DeviceMatterDatumQuery productId(Long productId){
setProductId(productId);
return this;
}
/**
* 设置 开始 产品id
* @param productIdStart
*/
public DeviceMatterDatumQuery productIdStart(Long productIdStart){
this.productIdStart = productIdStart;
return this;
}
/**
* 设置 结束 产品id
* @param productIdEnd
*/
public DeviceMatterDatumQuery productIdEnd(Long productIdEnd){
this.productIdEnd = productIdEnd;
return this;
}
/**
* 设置 增加 产品id
* @param productIdIncrement
*/
public DeviceMatterDatumQuery productIdIncrement(Long productIdIncrement){
this.productIdIncrement = productIdIncrement;
return this;
}
/**
* 设置 产品id
* @param productIdList
*/ */
public DeviceMatterDatumQuery productIdList(List<Long> productIdList){ public DeviceMatterDatumQuery matterId(Long matterId){
this.productIdList = productIdList; setMatterId(matterId);
return this; return this;
} }
/** /**
* 设置 产品id * 设置 开始 事项id
* @param productIdNotList * @param matterIdStart
*/ */
public DeviceMatterDatumQuery productIdNotList(List<Long> productIdNotList){ public DeviceMatterDatumQuery matterIdStart(Long matterIdStart){
this.productIdNotList = productIdNotList; this.matterIdStart = matterIdStart;
return this; return this;
} }
/** /**
* 设置 产品编码 * 设置 结束 事项id
* @param productCode * @param matterIdEnd
*/ */
public DeviceMatterDatumQuery productCode(String productCode){ public DeviceMatterDatumQuery matterIdEnd(Long matterIdEnd){
setProductCode(productCode); this.matterIdEnd = matterIdEnd;
return this; return this;
} }
/** /**
* 设置 产品编码 * 设置 增加 事项id
* @param productCodeList * @param matterIdIncrement
*/ */
public DeviceMatterDatumQuery productCodeList(List<String> productCodeList){ public DeviceMatterDatumQuery matterIdIncrement(Long matterIdIncrement){
this.productCodeList = productCodeList; this.matterIdIncrement = matterIdIncrement;
return this; return this;
} }
/** /**
* 设置 产品名称 * 设置 事项id
* @param productName * @param matterIdList
*/ */
public DeviceMatterDatumQuery productName(String productName){ public DeviceMatterDatumQuery matterIdList(List<Long> matterIdList){
setProductName(productName); this.matterIdList = matterIdList;
return this; return this;
} }
/** /**
* 设置 产品名称 * 设置 事项id
* @param productNameList * @param matterIdNotList
*/ */
public DeviceMatterDatumQuery productNameList(List<String> productNameList){ public DeviceMatterDatumQuery matterIdNotList(List<Long> matterIdNotList){
this.productNameList = productNameList; this.matterIdNotList = matterIdNotList;
return this; return this;
} }
/**
* 设置 事项matter id
* @param matterId
*/
public DeviceMatterDatumQuery matterId(Long matterId){
setMatterId(matterId);
return this;
}
/** /**
* 设置 开始 事项matter id * 设置 事项编码
* @param matterIdStart * @param matterCode
*/ */
public DeviceMatterDatumQuery matterIdStart(Long matterIdStart){ public DeviceMatterDatumQuery matterCode(String matterCode){
this.matterIdStart = matterIdStart; setMatterCode(matterCode);
return this; return this;
} }
/** /**
* 设置 结束 事项matter id * 设置 事项编码
* @param matterIdEnd * @param matterCodeList
*/ */
public DeviceMatterDatumQuery matterIdEnd(Long matterIdEnd){ public DeviceMatterDatumQuery matterCodeList(List<String> matterCodeList){
this.matterIdEnd = matterIdEnd; this.matterCodeList = matterCodeList;
return this; return this;
} }
/**
* 设置 增加 事项matter id
* @param matterIdIncrement
*/
public DeviceMatterDatumQuery matterIdIncrement(Long matterIdIncrement){
this.matterIdIncrement = matterIdIncrement;
return this;
}
/** /**
* 设置 事项matter id * 设置 事项名称
* @param matterIdList * @param matterName
*/ */
public DeviceMatterDatumQuery matterIdList(List<Long> matterIdList){ public DeviceMatterDatumQuery matterName(String matterName){
this.matterIdList = matterIdList; setMatterName(matterName);
return this; return this;
} }
/** /**
* 设置 事项matter id * 设置 事项名称
* @param matterIdNotList * @param matterNameList
*/ */
public DeviceMatterDatumQuery matterIdNotList(List<Long> matterIdNotList){ public DeviceMatterDatumQuery matterNameList(List<String> matterNameList){
this.matterIdNotList = matterIdNotList; this.matterNameList = matterNameList;
return this; return this;
} }
...@@ -2032,6 +1882,60 @@ public class DeviceMatterDatumQuery extends DeviceMatterDatumEntity { ...@@ -2032,6 +1882,60 @@ public class DeviceMatterDatumQuery extends DeviceMatterDatumEntity {
return this; return this;
} }
/**
* 设置 材料id
* @param materialId
*/
public DeviceMatterDatumQuery materialId(Long materialId){
setMaterialId(materialId);
return this;
}
/**
* 设置 开始 材料id
* @param materialIdStart
*/
public DeviceMatterDatumQuery materialIdStart(Long materialIdStart){
this.materialIdStart = materialIdStart;
return this;
}
/**
* 设置 结束 材料id
* @param materialIdEnd
*/
public DeviceMatterDatumQuery materialIdEnd(Long materialIdEnd){
this.materialIdEnd = materialIdEnd;
return this;
}
/**
* 设置 增加 材料id
* @param materialIdIncrement
*/
public DeviceMatterDatumQuery materialIdIncrement(Long materialIdIncrement){
this.materialIdIncrement = materialIdIncrement;
return this;
}
/**
* 设置 材料id
* @param materialIdList
*/
public DeviceMatterDatumQuery materialIdList(List<Long> materialIdList){
this.materialIdList = materialIdList;
return this;
}
/**
* 设置 材料id
* @param materialIdNotList
*/
public DeviceMatterDatumQuery materialIdNotList(List<Long> materialIdNotList){
this.materialIdNotList = materialIdNotList;
return this;
}
/** /**
* 设置 事项来源(0.政务网,1.自定义) * 设置 事项来源(0.政务网,1.自定义)
* @param source * @param source
...@@ -2140,60 +2044,6 @@ public class DeviceMatterDatumQuery extends DeviceMatterDatumEntity { ...@@ -2140,60 +2044,6 @@ public class DeviceMatterDatumQuery extends DeviceMatterDatumEntity {
return this; return this;
} }
/**
* 设置 填单次数
* @param total
*/
public DeviceMatterDatumQuery total(Integer total){
setTotal(total);
return this;
}
/**
* 设置 开始 填单次数
* @param totalStart
*/
public DeviceMatterDatumQuery totalStart(Integer totalStart){
this.totalStart = totalStart;
return this;
}
/**
* 设置 结束 填单次数
* @param totalEnd
*/
public DeviceMatterDatumQuery totalEnd(Integer totalEnd){
this.totalEnd = totalEnd;
return this;
}
/**
* 设置 增加 填单次数
* @param totalIncrement
*/
public DeviceMatterDatumQuery totalIncrement(Integer totalIncrement){
this.totalIncrement = totalIncrement;
return this;
}
/**
* 设置 填单次数
* @param totalList
*/
public DeviceMatterDatumQuery totalList(List<Integer> totalList){
this.totalList = totalList;
return this;
}
/**
* 设置 填单次数
* @param totalNotList
*/
public DeviceMatterDatumQuery totalNotList(List<Integer> totalNotList){
this.totalNotList = totalNotList;
return this;
}
/** /**
* 设置 排序 * 设置 排序
* @param sort * @param sort
......
package com.mortals.xhx.module.device.service.impl; package com.mortals.xhx.module.device.service.impl;
import com.mortals.xhx.module.device.model.DeviceEntity;
import com.mortals.xhx.module.device.service.DeviceService;
import com.mortals.xhx.module.matter.model.MatterDatumEntity;
import com.mortals.xhx.module.matter.model.MatterEntity;
import com.mortals.xhx.module.matter.service.MatterDatumService;
import com.mortals.xhx.module.matter.service.MatterService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import com.mortals.framework.service.impl.AbstractCRUDServiceImpl; import com.mortals.framework.service.impl.AbstractCRUDServiceImpl;
import com.mortals.framework.exception.AppException; import com.mortals.framework.exception.AppException;
...@@ -6,6 +13,8 @@ import com.mortals.framework.model.Context; ...@@ -6,6 +13,8 @@ import com.mortals.framework.model.Context;
import com.mortals.xhx.module.device.dao.DeviceMatterDatumDao; import com.mortals.xhx.module.device.dao.DeviceMatterDatumDao;
import com.mortals.xhx.module.device.model.DeviceMatterDatumEntity; import com.mortals.xhx.module.device.model.DeviceMatterDatumEntity;
import com.mortals.xhx.module.device.service.DeviceMatterDatumService; import com.mortals.xhx.module.device.service.DeviceMatterDatumService;
import org.springframework.util.ObjectUtils;
/** /**
* DeviceMatterDatumService * DeviceMatterDatumService
* 设备事项申请材料业务 service实现 * 设备事项申请材料业务 service实现
...@@ -16,4 +25,52 @@ import com.mortals.xhx.module.device.service.DeviceMatterDatumService; ...@@ -16,4 +25,52 @@ import com.mortals.xhx.module.device.service.DeviceMatterDatumService;
@Service("deviceMatterDatumService") @Service("deviceMatterDatumService")
public class DeviceMatterDatumServiceImpl extends AbstractCRUDServiceImpl<DeviceMatterDatumDao, DeviceMatterDatumEntity, Long> implements DeviceMatterDatumService { public class DeviceMatterDatumServiceImpl extends AbstractCRUDServiceImpl<DeviceMatterDatumDao, DeviceMatterDatumEntity, Long> implements DeviceMatterDatumService {
@Autowired
private MatterService matterService;
@Autowired
private MatterDatumService matterDatumService;
@Autowired
private DeviceService deviceService;
@Override
protected void saveBefore(DeviceMatterDatumEntity entity, Context context) throws AppException {
super.saveBefore(entity, context);
//entity.getMatterId()
if(!ObjectUtils.isEmpty(entity.getMatterId())){
MatterEntity matterEntity = matterService.get(entity.getMatterId());
if(!ObjectUtils.isEmpty(matterEntity)){
entity.setMatterCode(matterEntity.getMatterNo());
entity.setMatterName(matterEntity.getMatterName());
entity.setDeptId(matterEntity.getDeptId());
entity.setDeptCode(matterEntity.getDeptCode());
entity.setDeptName(matterEntity.getDeptName());
}
}
if(!ObjectUtils.isEmpty(entity.getMaterialId())){
MatterDatumEntity matterDatumEntity = matterDatumService.get(entity.getMaterialId());
if(!ObjectUtils.isEmpty(matterDatumEntity)){
entity.setMaterialName(matterDatumEntity.getMaterialName());
entity.setIsRecommend(matterDatumEntity.getIsRecommend());
entity.setSampleName(matterDatumEntity.getSampleName());
entity.setSamplePath(matterDatumEntity.getSamplePath());
entity.setPreViewPath(matterDatumEntity.getPreViewPath());
entity.setSource(matterDatumEntity.getSource());
}
}
if(!ObjectUtils.isEmpty(entity.getDeviceId())){
DeviceEntity deviceEntity = deviceService.get(entity.getDeviceId());
if(!ObjectUtils.isEmpty(deviceEntity)){
entity.setDeviceCode(deviceEntity.getDeviceCode());
entity.setDeviceName(deviceEntity.getDeviceName());
}
}
}
@Override
protected void updateBefore(DeviceMatterDatumEntity entity, Context context) throws AppException {
super.updateBefore(entity, context);
}
} }
\ No newline at end of file
package com.mortals.xhx.module.device.service.impl; package com.mortals.xhx.module.device.service.impl;
import com.mortals.xhx.module.matter.service.MatterDatumService;
import com.mortals.xhx.module.matter.service.MatterService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import com.mortals.framework.service.impl.AbstractCRUDServiceImpl; import com.mortals.framework.service.impl.AbstractCRUDServiceImpl;
import com.mortals.framework.exception.AppException; import com.mortals.framework.exception.AppException;
...@@ -16,4 +19,16 @@ import com.mortals.xhx.module.device.service.DeviceService; ...@@ -16,4 +19,16 @@ import com.mortals.xhx.module.device.service.DeviceService;
@Service("deviceService") @Service("deviceService")
public class DeviceServiceImpl extends AbstractCRUDServiceImpl<DeviceDao, DeviceEntity, Long> implements DeviceService { public class DeviceServiceImpl extends AbstractCRUDServiceImpl<DeviceDao, DeviceEntity, Long> implements DeviceService {
@Autowired
private MatterService matterService;
@Autowired
private MatterDatumService matterDatumService;
@Override
protected void saveBefore(DeviceEntity entity, Context context) throws AppException {
super.saveBefore(entity, context);
}
} }
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"mybatis-3-mapper.dtd"> "mybatis-3-mapper.dtd">
<mapper namespace="com.mortals.xhx.module.device.dao.ibatis.DeviceMatterDatumDaoImpl"> <mapper namespace="com.mortals.xhx.module.device.dao.ibatis.DeviceMatterDatumDaoImpl">
<!-- 字段和属性映射 --> <!-- 字段和属性映射 -->
...@@ -9,19 +9,18 @@ ...@@ -9,19 +9,18 @@
<result property="deviceId" column="deviceId" /> <result property="deviceId" column="deviceId" />
<result property="deviceCode" column="deviceCode" /> <result property="deviceCode" column="deviceCode" />
<result property="deviceName" column="deviceName" /> <result property="deviceName" column="deviceName" />
<result property="productId" column="productId" />
<result property="productCode" column="productCode" />
<result property="productName" column="productName" />
<result property="matterId" column="matterId" /> <result property="matterId" column="matterId" />
<result property="matterCode" column="matterCode" />
<result property="matterName" column="matterName" />
<result property="siteId" column="siteId" /> <result property="siteId" column="siteId" />
<result property="deptId" column="deptId" /> <result property="deptId" column="deptId" />
<result property="deptCode" column="deptCode" /> <result property="deptCode" column="deptCode" />
<result property="deptName" column="deptName" /> <result property="deptName" column="deptName" />
<result property="materialName" column="materialName" /> <result property="materialName" column="materialName" />
<result property="materiaFullName" column="materiaFullName" /> <result property="materiaFullName" column="materiaFullName" />
<result property="materialId" column="materialId" />
<result property="source" column="source" /> <result property="source" column="source" />
<result property="isRecommend" column="isRecommend" /> <result property="isRecommend" column="isRecommend" />
<result property="total" column="total" />
<result property="sort" column="sort" /> <result property="sort" column="sort" />
<result property="sampleName" column="sampleName" /> <result property="sampleName" column="sampleName" />
<result property="samplePath" column="samplePath" /> <result property="samplePath" column="samplePath" />
...@@ -48,18 +47,15 @@ ...@@ -48,18 +47,15 @@
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('deviceName') or colPickMode == 1 and data.containsKey('deviceName')))"> <if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('deviceName') or colPickMode == 1 and data.containsKey('deviceName')))">
a.deviceName, a.deviceName,
</if> </if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('productId') or colPickMode == 1 and data.containsKey('productId')))">
a.productId,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('productCode') or colPickMode == 1 and data.containsKey('productCode')))">
a.productCode,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('productName') or colPickMode == 1 and data.containsKey('productName')))">
a.productName,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('matterId') or colPickMode == 1 and data.containsKey('matterId')))"> <if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('matterId') or colPickMode == 1 and data.containsKey('matterId')))">
a.matterId, a.matterId,
</if> </if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('matterCode') or colPickMode == 1 and data.containsKey('matterCode')))">
a.matterCode,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('matterName') or colPickMode == 1 and data.containsKey('matterName')))">
a.matterName,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('siteId') or colPickMode == 1 and data.containsKey('siteId')))"> <if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('siteId') or colPickMode == 1 and data.containsKey('siteId')))">
a.siteId, a.siteId,
</if> </if>
...@@ -78,15 +74,15 @@ ...@@ -78,15 +74,15 @@
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('materiaFullName') or colPickMode == 1 and data.containsKey('materiaFullName')))"> <if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('materiaFullName') or colPickMode == 1 and data.containsKey('materiaFullName')))">
a.materiaFullName, a.materiaFullName,
</if> </if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('materialId') or colPickMode == 1 and data.containsKey('materialId')))">
a.materialId,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('source') or colPickMode == 1 and data.containsKey('source')))"> <if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('source') or colPickMode == 1 and data.containsKey('source')))">
a.source, a.source,
</if> </if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('isRecommend') or colPickMode == 1 and data.containsKey('isRecommend')))"> <if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('isRecommend') or colPickMode == 1 and data.containsKey('isRecommend')))">
a.isRecommend, a.isRecommend,
</if> </if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('total') or colPickMode == 1 and data.containsKey('total')))">
a.total,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('sort') or colPickMode == 1 and data.containsKey('sort')))"> <if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('sort') or colPickMode == 1 and data.containsKey('sort')))">
a.sort, a.sort,
</if> </if>
...@@ -113,18 +109,18 @@ ...@@ -113,18 +109,18 @@
<!-- 新增 区分主键自增加还是业务插入 --> <!-- 新增 区分主键自增加还是业务插入 -->
<insert id="insert" parameterType="DeviceMatterDatumEntity" useGeneratedKeys="true" keyProperty="id"> <insert id="insert" parameterType="DeviceMatterDatumEntity" useGeneratedKeys="true" keyProperty="id">
insert into mortals_xhx_device_matter_datum insert into mortals_xhx_device_matter_datum
(deviceId,deviceCode,deviceName,productId,productCode,productName,matterId,siteId,deptId,deptCode,deptName,materialName,materiaFullName,source,isRecommend,total,sort,sampleName,samplePath,preViewPath,createTime,createUserId,updateTime) (deviceId,deviceCode,deviceName,matterId,matterCode,matterName,siteId,deptId,deptCode,deptName,materialName,materiaFullName,materialId,source,isRecommend,sort,sampleName,samplePath,preViewPath,createTime,createUserId,updateTime)
VALUES VALUES
(#{deviceId},#{deviceCode},#{deviceName},#{productId},#{productCode},#{productName},#{matterId},#{siteId},#{deptId},#{deptCode},#{deptName},#{materialName},#{materiaFullName},#{source},#{isRecommend},#{total},#{sort},#{sampleName},#{samplePath},#{preViewPath},#{createTime},#{createUserId},#{updateTime}) (#{deviceId},#{deviceCode},#{deviceName},#{matterId},#{matterCode},#{matterName},#{siteId},#{deptId},#{deptCode},#{deptName},#{materialName},#{materiaFullName},#{materialId},#{source},#{isRecommend},#{sort},#{sampleName},#{samplePath},#{preViewPath},#{createTime},#{createUserId},#{updateTime})
</insert> </insert>
<!-- 批量新增 --> <!-- 批量新增 -->
<insert id="insertBatch" parameterType="paramDto"> <insert id="insertBatch" parameterType="paramDto">
insert into mortals_xhx_device_matter_datum insert into mortals_xhx_device_matter_datum
(deviceId,deviceCode,deviceName,productId,productCode,productName,matterId,siteId,deptId,deptCode,deptName,materialName,materiaFullName,source,isRecommend,total,sort,sampleName,samplePath,preViewPath,createTime,createUserId,updateTime) (deviceId,deviceCode,deviceName,matterId,matterCode,matterName,siteId,deptId,deptCode,deptName,materialName,materiaFullName,materialId,source,isRecommend,sort,sampleName,samplePath,preViewPath,createTime,createUserId,updateTime)
VALUES VALUES
<foreach collection="data.dataList" item="item" index="index" separator="," > <foreach collection="data.dataList" item="item" index="index" separator="," >
(#{item.deviceId},#{item.deviceCode},#{item.deviceName},#{item.productId},#{item.productCode},#{item.productName},#{item.matterId},#{item.siteId},#{item.deptId},#{item.deptCode},#{item.deptName},#{item.materialName},#{item.materiaFullName},#{item.source},#{item.isRecommend},#{item.total},#{item.sort},#{item.sampleName},#{item.samplePath},#{item.preViewPath},#{item.createTime},#{item.createUserId},#{item.updateTime}) (#{item.deviceId},#{item.deviceCode},#{item.deviceName},#{item.matterId},#{item.matterCode},#{item.matterName},#{item.siteId},#{item.deptId},#{item.deptCode},#{item.deptName},#{item.materialName},#{item.materiaFullName},#{item.materialId},#{item.source},#{item.isRecommend},#{item.sort},#{item.sampleName},#{item.samplePath},#{item.preViewPath},#{item.createTime},#{item.createUserId},#{item.updateTime})
</foreach> </foreach>
</insert> </insert>
...@@ -146,24 +142,18 @@ ...@@ -146,24 +142,18 @@
<if test="(colPickMode==0 and data.containsKey('deviceName')) or (colPickMode==1 and !data.containsKey('deviceName'))"> <if test="(colPickMode==0 and data.containsKey('deviceName')) or (colPickMode==1 and !data.containsKey('deviceName'))">
a.deviceName=#{data.deviceName}, a.deviceName=#{data.deviceName},
</if> </if>
<if test="(colPickMode==0 and data.containsKey('productId')) or (colPickMode==1 and !data.containsKey('productId'))">
a.productId=#{data.productId},
</if>
<if test="(colPickMode==0 and data.containsKey('productIdIncrement')) or (colPickMode==1 and !data.containsKey('productIdIncrement'))">
a.productId=ifnull(a.productId,0) + #{data.productIdIncrement},
</if>
<if test="(colPickMode==0 and data.containsKey('productCode')) or (colPickMode==1 and !data.containsKey('productCode'))">
a.productCode=#{data.productCode},
</if>
<if test="(colPickMode==0 and data.containsKey('productName')) or (colPickMode==1 and !data.containsKey('productName'))">
a.productName=#{data.productName},
</if>
<if test="(colPickMode==0 and data.containsKey('matterId')) or (colPickMode==1 and !data.containsKey('matterId'))"> <if test="(colPickMode==0 and data.containsKey('matterId')) or (colPickMode==1 and !data.containsKey('matterId'))">
a.matterId=#{data.matterId}, a.matterId=#{data.matterId},
</if> </if>
<if test="(colPickMode==0 and data.containsKey('matterIdIncrement')) or (colPickMode==1 and !data.containsKey('matterIdIncrement'))"> <if test="(colPickMode==0 and data.containsKey('matterIdIncrement')) or (colPickMode==1 and !data.containsKey('matterIdIncrement'))">
a.matterId=ifnull(a.matterId,0) + #{data.matterIdIncrement}, a.matterId=ifnull(a.matterId,0) + #{data.matterIdIncrement},
</if> </if>
<if test="(colPickMode==0 and data.containsKey('matterCode')) or (colPickMode==1 and !data.containsKey('matterCode'))">
a.matterCode=#{data.matterCode},
</if>
<if test="(colPickMode==0 and data.containsKey('matterName')) or (colPickMode==1 and !data.containsKey('matterName'))">
a.matterName=#{data.matterName},
</if>
<if test="(colPickMode==0 and data.containsKey('siteId')) or (colPickMode==1 and !data.containsKey('siteId'))"> <if test="(colPickMode==0 and data.containsKey('siteId')) or (colPickMode==1 and !data.containsKey('siteId'))">
a.siteId=#{data.siteId}, a.siteId=#{data.siteId},
</if> </if>
...@@ -188,6 +178,12 @@ ...@@ -188,6 +178,12 @@
<if test="(colPickMode==0 and data.containsKey('materiaFullName')) or (colPickMode==1 and !data.containsKey('materiaFullName'))"> <if test="(colPickMode==0 and data.containsKey('materiaFullName')) or (colPickMode==1 and !data.containsKey('materiaFullName'))">
a.materiaFullName=#{data.materiaFullName}, a.materiaFullName=#{data.materiaFullName},
</if> </if>
<if test="(colPickMode==0 and data.containsKey('materialId')) or (colPickMode==1 and !data.containsKey('materialId'))">
a.materialId=#{data.materialId},
</if>
<if test="(colPickMode==0 and data.containsKey('materialIdIncrement')) or (colPickMode==1 and !data.containsKey('materialIdIncrement'))">
a.materialId=ifnull(a.materialId,0) + #{data.materialIdIncrement},
</if>
<if test="(colPickMode==0 and data.containsKey('source')) or (colPickMode==1 and !data.containsKey('source'))"> <if test="(colPickMode==0 and data.containsKey('source')) or (colPickMode==1 and !data.containsKey('source'))">
a.source=#{data.source}, a.source=#{data.source},
</if> </if>
...@@ -200,12 +196,6 @@ ...@@ -200,12 +196,6 @@
<if test="(colPickMode==0 and data.containsKey('isRecommendIncrement')) or (colPickMode==1 and !data.containsKey('isRecommendIncrement'))"> <if test="(colPickMode==0 and data.containsKey('isRecommendIncrement')) or (colPickMode==1 and !data.containsKey('isRecommendIncrement'))">
a.isRecommend=ifnull(a.isRecommend,0) + #{data.isRecommendIncrement}, a.isRecommend=ifnull(a.isRecommend,0) + #{data.isRecommendIncrement},
</if> </if>
<if test="(colPickMode==0 and data.containsKey('total')) or (colPickMode==1 and !data.containsKey('total'))">
a.total=#{data.total},
</if>
<if test="(colPickMode==0 and data.containsKey('totalIncrement')) or (colPickMode==1 and !data.containsKey('totalIncrement'))">
a.total=ifnull(a.total,0) + #{data.totalIncrement},
</if>
<if test="(colPickMode==0 and data.containsKey('sort')) or (colPickMode==1 and !data.containsKey('sort'))"> <if test="(colPickMode==0 and data.containsKey('sort')) or (colPickMode==1 and !data.containsKey('sort'))">
a.sort=#{data.sort}, a.sort=#{data.sort},
</if> </if>
...@@ -271,43 +261,31 @@ ...@@ -271,43 +261,31 @@
</if> </if>
</foreach> </foreach>
</trim> </trim>
<trim prefix="productId=(case" suffix="ELSE productId end),"> <trim prefix="matterId=(case" suffix="ELSE matterId end),">
<foreach collection="data.dataList" item="item" index="index" separator="" > <foreach collection="data.dataList" item="item" index="index" separator="" >
<choose> <choose>
<when test="(colPickMode==0 and item.containsKey('productId')) or (colPickMode==1 and !item.containsKey('productId'))"> <when test="(colPickMode==0 and item.containsKey('matterId')) or (colPickMode==1 and !item.containsKey('matterId'))">
when a.id=#{item.id} then #{item.productId} when a.id=#{item.id} then #{item.matterId}
</when> </when>
<when test="(colPickMode==0 and item.containsKey('productIdIncrement')) or (colPickMode==1 and !item.containsKey('productIdIncrement'))"> <when test="(colPickMode==0 and item.containsKey('matterIdIncrement')) or (colPickMode==1 and !item.containsKey('matterIdIncrement'))">
when a.id=#{item.id} then ifnull(a.productId,0) + #{item.productIdIncrement} when a.id=#{item.id} then ifnull(a.matterId,0) + #{item.matterIdIncrement}
</when> </when>
</choose> </choose>
</foreach> </foreach>
</trim> </trim>
<trim prefix="productCode=(case" suffix="ELSE productCode end),"> <trim prefix="matterCode=(case" suffix="ELSE matterCode end),">
<foreach collection="data.dataList" item="item" index="index" separator="" > <foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('productCode')) or (colPickMode==1 and !item.containsKey('productCode'))"> <if test="(colPickMode==0 and item.containsKey('matterCode')) or (colPickMode==1 and !item.containsKey('matterCode'))">
when a.id=#{item.id} then #{item.productCode} when a.id=#{item.id} then #{item.matterCode}
</if> </if>
</foreach> </foreach>
</trim> </trim>
<trim prefix="productName=(case" suffix="ELSE productName end),"> <trim prefix="matterName=(case" suffix="ELSE matterName end),">
<foreach collection="data.dataList" item="item" index="index" separator="" > <foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('productName')) or (colPickMode==1 and !item.containsKey('productName'))"> <if test="(colPickMode==0 and item.containsKey('matterName')) or (colPickMode==1 and !item.containsKey('matterName'))">
when a.id=#{item.id} then #{item.productName} when a.id=#{item.id} then #{item.matterName}
</if> </if>
</foreach> </foreach>
</trim>
<trim prefix="matterId=(case" suffix="ELSE matterId end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<choose>
<when test="(colPickMode==0 and item.containsKey('matterId')) or (colPickMode==1 and !item.containsKey('matterId'))">
when a.id=#{item.id} then #{item.matterId}
</when>
<when test="(colPickMode==0 and item.containsKey('matterIdIncrement')) or (colPickMode==1 and !item.containsKey('matterIdIncrement'))">
when a.id=#{item.id} then ifnull(a.matterId,0) + #{item.matterIdIncrement}
</when>
</choose>
</foreach>
</trim> </trim>
<trim prefix="siteId=(case" suffix="ELSE siteId end),"> <trim prefix="siteId=(case" suffix="ELSE siteId end),">
<foreach collection="data.dataList" item="item" index="index" separator="" > <foreach collection="data.dataList" item="item" index="index" separator="" >
...@@ -361,6 +339,18 @@ ...@@ -361,6 +339,18 @@
</if> </if>
</foreach> </foreach>
</trim> </trim>
<trim prefix="materialId=(case" suffix="ELSE materialId end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<choose>
<when test="(colPickMode==0 and item.containsKey('materialId')) or (colPickMode==1 and !item.containsKey('materialId'))">
when a.id=#{item.id} then #{item.materialId}
</when>
<when test="(colPickMode==0 and item.containsKey('materialIdIncrement')) or (colPickMode==1 and !item.containsKey('materialIdIncrement'))">
when a.id=#{item.id} then ifnull(a.materialId,0) + #{item.materialIdIncrement}
</when>
</choose>
</foreach>
</trim>
<trim prefix="source=(case" suffix="ELSE source end),"> <trim prefix="source=(case" suffix="ELSE source end),">
<foreach collection="data.dataList" item="item" index="index" separator="" > <foreach collection="data.dataList" item="item" index="index" separator="" >
<choose> <choose>
...@@ -385,18 +375,6 @@ ...@@ -385,18 +375,6 @@
</choose> </choose>
</foreach> </foreach>
</trim> </trim>
<trim prefix="total=(case" suffix="ELSE total end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<choose>
<when test="(colPickMode==0 and item.containsKey('total')) or (colPickMode==1 and !item.containsKey('total'))">
when a.id=#{item.id} then #{item.total}
</when>
<when test="(colPickMode==0 and item.containsKey('totalIncrement')) or (colPickMode==1 and !item.containsKey('totalIncrement'))">
when a.id=#{item.id} then ifnull(a.total,0) + #{item.totalIncrement}
</when>
</choose>
</foreach>
</trim>
<trim prefix="sort=(case" suffix="ELSE sort end),"> <trim prefix="sort=(case" suffix="ELSE sort end),">
<foreach collection="data.dataList" item="item" index="index" separator="" > <foreach collection="data.dataList" item="item" index="index" separator="" >
<choose> <choose>
...@@ -668,102 +646,75 @@ ...@@ -668,102 +646,75 @@
#{item} #{item}
</foreach> </foreach>
</if> </if>
<if test="conditionParamRef.containsKey('productId')"> <if test="conditionParamRef.containsKey('matterId')">
<if test="conditionParamRef.productId != null "> <if test="conditionParamRef.matterId != null ">
${_conditionType_} a.productId = #{${_conditionParam_}.productId} ${_conditionType_} a.matterId = #{${_conditionParam_}.matterId}
</if> </if>
<if test="conditionParamRef.productId == null"> <if test="conditionParamRef.matterId == null">
${_conditionType_} a.productId is null ${_conditionType_} a.matterId is null
</if> </if>
</if> </if>
<if test="conditionParamRef.containsKey('productIdList') and conditionParamRef.productIdList.size() > 0"> <if test="conditionParamRef.containsKey('matterIdList') and conditionParamRef.matterIdList.size() > 0">
${_conditionType_} a.productId in ${_conditionType_} a.matterId in
<foreach collection="conditionParamRef.productIdList" open="(" close=")" index="index" item="item" separator=","> <foreach collection="conditionParamRef.matterIdList" open="(" close=")" index="index" item="item" separator=",">
#{item} #{item}
</foreach> </foreach>
</if> </if>
<if test="conditionParamRef.containsKey('productIdNotList') and conditionParamRef.productIdNotList.size() > 0"> <if test="conditionParamRef.containsKey('matterIdNotList') and conditionParamRef.matterIdNotList.size() > 0">
${_conditionType_} a.productId not in ${_conditionType_} a.matterId not in
<foreach collection="conditionParamRef.productIdNotList" open="(" close=")" index="index" item="item" separator=","> <foreach collection="conditionParamRef.matterIdNotList" open="(" close=")" index="index" item="item" separator=",">
#{item} #{item}
</foreach> </foreach>
</if> </if>
<if test="conditionParamRef.containsKey('productIdStart') and conditionParamRef.productIdStart != null"> <if test="conditionParamRef.containsKey('matterIdStart') and conditionParamRef.matterIdStart != null">
${_conditionType_} a.productId <![CDATA[ >= ]]> #{${_conditionParam_}.productIdStart} ${_conditionType_} a.matterId <![CDATA[ >= ]]> #{${_conditionParam_}.matterIdStart}
</if> </if>
<if test="conditionParamRef.containsKey('productIdEnd') and conditionParamRef.productIdEnd != null"> <if test="conditionParamRef.containsKey('matterIdEnd') and conditionParamRef.matterIdEnd != null">
${_conditionType_} a.productId <![CDATA[ <= ]]> #{${_conditionParam_}.productIdEnd} ${_conditionType_} a.matterId <![CDATA[ <= ]]> #{${_conditionParam_}.matterIdEnd}
</if> </if>
<if test="conditionParamRef.containsKey('productCode')"> <if test="conditionParamRef.containsKey('matterCode')">
<if test="conditionParamRef.productCode != null and conditionParamRef.productCode != ''"> <if test="conditionParamRef.matterCode != null and conditionParamRef.matterCode != ''">
${_conditionType_} a.productCode like #{${_conditionParam_}.productCode} ${_conditionType_} a.matterCode like #{${_conditionParam_}.matterCode}
</if> </if>
<if test="conditionParamRef.productCode == null"> <if test="conditionParamRef.matterCode == null">
${_conditionType_} a.productCode is null ${_conditionType_} a.matterCode is null
</if> </if>
</if> </if>
<if test="conditionParamRef.containsKey('productCodeList') and conditionParamRef.productCodeList.size() > 0"> <if test="conditionParamRef.containsKey('matterCodeList') and conditionParamRef.matterCodeList.size() > 0">
${_conditionType_} a.productCode in ${_conditionType_} a.matterCode in
<foreach collection="conditionParamRef.productCodeList" open="(" close=")" index="index" item="item" separator=","> <foreach collection="conditionParamRef.matterCodeList" open="(" close=")" index="index" item="item" separator=",">
#{item} #{item}
</foreach> </foreach>
</if> </if>
<if test="conditionParamRef.containsKey('productCodeNotList') and conditionParamRef.productCodeNotList.size() > 0"> <if test="conditionParamRef.containsKey('matterCodeNotList') and conditionParamRef.matterCodeNotList.size() > 0">
${_conditionType_} a.productCode not in ${_conditionType_} a.matterCode not in
<foreach collection="conditionParamRef.productCodeNotList" open="(" close=")" index="index" item="item" separator=","> <foreach collection="conditionParamRef.matterCodeNotList" open="(" close=")" index="index" item="item" separator=",">
#{item} #{item}
</foreach> </foreach>
</if> </if>
<if test="conditionParamRef.containsKey('productName')"> <if test="conditionParamRef.containsKey('matterName')">
<if test="conditionParamRef.productName != null and conditionParamRef.productName != ''"> <if test="conditionParamRef.matterName != null and conditionParamRef.matterName != ''">
${_conditionType_} a.productName like #{${_conditionParam_}.productName} ${_conditionType_} a.matterName like #{${_conditionParam_}.matterName}
</if> </if>
<if test="conditionParamRef.productName == null"> <if test="conditionParamRef.matterName == null">
${_conditionType_} a.productName is null ${_conditionType_} a.matterName is null
</if> </if>
</if> </if>
<if test="conditionParamRef.containsKey('productNameList') and conditionParamRef.productNameList.size() > 0"> <if test="conditionParamRef.containsKey('matterNameList') and conditionParamRef.matterNameList.size() > 0">
${_conditionType_} a.productName in ${_conditionType_} a.matterName in
<foreach collection="conditionParamRef.productNameList" open="(" close=")" index="index" item="item" separator=","> <foreach collection="conditionParamRef.matterNameList" open="(" close=")" index="index" item="item" separator=",">
#{item} #{item}
</foreach> </foreach>
</if> </if>
<if test="conditionParamRef.containsKey('productNameNotList') and conditionParamRef.productNameNotList.size() > 0"> <if test="conditionParamRef.containsKey('matterNameNotList') and conditionParamRef.matterNameNotList.size() > 0">
${_conditionType_} a.productName not in ${_conditionType_} a.matterName not in
<foreach collection="conditionParamRef.productNameNotList" open="(" close=")" index="index" item="item" separator=","> <foreach collection="conditionParamRef.matterNameNotList" open="(" close=")" index="index" item="item" separator=",">
#{item} #{item}
</foreach> </foreach>
</if> </if>
<if test="conditionParamRef.containsKey('matterId')">
<if test="conditionParamRef.matterId != null ">
${_conditionType_} a.matterId = #{${_conditionParam_}.matterId}
</if>
<if test="conditionParamRef.matterId == null">
${_conditionType_} a.matterId is null
</if>
</if>
<if test="conditionParamRef.containsKey('matterIdList') and conditionParamRef.matterIdList.size() > 0">
${_conditionType_} a.matterId in
<foreach collection="conditionParamRef.matterIdList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('matterIdNotList') and conditionParamRef.matterIdNotList.size() > 0">
${_conditionType_} a.matterId not in
<foreach collection="conditionParamRef.matterIdNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('matterIdStart') and conditionParamRef.matterIdStart != null">
${_conditionType_} a.matterId <![CDATA[ >= ]]> #{${_conditionParam_}.matterIdStart}
</if>
<if test="conditionParamRef.containsKey('matterIdEnd') and conditionParamRef.matterIdEnd != null">
${_conditionType_} a.matterId <![CDATA[ <= ]]> #{${_conditionParam_}.matterIdEnd}
</if>
<if test="conditionParamRef.containsKey('siteId')"> <if test="conditionParamRef.containsKey('siteId')">
<if test="conditionParamRef.siteId != null "> <if test="conditionParamRef.siteId != null ">
${_conditionType_} a.siteId = #{${_conditionParam_}.siteId} ${_conditionType_} a.siteId = #{${_conditionParam_}.siteId}
...@@ -902,6 +853,33 @@ ...@@ -902,6 +853,33 @@
#{item} #{item}
</foreach> </foreach>
</if> </if>
<if test="conditionParamRef.containsKey('materialId')">
<if test="conditionParamRef.materialId != null ">
${_conditionType_} a.materialId = #{${_conditionParam_}.materialId}
</if>
<if test="conditionParamRef.materialId == null">
${_conditionType_} a.materialId is null
</if>
</if>
<if test="conditionParamRef.containsKey('materialIdList') and conditionParamRef.materialIdList.size() > 0">
${_conditionType_} a.materialId in
<foreach collection="conditionParamRef.materialIdList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('materialIdNotList') and conditionParamRef.materialIdNotList.size() > 0">
${_conditionType_} a.materialId not in
<foreach collection="conditionParamRef.materialIdNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('materialIdStart') and conditionParamRef.materialIdStart != null">
${_conditionType_} a.materialId <![CDATA[ >= ]]> #{${_conditionParam_}.materialIdStart}
</if>
<if test="conditionParamRef.containsKey('materialIdEnd') and conditionParamRef.materialIdEnd != null">
${_conditionType_} a.materialId <![CDATA[ <= ]]> #{${_conditionParam_}.materialIdEnd}
</if>
<if test="conditionParamRef.containsKey('source')"> <if test="conditionParamRef.containsKey('source')">
<if test="conditionParamRef.source != null "> <if test="conditionParamRef.source != null ">
${_conditionType_} a.source = #{${_conditionParam_}.source} ${_conditionType_} a.source = #{${_conditionParam_}.source}
...@@ -956,33 +934,6 @@ ...@@ -956,33 +934,6 @@
${_conditionType_} a.isRecommend <![CDATA[ <= ]]> #{${_conditionParam_}.isRecommendEnd} ${_conditionType_} a.isRecommend <![CDATA[ <= ]]> #{${_conditionParam_}.isRecommendEnd}
</if> </if>
<if test="conditionParamRef.containsKey('total')">
<if test="conditionParamRef.total != null ">
${_conditionType_} a.total = #{${_conditionParam_}.total}
</if>
<if test="conditionParamRef.total == null">
${_conditionType_} a.total is null
</if>
</if>
<if test="conditionParamRef.containsKey('totalList') and conditionParamRef.totalList.size() > 0">
${_conditionType_} a.total in
<foreach collection="conditionParamRef.totalList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('totalNotList') and conditionParamRef.totalNotList.size() > 0">
${_conditionType_} a.total not in
<foreach collection="conditionParamRef.totalNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('totalStart') and conditionParamRef.totalStart != null">
${_conditionType_} a.total <![CDATA[ >= ]]> #{${_conditionParam_}.totalStart}
</if>
<if test="conditionParamRef.containsKey('totalEnd') and conditionParamRef.totalEnd != null">
${_conditionType_} a.total <![CDATA[ <= ]]> #{${_conditionParam_}.totalEnd}
</if>
<if test="conditionParamRef.containsKey('sort')"> <if test="conditionParamRef.containsKey('sort')">
<if test="conditionParamRef.sort != null "> <if test="conditionParamRef.sort != null ">
${_conditionType_} a.sort = #{${_conditionParam_}.sort} ${_conditionType_} a.sort = #{${_conditionParam_}.sort}
...@@ -1163,24 +1114,19 @@ ...@@ -1163,24 +1114,19 @@
<if test='orderCol.deviceName != null and "DESC".equalsIgnoreCase(orderCol.deviceName)'>DESC</if> <if test='orderCol.deviceName != null and "DESC".equalsIgnoreCase(orderCol.deviceName)'>DESC</if>
, ,
</if> </if>
<if test="orderCol.containsKey('productId')"> <if test="orderCol.containsKey('matterId')">
a.productId a.matterId
<if test='orderCol.productId != null and "DESC".equalsIgnoreCase(orderCol.productId)'>DESC</if> <if test='orderCol.matterId != null and "DESC".equalsIgnoreCase(orderCol.matterId)'>DESC</if>
, ,
</if> </if>
<if test="orderCol.containsKey('productCode')"> <if test="orderCol.containsKey('matterCode')">
a.productCode a.matterCode
<if test='orderCol.productCode != null and "DESC".equalsIgnoreCase(orderCol.productCode)'>DESC</if> <if test='orderCol.matterCode != null and "DESC".equalsIgnoreCase(orderCol.matterCode)'>DESC</if>
, ,
</if> </if>
<if test="orderCol.containsKey('productName')"> <if test="orderCol.containsKey('matterName')">
a.productName a.matterName
<if test='orderCol.productName != null and "DESC".equalsIgnoreCase(orderCol.productName)'>DESC</if> <if test='orderCol.matterName != null and "DESC".equalsIgnoreCase(orderCol.matterName)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('matterId')">
a.matterId
<if test='orderCol.matterId != null and "DESC".equalsIgnoreCase(orderCol.matterId)'>DESC</if>
, ,
</if> </if>
<if test="orderCol.containsKey('siteId')"> <if test="orderCol.containsKey('siteId')">
...@@ -1213,6 +1159,11 @@ ...@@ -1213,6 +1159,11 @@
<if test='orderCol.materiaFullName != null and "DESC".equalsIgnoreCase(orderCol.materiaFullName)'>DESC</if> <if test='orderCol.materiaFullName != null and "DESC".equalsIgnoreCase(orderCol.materiaFullName)'>DESC</if>
, ,
</if> </if>
<if test="orderCol.containsKey('materialId')">
a.materialId
<if test='orderCol.materialId != null and "DESC".equalsIgnoreCase(orderCol.materialId)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('source')"> <if test="orderCol.containsKey('source')">
a.source a.source
<if test='orderCol.source != null and "DESC".equalsIgnoreCase(orderCol.source)'>DESC</if> <if test='orderCol.source != null and "DESC".equalsIgnoreCase(orderCol.source)'>DESC</if>
...@@ -1223,11 +1174,6 @@ ...@@ -1223,11 +1174,6 @@
<if test='orderCol.isRecommend != null and "DESC".equalsIgnoreCase(orderCol.isRecommend)'>DESC</if> <if test='orderCol.isRecommend != null and "DESC".equalsIgnoreCase(orderCol.isRecommend)'>DESC</if>
, ,
</if> </if>
<if test="orderCol.containsKey('total')">
a.total
<if test='orderCol.total != null and "DESC".equalsIgnoreCase(orderCol.total)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('sort')"> <if test="orderCol.containsKey('sort')">
a.sort a.sort
<if test='orderCol.sort != null and "DESC".equalsIgnoreCase(orderCol.sort)'>DESC</if> <if test='orderCol.sort != null and "DESC".equalsIgnoreCase(orderCol.sort)'>DESC</if>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment