增加工单管理的实体和mapper
This commit is contained in:
parent
11e15015ca
commit
fc3674d23d
@ -1,355 +0,0 @@
|
||||
package com.xhpc.workorder.domain;
|
||||
|
||||
import com.xhpc.common.core.annotation.Excel;
|
||||
import com.xhpc.common.core.web.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 电站对象 xhpc_charging_station
|
||||
*
|
||||
* @author yuyang
|
||||
* @date 2021-07-19
|
||||
*/
|
||||
public class XhpcChargingStationDomain extends BaseEntity {
|
||||
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 电站id */
|
||||
private Long chargingStationId;
|
||||
|
||||
/** 名称 */
|
||||
@Excel(name = "名称")
|
||||
private String name;
|
||||
|
||||
/** 运营商id */
|
||||
@Excel(name = "运营商id")
|
||||
private Long operatorId;
|
||||
|
||||
/** 电站位置 */
|
||||
@Excel(name = "电站位置")
|
||||
private Integer type;
|
||||
|
||||
/** 建设场所 */
|
||||
@Excel(name = "建设场所")
|
||||
private Integer constructionSite;
|
||||
|
||||
/** 电站类型 */
|
||||
@Excel(name = "电站类型")
|
||||
private Integer stationType;
|
||||
|
||||
/** 服务设施 */
|
||||
@Excel(name = "服务设施")
|
||||
private String serviceFacilities;
|
||||
|
||||
/** 周边设施 */
|
||||
@Excel(name = "周边设施")
|
||||
private String peripheryFacilities;
|
||||
|
||||
/** 地址code */
|
||||
@Excel(name = "地址code")
|
||||
private Integer areaCode;
|
||||
|
||||
/** 地址 */
|
||||
@Excel(name = "地址")
|
||||
private String address;
|
||||
|
||||
/** 详细地址 */
|
||||
@Excel(name = "详细地址")
|
||||
private String detailedAddress;
|
||||
|
||||
/** 经度 */
|
||||
@Excel(name = "经度")
|
||||
private String longitude;
|
||||
|
||||
/** 维度 */
|
||||
@Excel(name = "维度")
|
||||
private String latitude;
|
||||
|
||||
/** 停车说明 */
|
||||
@Excel(name = "停车说明")
|
||||
private String parkingInstructions;
|
||||
|
||||
/** 编号 */
|
||||
@Excel(name = "编号")
|
||||
private String serialNumber;
|
||||
|
||||
/** 客户端可见类型 */
|
||||
@Excel(name = "客户端可见类型")
|
||||
private String clientVisible;
|
||||
|
||||
/** 状态(0正常 1停用) */
|
||||
@Excel(name = "状态", readConverterExp = "0=正常,1=停用")
|
||||
private Integer status;
|
||||
|
||||
/** 删除标志(0代表存在 2代表删除) */
|
||||
private Integer delFlag;
|
||||
|
||||
/** 当前计费模型id */
|
||||
@Excel(name = "当前计费模型id")
|
||||
private Long rateModelId;
|
||||
|
||||
/** 图片id */
|
||||
@Excel(name = "图片id")
|
||||
private String imgId;
|
||||
|
||||
/** 营业说明 */
|
||||
@Excel(name = "营业说明")
|
||||
private String businessInstructions;
|
||||
|
||||
/** 温馨提示说明 */
|
||||
@Excel(name = "温馨提示说明")
|
||||
private String reminderInstructions;
|
||||
|
||||
/**
|
||||
* 对接第三方平台及监管平台的operatorId
|
||||
*/
|
||||
private String operatorIdEvcs;
|
||||
|
||||
/**
|
||||
* 站点电话
|
||||
*/
|
||||
private String serviceTel;
|
||||
|
||||
|
||||
/**
|
||||
*侧位数量
|
||||
*/
|
||||
private Integer parkNums;
|
||||
|
||||
|
||||
public String getOperatorIdEvcs() {
|
||||
|
||||
return operatorIdEvcs;
|
||||
}
|
||||
|
||||
public void setOperatorIdEvcs(String operatorIdEvcs) {
|
||||
|
||||
this.operatorIdEvcs = operatorIdEvcs;
|
||||
}
|
||||
|
||||
public void setChargingStationId(Long chargingStationId)
|
||||
{
|
||||
this.chargingStationId = chargingStationId;
|
||||
}
|
||||
|
||||
public Long getChargingStationId()
|
||||
{
|
||||
return chargingStationId;
|
||||
}
|
||||
public void setName(String name)
|
||||
{
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getName()
|
||||
{
|
||||
return name;
|
||||
}
|
||||
public void setOperatorId(Long operatorId)
|
||||
{
|
||||
this.operatorId = operatorId;
|
||||
}
|
||||
|
||||
public Long getOperatorId()
|
||||
{
|
||||
return operatorId;
|
||||
}
|
||||
public void setType(Integer type)
|
||||
{
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public Integer getType()
|
||||
{
|
||||
return type;
|
||||
}
|
||||
|
||||
public String getServiceFacilities()
|
||||
{
|
||||
return serviceFacilities;
|
||||
}
|
||||
public void setPeripheryFacilities(String peripheryFacilities)
|
||||
{
|
||||
this.peripheryFacilities = peripheryFacilities;
|
||||
}
|
||||
|
||||
public String getPeripheryFacilities()
|
||||
{
|
||||
return peripheryFacilities;
|
||||
}
|
||||
public void setAreaCode(Integer areaCode)
|
||||
{
|
||||
this.areaCode = areaCode;
|
||||
}
|
||||
|
||||
public Integer getAreaCode()
|
||||
{
|
||||
return areaCode;
|
||||
}
|
||||
public void setAddress(String address)
|
||||
{
|
||||
this.address = address;
|
||||
}
|
||||
|
||||
public String getAddress()
|
||||
{
|
||||
return address;
|
||||
}
|
||||
public void setDetailedAddress(String detailedAddress)
|
||||
{
|
||||
this.detailedAddress = detailedAddress;
|
||||
}
|
||||
|
||||
public String getDetailedAddress()
|
||||
{
|
||||
return detailedAddress;
|
||||
}
|
||||
public void setLongitude(String longitude)
|
||||
{
|
||||
this.longitude = longitude;
|
||||
}
|
||||
|
||||
public String getLongitude()
|
||||
{
|
||||
return longitude;
|
||||
}
|
||||
public void setLatitude(String latitude)
|
||||
{
|
||||
this.latitude = latitude;
|
||||
}
|
||||
|
||||
public String getLatitude()
|
||||
{
|
||||
return latitude;
|
||||
}
|
||||
public void setParkingInstructions(String parkingInstructions)
|
||||
{
|
||||
this.parkingInstructions = parkingInstructions;
|
||||
}
|
||||
|
||||
public String getParkingInstructions()
|
||||
{
|
||||
return parkingInstructions;
|
||||
}
|
||||
public void setSerialNumber(String serialNumber)
|
||||
{
|
||||
this.serialNumber = serialNumber;
|
||||
}
|
||||
|
||||
public String getSerialNumber()
|
||||
{
|
||||
return serialNumber;
|
||||
}
|
||||
public void setClientVisible(String clientVisible)
|
||||
{
|
||||
this.clientVisible = clientVisible;
|
||||
}
|
||||
|
||||
public String getClientVisible()
|
||||
{
|
||||
return clientVisible;
|
||||
}
|
||||
public void setStatus(Integer status)
|
||||
{
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public Integer getStatus()
|
||||
{
|
||||
return status;
|
||||
}
|
||||
public void setDelFlag(Integer delFlag)
|
||||
{
|
||||
this.delFlag = delFlag;
|
||||
}
|
||||
|
||||
public Integer getDelFlag()
|
||||
{
|
||||
return delFlag;
|
||||
}
|
||||
public void setRateModelId(Long rateModelId)
|
||||
{
|
||||
this.rateModelId = rateModelId;
|
||||
}
|
||||
|
||||
public Long getRateModelId()
|
||||
{
|
||||
return rateModelId;
|
||||
}
|
||||
|
||||
public String getImgId() {
|
||||
|
||||
return imgId;
|
||||
}
|
||||
|
||||
public void setImgId(String imgId) {
|
||||
|
||||
this.imgId = imgId;
|
||||
}
|
||||
|
||||
public String getBusinessInstructions() {
|
||||
|
||||
return businessInstructions;
|
||||
}
|
||||
|
||||
public void setBusinessInstructions(String businessInstructions) {
|
||||
|
||||
this.businessInstructions = businessInstructions;
|
||||
}
|
||||
|
||||
public String getReminderInstructions() {
|
||||
|
||||
return reminderInstructions;
|
||||
}
|
||||
|
||||
public void setReminderInstructions(String reminderInstructions) {
|
||||
|
||||
this.reminderInstructions = reminderInstructions;
|
||||
}
|
||||
|
||||
public Integer getConstructionSite() {
|
||||
|
||||
return constructionSite;
|
||||
}
|
||||
|
||||
public void setConstructionSite(Integer constructionSite) {
|
||||
|
||||
this.constructionSite = constructionSite;
|
||||
}
|
||||
|
||||
public Integer getStationType() {
|
||||
|
||||
return stationType;
|
||||
}
|
||||
|
||||
public void setStationType(Integer stationType) {
|
||||
|
||||
this.stationType = stationType;
|
||||
}
|
||||
|
||||
public void setServiceFacilities(String serviceFacilities) {
|
||||
|
||||
this.serviceFacilities = serviceFacilities;
|
||||
}
|
||||
|
||||
public String getServiceTel() {
|
||||
|
||||
return serviceTel;
|
||||
}
|
||||
|
||||
public void setServiceTel(String serviceTel) {
|
||||
|
||||
this.serviceTel = serviceTel;
|
||||
}
|
||||
|
||||
public Integer getParkNums() {
|
||||
|
||||
return parkNums;
|
||||
}
|
||||
|
||||
public void setParkNums(Integer parkNums) {
|
||||
|
||||
this.parkNums = parkNums;
|
||||
}
|
||||
|
||||
}
|
||||
@ -1,17 +1,19 @@
|
||||
package com.xhpc.workorder.domain;
|
||||
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
import lombok.Data;
|
||||
|
||||
import javax.persistence.Table;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* xhpc_station_device
|
||||
* @author
|
||||
*/
|
||||
@Data
|
||||
@Table(name = "xhpc_station_device")
|
||||
public class XhpcStationDeviceDomain {
|
||||
|
||||
|
||||
private Long deviceId;
|
||||
public class XhpcStationDeviceDomain implements Serializable {
|
||||
/**
|
||||
* 设备ID
|
||||
*/
|
||||
private Integer deviceId;
|
||||
|
||||
/**
|
||||
* 设备名称
|
||||
@ -24,12 +26,12 @@ public class XhpcStationDeviceDomain {
|
||||
private String deviceType;
|
||||
|
||||
/**
|
||||
* 所属场站ID
|
||||
* 所属场站
|
||||
*/
|
||||
private Long stationId;
|
||||
|
||||
/**
|
||||
* 上级设备ID(如有)
|
||||
* 上级设备ID
|
||||
*/
|
||||
private Long parentDeviceId;
|
||||
|
||||
@ -38,23 +40,16 @@ public class XhpcStationDeviceDomain {
|
||||
*/
|
||||
private String serialNumber;
|
||||
|
||||
/**
|
||||
* 规格型号
|
||||
*/
|
||||
private String brandModel;
|
||||
|
||||
/** 桩类型 */
|
||||
private Integer type;
|
||||
|
||||
/**
|
||||
* 设备状态(0-未启用,1-正常,2-异常,3-维修中,4-待检测)
|
||||
*/
|
||||
private Integer status;
|
||||
private Short status;
|
||||
|
||||
/**
|
||||
* 是否删除(0-正常,2-删除)
|
||||
*/
|
||||
private Integer delFlag;
|
||||
private Short delFlag;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@ -74,4 +69,6 @@ public class XhpcStationDeviceDomain {
|
||||
* 更新人
|
||||
*/
|
||||
private String updateBy;
|
||||
}
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
}
|
||||
@ -1,17 +1,18 @@
|
||||
package com.xhpc.workorder.domain;
|
||||
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
import lombok.Data;
|
||||
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.Table;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* xhpc_work_dept
|
||||
* @author
|
||||
*/
|
||||
@Data
|
||||
@Table(name = "xhpc_work_dept")
|
||||
public class XhpcWorkDeptDomain {
|
||||
|
||||
@Id
|
||||
public class XhpcWorkDeptDomain implements Serializable {
|
||||
/**
|
||||
* 部门ID
|
||||
*/
|
||||
private Long workDeptId;
|
||||
|
||||
/**
|
||||
@ -25,9 +26,9 @@ public class XhpcWorkDeptDomain {
|
||||
private String code;
|
||||
|
||||
/**
|
||||
* 排序值
|
||||
* 排序
|
||||
*/
|
||||
private Integer sort;
|
||||
private Short sort;
|
||||
|
||||
/**
|
||||
* 上级部门ID
|
||||
@ -37,18 +38,18 @@ public class XhpcWorkDeptDomain {
|
||||
/**
|
||||
* 状态(0-未启用,1-已启用)
|
||||
*/
|
||||
private Integer status;
|
||||
private Short status;
|
||||
|
||||
/**
|
||||
* 删除(0-正常,2-删除)
|
||||
*/
|
||||
private Short delFlag;
|
||||
|
||||
/**
|
||||
* 租户ID
|
||||
*/
|
||||
private String tenantId;
|
||||
|
||||
/**
|
||||
* 是否删除(0-正常,2-删除)
|
||||
*/
|
||||
private Integer delFlag;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@ -68,4 +69,6 @@ public class XhpcWorkDeptDomain {
|
||||
* 更新人
|
||||
*/
|
||||
private String updateBy;
|
||||
}
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
}
|
||||
@ -1,24 +1,24 @@
|
||||
package com.xhpc.workorder.domain;
|
||||
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
import lombok.Data;
|
||||
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.Table;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* xhpc_work_order
|
||||
* @author
|
||||
*/
|
||||
@Data
|
||||
@Table(name = "xhpc_work_order")
|
||||
public class XhpcWorkOrderDomain {
|
||||
|
||||
@Id
|
||||
public class XhpcWorkOrderDomain implements Serializable {
|
||||
/**
|
||||
* 工单ID
|
||||
*/
|
||||
private Long workOrderId;
|
||||
|
||||
/**
|
||||
* 工单类型
|
||||
*/
|
||||
private Integer type;
|
||||
private Short type;
|
||||
|
||||
/**
|
||||
* 工单标题
|
||||
@ -26,7 +26,7 @@ public class XhpcWorkOrderDomain {
|
||||
private String title;
|
||||
|
||||
/**
|
||||
* 工单内容
|
||||
* 工单内容描述
|
||||
*/
|
||||
private String content;
|
||||
|
||||
@ -36,29 +36,39 @@ public class XhpcWorkOrderDomain {
|
||||
private String deviceType;
|
||||
|
||||
/**
|
||||
* 设备编码或者订单编码
|
||||
* 编码
|
||||
*/
|
||||
private String serialNumber;
|
||||
|
||||
/**
|
||||
* 原因简单描述
|
||||
* 指派处理部门
|
||||
*/
|
||||
private Long deptId;
|
||||
|
||||
/**
|
||||
* 指派处理人
|
||||
*/
|
||||
private Long userId;
|
||||
|
||||
/**
|
||||
* 故障原因
|
||||
*/
|
||||
private String reason;
|
||||
|
||||
/**
|
||||
* 问题详细处理方式
|
||||
* 详细处理描述
|
||||
*/
|
||||
private String disposalMethod;
|
||||
|
||||
/**
|
||||
* 工单状态
|
||||
* 状态
|
||||
*/
|
||||
private Integer status;
|
||||
private Short status;
|
||||
|
||||
/**
|
||||
* 是否删除(0-正常,2-删除)
|
||||
*/
|
||||
private Integer delFlag;
|
||||
private Short delFlag;
|
||||
|
||||
/**
|
||||
* 租户ID
|
||||
@ -85,13 +95,5 @@ public class XhpcWorkOrderDomain {
|
||||
*/
|
||||
private String updateBy;
|
||||
|
||||
/**
|
||||
* 反馈问题的图片列表
|
||||
*/
|
||||
private List<XhpcWorkOrderImageDomain> questionImageList;
|
||||
|
||||
/**
|
||||
* 回复的图片列表
|
||||
*/
|
||||
private List<XhpcWorkOrderImageDomain> replyImageList;
|
||||
}
|
||||
private static final long serialVersionUID = 1L;
|
||||
}
|
||||
@ -1,17 +1,18 @@
|
||||
package com.xhpc.workorder.domain;
|
||||
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
import lombok.Data;
|
||||
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.Table;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* xhpc_work_order_image
|
||||
* @author
|
||||
*/
|
||||
@Data
|
||||
@Table(name = "xhpc_work_order_image")
|
||||
public class XhpcWorkOrderImageDomain {
|
||||
|
||||
@Id
|
||||
public class XhpcWorkOrderImageDomain implements Serializable {
|
||||
/**
|
||||
* 图片ID
|
||||
*/
|
||||
private Long orderImageId;
|
||||
|
||||
/**
|
||||
@ -20,19 +21,19 @@ public class XhpcWorkOrderImageDomain {
|
||||
private String fileName;
|
||||
|
||||
/**
|
||||
* 文件存储地址
|
||||
* 文件地址
|
||||
*/
|
||||
private String url;
|
||||
|
||||
/**
|
||||
* 文件类型(1-问题展示图片,2-处理反馈图片)
|
||||
*/
|
||||
private Integer type;
|
||||
private Short type;
|
||||
|
||||
/**
|
||||
* 删除标记(0-正常,2-已删除)
|
||||
*/
|
||||
private Integer delFlag;
|
||||
private Short delFlag;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
@ -43,4 +44,6 @@ public class XhpcWorkOrderImageDomain {
|
||||
* 创建人
|
||||
*/
|
||||
private String createBy;
|
||||
}
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
}
|
||||
@ -1,17 +1,18 @@
|
||||
package com.xhpc.workorder.domain;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
import lombok.Data;
|
||||
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.Table;
|
||||
import java.util.Date;
|
||||
|
||||
|
||||
/**
|
||||
* xhpc_work_order_push_message
|
||||
* @author
|
||||
*/
|
||||
@Data
|
||||
@Table(name = "xhpc_work_order_push_message")
|
||||
public class XhpcWorkOrderPushMessageDomain {
|
||||
|
||||
@Id
|
||||
public class XhpcWorkOrderPushMessageDomain implements Serializable {
|
||||
/**
|
||||
* 消息推送ID
|
||||
*/
|
||||
private Long orderPushId;
|
||||
|
||||
/**
|
||||
@ -22,7 +23,7 @@ public class XhpcWorkOrderPushMessageDomain {
|
||||
/**
|
||||
* 推送方式(1-手机短信,2-电子邮件,3-微信公众号,4-微信小程序,5-支付宝小程序,6-其他)
|
||||
*/
|
||||
private Integer type;
|
||||
private Short type;
|
||||
|
||||
/**
|
||||
* 推送内容
|
||||
@ -32,7 +33,7 @@ public class XhpcWorkOrderPushMessageDomain {
|
||||
/**
|
||||
* 推送状态标志(0-创建,1-成功,2-推送失败)
|
||||
*/
|
||||
private Integer status;
|
||||
private Short status;
|
||||
|
||||
/**
|
||||
* 推送失败详细信息
|
||||
@ -63,4 +64,6 @@ public class XhpcWorkOrderPushMessageDomain {
|
||||
* 更新人
|
||||
*/
|
||||
private String updateBy;
|
||||
}
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
}
|
||||
@ -0,0 +1,149 @@
|
||||
package com.xhpc.workorder.domain;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* xhpc_work_station
|
||||
* @author
|
||||
*/
|
||||
@Data
|
||||
public class XhpcWorkStationDomain implements Serializable {
|
||||
/**
|
||||
* 电站id
|
||||
*/
|
||||
private Long workStationId;
|
||||
|
||||
/**
|
||||
* 名称
|
||||
*/
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* 运营商id
|
||||
*/
|
||||
private Long operatorId;
|
||||
|
||||
/**
|
||||
* 电站位置(地上电站、地下电站)
|
||||
*/
|
||||
private Integer type;
|
||||
|
||||
/**
|
||||
* 建设场所
|
||||
*/
|
||||
private Short constructionSite;
|
||||
|
||||
/**
|
||||
* 服务设施
|
||||
*/
|
||||
private String serviceFacilities;
|
||||
|
||||
/**
|
||||
* 周边设施
|
||||
*/
|
||||
private String peripheryFacilities;
|
||||
|
||||
/**
|
||||
* 电站地址
|
||||
*/
|
||||
private String address;
|
||||
|
||||
/**
|
||||
* 详细地址
|
||||
*/
|
||||
private String detailedAddress;
|
||||
|
||||
/**
|
||||
* 经度
|
||||
*/
|
||||
private String longitude;
|
||||
|
||||
/**
|
||||
* 维度
|
||||
*/
|
||||
private String latitude;
|
||||
|
||||
/**
|
||||
* 停车说明
|
||||
*/
|
||||
private String parkingInstructions;
|
||||
|
||||
/**
|
||||
* 编号
|
||||
*/
|
||||
private String serialNumber;
|
||||
|
||||
/**
|
||||
* 状态(0启用 1停用)
|
||||
*/
|
||||
private Integer status;
|
||||
|
||||
/**
|
||||
* 删除标志(0代表存在 2代表删除)
|
||||
*/
|
||||
private Integer delFlag;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
private Date createTime;
|
||||
|
||||
/**
|
||||
* 创建者
|
||||
*/
|
||||
private String createBy;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
private Date updateTime;
|
||||
|
||||
/**
|
||||
* 更新者
|
||||
*/
|
||||
private String updateBy;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
private String remark;
|
||||
|
||||
/**
|
||||
* 营业说明
|
||||
*/
|
||||
private String businessInstructions;
|
||||
|
||||
/**
|
||||
* 温馨提示
|
||||
*/
|
||||
private String reminderInstructions;
|
||||
|
||||
/**
|
||||
* 图片集合
|
||||
*/
|
||||
private String imgId;
|
||||
|
||||
/**
|
||||
* 电站类型
|
||||
*/
|
||||
private Short stationType;
|
||||
|
||||
/**
|
||||
* 站点电话
|
||||
*/
|
||||
private String serviceTel;
|
||||
|
||||
/**
|
||||
* 侧位数量
|
||||
*/
|
||||
private Integer parkNums;
|
||||
|
||||
/**
|
||||
* 租户id
|
||||
*/
|
||||
private String tenantId;
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
}
|
||||
@ -1,35 +1,30 @@
|
||||
package com.xhpc.workorder.domain;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
import lombok.Data;
|
||||
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.Table;
|
||||
import java.util.Date;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* xhpc_work_user
|
||||
* @author
|
||||
*/
|
||||
@Data
|
||||
@Table(name = "xhpc_work_user")
|
||||
public class XhpcWorkUserDomain {
|
||||
|
||||
@Id
|
||||
public class XhpcWorkUserDomain implements Serializable {
|
||||
/**
|
||||
* 人员ID
|
||||
*/
|
||||
private Long workUserId;
|
||||
|
||||
/**
|
||||
* 用户姓名
|
||||
* 人员姓名
|
||||
*/
|
||||
private String userName;
|
||||
|
||||
/**
|
||||
* 部门ID
|
||||
* 所属部门ID
|
||||
*/
|
||||
private Long deptId;
|
||||
|
||||
/**
|
||||
* 部门名称
|
||||
*/
|
||||
private String deptName;
|
||||
|
||||
/**
|
||||
* 岗位名称
|
||||
*/
|
||||
@ -46,24 +41,24 @@ public class XhpcWorkUserDomain {
|
||||
private String email;
|
||||
|
||||
/**
|
||||
* 微信openid
|
||||
* 微信OPENID
|
||||
*/
|
||||
private String wechatOpenid;
|
||||
|
||||
/**
|
||||
* 是否部门负责人
|
||||
*/
|
||||
private Integer isLeader;
|
||||
private Short isLeader;
|
||||
|
||||
/**
|
||||
* 状态(0-未启用,1-正常)
|
||||
*/
|
||||
private Integer status;
|
||||
private Short status;
|
||||
|
||||
/**
|
||||
* 是否删除(0-正常,2-删除)
|
||||
* 删除(0-正常,2-删除)
|
||||
*/
|
||||
private Integer delFlag;
|
||||
private Short delFlag;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
@ -84,4 +79,6 @@ public class XhpcWorkUserDomain {
|
||||
* 更新人
|
||||
*/
|
||||
private String updateBy;
|
||||
}
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
}
|
||||
@ -0,0 +1,17 @@
|
||||
package com.xhpc.workorder.mapper;
|
||||
|
||||
import com.xhpc.workorder.domain.XhpcStationDeviceDomain;
|
||||
|
||||
public interface XhpcStationDeviceMapper {
|
||||
int deleteByPrimaryKey(Integer deviceId);
|
||||
|
||||
int insert(XhpcStationDeviceDomain record);
|
||||
|
||||
int insertSelective(XhpcStationDeviceDomain record);
|
||||
|
||||
XhpcStationDeviceDomain selectByPrimaryKey(Integer deviceId);
|
||||
|
||||
int updateByPrimaryKeySelective(XhpcStationDeviceDomain record);
|
||||
|
||||
int updateByPrimaryKey(XhpcStationDeviceDomain record);
|
||||
}
|
||||
@ -0,0 +1,17 @@
|
||||
package com.xhpc.workorder.mapper;
|
||||
|
||||
import com.xhpc.workorder.domain.XhpcWorkDeptDomain;
|
||||
|
||||
public interface XhpcWorkDeptMapper {
|
||||
int deleteByPrimaryKey(Long workDeptId);
|
||||
|
||||
int insert(XhpcWorkDeptDomain record);
|
||||
|
||||
int insertSelective(XhpcWorkDeptDomain record);
|
||||
|
||||
XhpcWorkDeptDomain selectByPrimaryKey(Long workDeptId);
|
||||
|
||||
int updateByPrimaryKeySelective(XhpcWorkDeptDomain record);
|
||||
|
||||
int updateByPrimaryKey(XhpcWorkDeptDomain record);
|
||||
}
|
||||
@ -0,0 +1,17 @@
|
||||
package com.xhpc.workorder.mapper;
|
||||
|
||||
import com.xhpc.workorder.domain.XhpcWorkOrderImageDomain;
|
||||
|
||||
public interface XhpcWorkOrderImageMapper {
|
||||
int deleteByPrimaryKey(Long orderImageId);
|
||||
|
||||
int insert(XhpcWorkOrderImageDomain record);
|
||||
|
||||
int insertSelective(XhpcWorkOrderImageDomain record);
|
||||
|
||||
XhpcWorkOrderImageDomain selectByPrimaryKey(Long orderImageId);
|
||||
|
||||
int updateByPrimaryKeySelective(XhpcWorkOrderImageDomain record);
|
||||
|
||||
int updateByPrimaryKey(XhpcWorkOrderImageDomain record);
|
||||
}
|
||||
@ -1,10 +1,17 @@
|
||||
package com.xhpc.workorder.mapper;
|
||||
|
||||
|
||||
import com.xhpc.workorder.domain.XhpcWorkOrderDomain;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
@Mapper
|
||||
public interface XhpcWorkOrderMapper {
|
||||
|
||||
}
|
||||
int deleteByPrimaryKey(Long workOrderId);
|
||||
|
||||
int insert(XhpcWorkOrderDomain record);
|
||||
|
||||
int insertSelective(XhpcWorkOrderDomain record);
|
||||
|
||||
XhpcWorkOrderDomain selectByPrimaryKey(Long workOrderId);
|
||||
|
||||
int updateByPrimaryKeySelective(XhpcWorkOrderDomain record);
|
||||
|
||||
int updateByPrimaryKey(XhpcWorkOrderDomain record);
|
||||
}
|
||||
@ -0,0 +1,17 @@
|
||||
package com.xhpc.workorder.mapper;
|
||||
|
||||
import com.xhpc.workorder.domain.XhpcWorkOrderPushMessageDomain;
|
||||
|
||||
public interface XhpcWorkOrderPushMessageMapper {
|
||||
int deleteByPrimaryKey(Long orderPushId);
|
||||
|
||||
int insert(XhpcWorkOrderPushMessageDomain record);
|
||||
|
||||
int insertSelective(XhpcWorkOrderPushMessageDomain record);
|
||||
|
||||
XhpcWorkOrderPushMessageDomain selectByPrimaryKey(Long orderPushId);
|
||||
|
||||
int updateByPrimaryKeySelective(XhpcWorkOrderPushMessageDomain record);
|
||||
|
||||
int updateByPrimaryKey(XhpcWorkOrderPushMessageDomain record);
|
||||
}
|
||||
@ -0,0 +1,17 @@
|
||||
package com.xhpc.workorder.mapper;
|
||||
|
||||
import com.xhpc.workorder.domain.XhpcWorkStationDomain;
|
||||
|
||||
public interface XhpcWorkStationMapper {
|
||||
int deleteByPrimaryKey(Long workStationId);
|
||||
|
||||
int insert(XhpcWorkStationDomain record);
|
||||
|
||||
int insertSelective(XhpcWorkStationDomain record);
|
||||
|
||||
XhpcWorkStationDomain selectByPrimaryKey(Long workStationId);
|
||||
|
||||
int updateByPrimaryKeySelective(XhpcWorkStationDomain record);
|
||||
|
||||
int updateByPrimaryKey(XhpcWorkStationDomain record);
|
||||
}
|
||||
@ -0,0 +1,17 @@
|
||||
package com.xhpc.workorder.mapper;
|
||||
|
||||
import com.xhpc.workorder.domain.XhpcWorkUserDomain;
|
||||
|
||||
public interface XhpcWorkUserMapper {
|
||||
int deleteByPrimaryKey(Long workUserId);
|
||||
|
||||
int insert(XhpcWorkUserDomain record);
|
||||
|
||||
int insertSelective(XhpcWorkUserDomain record);
|
||||
|
||||
XhpcWorkUserDomain selectByPrimaryKey(Long workUserId);
|
||||
|
||||
int updateByPrimaryKeySelective(XhpcWorkUserDomain record);
|
||||
|
||||
int updateByPrimaryKey(XhpcWorkUserDomain record);
|
||||
}
|
||||
@ -0,0 +1,142 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.xhpc.workorder.mapper.XhpcStationDeviceMapper">
|
||||
<resultMap id="BaseResultMap" type="com.xhpc.workorder.domain.XhpcStationDeviceDomain">
|
||||
<id column="device_id" jdbcType="INTEGER" property="deviceId" />
|
||||
<result column="device_name" jdbcType="VARCHAR" property="deviceName" />
|
||||
<result column="device_type" jdbcType="VARCHAR" property="deviceType" />
|
||||
<result column="station_id" jdbcType="BIGINT" property="stationId" />
|
||||
<result column="parent_device_id" jdbcType="BIGINT" property="parentDeviceId" />
|
||||
<result column="serial_number" jdbcType="VARCHAR" property="serialNumber" />
|
||||
<result column="status" jdbcType="SMALLINT" property="status" />
|
||||
<result column="del_flag" jdbcType="SMALLINT" property="delFlag" />
|
||||
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
||||
<result column="create_by" jdbcType="VARCHAR" property="createBy" />
|
||||
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
|
||||
<result column="update_by" jdbcType="VARCHAR" property="updateBy" />
|
||||
</resultMap>
|
||||
<sql id="Base_Column_List">
|
||||
device_id, device_name, device_type, station_id, parent_device_id, serial_number,
|
||||
`status`, del_flag, create_time, create_by, update_time, update_by
|
||||
</sql>
|
||||
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from xhpc_station_device
|
||||
where device_id = #{deviceId,jdbcType=INTEGER}
|
||||
</select>
|
||||
<update id="deleteByPrimaryKey" parameterType="java.lang.Integer">
|
||||
update xhpc_station_device set del_flag = 2
|
||||
where device_id = #{deviceId,jdbcType=INTEGER}
|
||||
</update>
|
||||
<insert id="insert" keyColumn="device_id" keyProperty="deviceId" parameterType="com.xhpc.workorder.domain.XhpcStationDeviceDomain" useGeneratedKeys="true">
|
||||
insert into xhpc_station_device (device_name, device_type, station_id,
|
||||
parent_device_id, serial_number, `status`,
|
||||
del_flag, create_time, create_by,
|
||||
update_time, update_by)
|
||||
values (#{deviceName,jdbcType=VARCHAR}, #{deviceType,jdbcType=VARCHAR}, #{stationId,jdbcType=BIGINT},
|
||||
#{parentDeviceId,jdbcType=BIGINT}, #{serialNumber,jdbcType=VARCHAR}, #{status,jdbcType=SMALLINT},
|
||||
0, SYSDATE(), #{createBy,jdbcType=VARCHAR}, SYSDATE(), #{updateBy,jdbcType=VARCHAR})
|
||||
</insert>
|
||||
<insert id="insertSelective" keyColumn="device_id" keyProperty="deviceId" parameterType="com.xhpc.workorder.domain.XhpcStationDeviceDomain" useGeneratedKeys="true">
|
||||
insert into xhpc_station_device
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="deviceName != null">
|
||||
device_name,
|
||||
</if>
|
||||
<if test="deviceType != null">
|
||||
device_type,
|
||||
</if>
|
||||
<if test="stationId != null">
|
||||
station_id,
|
||||
</if>
|
||||
<if test="parentDeviceId != null">
|
||||
parent_device_id,
|
||||
</if>
|
||||
<if test="serialNumber != null">
|
||||
serial_number,
|
||||
</if>
|
||||
<if test="status != null">
|
||||
`status`,
|
||||
</if>
|
||||
del_flag,
|
||||
create_time,
|
||||
<if test="createBy != null">
|
||||
create_by,
|
||||
</if>
|
||||
update_time,
|
||||
<if test="updateBy != null">
|
||||
update_by,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="deviceName != null">
|
||||
#{deviceName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="deviceType != null">
|
||||
#{deviceType,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="stationId != null">
|
||||
#{stationId,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="parentDeviceId != null">
|
||||
#{parentDeviceId,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="serialNumber != null">
|
||||
#{serialNumber,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="status != null">
|
||||
#{status,jdbcType=SMALLINT},
|
||||
</if>
|
||||
0,
|
||||
sysdate(),
|
||||
<if test="createBy != null">
|
||||
#{createBy,jdbcType=VARCHAR},
|
||||
</if>
|
||||
sysdate(),
|
||||
<if test="updateBy != null">
|
||||
#{updateBy,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.xhpc.workorder.domain.XhpcStationDeviceDomain">
|
||||
update xhpc_station_device
|
||||
<set>
|
||||
<if test="deviceName != null">
|
||||
device_name = #{deviceName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="deviceType != null">
|
||||
device_type = #{deviceType,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="stationId != null">
|
||||
station_id = #{stationId,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="parentDeviceId != null">
|
||||
parent_device_id = #{parentDeviceId,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="serialNumber != null">
|
||||
serial_number = #{serialNumber,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="status != null">
|
||||
`status` = #{status,jdbcType=SMALLINT},
|
||||
</if>
|
||||
update_time = sysdate(),
|
||||
<if test="updateBy != null">
|
||||
update_by = #{updateBy,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</set>
|
||||
where device_id = #{deviceId,jdbcType=INTEGER}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="com.xhpc.workorder.domain.XhpcStationDeviceDomain">
|
||||
update xhpc_station_device
|
||||
set device_name = #{deviceName,jdbcType=VARCHAR},
|
||||
device_type = #{deviceType,jdbcType=VARCHAR},
|
||||
station_id = #{stationId,jdbcType=BIGINT},
|
||||
parent_device_id = #{parentDeviceId,jdbcType=BIGINT},
|
||||
serial_number = #{serialNumber,jdbcType=VARCHAR},
|
||||
`status` = #{status,jdbcType=SMALLINT},
|
||||
update_time = sysdate(),
|
||||
update_by = #{updateBy,jdbcType=VARCHAR}
|
||||
where device_id = #{deviceId,jdbcType=INTEGER}
|
||||
</update>
|
||||
</mapper>
|
||||
@ -0,0 +1,143 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.xhpc.workorder.mapper.XhpcWorkDeptMapper">
|
||||
<resultMap id="BaseResultMap" type="com.xhpc.workorder.domain.XhpcWorkDeptDomain">
|
||||
<id column="work_dept_id" jdbcType="BIGINT" property="workDeptId" />
|
||||
<result column="dept_name" jdbcType="VARCHAR" property="deptName" />
|
||||
<result column="code" jdbcType="VARCHAR" property="code" />
|
||||
<result column="sort" jdbcType="SMALLINT" property="sort" />
|
||||
<result column="parent_dept_id" jdbcType="BIGINT" property="parentDeptId" />
|
||||
<result column="status" jdbcType="SMALLINT" property="status" />
|
||||
<result column="del_flag" jdbcType="SMALLINT" property="delFlag" />
|
||||
<result column="tenant_id" jdbcType="VARCHAR" property="tenantId" />
|
||||
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
||||
<result column="create_by" jdbcType="VARCHAR" property="createBy" />
|
||||
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
|
||||
<result column="update_by" jdbcType="VARCHAR" property="updateBy" />
|
||||
</resultMap>
|
||||
<sql id="Base_Column_List">
|
||||
work_dept_id, dept_name, code, sort, parent_dept_id, `status`, del_flag, tenant_id,
|
||||
create_time, create_by, update_time, update_by
|
||||
</sql>
|
||||
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from xhpc_work_dept
|
||||
where work_dept_id = #{workDeptId,jdbcType=BIGINT}
|
||||
</select>
|
||||
<update id="deleteByPrimaryKey" parameterType="java.lang.Long">
|
||||
update xhpc_work_dept set del_flag=2
|
||||
where work_dept_id = #{workDeptId,jdbcType=BIGINT}
|
||||
</update>
|
||||
<insert id="insert" keyColumn="work_dept_id" keyProperty="workDeptId" parameterType="com.xhpc.workorder.domain.XhpcWorkDeptDomain" useGeneratedKeys="true">
|
||||
insert into xhpc_work_dept (dept_name, code, sort,
|
||||
parent_dept_id, `status`, del_flag,
|
||||
tenant_id, create_time, create_by,
|
||||
update_time, update_by)
|
||||
values (#{deptName,jdbcType=VARCHAR}, #{code,jdbcType=VARCHAR}, #{sort,jdbcType=SMALLINT},
|
||||
#{parentDeptId,jdbcType=BIGINT}, #{status,jdbcType=SMALLINT}, 0,
|
||||
#{tenantId,jdbcType=VARCHAR}, SYSDATE(), #{createBy,jdbcType=VARCHAR},
|
||||
SYSDATE(), #{updateBy,jdbcType=VARCHAR})
|
||||
</insert>
|
||||
<insert id="insertSelective" keyColumn="work_dept_id" keyProperty="workDeptId" parameterType="com.xhpc.workorder.domain.XhpcWorkDeptDomain" useGeneratedKeys="true">
|
||||
insert into xhpc_work_dept
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="deptName != null">
|
||||
dept_name,
|
||||
</if>
|
||||
<if test="code != null">
|
||||
code,
|
||||
</if>
|
||||
<if test="sort != null">
|
||||
sort,
|
||||
</if>
|
||||
<if test="parentDeptId != null">
|
||||
parent_dept_id,
|
||||
</if>
|
||||
<if test="status != null">
|
||||
`status`,
|
||||
</if>
|
||||
del_flag,
|
||||
<if test="tenantId != null">
|
||||
tenant_id,
|
||||
</if>
|
||||
create_time,
|
||||
<if test="createBy != null">
|
||||
create_by,
|
||||
</if>
|
||||
update_time,
|
||||
<if test="updateBy != null">
|
||||
update_by,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="deptName != null">
|
||||
#{deptName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="code != null">
|
||||
#{code,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="sort != null">
|
||||
#{sort,jdbcType=SMALLINT},
|
||||
</if>
|
||||
<if test="parentDeptId != null">
|
||||
#{parentDeptId,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="status != null">
|
||||
#{status,jdbcType=SMALLINT},
|
||||
</if>
|
||||
0,
|
||||
<if test="tenantId != null">
|
||||
#{tenantId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
SYSDATE(),
|
||||
<if test="createBy != null">
|
||||
#{createBy,jdbcType=VARCHAR},
|
||||
</if>
|
||||
SYSDATE(),
|
||||
<if test="updateBy != null">
|
||||
#{updateBy,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.xhpc.workorder.domain.XhpcWorkDeptDomain">
|
||||
update xhpc_work_dept
|
||||
<set>
|
||||
<if test="deptName != null">
|
||||
dept_name = #{deptName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="code != null">
|
||||
code = #{code,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="sort != null">
|
||||
sort = #{sort,jdbcType=SMALLINT},
|
||||
</if>
|
||||
<if test="parentDeptId != null">
|
||||
parent_dept_id = #{parentDeptId,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="status != null">
|
||||
`status` = #{status,jdbcType=SMALLINT},
|
||||
</if>
|
||||
<if test="tenantId != null">
|
||||
tenant_id = #{tenantId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
update_time = SYSDATE(),
|
||||
<if test="updateBy != null">
|
||||
update_by = #{updateBy,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</set>
|
||||
where work_dept_id = #{workDeptId,jdbcType=BIGINT}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="com.xhpc.workorder.domain.XhpcWorkDeptDomain">
|
||||
update xhpc_work_dept
|
||||
set dept_name = #{deptName,jdbcType=VARCHAR},
|
||||
code = #{code,jdbcType=VARCHAR},
|
||||
sort = #{sort,jdbcType=SMALLINT},
|
||||
parent_dept_id = #{parentDeptId,jdbcType=BIGINT},
|
||||
`status` = #{status,jdbcType=SMALLINT},
|
||||
tenant_id = #{tenantId,jdbcType=VARCHAR},
|
||||
update_time = SYSDATE(),
|
||||
update_by = #{updateBy,jdbcType=VARCHAR}
|
||||
where work_dept_id = #{workDeptId,jdbcType=BIGINT}
|
||||
</update>
|
||||
</mapper>
|
||||
@ -0,0 +1,97 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.xhpc.workorder.mapper.XhpcWorkOrderImageMapper">
|
||||
<resultMap id="BaseResultMap" type="com.xhpc.workorder.domain.XhpcWorkOrderImageDomain">
|
||||
<id column="order_image_id" jdbcType="BIGINT" property="orderImageId" />
|
||||
<result column="file_name" jdbcType="VARCHAR" property="fileName" />
|
||||
<result column="url" jdbcType="VARCHAR" property="url" />
|
||||
<result column="type" jdbcType="SMALLINT" property="type" />
|
||||
<result column="del_flag" jdbcType="SMALLINT" property="delFlag" />
|
||||
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
||||
<result column="create_by" jdbcType="VARCHAR" property="createBy" />
|
||||
</resultMap>
|
||||
<sql id="Base_Column_List">
|
||||
order_image_id, file_name, url, `type`, del_flag, create_time, create_by
|
||||
</sql>
|
||||
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from xhpc_work_order_image
|
||||
where order_image_id = #{orderImageId,jdbcType=BIGINT}
|
||||
</select>
|
||||
<update id="deleteByPrimaryKey" parameterType="java.lang.Long">
|
||||
update xhpc_work_order_image set del_flag=2
|
||||
where order_image_id = #{orderImageId,jdbcType=BIGINT}
|
||||
</update>
|
||||
<insert id="insert" keyColumn="order_image_id" keyProperty="orderImageId" parameterType="com.xhpc.workorder.domain.XhpcWorkOrderImageDomain" useGeneratedKeys="true">
|
||||
insert into xhpc_work_order_image (file_name, url, `type`,
|
||||
del_flag, create_time, create_by
|
||||
)
|
||||
values (#{fileName,jdbcType=VARCHAR}, #{url,jdbcType=VARCHAR}, #{type,jdbcType=SMALLINT},
|
||||
0, SYSDATE(), #{createBy,jdbcType=VARCHAR}
|
||||
)
|
||||
</insert>
|
||||
<insert id="insertSelective" keyColumn="order_image_id" keyProperty="orderImageId" parameterType="com.xhpc.workorder.domain.XhpcWorkOrderImageDomain" useGeneratedKeys="true">
|
||||
insert into xhpc_work_order_image
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="fileName != null">
|
||||
file_name,
|
||||
</if>
|
||||
<if test="url != null">
|
||||
url,
|
||||
</if>
|
||||
<if test="type != null">
|
||||
`type`,
|
||||
</if>
|
||||
del_flag,
|
||||
create_time,
|
||||
<if test="createBy != null">
|
||||
create_by,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="fileName != null">
|
||||
#{fileName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="url != null">
|
||||
#{url,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="type != null">
|
||||
#{type,jdbcType=SMALLINT},
|
||||
</if>
|
||||
0,
|
||||
SYSDATE(),
|
||||
<if test="createBy != null">
|
||||
#{createBy,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.xhpc.workorder.domain.XhpcWorkOrderImageDomain">
|
||||
update xhpc_work_order_image
|
||||
<set>
|
||||
<if test="fileName != null">
|
||||
file_name = #{fileName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="url != null">
|
||||
url = #{url,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="type != null">
|
||||
`type` = #{type,jdbcType=SMALLINT},
|
||||
</if>
|
||||
create_time = SYSDATE(),
|
||||
<if test="createBy != null">
|
||||
create_by = #{createBy,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</set>
|
||||
where order_image_id = #{orderImageId,jdbcType=BIGINT}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="com.xhpc.workorder.domain.XhpcWorkOrderImageDomain">
|
||||
update xhpc_work_order_image
|
||||
set file_name = #{fileName,jdbcType=VARCHAR},
|
||||
url = #{url,jdbcType=VARCHAR},
|
||||
`type` = #{type,jdbcType=SMALLINT},
|
||||
create_time = SYSDATE(),
|
||||
create_by = #{createBy,jdbcType=VARCHAR}
|
||||
where order_image_id = #{orderImageId,jdbcType=BIGINT}
|
||||
</update>
|
||||
</mapper>
|
||||
@ -1,5 +1,203 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.xhpc.workorder.mapper.XhpcWorkOrderMapper">
|
||||
|
||||
<resultMap id="BaseResultMap" type="com.xhpc.workorder.domain.XhpcWorkOrderDomain">
|
||||
<id column="work_order_id" jdbcType="BIGINT" property="workOrderId" />
|
||||
<result column="type" jdbcType="SMALLINT" property="type" />
|
||||
<result column="title" jdbcType="VARCHAR" property="title" />
|
||||
<result column="content" jdbcType="VARCHAR" property="content" />
|
||||
<result column="device_type" jdbcType="VARCHAR" property="deviceType" />
|
||||
<result column="serial_number" jdbcType="VARCHAR" property="serialNumber" />
|
||||
<result column="dept_id" jdbcType="BIGINT" property="deptId" />
|
||||
<result column="user_id" jdbcType="BIGINT" property="userId" />
|
||||
<result column="reason" jdbcType="VARCHAR" property="reason" />
|
||||
<result column="disposal_method" jdbcType="VARCHAR" property="disposalMethod" />
|
||||
<result column="status" jdbcType="SMALLINT" property="status" />
|
||||
<result column="del_flag" jdbcType="SMALLINT" property="delFlag" />
|
||||
<result column="tenant_id" jdbcType="VARCHAR" property="tenantId" />
|
||||
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
||||
<result column="create_by" jdbcType="VARCHAR" property="createBy" />
|
||||
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
|
||||
<result column="update_by" jdbcType="VARCHAR" property="updateBy" />
|
||||
</resultMap>
|
||||
<sql id="Base_Column_List">
|
||||
work_order_id, `type`, title, content, device_type, serial_number, dept_id, user_id,
|
||||
reason, disposal_method, `status`, del_flag, tenant_id, create_time, create_by, update_time,
|
||||
update_by
|
||||
</sql>
|
||||
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from xhpc_work_order
|
||||
where work_order_id = #{workOrderId,jdbcType=BIGINT}
|
||||
</select>
|
||||
<update id="deleteByPrimaryKey" parameterType="java.lang.Long">
|
||||
update xhpc_work_order set del_flag=2
|
||||
where work_order_id = #{workOrderId,jdbcType=BIGINT}
|
||||
</update>
|
||||
<insert id="insert" keyColumn="work_order_id" keyProperty="workOrderId" parameterType="com.xhpc.workorder.domain.XhpcWorkOrderDomain" useGeneratedKeys="true">
|
||||
insert into xhpc_work_order (`type`, title, content,
|
||||
device_type, serial_number, dept_id,
|
||||
user_id, reason, disposal_method,
|
||||
`status`, del_flag, tenant_id,
|
||||
create_time, create_by, update_time,
|
||||
update_by)
|
||||
values (#{type,jdbcType=SMALLINT}, #{title,jdbcType=VARCHAR}, #{content,jdbcType=VARCHAR},
|
||||
#{deviceType,jdbcType=VARCHAR}, #{serialNumber,jdbcType=VARCHAR}, #{deptId,jdbcType=BIGINT},
|
||||
#{userId,jdbcType=BIGINT}, #{reason,jdbcType=VARCHAR}, #{disposalMethod,jdbcType=VARCHAR},
|
||||
#{status,jdbcType=SMALLINT}, 0, #{tenantId,jdbcType=VARCHAR},
|
||||
sysdate(), #{createBy,jdbcType=VARCHAR},sysdate(),
|
||||
#{updateBy,jdbcType=VARCHAR})
|
||||
</insert>
|
||||
<insert id="insertSelective" keyColumn="work_order_id" keyProperty="workOrderId" parameterType="com.xhpc.workorder.domain.XhpcWorkOrderDomain" useGeneratedKeys="true">
|
||||
insert into xhpc_work_order
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="type != null">
|
||||
`type`,
|
||||
</if>
|
||||
<if test="title != null">
|
||||
title,
|
||||
</if>
|
||||
<if test="content != null">
|
||||
content,
|
||||
</if>
|
||||
<if test="deviceType != null">
|
||||
device_type,
|
||||
</if>
|
||||
<if test="serialNumber != null">
|
||||
serial_number,
|
||||
</if>
|
||||
<if test="deptId != null">
|
||||
dept_id,
|
||||
</if>
|
||||
<if test="userId != null">
|
||||
user_id,
|
||||
</if>
|
||||
<if test="reason != null">
|
||||
reason,
|
||||
</if>
|
||||
<if test="disposalMethod != null">
|
||||
disposal_method,
|
||||
</if>
|
||||
<if test="status != null">
|
||||
`status`,
|
||||
</if>
|
||||
del_flag,
|
||||
<if test="tenantId != null">
|
||||
tenant_id,
|
||||
</if>
|
||||
create_time,
|
||||
<if test="createBy != null">
|
||||
create_by,
|
||||
</if>
|
||||
update_time,
|
||||
<if test="updateBy != null">
|
||||
update_by,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="type != null">
|
||||
#{type,jdbcType=SMALLINT},
|
||||
</if>
|
||||
<if test="title != null">
|
||||
#{title,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="content != null">
|
||||
#{content,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="deviceType != null">
|
||||
#{deviceType,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="serialNumber != null">
|
||||
#{serialNumber,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="deptId != null">
|
||||
#{deptId,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="userId != null">
|
||||
#{userId,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="reason != null">
|
||||
#{reason,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="disposalMethod != null">
|
||||
#{disposalMethod,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="status != null">
|
||||
#{status,jdbcType=SMALLINT},
|
||||
</if>
|
||||
0,
|
||||
<if test="tenantId != null">
|
||||
#{tenantId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
sysdate(),
|
||||
<if test="createBy != null">
|
||||
#{createBy,jdbcType=VARCHAR},
|
||||
</if>
|
||||
sysdate(),
|
||||
<if test="updateBy != null">
|
||||
#{updateBy,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.xhpc.workorder.domain.XhpcWorkOrderDomain">
|
||||
update xhpc_work_order
|
||||
<set>
|
||||
<if test="type != null">
|
||||
`type` = #{type,jdbcType=SMALLINT},
|
||||
</if>
|
||||
<if test="title != null">
|
||||
title = #{title,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="content != null">
|
||||
content = #{content,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="deviceType != null">
|
||||
device_type = #{deviceType,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="serialNumber != null">
|
||||
serial_number = #{serialNumber,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="deptId != null">
|
||||
dept_id = #{deptId,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="userId != null">
|
||||
user_id = #{userId,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="reason != null">
|
||||
reason = #{reason,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="disposalMethod != null">
|
||||
disposal_method = #{disposalMethod,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="status != null">
|
||||
`status` = #{status,jdbcType=SMALLINT},
|
||||
</if>
|
||||
<if test="tenantId != null">
|
||||
tenant_id = #{tenantId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
update_time = sysdate(),
|
||||
<if test="updateBy != null">
|
||||
update_by = #{updateBy,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</set>
|
||||
where work_order_id = #{workOrderId,jdbcType=BIGINT}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="com.xhpc.workorder.domain.XhpcWorkOrderDomain">
|
||||
update xhpc_work_order
|
||||
set `type` = #{type,jdbcType=SMALLINT},
|
||||
title = #{title,jdbcType=VARCHAR},
|
||||
content = #{content,jdbcType=VARCHAR},
|
||||
device_type = #{deviceType,jdbcType=VARCHAR},
|
||||
serial_number = #{serialNumber,jdbcType=VARCHAR},
|
||||
dept_id = #{deptId,jdbcType=BIGINT},
|
||||
user_id = #{userId,jdbcType=BIGINT},
|
||||
reason = #{reason,jdbcType=VARCHAR},
|
||||
disposal_method = #{disposalMethod,jdbcType=VARCHAR},
|
||||
`status` = #{status,jdbcType=SMALLINT},
|
||||
tenant_id = #{tenantId,jdbcType=VARCHAR},
|
||||
update_time = sysdate(),
|
||||
update_by = #{updateBy,jdbcType=VARCHAR}
|
||||
where work_order_id = #{workOrderId,jdbcType=BIGINT}
|
||||
</update>
|
||||
</mapper>
|
||||
@ -0,0 +1,140 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.xhpc.workorder.mapper.XhpcWorkOrderPushMessageMapper">
|
||||
<resultMap id="BaseResultMap" type="com.xhpc.workorder.domain.XhpcWorkOrderPushMessageDomain">
|
||||
<id column="order_push_id" jdbcType="BIGINT" property="orderPushId" />
|
||||
<result column="target" jdbcType="VARCHAR" property="target" />
|
||||
<result column="type" jdbcType="SMALLINT" property="type" />
|
||||
<result column="content" jdbcType="VARCHAR" property="content" />
|
||||
<result column="status" jdbcType="SMALLINT" property="status" />
|
||||
<result column="fail_msg" jdbcType="VARCHAR" property="failMsg" />
|
||||
<result column="remark" jdbcType="VARCHAR" property="remark" />
|
||||
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
||||
<result column="create_by" jdbcType="VARCHAR" property="createBy" />
|
||||
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
|
||||
<result column="update_by" jdbcType="VARCHAR" property="updateBy" />
|
||||
</resultMap>
|
||||
<sql id="Base_Column_List">
|
||||
order_push_id, target, `type`, content, `status`, fail_msg, remark, create_time,
|
||||
create_by, update_time, update_by
|
||||
</sql>
|
||||
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from xhpc_work_order_push_message
|
||||
where order_push_id = #{orderPushId,jdbcType=BIGINT}
|
||||
</select>
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
|
||||
delete from xhpc_work_order_push_message
|
||||
where order_push_id = #{orderPushId,jdbcType=BIGINT}
|
||||
</delete>
|
||||
<insert id="insert" keyColumn="order_push_id" keyProperty="orderPushId" parameterType="com.xhpc.workorder.domain.XhpcWorkOrderPushMessageDomain" useGeneratedKeys="true">
|
||||
insert into xhpc_work_order_push_message (target, `type`, content,
|
||||
`status`, fail_msg, remark,
|
||||
create_time, create_by, update_time,
|
||||
update_by)
|
||||
values (#{target,jdbcType=VARCHAR}, #{type,jdbcType=SMALLINT}, #{content,jdbcType=VARCHAR},
|
||||
#{status,jdbcType=SMALLINT}, #{failMsg,jdbcType=VARCHAR}, #{remark,jdbcType=VARCHAR},
|
||||
sysdate(), #{createBy,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP},
|
||||
#{updateBy,jdbcType=VARCHAR})
|
||||
</insert>
|
||||
<insert id="insertSelective" keyColumn="order_push_id" keyProperty="orderPushId" parameterType="com.xhpc.workorder.domain.XhpcWorkOrderPushMessageDomain" useGeneratedKeys="true">
|
||||
insert into xhpc_work_order_push_message
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="target != null">
|
||||
target,
|
||||
</if>
|
||||
<if test="type != null">
|
||||
`type`,
|
||||
</if>
|
||||
<if test="content != null">
|
||||
content,
|
||||
</if>
|
||||
<if test="status != null">
|
||||
`status`,
|
||||
</if>
|
||||
<if test="failMsg != null">
|
||||
fail_msg,
|
||||
</if>
|
||||
<if test="remark != null">
|
||||
remark,
|
||||
</if>
|
||||
create_time,
|
||||
<if test="createBy != null">
|
||||
create_by,
|
||||
</if>
|
||||
update_time,
|
||||
<if test="updateBy != null">
|
||||
update_by,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="target != null">
|
||||
#{target,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="type != null">
|
||||
#{type,jdbcType=SMALLINT},
|
||||
</if>
|
||||
<if test="content != null">
|
||||
#{content,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="status != null">
|
||||
#{status,jdbcType=SMALLINT},
|
||||
</if>
|
||||
<if test="failMsg != null">
|
||||
#{failMsg,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="remark != null">
|
||||
#{remark,jdbcType=VARCHAR},
|
||||
</if>
|
||||
sysdate(),
|
||||
<if test="createBy != null">
|
||||
#{createBy,jdbcType=VARCHAR},
|
||||
</if>
|
||||
sysdate(),
|
||||
<if test="updateBy != null">
|
||||
#{updateBy,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.xhpc.workorder.domain.XhpcWorkOrderPushMessageDomain">
|
||||
update xhpc_work_order_push_message
|
||||
<set>
|
||||
<if test="target != null">
|
||||
target = #{target,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="type != null">
|
||||
`type` = #{type,jdbcType=SMALLINT},
|
||||
</if>
|
||||
<if test="content != null">
|
||||
content = #{content,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="status != null">
|
||||
`status` = #{status,jdbcType=SMALLINT},
|
||||
</if>
|
||||
<if test="failMsg != null">
|
||||
fail_msg = #{failMsg,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="remark != null">
|
||||
remark = #{remark,jdbcType=VARCHAR},
|
||||
</if>
|
||||
update_time = sysdate(),
|
||||
<if test="updateBy != null">
|
||||
update_by = #{updateBy,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</set>
|
||||
where order_push_id = #{orderPushId,jdbcType=BIGINT}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="com.xhpc.workorder.domain.XhpcWorkOrderPushMessageDomain">
|
||||
update xhpc_work_order_push_message
|
||||
set target = #{target,jdbcType=VARCHAR},
|
||||
`type` = #{type,jdbcType=SMALLINT},
|
||||
content = #{content,jdbcType=VARCHAR},
|
||||
`status` = #{status,jdbcType=SMALLINT},
|
||||
fail_msg = #{failMsg,jdbcType=VARCHAR},
|
||||
remark = #{remark,jdbcType=VARCHAR},
|
||||
update_time =sysdate(),
|
||||
update_by = #{updateBy,jdbcType=VARCHAR}
|
||||
where order_push_id = #{orderPushId,jdbcType=BIGINT}
|
||||
</update>
|
||||
</mapper>
|
||||
@ -0,0 +1,321 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.xhpc.workorder.mapper.XhpcWorkStationMapper">
|
||||
<resultMap id="BaseResultMap" type="com.xhpc.workorder.domain.XhpcWorkStationDomain">
|
||||
<id column="work_station_id" jdbcType="BIGINT" property="workStationId" />
|
||||
<result column="name" jdbcType="VARCHAR" property="name" />
|
||||
<result column="operator_id" jdbcType="BIGINT" property="operatorId" />
|
||||
<result column="type" jdbcType="INTEGER" property="type" />
|
||||
<result column="construction_site" jdbcType="SMALLINT" property="constructionSite" />
|
||||
<result column="service_facilities" jdbcType="VARCHAR" property="serviceFacilities" />
|
||||
<result column="periphery_facilities" jdbcType="VARCHAR" property="peripheryFacilities" />
|
||||
<result column="address" jdbcType="VARCHAR" property="address" />
|
||||
<result column="detailed_address" jdbcType="VARCHAR" property="detailedAddress" />
|
||||
<result column="longitude" jdbcType="VARCHAR" property="longitude" />
|
||||
<result column="latitude" jdbcType="VARCHAR" property="latitude" />
|
||||
<result column="parking_instructions" jdbcType="VARCHAR" property="parkingInstructions" />
|
||||
<result column="serial_number" jdbcType="VARCHAR" property="serialNumber" />
|
||||
<result column="status" jdbcType="INTEGER" property="status" />
|
||||
<result column="del_flag" jdbcType="INTEGER" property="delFlag" />
|
||||
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
||||
<result column="create_by" jdbcType="VARCHAR" property="createBy" />
|
||||
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
|
||||
<result column="update_by" jdbcType="VARCHAR" property="updateBy" />
|
||||
<result column="remark" jdbcType="VARCHAR" property="remark" />
|
||||
<result column="business_instructions" jdbcType="VARCHAR" property="businessInstructions" />
|
||||
<result column="reminder_instructions" jdbcType="VARCHAR" property="reminderInstructions" />
|
||||
<result column="img_id" jdbcType="VARCHAR" property="imgId" />
|
||||
<result column="station_type" jdbcType="SMALLINT" property="stationType" />
|
||||
<result column="service_tel" jdbcType="VARCHAR" property="serviceTel" />
|
||||
<result column="park_nums" jdbcType="INTEGER" property="parkNums" />
|
||||
<result column="tenant_id" jdbcType="VARCHAR" property="tenantId" />
|
||||
</resultMap>
|
||||
<sql id="Base_Column_List">
|
||||
work_station_id, `name`, operator_id, `type`, construction_site, service_facilities,
|
||||
periphery_facilities, address, detailed_address, longitude, latitude, parking_instructions,
|
||||
serial_number, `status`, del_flag, create_time, create_by, update_time, update_by,
|
||||
remark, business_instructions, reminder_instructions, img_id, station_type, service_tel,
|
||||
park_nums, tenant_id
|
||||
</sql>
|
||||
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from xhpc_work_station
|
||||
where work_station_id = #{workStationId,jdbcType=BIGINT}
|
||||
</select>
|
||||
<update id="deleteByPrimaryKey" parameterType="java.lang.Long">
|
||||
update xhpc_work_station set del_flag=2
|
||||
where work_station_id = #{workStationId,jdbcType=BIGINT}
|
||||
</update>
|
||||
<insert id="insert" keyColumn="work_station_id" keyProperty="workStationId" parameterType="com.xhpc.workorder.domain.XhpcWorkStationDomain" useGeneratedKeys="true">
|
||||
insert into xhpc_work_station (`name`, operator_id, `type`,
|
||||
construction_site, service_facilities, periphery_facilities,
|
||||
address, detailed_address, longitude,
|
||||
latitude, parking_instructions, serial_number,
|
||||
`status`, del_flag, create_time,
|
||||
create_by, update_time, update_by,
|
||||
remark, business_instructions, reminder_instructions,
|
||||
img_id, station_type, service_tel,
|
||||
park_nums, tenant_id)
|
||||
values (#{name,jdbcType=VARCHAR}, #{operatorId,jdbcType=BIGINT}, #{type,jdbcType=INTEGER},
|
||||
#{constructionSite,jdbcType=SMALLINT}, #{serviceFacilities,jdbcType=VARCHAR}, #{peripheryFacilities,jdbcType=VARCHAR},
|
||||
#{address,jdbcType=VARCHAR}, #{detailedAddress,jdbcType=VARCHAR}, #{longitude,jdbcType=VARCHAR},
|
||||
#{latitude,jdbcType=VARCHAR}, #{parkingInstructions,jdbcType=VARCHAR}, #{serialNumber,jdbcType=VARCHAR},
|
||||
#{status,jdbcType=INTEGER}, 0, sysdate(),
|
||||
#{createBy,jdbcType=VARCHAR}, sysdate(), #{updateBy,jdbcType=VARCHAR},
|
||||
#{remark,jdbcType=VARCHAR}, #{businessInstructions,jdbcType=VARCHAR}, #{reminderInstructions,jdbcType=VARCHAR},
|
||||
#{imgId,jdbcType=VARCHAR}, #{stationType,jdbcType=SMALLINT}, #{serviceTel,jdbcType=VARCHAR},
|
||||
#{parkNums,jdbcType=INTEGER}, #{tenantId,jdbcType=VARCHAR})
|
||||
</insert>
|
||||
<insert id="insertSelective" keyColumn="work_station_id" keyProperty="workStationId" parameterType="com.xhpc.workorder.domain.XhpcWorkStationDomain" useGeneratedKeys="true">
|
||||
insert into xhpc_work_station
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="name != null">
|
||||
`name`,
|
||||
</if>
|
||||
<if test="operatorId != null">
|
||||
operator_id,
|
||||
</if>
|
||||
<if test="type != null">
|
||||
`type`,
|
||||
</if>
|
||||
<if test="constructionSite != null">
|
||||
construction_site,
|
||||
</if>
|
||||
<if test="serviceFacilities != null">
|
||||
service_facilities,
|
||||
</if>
|
||||
<if test="peripheryFacilities != null">
|
||||
periphery_facilities,
|
||||
</if>
|
||||
<if test="address != null">
|
||||
address,
|
||||
</if>
|
||||
<if test="detailedAddress != null">
|
||||
detailed_address,
|
||||
</if>
|
||||
<if test="longitude != null">
|
||||
longitude,
|
||||
</if>
|
||||
<if test="latitude != null">
|
||||
latitude,
|
||||
</if>
|
||||
<if test="parkingInstructions != null">
|
||||
parking_instructions,
|
||||
</if>
|
||||
<if test="serialNumber != null">
|
||||
serial_number,
|
||||
</if>
|
||||
<if test="status != null">
|
||||
`status`,
|
||||
</if>
|
||||
del_flag,
|
||||
create_time,
|
||||
<if test="createBy != null">
|
||||
create_by,
|
||||
</if>
|
||||
update_time,
|
||||
<if test="updateBy != null">
|
||||
update_by,
|
||||
</if>
|
||||
<if test="remark != null">
|
||||
remark,
|
||||
</if>
|
||||
<if test="businessInstructions != null">
|
||||
business_instructions,
|
||||
</if>
|
||||
<if test="reminderInstructions != null">
|
||||
reminder_instructions,
|
||||
</if>
|
||||
<if test="imgId != null">
|
||||
img_id,
|
||||
</if>
|
||||
<if test="stationType != null">
|
||||
station_type,
|
||||
</if>
|
||||
<if test="serviceTel != null">
|
||||
service_tel,
|
||||
</if>
|
||||
<if test="parkNums != null">
|
||||
park_nums,
|
||||
</if>
|
||||
<if test="tenantId != null">
|
||||
tenant_id,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="name != null">
|
||||
#{name,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="operatorId != null">
|
||||
#{operatorId,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="type != null">
|
||||
#{type,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="constructionSite != null">
|
||||
#{constructionSite,jdbcType=SMALLINT},
|
||||
</if>
|
||||
<if test="serviceFacilities != null">
|
||||
#{serviceFacilities,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="peripheryFacilities != null">
|
||||
#{peripheryFacilities,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="address != null">
|
||||
#{address,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="detailedAddress != null">
|
||||
#{detailedAddress,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="longitude != null">
|
||||
#{longitude,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="latitude != null">
|
||||
#{latitude,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="parkingInstructions != null">
|
||||
#{parkingInstructions,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="serialNumber != null">
|
||||
#{serialNumber,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="status != null">
|
||||
#{status,jdbcType=INTEGER},
|
||||
</if>
|
||||
0,
|
||||
sysdate(),
|
||||
<if test="createBy != null">
|
||||
#{createBy,jdbcType=VARCHAR},
|
||||
</if>
|
||||
sysdate(),
|
||||
<if test="updateBy != null">
|
||||
#{updateBy,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="remark != null">
|
||||
#{remark,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="businessInstructions != null">
|
||||
#{businessInstructions,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="reminderInstructions != null">
|
||||
#{reminderInstructions,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="imgId != null">
|
||||
#{imgId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="stationType != null">
|
||||
#{stationType,jdbcType=SMALLINT},
|
||||
</if>
|
||||
<if test="serviceTel != null">
|
||||
#{serviceTel,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="parkNums != null">
|
||||
#{parkNums,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="tenantId != null">
|
||||
#{tenantId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.xhpc.workorder.domain.XhpcWorkStationDomain">
|
||||
update xhpc_work_station
|
||||
<set>
|
||||
<if test="name != null">
|
||||
`name` = #{name,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="operatorId != null">
|
||||
operator_id = #{operatorId,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="type != null">
|
||||
`type` = #{type,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="constructionSite != null">
|
||||
construction_site = #{constructionSite,jdbcType=SMALLINT},
|
||||
</if>
|
||||
<if test="serviceFacilities != null">
|
||||
service_facilities = #{serviceFacilities,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="peripheryFacilities != null">
|
||||
periphery_facilities = #{peripheryFacilities,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="address != null">
|
||||
address = #{address,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="detailedAddress != null">
|
||||
detailed_address = #{detailedAddress,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="longitude != null">
|
||||
longitude = #{longitude,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="latitude != null">
|
||||
latitude = #{latitude,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="parkingInstructions != null">
|
||||
parking_instructions = #{parkingInstructions,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="serialNumber != null">
|
||||
serial_number = #{serialNumber,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="status != null">
|
||||
`status` = #{status,jdbcType=INTEGER},
|
||||
</if>
|
||||
update_time = sysdate(),
|
||||
<if test="updateBy != null">
|
||||
update_by = #{updateBy,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="remark != null">
|
||||
remark = #{remark,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="businessInstructions != null">
|
||||
business_instructions = #{businessInstructions,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="reminderInstructions != null">
|
||||
reminder_instructions = #{reminderInstructions,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="imgId != null">
|
||||
img_id = #{imgId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="stationType != null">
|
||||
station_type = #{stationType,jdbcType=SMALLINT},
|
||||
</if>
|
||||
<if test="serviceTel != null">
|
||||
service_tel = #{serviceTel,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="parkNums != null">
|
||||
park_nums = #{parkNums,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="tenantId != null">
|
||||
tenant_id = #{tenantId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</set>
|
||||
where work_station_id = #{workStationId,jdbcType=BIGINT}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="com.xhpc.workorder.domain.XhpcWorkStationDomain">
|
||||
update xhpc_work_station
|
||||
set `name` = #{name,jdbcType=VARCHAR},
|
||||
operator_id = #{operatorId,jdbcType=BIGINT},
|
||||
`type` = #{type,jdbcType=INTEGER},
|
||||
construction_site = #{constructionSite,jdbcType=SMALLINT},
|
||||
service_facilities = #{serviceFacilities,jdbcType=VARCHAR},
|
||||
periphery_facilities = #{peripheryFacilities,jdbcType=VARCHAR},
|
||||
address = #{address,jdbcType=VARCHAR},
|
||||
detailed_address = #{detailedAddress,jdbcType=VARCHAR},
|
||||
longitude = #{longitude,jdbcType=VARCHAR},
|
||||
latitude = #{latitude,jdbcType=VARCHAR},
|
||||
parking_instructions = #{parkingInstructions,jdbcType=VARCHAR},
|
||||
serial_number = #{serialNumber,jdbcType=VARCHAR},
|
||||
`status` = #{status,jdbcType=INTEGER},
|
||||
update_time = sysdate(),
|
||||
update_by = #{updateBy,jdbcType=VARCHAR},
|
||||
remark = #{remark,jdbcType=VARCHAR},
|
||||
business_instructions = #{businessInstructions,jdbcType=VARCHAR},
|
||||
reminder_instructions = #{reminderInstructions,jdbcType=VARCHAR},
|
||||
img_id = #{imgId,jdbcType=VARCHAR},
|
||||
station_type = #{stationType,jdbcType=SMALLINT},
|
||||
service_tel = #{serviceTel,jdbcType=VARCHAR},
|
||||
park_nums = #{parkNums,jdbcType=INTEGER},
|
||||
tenant_id = #{tenantId,jdbcType=VARCHAR}
|
||||
where work_station_id = #{workStationId,jdbcType=BIGINT}
|
||||
</update>
|
||||
</mapper>
|
||||
@ -0,0 +1,167 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.xhpc.workorder.mapper.XhpcWorkUserMapper">
|
||||
<resultMap id="BaseResultMap" type="com.xhpc.workorder.domain.XhpcWorkUserDomain">
|
||||
<id column="work_user_id" jdbcType="BIGINT" property="workUserId" />
|
||||
<result column="user_name" jdbcType="VARCHAR" property="userName" />
|
||||
<result column="dept_id" jdbcType="BIGINT" property="deptId" />
|
||||
<result column="post_name" jdbcType="VARCHAR" property="postName" />
|
||||
<result column="phone" jdbcType="VARCHAR" property="phone" />
|
||||
<result column="email" jdbcType="VARCHAR" property="email" />
|
||||
<result column="wechat_openid" jdbcType="VARCHAR" property="wechatOpenid" />
|
||||
<result column="is_leader" jdbcType="SMALLINT" property="isLeader" />
|
||||
<result column="status" jdbcType="SMALLINT" property="status" />
|
||||
<result column="del_flag" jdbcType="SMALLINT" property="delFlag" />
|
||||
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
||||
<result column="create_by" jdbcType="VARCHAR" property="createBy" />
|
||||
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
|
||||
<result column="update_by" jdbcType="VARCHAR" property="updateBy" />
|
||||
</resultMap>
|
||||
<sql id="Base_Column_List">
|
||||
work_user_id, user_name, dept_id, post_name, phone, email, wechat_openid, is_leader,
|
||||
`status`, del_flag, create_time, create_by, update_time, update_by
|
||||
</sql>
|
||||
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from xhpc_work_user
|
||||
where work_user_id = #{workUserId,jdbcType=BIGINT}
|
||||
</select>
|
||||
<update id="deleteByPrimaryKey" parameterType="java.lang.Long">
|
||||
update xhpc_work_user set del_flag=2
|
||||
where work_user_id = #{workUserId,jdbcType=BIGINT}
|
||||
</update>
|
||||
<insert id="insert" keyColumn="work_user_id" keyProperty="workUserId" parameterType="com.xhpc.workorder.domain.XhpcWorkUserDomain" useGeneratedKeys="true">
|
||||
insert into xhpc_work_user (user_name, dept_id, post_name,
|
||||
phone, email, wechat_openid,
|
||||
is_leader, `status`, del_flag,
|
||||
create_time, create_by, update_time,
|
||||
update_by)
|
||||
values (#{userName,jdbcType=VARCHAR}, #{deptId,jdbcType=BIGINT}, #{postName,jdbcType=VARCHAR},
|
||||
#{phone,jdbcType=VARCHAR}, #{email,jdbcType=VARCHAR}, #{wechatOpenid,jdbcType=VARCHAR},
|
||||
#{isLeader,jdbcType=SMALLINT}, #{status,jdbcType=SMALLINT}, 0,
|
||||
sysdate(), #{createBy,jdbcType=VARCHAR}, sysdate(),
|
||||
#{updateBy,jdbcType=VARCHAR})
|
||||
</insert>
|
||||
<insert id="insertSelective" keyColumn="work_user_id" keyProperty="workUserId" parameterType="com.xhpc.workorder.domain.XhpcWorkUserDomain" useGeneratedKeys="true">
|
||||
insert into xhpc_work_user
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="userName != null">
|
||||
user_name,
|
||||
</if>
|
||||
<if test="deptId != null">
|
||||
dept_id,
|
||||
</if>
|
||||
<if test="postName != null">
|
||||
post_name,
|
||||
</if>
|
||||
<if test="phone != null">
|
||||
phone,
|
||||
</if>
|
||||
<if test="email != null">
|
||||
email,
|
||||
</if>
|
||||
<if test="wechatOpenid != null">
|
||||
wechat_openid,
|
||||
</if>
|
||||
<if test="isLeader != null">
|
||||
is_leader,
|
||||
</if>
|
||||
<if test="status != null">
|
||||
`status`,
|
||||
</if>
|
||||
del_flag,
|
||||
create_time,
|
||||
<if test="createBy != null">
|
||||
create_by,
|
||||
</if>
|
||||
update_time,
|
||||
<if test="updateBy != null">
|
||||
update_by,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="userName != null">
|
||||
#{userName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="deptId != null">
|
||||
#{deptId,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="postName != null">
|
||||
#{postName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="phone != null">
|
||||
#{phone,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="email != null">
|
||||
#{email,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="wechatOpenid != null">
|
||||
#{wechatOpenid,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="isLeader != null">
|
||||
#{isLeader,jdbcType=SMALLINT},
|
||||
</if>
|
||||
<if test="status != null">
|
||||
#{status,jdbcType=SMALLINT},
|
||||
</if>
|
||||
0,
|
||||
sysdate(),
|
||||
<if test="createBy != null">
|
||||
#{createBy,jdbcType=VARCHAR},
|
||||
</if>
|
||||
sysdate(),
|
||||
<if test="updateBy != null">
|
||||
#{updateBy,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.xhpc.workorder.domain.XhpcWorkUserDomain">
|
||||
update xhpc_work_user
|
||||
<set>
|
||||
<if test="userName != null">
|
||||
user_name = #{userName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="deptId != null">
|
||||
dept_id = #{deptId,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="postName != null">
|
||||
post_name = #{postName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="phone != null">
|
||||
phone = #{phone,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="email != null">
|
||||
email = #{email,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="wechatOpenid != null">
|
||||
wechat_openid = #{wechatOpenid,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="isLeader != null">
|
||||
is_leader = #{isLeader,jdbcType=SMALLINT},
|
||||
</if>
|
||||
<if test="status != null">
|
||||
`status` = #{status,jdbcType=SMALLINT},
|
||||
</if>
|
||||
update_time =sysdate(),
|
||||
<if test="updateBy != null">
|
||||
update_by = #{updateBy,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</set>
|
||||
where work_user_id = #{workUserId,jdbcType=BIGINT}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="com.xhpc.workorder.domain.XhpcWorkUserDomain">
|
||||
update xhpc_work_user
|
||||
set user_name = #{userName,jdbcType=VARCHAR},
|
||||
dept_id = #{deptId,jdbcType=BIGINT},
|
||||
post_name = #{postName,jdbcType=VARCHAR},
|
||||
phone = #{phone,jdbcType=VARCHAR},
|
||||
email = #{email,jdbcType=VARCHAR},
|
||||
wechat_openid = #{wechatOpenid,jdbcType=VARCHAR},
|
||||
is_leader = #{isLeader,jdbcType=SMALLINT},
|
||||
`status` = #{status,jdbcType=SMALLINT},
|
||||
update_time = sysdate(),
|
||||
update_by = #{updateBy,jdbcType=VARCHAR}
|
||||
where work_user_id = #{workUserId,jdbcType=BIGINT}
|
||||
</update>
|
||||
</mapper>
|
||||
Loading…
x
Reference in New Issue
Block a user