diff --git a/xhpc-modules/xhpc-workorder/src/main/java/com/xhpc/workorder/domain/XhpcChargingStationDomain.java b/xhpc-modules/xhpc-workorder/src/main/java/com/xhpc/workorder/domain/XhpcChargingStationDomain.java deleted file mode 100644 index 3aaaae67..00000000 --- a/xhpc-modules/xhpc-workorder/src/main/java/com/xhpc/workorder/domain/XhpcChargingStationDomain.java +++ /dev/null @@ -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; - } - -} diff --git a/xhpc-modules/xhpc-workorder/src/main/java/com/xhpc/workorder/domain/XhpcStationDeviceDomain.java b/xhpc-modules/xhpc-workorder/src/main/java/com/xhpc/workorder/domain/XhpcStationDeviceDomain.java index 675c9aeb..c16430dc 100644 --- a/xhpc-modules/xhpc-workorder/src/main/java/com/xhpc/workorder/domain/XhpcStationDeviceDomain.java +++ b/xhpc-modules/xhpc-workorder/src/main/java/com/xhpc/workorder/domain/XhpcStationDeviceDomain.java @@ -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; +} \ No newline at end of file diff --git a/xhpc-modules/xhpc-workorder/src/main/java/com/xhpc/workorder/domain/XhpcWorkDeptDomain.java b/xhpc-modules/xhpc-workorder/src/main/java/com/xhpc/workorder/domain/XhpcWorkDeptDomain.java index e9dac4e7..9fc2d5ae 100644 --- a/xhpc-modules/xhpc-workorder/src/main/java/com/xhpc/workorder/domain/XhpcWorkDeptDomain.java +++ b/xhpc-modules/xhpc-workorder/src/main/java/com/xhpc/workorder/domain/XhpcWorkDeptDomain.java @@ -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; +} \ No newline at end of file diff --git a/xhpc-modules/xhpc-workorder/src/main/java/com/xhpc/workorder/domain/XhpcWorkOrderDomain.java b/xhpc-modules/xhpc-workorder/src/main/java/com/xhpc/workorder/domain/XhpcWorkOrderDomain.java index 56276796..3544a826 100644 --- a/xhpc-modules/xhpc-workorder/src/main/java/com/xhpc/workorder/domain/XhpcWorkOrderDomain.java +++ b/xhpc-modules/xhpc-workorder/src/main/java/com/xhpc/workorder/domain/XhpcWorkOrderDomain.java @@ -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 questionImageList; - - /** - * 回复的图片列表 - */ - private List replyImageList; -} + private static final long serialVersionUID = 1L; +} \ No newline at end of file diff --git a/xhpc-modules/xhpc-workorder/src/main/java/com/xhpc/workorder/domain/XhpcWorkOrderImageDomain.java b/xhpc-modules/xhpc-workorder/src/main/java/com/xhpc/workorder/domain/XhpcWorkOrderImageDomain.java index 74f395c9..90377412 100644 --- a/xhpc-modules/xhpc-workorder/src/main/java/com/xhpc/workorder/domain/XhpcWorkOrderImageDomain.java +++ b/xhpc-modules/xhpc-workorder/src/main/java/com/xhpc/workorder/domain/XhpcWorkOrderImageDomain.java @@ -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; +} \ No newline at end of file diff --git a/xhpc-modules/xhpc-workorder/src/main/java/com/xhpc/workorder/domain/XhpcWorkOrderPushMessageDomain.java b/xhpc-modules/xhpc-workorder/src/main/java/com/xhpc/workorder/domain/XhpcWorkOrderPushMessageDomain.java index 15e45a39..c6fc153d 100644 --- a/xhpc-modules/xhpc-workorder/src/main/java/com/xhpc/workorder/domain/XhpcWorkOrderPushMessageDomain.java +++ b/xhpc-modules/xhpc-workorder/src/main/java/com/xhpc/workorder/domain/XhpcWorkOrderPushMessageDomain.java @@ -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; +} \ No newline at end of file diff --git a/xhpc-modules/xhpc-workorder/src/main/java/com/xhpc/workorder/domain/XhpcWorkStationDomain.java b/xhpc-modules/xhpc-workorder/src/main/java/com/xhpc/workorder/domain/XhpcWorkStationDomain.java new file mode 100644 index 00000000..45bbb89f --- /dev/null +++ b/xhpc-modules/xhpc-workorder/src/main/java/com/xhpc/workorder/domain/XhpcWorkStationDomain.java @@ -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; +} \ No newline at end of file diff --git a/xhpc-modules/xhpc-workorder/src/main/java/com/xhpc/workorder/domain/XhpcWorkUserDomain.java b/xhpc-modules/xhpc-workorder/src/main/java/com/xhpc/workorder/domain/XhpcWorkUserDomain.java index c90de041..baef0eb8 100644 --- a/xhpc-modules/xhpc-workorder/src/main/java/com/xhpc/workorder/domain/XhpcWorkUserDomain.java +++ b/xhpc-modules/xhpc-workorder/src/main/java/com/xhpc/workorder/domain/XhpcWorkUserDomain.java @@ -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; +} \ No newline at end of file diff --git a/xhpc-modules/xhpc-workorder/src/main/java/com/xhpc/workorder/mapper/XhpcStationDeviceMapper.java b/xhpc-modules/xhpc-workorder/src/main/java/com/xhpc/workorder/mapper/XhpcStationDeviceMapper.java new file mode 100644 index 00000000..f0047078 --- /dev/null +++ b/xhpc-modules/xhpc-workorder/src/main/java/com/xhpc/workorder/mapper/XhpcStationDeviceMapper.java @@ -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); +} \ No newline at end of file diff --git a/xhpc-modules/xhpc-workorder/src/main/java/com/xhpc/workorder/mapper/XhpcWorkDeptMapper.java b/xhpc-modules/xhpc-workorder/src/main/java/com/xhpc/workorder/mapper/XhpcWorkDeptMapper.java new file mode 100644 index 00000000..25e15bd7 --- /dev/null +++ b/xhpc-modules/xhpc-workorder/src/main/java/com/xhpc/workorder/mapper/XhpcWorkDeptMapper.java @@ -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); +} \ No newline at end of file diff --git a/xhpc-modules/xhpc-workorder/src/main/java/com/xhpc/workorder/mapper/XhpcWorkOrderImageMapper.java b/xhpc-modules/xhpc-workorder/src/main/java/com/xhpc/workorder/mapper/XhpcWorkOrderImageMapper.java new file mode 100644 index 00000000..7319456a --- /dev/null +++ b/xhpc-modules/xhpc-workorder/src/main/java/com/xhpc/workorder/mapper/XhpcWorkOrderImageMapper.java @@ -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); +} \ No newline at end of file diff --git a/xhpc-modules/xhpc-workorder/src/main/java/com/xhpc/workorder/mapper/XhpcWorkOrderMapper.java b/xhpc-modules/xhpc-workorder/src/main/java/com/xhpc/workorder/mapper/XhpcWorkOrderMapper.java index a1ce2705..cfd0ef81 100644 --- a/xhpc-modules/xhpc-workorder/src/main/java/com/xhpc/workorder/mapper/XhpcWorkOrderMapper.java +++ b/xhpc-modules/xhpc-workorder/src/main/java/com/xhpc/workorder/mapper/XhpcWorkOrderMapper.java @@ -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); +} \ No newline at end of file diff --git a/xhpc-modules/xhpc-workorder/src/main/java/com/xhpc/workorder/mapper/XhpcWorkOrderPushMessageMapper.java b/xhpc-modules/xhpc-workorder/src/main/java/com/xhpc/workorder/mapper/XhpcWorkOrderPushMessageMapper.java new file mode 100644 index 00000000..1a3a8758 --- /dev/null +++ b/xhpc-modules/xhpc-workorder/src/main/java/com/xhpc/workorder/mapper/XhpcWorkOrderPushMessageMapper.java @@ -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); +} \ No newline at end of file diff --git a/xhpc-modules/xhpc-workorder/src/main/java/com/xhpc/workorder/mapper/XhpcWorkStationMapper.java b/xhpc-modules/xhpc-workorder/src/main/java/com/xhpc/workorder/mapper/XhpcWorkStationMapper.java new file mode 100644 index 00000000..1ff05de6 --- /dev/null +++ b/xhpc-modules/xhpc-workorder/src/main/java/com/xhpc/workorder/mapper/XhpcWorkStationMapper.java @@ -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); +} \ No newline at end of file diff --git a/xhpc-modules/xhpc-workorder/src/main/java/com/xhpc/workorder/mapper/XhpcWorkUserMapper.java b/xhpc-modules/xhpc-workorder/src/main/java/com/xhpc/workorder/mapper/XhpcWorkUserMapper.java new file mode 100644 index 00000000..b370ae29 --- /dev/null +++ b/xhpc-modules/xhpc-workorder/src/main/java/com/xhpc/workorder/mapper/XhpcWorkUserMapper.java @@ -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); +} \ No newline at end of file diff --git a/xhpc-modules/xhpc-workorder/src/main/resources/mapper/XhpcStationDeviceMapper.xml b/xhpc-modules/xhpc-workorder/src/main/resources/mapper/XhpcStationDeviceMapper.xml new file mode 100644 index 00000000..dbf5fbc0 --- /dev/null +++ b/xhpc-modules/xhpc-workorder/src/main/resources/mapper/XhpcStationDeviceMapper.xml @@ -0,0 +1,142 @@ + + + + + + + + + + + + + + + + + + + device_id, device_name, device_type, station_id, parent_device_id, serial_number, + `status`, del_flag, create_time, create_by, update_time, update_by + + + + update xhpc_station_device set del_flag = 2 + where device_id = #{deviceId,jdbcType=INTEGER} + + + 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 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, + + + + + #{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}, + + + + + update xhpc_station_device + + + 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 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} + + \ No newline at end of file diff --git a/xhpc-modules/xhpc-workorder/src/main/resources/mapper/XhpcWorkDeptMapper.xml b/xhpc-modules/xhpc-workorder/src/main/resources/mapper/XhpcWorkDeptMapper.xml new file mode 100644 index 00000000..6c86eaa1 --- /dev/null +++ b/xhpc-modules/xhpc-workorder/src/main/resources/mapper/XhpcWorkDeptMapper.xml @@ -0,0 +1,143 @@ + + + + + + + + + + + + + + + + + + + work_dept_id, dept_name, code, sort, parent_dept_id, `status`, del_flag, tenant_id, + create_time, create_by, update_time, update_by + + + + update xhpc_work_dept set del_flag=2 + where work_dept_id = #{workDeptId,jdbcType=BIGINT} + + + 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 into xhpc_work_dept + + + dept_name, + + + code, + + + sort, + + + parent_dept_id, + + + `status`, + + del_flag, + + tenant_id, + + create_time, + + create_by, + + update_time, + + update_by, + + + + + #{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}, + + + + + update xhpc_work_dept + + + 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 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} + + \ No newline at end of file diff --git a/xhpc-modules/xhpc-workorder/src/main/resources/mapper/XhpcWorkOrderImageMapper.xml b/xhpc-modules/xhpc-workorder/src/main/resources/mapper/XhpcWorkOrderImageMapper.xml new file mode 100644 index 00000000..bb2d9e9d --- /dev/null +++ b/xhpc-modules/xhpc-workorder/src/main/resources/mapper/XhpcWorkOrderImageMapper.xml @@ -0,0 +1,97 @@ + + + + + + + + + + + + + + order_image_id, file_name, url, `type`, del_flag, create_time, create_by + + + + update xhpc_work_order_image set del_flag=2 + where order_image_id = #{orderImageId,jdbcType=BIGINT} + + + 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 into xhpc_work_order_image + + + file_name, + + + url, + + + `type`, + + del_flag, + create_time, + + create_by, + + + + + #{fileName,jdbcType=VARCHAR}, + + + #{url,jdbcType=VARCHAR}, + + + #{type,jdbcType=SMALLINT}, + + 0, + SYSDATE(), + + #{createBy,jdbcType=VARCHAR}, + + + + + update xhpc_work_order_image + + + 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 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} + + \ No newline at end of file diff --git a/xhpc-modules/xhpc-workorder/src/main/resources/mapper/XhpcWorkOrderMapper.xml b/xhpc-modules/xhpc-workorder/src/main/resources/mapper/XhpcWorkOrderMapper.xml index eecf0f32..d2c3399d 100644 --- a/xhpc-modules/xhpc-workorder/src/main/resources/mapper/XhpcWorkOrderMapper.xml +++ b/xhpc-modules/xhpc-workorder/src/main/resources/mapper/XhpcWorkOrderMapper.xml @@ -1,5 +1,203 @@ - + + + + + + + + + + + + + + + + + + + + + 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 + + + + update xhpc_work_order set del_flag=2 + where work_order_id = #{workOrderId,jdbcType=BIGINT} + + + 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 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, + + + + + #{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}, + + + + + update xhpc_work_order + + + `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 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} + \ No newline at end of file diff --git a/xhpc-modules/xhpc-workorder/src/main/resources/mapper/XhpcWorkOrderPushMessageMapper.xml b/xhpc-modules/xhpc-workorder/src/main/resources/mapper/XhpcWorkOrderPushMessageMapper.xml new file mode 100644 index 00000000..a1ee3b69 --- /dev/null +++ b/xhpc-modules/xhpc-workorder/src/main/resources/mapper/XhpcWorkOrderPushMessageMapper.xml @@ -0,0 +1,140 @@ + + + + + + + + + + + + + + + + + + order_push_id, target, `type`, content, `status`, fail_msg, remark, create_time, + create_by, update_time, update_by + + + + delete from xhpc_work_order_push_message + where order_push_id = #{orderPushId,jdbcType=BIGINT} + + + 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 into xhpc_work_order_push_message + + + target, + + + `type`, + + + content, + + + `status`, + + + fail_msg, + + + remark, + + create_time, + + create_by, + + update_time, + + update_by, + + + + + #{target,jdbcType=VARCHAR}, + + + #{type,jdbcType=SMALLINT}, + + + #{content,jdbcType=VARCHAR}, + + + #{status,jdbcType=SMALLINT}, + + + #{failMsg,jdbcType=VARCHAR}, + + + #{remark,jdbcType=VARCHAR}, + + sysdate(), + + #{createBy,jdbcType=VARCHAR}, + + sysdate(), + + #{updateBy,jdbcType=VARCHAR}, + + + + + update xhpc_work_order_push_message + + + 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 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} + + \ No newline at end of file diff --git a/xhpc-modules/xhpc-workorder/src/main/resources/mapper/XhpcWorkStationMapper.xml b/xhpc-modules/xhpc-workorder/src/main/resources/mapper/XhpcWorkStationMapper.xml new file mode 100644 index 00000000..26592e72 --- /dev/null +++ b/xhpc-modules/xhpc-workorder/src/main/resources/mapper/XhpcWorkStationMapper.xml @@ -0,0 +1,321 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 + + + + update xhpc_work_station set del_flag=2 + where work_station_id = #{workStationId,jdbcType=BIGINT} + + + 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 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, + + + + + #{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}, + + + + + update xhpc_work_station + + + `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 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} + + \ No newline at end of file diff --git a/xhpc-modules/xhpc-workorder/src/main/resources/mapper/XhpcWorkUserMapper.xml b/xhpc-modules/xhpc-workorder/src/main/resources/mapper/XhpcWorkUserMapper.xml new file mode 100644 index 00000000..2e951f4a --- /dev/null +++ b/xhpc-modules/xhpc-workorder/src/main/resources/mapper/XhpcWorkUserMapper.xml @@ -0,0 +1,167 @@ + + + + + + + + + + + + + + + + + + + + + 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 + + + + update xhpc_work_user set del_flag=2 + where work_user_id = #{workUserId,jdbcType=BIGINT} + + + 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 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, + + + + + #{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}, + + + + + update xhpc_work_user + + + 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 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} + + \ No newline at end of file