master
parent
3386610822
commit
31be5bbe21
@ -0,0 +1,29 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<parent>
|
||||
<artifactId>ruoyi</artifactId>
|
||||
<groupId>com.ruoyi</groupId>
|
||||
<version>4.8.1</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<artifactId>ruoyi-api</artifactId>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>com.ruoyi</groupId>
|
||||
<artifactId>ruoyi-common</artifactId>
|
||||
<optional>true</optional>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.ruoyi</groupId>
|
||||
<artifactId>ruoyi-pm</artifactId>
|
||||
<version>4.8.1</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
|
||||
|
||||
</dependencies>
|
||||
|
||||
</project>
|
||||
@ -0,0 +1,38 @@
|
||||
package com.ruoyi.api.controller;
|
||||
|
||||
import com.ruoyi.api.service.impl.ApiService;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.pm.domain.PmBasePersonInfo;
|
||||
import com.ruoyi.pm.service.IPmBasePersonInfoService;
|
||||
import com.ruoyi.pm.service.IPmRecordSanService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
|
||||
/**
|
||||
* @author wanghao
|
||||
* @date 2024/1/11 8:55
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/api")
|
||||
public class ApiController {
|
||||
|
||||
@Autowired
|
||||
private ApiService apiService;
|
||||
|
||||
@Autowired
|
||||
private IPmRecordSanService pmRecordSanService;
|
||||
@Autowired
|
||||
private IPmBasePersonInfoService pmBasePersonInfoService;
|
||||
|
||||
@PostMapping("/selectPersonInfo")
|
||||
public AjaxResult selectPersonInfo(String epc) {
|
||||
PmBasePersonInfo info = pmBasePersonInfoService.selectPersonInfoByEpc(epc);
|
||||
if (info != null) {
|
||||
return AjaxResult.success(info);
|
||||
}
|
||||
return AjaxResult.error("未查询到该人员信息");
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,55 @@
|
||||
package com.ruoyi.api.controller;
|
||||
|
||||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.ruoyi.api.domain.APKVersion;
|
||||
import com.ruoyi.api.service.impl.LoginService;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
/**
|
||||
* Created by wangh on 2020/7/17-15:18。
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/api")
|
||||
public class LoginController {
|
||||
@Autowired
|
||||
LoginService service;
|
||||
|
||||
|
||||
|
||||
@GetMapping("/login/finduser")
|
||||
public String finduser(String name, String pass){
|
||||
System.out.println("登录名称= "+name+" pass= "+pass);
|
||||
return service.login(name,pass);
|
||||
}
|
||||
@GetMapping("/login/finduser1")
|
||||
public AjaxResult finduser1(String name, String pass){
|
||||
System.out.println("登录名称= "+name+" pass= "+pass);
|
||||
return service.login1(name,pass);
|
||||
}
|
||||
|
||||
@GetMapping("/getVersion")
|
||||
public String getVersion(){
|
||||
APKVersion apkVersion=service.getVersion();
|
||||
apkVersion.setCode(0);
|
||||
apkVersion.setMsg("");
|
||||
if (apkVersion==null){
|
||||
apkVersion=new APKVersion();
|
||||
apkVersion.setUpdateStatus(0);
|
||||
}else {
|
||||
apkVersion.setUpdateStatus(1);
|
||||
}
|
||||
|
||||
|
||||
String s = JSONObject.toJSONString(apkVersion);
|
||||
System.out.println("请求版本信息"+s);
|
||||
return s;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
@ -0,0 +1,117 @@
|
||||
package com.ruoyi.api.domain;
|
||||
|
||||
import com.alibaba.fastjson.annotation.JSONField;
|
||||
|
||||
/**
|
||||
* 手持版本升级对象 pda_apk_version
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2023-04-06
|
||||
*/
|
||||
public class APKVersion {
|
||||
@JSONField(name = "Code")
|
||||
private int Code;
|
||||
@JSONField(name = "Msg")
|
||||
private String Msg;
|
||||
@JSONField(name = "UpdateStatus")
|
||||
private int UpdateStatus;
|
||||
@JSONField(name = "VersionCode")
|
||||
private Long VersionCode;
|
||||
@JSONField(name = "VersionName")
|
||||
private String VersionName;
|
||||
@JSONField(name = "ModifyContent")
|
||||
private String ModifyContent;
|
||||
@JSONField(name = "DownloadUrl")
|
||||
private String DownloadUrl;
|
||||
@JSONField(name = "ApkSize")
|
||||
private int ApkSize;
|
||||
@JSONField(name = "ApkMd5")
|
||||
private String ApkMd5;
|
||||
|
||||
public int getCode() {
|
||||
return Code;
|
||||
}
|
||||
|
||||
public void setCode(int code) {
|
||||
Code = code;
|
||||
}
|
||||
|
||||
public String getMsg() {
|
||||
return Msg;
|
||||
}
|
||||
|
||||
public void setMsg(String msg) {
|
||||
Msg = msg;
|
||||
}
|
||||
|
||||
public int getUpdateStatus() {
|
||||
return UpdateStatus;
|
||||
}
|
||||
|
||||
public void setUpdateStatus(int updateStatus) {
|
||||
UpdateStatus = updateStatus;
|
||||
}
|
||||
|
||||
public Long getVersionCode() {
|
||||
return VersionCode;
|
||||
}
|
||||
|
||||
public void setVersionCode(Long versionCode) {
|
||||
VersionCode = versionCode;
|
||||
}
|
||||
|
||||
public String getVersionName() {
|
||||
return VersionName;
|
||||
}
|
||||
|
||||
public void setVersionName(String versionName) {
|
||||
VersionName = versionName;
|
||||
}
|
||||
|
||||
public String getModifyContent() {
|
||||
return ModifyContent;
|
||||
}
|
||||
|
||||
public void setModifyContent(String modifyContent) {
|
||||
ModifyContent = modifyContent;
|
||||
}
|
||||
|
||||
public String getDownloadUrl() {
|
||||
return DownloadUrl;
|
||||
}
|
||||
|
||||
public void setDownloadUrl(String downloadUrl) {
|
||||
DownloadUrl = downloadUrl;
|
||||
}
|
||||
|
||||
public int getApkSize() {
|
||||
return ApkSize;
|
||||
}
|
||||
|
||||
public void setApkSize(int apkSize) {
|
||||
ApkSize = apkSize;
|
||||
}
|
||||
|
||||
public String getApkMd5() {
|
||||
return ApkMd5;
|
||||
}
|
||||
|
||||
public void setApkMd5(String apkMd5) {
|
||||
ApkMd5 = apkMd5;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "APKVersion{" +
|
||||
"Code=" + Code +
|
||||
", Msg='" + Msg + '\'' +
|
||||
", UpdateStatus=" + UpdateStatus +
|
||||
", VersionCode=" + VersionCode +
|
||||
", VersionName='" + VersionName + '\'' +
|
||||
", ModifyContent='" + ModifyContent + '\'' +
|
||||
", DownloadUrl='" + DownloadUrl + '\'' +
|
||||
", ApkSize=" + ApkSize +
|
||||
", ApkMd5='" + ApkMd5 + '\'' +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,45 @@
|
||||
package com.ruoyi.api.domain;
|
||||
|
||||
/**
|
||||
* @author wanghao
|
||||
* @date 2023/8/23 10:25
|
||||
*/
|
||||
public class ApiUser {
|
||||
private int id;
|
||||
private String name;
|
||||
private int status;
|
||||
private String role_name;
|
||||
|
||||
|
||||
public int getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(int id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public int getStatus() {
|
||||
return status;
|
||||
}
|
||||
|
||||
public void setStatus(int status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public String getRole_name() {
|
||||
return role_name;
|
||||
}
|
||||
|
||||
public void setRole_name(String role_name) {
|
||||
this.role_name = role_name;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,33 @@
|
||||
package com.ruoyi.api.domain;
|
||||
|
||||
public class BroadCountNumber {
|
||||
private String areaName;
|
||||
private String locationCode;
|
||||
private int countNumber;
|
||||
|
||||
|
||||
public String getAreaName() {
|
||||
|
||||
return areaName;
|
||||
}
|
||||
|
||||
public void setAreaName(String areaName) {
|
||||
this.areaName = areaName;
|
||||
}
|
||||
|
||||
public String getLocationCode() {
|
||||
return locationCode;
|
||||
}
|
||||
|
||||
public void setLocationCode(String locationCode) {
|
||||
this.locationCode = locationCode;
|
||||
}
|
||||
|
||||
public int getCountNumber() {
|
||||
return countNumber;
|
||||
}
|
||||
|
||||
public void setCountNumber(int countNumber) {
|
||||
this.countNumber = countNumber;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,69 @@
|
||||
package com.ruoyi.api.domain;
|
||||
|
||||
public class CheckTaskInfo {
|
||||
private int index;
|
||||
private Long id;
|
||||
private Long areaId;
|
||||
private String locationCode;
|
||||
private String areaName;
|
||||
private String taskState;
|
||||
|
||||
private Long inspectionId;
|
||||
|
||||
|
||||
public Long getInspectionId() {
|
||||
return inspectionId;
|
||||
}
|
||||
|
||||
public void setInspectionId(Long inspectionId) {
|
||||
this.inspectionId = inspectionId;
|
||||
}
|
||||
|
||||
public Long getAreaId() {
|
||||
return areaId;
|
||||
}
|
||||
|
||||
public void setAreaId(Long areaId) {
|
||||
this.areaId = areaId;
|
||||
}
|
||||
|
||||
public String getTaskState() {
|
||||
return taskState;
|
||||
}
|
||||
|
||||
public void setTaskState(String taskState) {
|
||||
this.taskState = taskState;
|
||||
}
|
||||
|
||||
public int getIndex() {
|
||||
return index;
|
||||
}
|
||||
|
||||
public void setIndex(int index) {
|
||||
this.index = index;
|
||||
}
|
||||
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getLocationCode() {
|
||||
return locationCode;
|
||||
}
|
||||
|
||||
public void setLocationCode(String locationCode) {
|
||||
this.locationCode = locationCode;
|
||||
}
|
||||
|
||||
public String getAreaName() {
|
||||
return areaName;
|
||||
}
|
||||
|
||||
public void setAreaName(String areaName) {
|
||||
this.areaName = areaName;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,65 @@
|
||||
package com.ruoyi.api.domain;
|
||||
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author wanghao
|
||||
* @date 2024/1/11 16:21
|
||||
*/
|
||||
public class InStoreDto {
|
||||
|
||||
private String binchCode;
|
||||
private String selectManuText;
|
||||
private String selectLocationText;
|
||||
private List<String> epcList;
|
||||
private String submitUser;
|
||||
private Long manufacturerId;
|
||||
public String getBinchCode() {
|
||||
return binchCode;
|
||||
}
|
||||
|
||||
public void setBinchCode(String binchCode) {
|
||||
this.binchCode = binchCode;
|
||||
}
|
||||
|
||||
public String getSelectManuText() {
|
||||
return selectManuText;
|
||||
}
|
||||
|
||||
public void setSelectManuText(String selectManuText) {
|
||||
this.selectManuText = selectManuText;
|
||||
}
|
||||
|
||||
public String getSelectLocationText() {
|
||||
return selectLocationText;
|
||||
}
|
||||
|
||||
public void setSelectLocationText(String selectLocationText) {
|
||||
this.selectLocationText = selectLocationText;
|
||||
}
|
||||
|
||||
public List<String> getEpcList() {
|
||||
return epcList;
|
||||
}
|
||||
|
||||
public void setEpcList(List<String> epcList) {
|
||||
this.epcList = epcList;
|
||||
}
|
||||
|
||||
public String getSubmitUser() {
|
||||
return submitUser;
|
||||
}
|
||||
|
||||
public void setSubmitUser(String submitUser) {
|
||||
this.submitUser = submitUser;
|
||||
}
|
||||
|
||||
public Long getManufacturerId() {
|
||||
return manufacturerId;
|
||||
}
|
||||
|
||||
public void setManufacturerId(Long manufacturerId) {
|
||||
this.manufacturerId = manufacturerId;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,78 @@
|
||||
package com.ruoyi.api.domain;
|
||||
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
|
||||
public class NoPowerDevice {
|
||||
|
||||
/** 摆放桩位 */
|
||||
@Excel(name = "摆放桩位")
|
||||
private String locationName;
|
||||
|
||||
/** 设备编码 */
|
||||
@Excel(name = "设备编码")
|
||||
private String deviceCode;
|
||||
|
||||
/** 设备名称 */
|
||||
@Excel(name = "设备名称")
|
||||
private String deviceName;
|
||||
|
||||
/** 设备类型 */
|
||||
@Excel(name = "设备类型")
|
||||
private Long deviceType;
|
||||
|
||||
/** 使用状态 */
|
||||
@Excel(name = "使用状态 0=空闲 1=使用中")
|
||||
private String useState;
|
||||
|
||||
/** 设备状态 */
|
||||
@Excel(name = "设备状态 0=停用 1=正常 2=维修中")
|
||||
private String deviceState;
|
||||
|
||||
public String getLocationName() {
|
||||
return locationName;
|
||||
}
|
||||
|
||||
public void setLocationName(String locationName) {
|
||||
this.locationName = locationName;
|
||||
}
|
||||
|
||||
public String getDeviceCode() {
|
||||
return deviceCode;
|
||||
}
|
||||
|
||||
public void setDeviceCode(String deviceCode) {
|
||||
this.deviceCode = deviceCode;
|
||||
}
|
||||
|
||||
public String getDeviceName() {
|
||||
return deviceName;
|
||||
}
|
||||
|
||||
public void setDeviceName(String deviceName) {
|
||||
this.deviceName = deviceName;
|
||||
}
|
||||
|
||||
public Long getDeviceType() {
|
||||
return deviceType;
|
||||
}
|
||||
|
||||
public void setDeviceType(Long deviceType) {
|
||||
this.deviceType = deviceType;
|
||||
}
|
||||
|
||||
public String getUseState() {
|
||||
return useState;
|
||||
}
|
||||
|
||||
public void setUseState(String useState) {
|
||||
this.useState = useState;
|
||||
}
|
||||
|
||||
public String getDeviceState() {
|
||||
return deviceState;
|
||||
}
|
||||
|
||||
public void setDeviceState(String deviceState) {
|
||||
this.deviceState = deviceState;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,50 @@
|
||||
package com.ruoyi.api.domain;
|
||||
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author wanghao
|
||||
* @date 2024/1/17 16:17
|
||||
*/
|
||||
public class OutStoreDto {
|
||||
private List<String> epcList;
|
||||
private String areaCode;
|
||||
private String submitUser;
|
||||
private String useUser;
|
||||
|
||||
|
||||
|
||||
public List<String> getEpcList() {
|
||||
return epcList;
|
||||
}
|
||||
|
||||
public void setEpcList(List<String> epcList) {
|
||||
this.epcList = epcList;
|
||||
}
|
||||
|
||||
public String getAreaCode() {
|
||||
return areaCode;
|
||||
}
|
||||
|
||||
public void setAreaCode(String areaCode) {
|
||||
this.areaCode = areaCode;
|
||||
}
|
||||
|
||||
public String getSubmitUser() {
|
||||
return submitUser;
|
||||
}
|
||||
|
||||
public void setSubmitUser(String submitUser) {
|
||||
this.submitUser = submitUser;
|
||||
}
|
||||
|
||||
public String getUseUser() {
|
||||
return useUser;
|
||||
}
|
||||
|
||||
public void setUseUser(String useUser) {
|
||||
this.useUser = useUser;
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,122 @@
|
||||
package com.ruoyi.api.domain;
|
||||
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
|
||||
/**
|
||||
* 手持版本升级对象 pda_apk_version
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2023-04-06
|
||||
*/
|
||||
public class PdaApkVersion extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 主键标识 */
|
||||
private Long objid;
|
||||
|
||||
/** 版本号 */
|
||||
@Excel(name = "版本号")
|
||||
private Long versionCode;
|
||||
|
||||
/** 版本名 */
|
||||
@Excel(name = "版本名")
|
||||
private String versionName;
|
||||
|
||||
/** 信息 */
|
||||
@Excel(name = "信息")
|
||||
private String modifyContent;
|
||||
|
||||
/** 位置 */
|
||||
@Excel(name = "位置")
|
||||
private String downloadUrl;
|
||||
|
||||
/** 文件大小 */
|
||||
@Excel(name = "文件大小")
|
||||
private Long apkSize;
|
||||
|
||||
/** 文件标识 */
|
||||
@Excel(name = "文件标识")
|
||||
private String apkMd5;
|
||||
|
||||
public void setObjid(Long objid)
|
||||
{
|
||||
this.objid = objid;
|
||||
}
|
||||
|
||||
public Long getObjid()
|
||||
{
|
||||
return objid;
|
||||
}
|
||||
public void setVersionCode(Long versionCode)
|
||||
{
|
||||
this.versionCode = versionCode;
|
||||
}
|
||||
|
||||
public Long getVersionCode()
|
||||
{
|
||||
return versionCode;
|
||||
}
|
||||
public void setVersionName(String versionName)
|
||||
{
|
||||
this.versionName = versionName;
|
||||
}
|
||||
|
||||
public String getVersionName()
|
||||
{
|
||||
return versionName;
|
||||
}
|
||||
public void setModifyContent(String modifyContent)
|
||||
{
|
||||
this.modifyContent = modifyContent;
|
||||
}
|
||||
|
||||
public String getModifyContent()
|
||||
{
|
||||
return modifyContent;
|
||||
}
|
||||
public void setDownloadUrl(String downloadUrl)
|
||||
{
|
||||
this.downloadUrl = downloadUrl;
|
||||
}
|
||||
|
||||
public String getDownloadUrl()
|
||||
{
|
||||
return downloadUrl;
|
||||
}
|
||||
public void setApkSize(Long apkSize)
|
||||
{
|
||||
this.apkSize = apkSize;
|
||||
}
|
||||
|
||||
public Long getApkSize()
|
||||
{
|
||||
return apkSize;
|
||||
}
|
||||
public void setApkMd5(String apkMd5)
|
||||
{
|
||||
this.apkMd5 = apkMd5;
|
||||
}
|
||||
|
||||
public String getApkMd5()
|
||||
{
|
||||
return apkMd5;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("objid", getObjid())
|
||||
.append("versionCode", getVersionCode())
|
||||
.append("versionName", getVersionName())
|
||||
.append("modifyContent", getModifyContent())
|
||||
.append("downloadUrl", getDownloadUrl())
|
||||
.append("apkSize", getApkSize())
|
||||
.append("apkMd5", getApkMd5())
|
||||
.append("createTime", getCreateTime())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,66 @@
|
||||
package com.ruoyi.api.domain;
|
||||
|
||||
/**
|
||||
* @author wanghao
|
||||
* @date 2024/1/19 13:45
|
||||
*/
|
||||
public class StockDto {
|
||||
private int index;
|
||||
private String epcCode;
|
||||
private String locationCode;
|
||||
private String state;
|
||||
private String createTime;
|
||||
private String remark;
|
||||
public String getCreateTime() {
|
||||
return createTime;
|
||||
}
|
||||
|
||||
public void setCreateTime(String createTime) {
|
||||
this.createTime = createTime;
|
||||
}
|
||||
|
||||
public String getState() {
|
||||
return state;
|
||||
}
|
||||
|
||||
public void setState(String state) {
|
||||
this.state = state;
|
||||
}
|
||||
|
||||
public int getIndex() {
|
||||
return index;
|
||||
}
|
||||
|
||||
public void setIndex(int index) {
|
||||
this.index = index;
|
||||
}
|
||||
|
||||
public String getEpcCode() {
|
||||
return epcCode;
|
||||
}
|
||||
|
||||
public void setEpcCode(String epcCode) {
|
||||
this.epcCode = epcCode;
|
||||
}
|
||||
|
||||
public String getLocationCode() {
|
||||
return locationCode;
|
||||
}
|
||||
|
||||
public void setLocationCode(String locationCode) {
|
||||
this.locationCode = locationCode;
|
||||
}
|
||||
|
||||
public String getRemark() {
|
||||
return remark;
|
||||
}
|
||||
|
||||
public void setRemark(String remark) {
|
||||
this.remark = remark;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "StockDto{" + "index=" + index + ", epcCode='" + epcCode + '\'' + ", locationCode='" + locationCode + '\'' + ", state='" + state + '\'' + '}';
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,19 @@
|
||||
package com.ruoyi.api.mapper;
|
||||
|
||||
import com.ruoyi.api.domain.CheckTaskInfo;
|
||||
import com.ruoyi.api.domain.InStoreDto;
|
||||
import com.ruoyi.api.domain.OutStoreDto;
|
||||
import com.ruoyi.api.domain.StockDto;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author wanghao
|
||||
* @date 2024/1/17 14:28
|
||||
*/
|
||||
@Repository
|
||||
public interface ApiMapper {
|
||||
|
||||
}
|
||||
@ -0,0 +1,26 @@
|
||||
package com.ruoyi.api.mapper;
|
||||
|
||||
import com.ruoyi.api.domain.APKVersion;
|
||||
import com.ruoyi.common.core.domain.entity.SysUser;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Created by wangh on 2021/4/26-9:32。
|
||||
*/
|
||||
@Repository
|
||||
public interface LoginMapper {
|
||||
String login_findSalt(String name);
|
||||
|
||||
int login_getUser(@Param("name") String name, @Param("passw") String passw);
|
||||
|
||||
List<String> selectMenuNameByUserID(Integer userID);
|
||||
|
||||
APKVersion getVersion();
|
||||
|
||||
List<String> selectMenuName();
|
||||
|
||||
SysUser login_getUser1(@Param("name")String name, @Param("passw")String md5Str);
|
||||
}
|
||||
@ -0,0 +1,66 @@
|
||||
package com.ruoyi.api.mapper;
|
||||
|
||||
import com.ruoyi.api.domain.PdaApkVersion;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 手持版本升级Mapper接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2023-04-06
|
||||
*/
|
||||
@Repository
|
||||
public interface PdaApkVersionMapper
|
||||
{
|
||||
/**
|
||||
* 查询手持版本升级
|
||||
*
|
||||
* @param objid 手持版本升级主键
|
||||
* @return 手持版本升级
|
||||
*/
|
||||
public PdaApkVersion selectPdaApkVersionByObjid(Long objid);
|
||||
|
||||
/**
|
||||
* 查询手持版本升级列表
|
||||
*
|
||||
* @param pdaApkVersion 手持版本升级
|
||||
* @return 手持版本升级集合
|
||||
*/
|
||||
public List<PdaApkVersion> selectPdaApkVersionList(PdaApkVersion pdaApkVersion);
|
||||
|
||||
/**
|
||||
* 新增手持版本升级
|
||||
*
|
||||
* @param pdaApkVersion 手持版本升级
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertPdaApkVersion(PdaApkVersion pdaApkVersion);
|
||||
|
||||
/**
|
||||
* 修改手持版本升级
|
||||
*
|
||||
* @param pdaApkVersion 手持版本升级
|
||||
* @return 结果
|
||||
*/
|
||||
public int updatePdaApkVersion(PdaApkVersion pdaApkVersion);
|
||||
|
||||
/**
|
||||
* 删除手持版本升级
|
||||
*
|
||||
* @param objid 手持版本升级主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deletePdaApkVersionByObjid(Long objid);
|
||||
|
||||
/**
|
||||
* 批量删除手持版本升级
|
||||
*
|
||||
* @param objids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deletePdaApkVersionByObjids(String[] objids);
|
||||
|
||||
|
||||
}
|
||||
@ -0,0 +1,64 @@
|
||||
package com.ruoyi.api.service;
|
||||
|
||||
import com.ruoyi.api.domain.PdaApkVersion;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 手持版本升级Service接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2023-04-06
|
||||
*/
|
||||
public interface IPdaApkVersionService {
|
||||
|
||||
/**
|
||||
* 查询手持版本升级
|
||||
*
|
||||
* @param objid 手持版本升级主键
|
||||
* @return 手持版本升级
|
||||
*/
|
||||
public PdaApkVersion selectPdaApkVersionByObjid(Long objid);
|
||||
|
||||
/**
|
||||
* 查询手持版本升级列表
|
||||
*
|
||||
* @param pdaApkVersion 手持版本升级
|
||||
* @return 手持版本升级集合
|
||||
*/
|
||||
public List<PdaApkVersion> selectPdaApkVersionList(PdaApkVersion pdaApkVersion);
|
||||
|
||||
/**
|
||||
* 新增手持版本升级
|
||||
*
|
||||
* @param pdaApkVersion 手持版本升级
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertPdaApkVersion(PdaApkVersion pdaApkVersion);
|
||||
|
||||
/**
|
||||
* 修改手持版本升级
|
||||
*
|
||||
* @param pdaApkVersion 手持版本升级
|
||||
* @return 结果
|
||||
*/
|
||||
public int updatePdaApkVersion(PdaApkVersion pdaApkVersion);
|
||||
|
||||
/**
|
||||
* 批量删除手持版本升级
|
||||
*
|
||||
* @param objids 需要删除的手持版本升级主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deletePdaApkVersionByObjids(String objids);
|
||||
|
||||
/**
|
||||
* 删除手持版本升级信息
|
||||
*
|
||||
* @param objid 手持版本升级主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deletePdaApkVersionByObjid(Long objid);
|
||||
|
||||
|
||||
}
|
||||
@ -0,0 +1,16 @@
|
||||
package com.ruoyi.api.service.impl;
|
||||
|
||||
import com.ruoyi.api.mapper.ApiMapper;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* @author wanghao
|
||||
* @date 2024/1/17 14:26
|
||||
*/
|
||||
@Service
|
||||
public class ApiService {
|
||||
@Autowired
|
||||
private ApiMapper mapper;
|
||||
|
||||
}
|
||||
@ -0,0 +1,103 @@
|
||||
package com.ruoyi.api.service.impl;
|
||||
|
||||
|
||||
import com.ruoyi.api.domain.APKVersion;
|
||||
import com.ruoyi.api.mapper.LoginMapper;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.core.domain.entity.SysUser;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.security.MessageDigest;
|
||||
import java.security.NoSuchAlgorithmException;
|
||||
|
||||
/**
|
||||
* Created by wangh on 2021/4/26-9:27。
|
||||
*/
|
||||
@Service
|
||||
public class LoginService {
|
||||
|
||||
@Autowired
|
||||
LoginMapper mapper;
|
||||
|
||||
private static String getMD5Str(String str) {
|
||||
MessageDigest messageDigest = null;
|
||||
|
||||
try {
|
||||
messageDigest = MessageDigest.getInstance("MD5");
|
||||
|
||||
messageDigest.reset();
|
||||
|
||||
messageDigest.update(str.getBytes("UTF-8"));
|
||||
} catch (NoSuchAlgorithmException e) {
|
||||
System.out.println("NoSuchAlgorithmException caught!");
|
||||
System.exit(-1);
|
||||
} catch (UnsupportedEncodingException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
byte[] byteArray = messageDigest.digest();
|
||||
|
||||
StringBuffer md5StrBuff = new StringBuffer();
|
||||
|
||||
for (int i = 0; i < byteArray.length; i++) {
|
||||
if (Integer.toHexString(0xFF & byteArray[i]).length() == 1) {
|
||||
|
||||
|
||||
md5StrBuff.append("0").append(Integer.toHexString(0xFF & byteArray[i]));
|
||||
} else {
|
||||
|
||||
|
||||
md5StrBuff.append(Integer.toHexString(0xFF & byteArray[i]));
|
||||
}
|
||||
}
|
||||
|
||||
return md5StrBuff.toString();
|
||||
}
|
||||
|
||||
public String login(String name, String pass) {
|
||||
try {
|
||||
String salt = mapper.login_findSalt(name);
|
||||
Integer userID = mapper.login_getUser(name, getMD5Str(name + pass + salt));
|
||||
if (userID != null) {
|
||||
|
||||
return "ok";
|
||||
// List<String> menuNameList=name.equals("admin")?
|
||||
// mapper.selectMenuName():
|
||||
// mapper.selectMenuNameByUserID(userID);
|
||||
// if (menuNameList==null||menuNameList.isEmpty()){
|
||||
// return "isEmpty";
|
||||
// }
|
||||
// return JSONObject.toJSONString(menuNameList);
|
||||
} else {
|
||||
return "Error";
|
||||
}
|
||||
} catch (Exception e) {
|
||||
return "Error";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public AjaxResult login1(String name, String pass) {
|
||||
try {
|
||||
String salt = mapper.login_findSalt(name);
|
||||
SysUser user = mapper.login_getUser1(name, getMD5Str(name + pass + salt));
|
||||
if (user != null) {
|
||||
return AjaxResult.success(user);
|
||||
} else {
|
||||
return AjaxResult.error();
|
||||
}
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
return AjaxResult.error();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public APKVersion getVersion() {
|
||||
return mapper.getVersion();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@ -0,0 +1,99 @@
|
||||
package com.ruoyi.api.service.impl;
|
||||
|
||||
import com.ruoyi.api.domain.PdaApkVersion;
|
||||
import com.ruoyi.api.mapper.PdaApkVersionMapper;
|
||||
import com.ruoyi.api.service.IPdaApkVersionService;
|
||||
import com.ruoyi.common.core.text.Convert;
|
||||
import com.ruoyi.common.utils.DateUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 手持版本升级Service业务层处理
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2023-04-06
|
||||
*/
|
||||
@Service
|
||||
public class PdaApkVersionServiceImpl implements IPdaApkVersionService
|
||||
{
|
||||
@Autowired
|
||||
private PdaApkVersionMapper pdaApkVersionMapper;
|
||||
|
||||
/**
|
||||
* 查询手持版本升级
|
||||
*
|
||||
* @param objid 手持版本升级主键
|
||||
* @return 手持版本升级
|
||||
*/
|
||||
@Override
|
||||
public PdaApkVersion selectPdaApkVersionByObjid(Long objid)
|
||||
{
|
||||
return pdaApkVersionMapper.selectPdaApkVersionByObjid(objid);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询手持版本升级列表
|
||||
*
|
||||
* @param pdaApkVersion 手持版本升级
|
||||
* @return 手持版本升级
|
||||
*/
|
||||
@Override
|
||||
public List<PdaApkVersion> selectPdaApkVersionList(PdaApkVersion pdaApkVersion)
|
||||
{
|
||||
return pdaApkVersionMapper.selectPdaApkVersionList(pdaApkVersion);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增手持版本升级
|
||||
*
|
||||
* @param pdaApkVersion 手持版本升级
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertPdaApkVersion(PdaApkVersion pdaApkVersion)
|
||||
{
|
||||
pdaApkVersion.setCreateTime(DateUtils.getNowDate());
|
||||
return pdaApkVersionMapper.insertPdaApkVersion(pdaApkVersion);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改手持版本升级
|
||||
*
|
||||
* @param pdaApkVersion 手持版本升级
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updatePdaApkVersion(PdaApkVersion pdaApkVersion)
|
||||
{
|
||||
return pdaApkVersionMapper.updatePdaApkVersion(pdaApkVersion);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除手持版本升级
|
||||
*
|
||||
* @param objids 需要删除的手持版本升级主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deletePdaApkVersionByObjids(String objids)
|
||||
{
|
||||
return pdaApkVersionMapper.deletePdaApkVersionByObjids(Convert.toStrArray(objids));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除手持版本升级信息
|
||||
*
|
||||
* @param objid 手持版本升级主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deletePdaApkVersionByObjid(Long objid)
|
||||
{
|
||||
return pdaApkVersionMapper.deletePdaApkVersionByObjid(objid);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@ -0,0 +1,15 @@
|
||||
-- auto-generated definition
|
||||
create table pda_apk_version
|
||||
(
|
||||
objid int auto_increment comment '主键标识'
|
||||
primary key,
|
||||
version_code int null comment '版本号',
|
||||
version_name varchar(20) null comment '版本名',
|
||||
modify_content varchar(100) null comment '信息',
|
||||
download_url varchar(200) null comment '位置',
|
||||
apk_size int null comment '文件大小',
|
||||
apk_md5 varchar(200) null comment '文件标识',
|
||||
create_time datetime default CURRENT_TIMESTAMP null comment '创建时间'
|
||||
)
|
||||
comment '手持版本升级' charset = utf8
|
||||
row_format = DYNAMIC;
|
||||
@ -0,0 +1,22 @@
|
||||
-- 菜单 SQL
|
||||
insert into sys_menu (menu_name, parent_id, order_num, url, menu_type, visible, perms, icon, create_by, create_time, update_by, update_time, remark)
|
||||
values('手持版本升级', '3', '1', '/pda/pda_version', 'C', '0', 'pda:pda_version:view', '#', 'admin', sysdate(), '', null, '手持版本升级菜单');
|
||||
|
||||
-- 按钮父菜单ID
|
||||
SELECT @parentId := LAST_INSERT_ID();
|
||||
|
||||
-- 按钮 SQL
|
||||
insert into sys_menu (menu_name, parent_id, order_num, url, menu_type, visible, perms, icon, create_by, create_time, update_by, update_time, remark)
|
||||
values('手持版本升级查询', @parentId, '1', '#', 'F', '0', 'pda:pda_version:list', '#', 'admin', sysdate(), '', null, '');
|
||||
|
||||
insert into sys_menu (menu_name, parent_id, order_num, url, menu_type, visible, perms, icon, create_by, create_time, update_by, update_time, remark)
|
||||
values('手持版本升级新增', @parentId, '2', '#', 'F', '0', 'pda:pda_version:add', '#', 'admin', sysdate(), '', null, '');
|
||||
|
||||
insert into sys_menu (menu_name, parent_id, order_num, url, menu_type, visible, perms, icon, create_by, create_time, update_by, update_time, remark)
|
||||
values('手持版本升级修改', @parentId, '3', '#', 'F', '0', 'pda:pda_version:edit', '#', 'admin', sysdate(), '', null, '');
|
||||
|
||||
insert into sys_menu (menu_name, parent_id, order_num, url, menu_type, visible, perms, icon, create_by, create_time, update_by, update_time, remark)
|
||||
values('手持版本升级删除', @parentId, '4', '#', 'F', '0', 'pda:pda_version:remove', '#', 'admin', sysdate(), '', null, '');
|
||||
|
||||
insert into sys_menu (menu_name, parent_id, order_num, url, menu_type, visible, perms, icon, create_by, create_time, update_by, update_time, remark)
|
||||
values('手持版本升级导出', @parentId, '5', '#', 'F', '0', 'pda:pda_version:export', '#', 'admin', sysdate(), '', null, '');
|
||||
@ -0,0 +1,6 @@
|
||||
<?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.ruoyi.api.mapper.ApiMapper">
|
||||
|
||||
|
||||
</mapper>
|
||||
@ -0,0 +1,51 @@
|
||||
<?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.ruoyi.api.mapper.LoginMapper">
|
||||
|
||||
<!--登陆-->
|
||||
<select id="login_getUser" resultType="java.lang.Integer">
|
||||
SELECT user_id FROM sys_user where login_name=#{name} and `password`=#{passw} limit 1;
|
||||
</select>
|
||||
|
||||
<select id="login_getUser1" resultMap="com.ruoyi.system.mapper.SysUserMapper.SysUserResult">
|
||||
SELECT user_id,dept_id FROM sys_user where login_name=#{name} and `password`=#{passw} limit 1;
|
||||
</select>
|
||||
|
||||
<select id="login_findSalt" resultType="java.lang.String">
|
||||
|
||||
SELECT salt FROM sys_user where login_name=#{name}
|
||||
</select>
|
||||
|
||||
<select id="selectMenuName" resultType="java.lang.String">
|
||||
select menu_name
|
||||
from sys_menu where parent_id=2027 order by order_num
|
||||
</select>
|
||||
<select id="selectMenuNameByUserID" resultType="java.lang.String">
|
||||
select menu_name
|
||||
from sys_role_menu r
|
||||
left join sys_menu m on r.menu_id = m.menu_id
|
||||
where r.role_id in (select role_id from sys_user_role where user_id=#{userID})
|
||||
and parent_id=2027
|
||||
group by menu_name,m.menu_id,m.order_num
|
||||
order by m.order_num;
|
||||
</select>
|
||||
|
||||
|
||||
<resultMap type="com.ruoyi.api.domain.APKVersion" id="PdaApkVersionResult">
|
||||
<result property="VersionCode" column="version_code" />
|
||||
<result property="VersionName" column="version_name" />
|
||||
<result property="ModifyContent" column="modify_content" />
|
||||
<result property="DownloadUrl" column="download_url" />
|
||||
<result property="ApkSize" column="apk_size" />
|
||||
<result property="ApkMd5" column="apk_md5" />
|
||||
</resultMap>
|
||||
|
||||
|
||||
<select id="getVersion" resultMap="PdaApkVersionResult">
|
||||
select version_code, version_name, modify_content, download_url, apk_size, apk_md5 from pda_apk_version order by create_time desc limit 1
|
||||
|
||||
</select>
|
||||
|
||||
|
||||
|
||||
</mapper>
|
||||
@ -0,0 +1,82 @@
|
||||
<?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.ruoyi.api.mapper.PdaApkVersionMapper">
|
||||
|
||||
<resultMap type="com.ruoyi.api.domain.PdaApkVersion" id="PdaApkVersionResult">
|
||||
<result property="objid" column="objid"/>
|
||||
<result property="versionCode" column="version_code"/>
|
||||
<result property="versionName" column="version_name"/>
|
||||
<result property="modifyContent" column="modify_content"/>
|
||||
<result property="downloadUrl" column="download_url"/>
|
||||
<result property="apkSize" column="apk_size"/>
|
||||
<result property="apkMd5" column="apk_md5"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectPdaApkVersionVo">
|
||||
select objid, version_code, version_name, modify_content, download_url, apk_size, apk_md5, create_time from pda_apk_version
|
||||
</sql>
|
||||
|
||||
<select id="selectPdaApkVersionList" parameterType="PdaApkVersion" resultMap="PdaApkVersionResult">
|
||||
<include refid="selectPdaApkVersionVo"/>
|
||||
<where>
|
||||
<if test="versionCode != null ">and version_code = #{versionCode}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectPdaApkVersionByObjid" parameterType="Long" resultMap="PdaApkVersionResult">
|
||||
<include refid="selectPdaApkVersionVo"/>
|
||||
where objid = #{objid}
|
||||
</select>
|
||||
|
||||
<insert id="insertPdaApkVersion" parameterType="PdaApkVersion" useGeneratedKeys="true" keyProperty="objid">
|
||||
insert into pda_apk_version
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="versionCode != null">version_code,</if>
|
||||
<if test="versionName != null">version_name,</if>
|
||||
<if test="modifyContent != null">modify_content,</if>
|
||||
<if test="downloadUrl != null">download_url,</if>
|
||||
<if test="apkSize != null">apk_size,</if>
|
||||
<if test="apkMd5 != null">apk_md5,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="versionCode != null">#{versionCode},</if>
|
||||
<if test="versionName != null">#{versionName},</if>
|
||||
<if test="modifyContent != null">#{modifyContent},</if>
|
||||
<if test="downloadUrl != null">#{downloadUrl},</if>
|
||||
<if test="apkSize != null">#{apkSize},</if>
|
||||
<if test="apkMd5 != null">#{apkMd5},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updatePdaApkVersion" parameterType="PdaApkVersion">
|
||||
update pda_apk_version
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="versionCode != null">version_code = #{versionCode},</if>
|
||||
<if test="versionName != null">version_name = #{versionName},</if>
|
||||
<if test="modifyContent != null">modify_content = #{modifyContent},</if>
|
||||
<if test="downloadUrl != null">download_url = #{downloadUrl},</if>
|
||||
<if test="apkSize != null">apk_size = #{apkSize},</if>
|
||||
<if test="apkMd5 != null">apk_md5 = #{apkMd5},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
</trim>
|
||||
where objid = #{objid}
|
||||
</update>
|
||||
|
||||
<delete id="deletePdaApkVersionByObjid" parameterType="Long">
|
||||
delete from pda_apk_version where objid = #{objid}
|
||||
</delete>
|
||||
|
||||
<delete id="deletePdaApkVersionByObjids" parameterType="String">
|
||||
delete from pda_apk_version where objid in
|
||||
<foreach item="objid" collection="array" open="(" separator="," close=")">
|
||||
#{objid}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
|
||||
</mapper>
|
||||
@ -0,0 +1,125 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
|
||||
<head>
|
||||
<th:block th:include="include :: header('新增手持版本升级')" />
|
||||
<th:block th:include="include :: bootstrap-fileinput-css"/>
|
||||
<th:block th:include="include :: summernote-css" />
|
||||
</head>
|
||||
<body class="white-bg">
|
||||
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
|
||||
<form class="form-horizontal m" id="form-pda_version-add">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">版本号:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="versionCode" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">版本名:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="versionName" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">信息:</label>
|
||||
<div class="col-sm-8">
|
||||
<input type="hidden" class="form-control" name="modifyContent">
|
||||
<div class="summernote" id="modifyContent"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">位置:</label>
|
||||
<div class="col-sm-8">
|
||||
<!-- <input type="hidden" name="downloadUrl">-->
|
||||
<!-- <div class="file-loading">-->
|
||||
<!-- <input class="form-control file-upload" id="downloadUrl" name="file" type="file">-->
|
||||
<input id="filePath" name="filePath" class="form-control" type="file">
|
||||
<!-- </div>-->
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<th:block th:include="include :: footer" />
|
||||
<th:block th:include="include :: bootstrap-fileinput-js"/>
|
||||
<th:block th:include="include :: summernote-js" />
|
||||
<script th:inline="javascript">
|
||||
var prefix = ctx + "pda/pda_version"
|
||||
$("#form-pda_version-add").validate({
|
||||
focusCleanup: true
|
||||
});
|
||||
|
||||
function submitHandler() {
|
||||
// if ($.validate.form()) {
|
||||
// $.operate.save(prefix + "/add", $('#form-pda_version-add').serialize());
|
||||
// }
|
||||
var formData = new FormData();
|
||||
if ($('#filePath')[0].files[0] == null) {
|
||||
$.modal.alertWarning("请先选择文件路径");
|
||||
return false;
|
||||
}
|
||||
formData.append('versionCode', $("input[name='versionCode']").val());
|
||||
formData.append('versionName', $("input[name='versionName']").val());
|
||||
formData.append('modifyContent', $("input[name='modifyContent']").val());
|
||||
formData.append('file', $('#filePath')[0].files[0]);
|
||||
$.ajax({
|
||||
url: prefix + "/add",
|
||||
type: 'post',
|
||||
cache: false,
|
||||
data: formData,
|
||||
processData: false,
|
||||
contentType: false,
|
||||
dataType: "json",
|
||||
success: function(result) {
|
||||
$.operate.successCallback(result);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
// $(".file-upload").fileinput({
|
||||
// uploadUrl: ctx + 'common/upload',
|
||||
// maxFileCount: 1,
|
||||
// autoReplace: true
|
||||
// }).on('fileuploaded', function (event, data, previewId, index) {
|
||||
// $("input[name='" + event.currentTarget.id + "']").val(data.response.url)
|
||||
// }).on('fileremoved', function (event, id, index) {
|
||||
// $("input[name='" + event.currentTarget.id + "']").val('')
|
||||
// })
|
||||
|
||||
$(function() {
|
||||
$('.summernote').summernote({
|
||||
lang: 'zh-CN',
|
||||
dialogsInBody: true,
|
||||
callbacks: {
|
||||
onChange: function(contents, $edittable) {
|
||||
$("input[name='" + this.id + "']").val(contents);
|
||||
},
|
||||
onImageUpload: function(files) {
|
||||
var obj = this;
|
||||
var data = new FormData();
|
||||
data.append("file", files[0]);
|
||||
$.ajax({
|
||||
type: "post",
|
||||
url: ctx + "common/upload",
|
||||
data: data,
|
||||
cache: false,
|
||||
contentType: false,
|
||||
processData: false,
|
||||
dataType: 'json',
|
||||
success: function(result) {
|
||||
if (result.code == web_status.SUCCESS) {
|
||||
$('#' + obj.id).summernote('insertImage', result.url);
|
||||
} else {
|
||||
$.modal.alertError(result.msg);
|
||||
}
|
||||
},
|
||||
error: function(error) {
|
||||
$.modal.alertWarning("图片上传失败。");
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@ -0,0 +1,114 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
|
||||
<head>
|
||||
<th:block th:include="include :: header('修改手持版本升级')" />
|
||||
<th:block th:include="include :: bootstrap-fileinput-css"/>
|
||||
<th:block th:include="include :: summernote-css" />
|
||||
</head>
|
||||
<body class="white-bg">
|
||||
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
|
||||
<form class="form-horizontal m" id="form-pda_version-edit" th:object="${pdaApkVersion}">
|
||||
<input name="objid" th:field="*{objid}" type="hidden">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">版本号:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="versionCode" th:field="*{versionCode}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">版本名:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="versionName" th:field="*{versionName}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">信息:</label>
|
||||
<div class="col-sm-8">
|
||||
<input type="hidden" class="form-control" th:field="*{modifyContent}">
|
||||
<div class="summernote" id="modifyContent"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">位置:</label>
|
||||
<div class="col-sm-8">
|
||||
<input type="hidden" name="downloadUrl" th:field="*{downloadUrl}">
|
||||
<div class="file-loading">
|
||||
<input class="form-control file-upload" id="downloadUrl" name="file" type="file">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<th:block th:include="include :: footer" />
|
||||
<th:block th:include="include :: bootstrap-fileinput-js"/>
|
||||
<th:block th:include="include :: summernote-js" />
|
||||
<script th:inline="javascript">
|
||||
var prefix = ctx + "pda/pda_version";
|
||||
$("#form-pda_version-edit").validate({
|
||||
focusCleanup: true
|
||||
});
|
||||
|
||||
function submitHandler() {
|
||||
if ($.validate.form()) {
|
||||
$.operate.save(prefix + "/edit", $('#form-pda_version-edit').serialize());
|
||||
}
|
||||
}
|
||||
|
||||
$(".file-upload").each(function (i) {
|
||||
var val = $("input[name='" + this.id + "']").val()
|
||||
$(this).fileinput({
|
||||
'uploadUrl': ctx + 'common/upload',
|
||||
initialPreviewAsData: true,
|
||||
initialPreview: [val],
|
||||
maxFileCount: 1,
|
||||
autoReplace: true
|
||||
}).on('fileuploaded', function (event, data, previewId, index) {
|
||||
$("input[name='" + event.currentTarget.id + "']").val(data.response.url)
|
||||
}).on('fileremoved', function (event, id, index) {
|
||||
$("input[name='" + event.currentTarget.id + "']").val('')
|
||||
})
|
||||
$(this).fileinput('_initFileActions');
|
||||
});
|
||||
|
||||
$(function() {
|
||||
$('.summernote').each(function(i) {
|
||||
$('#' + this.id).summernote({
|
||||
lang: 'zh-CN',
|
||||
dialogsInBody: true,
|
||||
callbacks: {
|
||||
onChange: function(contents, $edittable) {
|
||||
$("input[name='" + this.id + "']").val(contents);
|
||||
},
|
||||
onImageUpload: function(files) {
|
||||
var obj = this;
|
||||
var data = new FormData();
|
||||
data.append("file", files[0]);
|
||||
$.ajax({
|
||||
type: "post",
|
||||
url: ctx + "common/upload",
|
||||
data: data,
|
||||
cache: false,
|
||||
contentType: false,
|
||||
processData: false,
|
||||
dataType: 'json',
|
||||
success: function(result) {
|
||||
if (result.code == web_status.SUCCESS) {
|
||||
$('#' + obj.id).summernote('insertImage', result.url);
|
||||
} else {
|
||||
$.modal.alertError(result.msg);
|
||||
}
|
||||
},
|
||||
error: function(error) {
|
||||
$.modal.alertWarning("图片上传失败。");
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
var content = $("input[name='" + this.id + "']").val();
|
||||
$('#' + this.id).summernote('code', content);
|
||||
})
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@ -0,0 +1,112 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
|
||||
<head>
|
||||
<th:block th:include="include :: header('手持版本升级列表')" />
|
||||
</head>
|
||||
<body class="gray-bg">
|
||||
<div class="container-div">
|
||||
<div class="row">
|
||||
<div class="col-sm-12 search-collapse">
|
||||
<form id="formId">
|
||||
<div class="select-list">
|
||||
<ul>
|
||||
<li>
|
||||
<label>版本号:</label>
|
||||
<input type="text" name="versionCode"/>
|
||||
</li>
|
||||
<li>
|
||||
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i> 搜索</a>
|
||||
<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i> 重置</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<div class="btn-group-sm" id="toolbar" role="group">
|
||||
<a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="pda:pda_version:add">
|
||||
<i class="fa fa-plus"></i> 添加
|
||||
</a>
|
||||
<!-- <a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="pda:pda_version:edit">-->
|
||||
<!-- <i class="fa fa-edit"></i> 删除-->
|
||||
<!-- </a>-->
|
||||
<!-- <a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="pda:pda_version:remove">-->
|
||||
<!-- <i class="fa fa-remove"></i> 删除-->
|
||||
<!-- </a>-->
|
||||
<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="pda:pda_version:export">
|
||||
<i class="fa fa-download"></i> 导出
|
||||
</a>
|
||||
</div>
|
||||
<div class="col-sm-12 select-table table-striped">
|
||||
<table id="bootstrap-table"></table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<th:block th:include="include :: footer" />
|
||||
<script th:inline="javascript">
|
||||
var editFlag = [[${@permission.hasPermi('pda:pda_version:edit')}]];
|
||||
var removeFlag = [[${@permission.hasPermi('pda:pda_version:remove')}]];
|
||||
var prefix = ctx + "pda/pda_version";
|
||||
|
||||
$(function() {
|
||||
var options = {
|
||||
url: prefix + "/list",
|
||||
createUrl: prefix + "/add",
|
||||
updateUrl: prefix + "/edit/{id}",
|
||||
removeUrl: prefix + "/remove",
|
||||
exportUrl: prefix + "/export",
|
||||
modalName: "手持版本升级",
|
||||
sortName: "versionCode",
|
||||
sortOrder: "desc",
|
||||
columns: [{
|
||||
checkbox: true
|
||||
},
|
||||
{
|
||||
field: 'objid',
|
||||
title: '主键标识',
|
||||
visible: false
|
||||
},
|
||||
{
|
||||
field: 'versionCode',
|
||||
title: '版本号'
|
||||
},
|
||||
{
|
||||
field: 'versionName',
|
||||
title: '版本名'
|
||||
},
|
||||
{
|
||||
field: 'modifyContent',
|
||||
title: '信息'
|
||||
},
|
||||
{
|
||||
field: 'downloadUrl',
|
||||
title: '位置'
|
||||
},
|
||||
{
|
||||
field: 'apkSize',
|
||||
title: '文件大小'
|
||||
},
|
||||
{
|
||||
field: 'apkMd5',
|
||||
title: '文件标识'
|
||||
},
|
||||
{
|
||||
field: 'createTime',
|
||||
title: '创建时间'
|
||||
},
|
||||
{
|
||||
title: '操作',
|
||||
align: 'center',
|
||||
formatter: function(value, row, index) {
|
||||
var actions = [];
|
||||
// actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.objid + '\')"><i class="fa fa-edit"></i>删除</a> ');
|
||||
actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.objid + '\')"><i class="fa fa-remove"></i>删除</a>');
|
||||
return actions.join('');
|
||||
}
|
||||
}]
|
||||
};
|
||||
$.table.init(options);
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@ -0,0 +1,28 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>com.ruoyi</groupId>
|
||||
<artifactId>ruoyi</artifactId>
|
||||
<version>4.8.1</version>
|
||||
</parent>
|
||||
|
||||
<artifactId>ruoyi-pm</artifactId>
|
||||
<description>
|
||||
页面
|
||||
</description>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>com.ruoyi</groupId>
|
||||
<artifactId>ruoyi-common</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.ruoyi</groupId>
|
||||
<artifactId>ruoyi-system</artifactId>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
</project>
|
||||
@ -0,0 +1,144 @@
|
||||
package com.ruoyi.pm.controller;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.ModelMap;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.pm.domain.PmBasePenaltyType;
|
||||
import com.ruoyi.pm.service.IPmBasePenaltyTypeService;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.common.utils.StringUtils;
|
||||
import com.ruoyi.common.core.domain.Ztree;
|
||||
|
||||
/**
|
||||
* 处罚类型维护Controller
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-11-27
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("/pm/base_penalty_type")
|
||||
public class PmBasePenaltyTypeController extends BaseController {
|
||||
private String prefix = "pm/base_penalty_type";
|
||||
|
||||
@Autowired
|
||||
private IPmBasePenaltyTypeService pmBasePenaltyTypeService;
|
||||
|
||||
@RequiresPermissions("pm:base_penalty_type:view")
|
||||
@GetMapping()
|
||||
public String base_penalty_type() {
|
||||
return prefix + "/base_penalty_type";
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询处罚类型维护树列表
|
||||
*/
|
||||
@RequiresPermissions("pm:base_penalty_type:list")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
public List<PmBasePenaltyType> list(PmBasePenaltyType pmBasePenaltyType) {
|
||||
List<PmBasePenaltyType> list = pmBasePenaltyTypeService.selectPmBasePenaltyTypeList(pmBasePenaltyType);
|
||||
return list;
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出处罚类型维护列表
|
||||
*/
|
||||
@RequiresPermissions("pm:base_penalty_type:export")
|
||||
@Log(title = "处罚类型维护", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
@ResponseBody
|
||||
public AjaxResult export(PmBasePenaltyType pmBasePenaltyType) {
|
||||
List<PmBasePenaltyType> list = pmBasePenaltyTypeService.selectPmBasePenaltyTypeList(pmBasePenaltyType);
|
||||
ExcelUtil<PmBasePenaltyType> util = new ExcelUtil<PmBasePenaltyType>(PmBasePenaltyType. class);
|
||||
return util.exportExcel(list, "处罚类型维护数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增处罚类型维护
|
||||
*/
|
||||
@GetMapping(value = {"/add/{penaltyTypeId}", "/add/"})
|
||||
public String add(@PathVariable(value = "penaltyTypeId", required = false)Long penaltyTypeId, ModelMap mmap) {
|
||||
if (StringUtils.isNotNull(penaltyTypeId)) {
|
||||
mmap.put("pmBasePenaltyType", pmBasePenaltyTypeService.selectPmBasePenaltyTypeByPenaltyTypeId(penaltyTypeId));
|
||||
}
|
||||
return prefix + "/add";
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增保存处罚类型维护
|
||||
*/
|
||||
@RequiresPermissions("pm:base_penalty_type:add")
|
||||
@Log(title = "处罚类型维护", businessType = BusinessType.INSERT)
|
||||
@PostMapping("/add")
|
||||
@ResponseBody
|
||||
public AjaxResult addSave(PmBasePenaltyType pmBasePenaltyType) {
|
||||
return toAjax(pmBasePenaltyTypeService.insertPmBasePenaltyType(pmBasePenaltyType));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改处罚类型维护
|
||||
*/
|
||||
@RequiresPermissions("pm:base_penalty_type:edit")
|
||||
@GetMapping("/edit/{penaltyTypeId}")
|
||||
public String edit(@PathVariable("penaltyTypeId") Long penaltyTypeId, ModelMap mmap) {
|
||||
PmBasePenaltyType pmBasePenaltyType =
|
||||
pmBasePenaltyTypeService.selectPmBasePenaltyTypeByPenaltyTypeId(penaltyTypeId);
|
||||
mmap.put("pmBasePenaltyType", pmBasePenaltyType);
|
||||
return prefix + "/edit";
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改保存处罚类型维护
|
||||
*/
|
||||
@RequiresPermissions("pm:base_penalty_type:edit")
|
||||
@Log(title = "处罚类型维护", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/edit")
|
||||
@ResponseBody
|
||||
public AjaxResult editSave(PmBasePenaltyType pmBasePenaltyType) {
|
||||
return toAjax(pmBasePenaltyTypeService.updatePmBasePenaltyType(pmBasePenaltyType));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除
|
||||
*/
|
||||
@RequiresPermissions("pm:base_penalty_type:remove")
|
||||
@Log(title = "处罚类型维护", businessType = BusinessType.DELETE)
|
||||
@GetMapping("/remove/{penaltyTypeId}")
|
||||
@ResponseBody
|
||||
public AjaxResult remove(@PathVariable("penaltyTypeId") Long penaltyTypeId) {
|
||||
return toAjax(pmBasePenaltyTypeService.deletePmBasePenaltyTypeByPenaltyTypeId(penaltyTypeId));
|
||||
}
|
||||
|
||||
/**
|
||||
* 选择处罚类型维护树
|
||||
*/
|
||||
@GetMapping(value = {"/selectBase_penalty_typeTree/{penaltyTypeId}", "/selectBase_penalty_typeTree/"})
|
||||
public String selectBase_penalty_typeTree(@PathVariable(value = "penaltyTypeId", required = false)Long penaltyTypeId, ModelMap mmap) {
|
||||
if (StringUtils.isNotNull(penaltyTypeId)) {
|
||||
mmap.put("pmBasePenaltyType", pmBasePenaltyTypeService.selectPmBasePenaltyTypeByPenaltyTypeId(penaltyTypeId));
|
||||
}
|
||||
return prefix + "/tree";
|
||||
}
|
||||
|
||||
/**
|
||||
* 加载处罚类型维护树列表
|
||||
*/
|
||||
@GetMapping("/treeData")
|
||||
@ResponseBody
|
||||
public List<Ztree> treeData() {
|
||||
List<Ztree> ztrees = pmBasePenaltyTypeService.selectPmBasePenaltyTypeTree();
|
||||
return ztrees;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,117 @@
|
||||
package com.ruoyi.pm.controller;
|
||||
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.pm.domain.PmBasePersonInfo;
|
||||
import com.ruoyi.pm.service.IPmBasePersonInfoService;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.ModelMap;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 人员信息Controller
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-11-26
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("/pm/base_person_info")
|
||||
public class PmBasePersonInfoController extends BaseController {
|
||||
private final String prefix = "pm/base_person_info";
|
||||
|
||||
@Autowired
|
||||
private IPmBasePersonInfoService pmBasePersonInfoService;
|
||||
|
||||
@RequiresPermissions("pm:base_person_info:view")
|
||||
@GetMapping()
|
||||
public String base_person_info() {
|
||||
System.out.println("base_person_info");
|
||||
return prefix + "/base_person_info";
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询人员信息列表
|
||||
*/
|
||||
@RequiresPermissions("pm:base_person_info:list")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
public TableDataInfo list(PmBasePersonInfo pmBasePersonInfo) {
|
||||
startPage();
|
||||
List<PmBasePersonInfo> list = pmBasePersonInfoService.selectPmBasePersonInfoList(pmBasePersonInfo);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出人员信息列表
|
||||
*/
|
||||
@RequiresPermissions("pm:base_person_info:export")
|
||||
@Log(title = "人员信息", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
@ResponseBody
|
||||
public AjaxResult export(PmBasePersonInfo pmBasePersonInfo) {
|
||||
List<PmBasePersonInfo> list = pmBasePersonInfoService.selectPmBasePersonInfoList(pmBasePersonInfo);
|
||||
ExcelUtil<PmBasePersonInfo> util = new ExcelUtil<PmBasePersonInfo>(PmBasePersonInfo.class);
|
||||
return util.exportExcel(list, "人员信息数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增人员信息
|
||||
*/
|
||||
@RequiresPermissions("pm:base_person_info:add")
|
||||
@GetMapping("/add")
|
||||
public String add() {
|
||||
return prefix + "/add";
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增保存人员信息
|
||||
*/
|
||||
@RequiresPermissions("pm:base_person_info:add")
|
||||
@Log(title = "人员信息", businessType = BusinessType.INSERT)
|
||||
@PostMapping("/add")
|
||||
@ResponseBody
|
||||
public AjaxResult addSave(PmBasePersonInfo pmBasePersonInfo) {
|
||||
return toAjax(pmBasePersonInfoService.insertPmBasePersonInfo(pmBasePersonInfo));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改人员信息
|
||||
*/
|
||||
@RequiresPermissions("pm:base_person_info:edit")
|
||||
@GetMapping("/edit/{basePersonId}")
|
||||
public String edit(@PathVariable("basePersonId") Long basePersonId, ModelMap mmap) {
|
||||
PmBasePersonInfo pmBasePersonInfo = pmBasePersonInfoService.selectPmBasePersonInfoByBasePersonId(basePersonId);
|
||||
mmap.put("pmBasePersonInfo", pmBasePersonInfo);
|
||||
return prefix + "/edit";
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改保存人员信息
|
||||
*/
|
||||
@RequiresPermissions("pm:base_person_info:edit")
|
||||
@Log(title = "人员信息", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/edit")
|
||||
@ResponseBody
|
||||
public AjaxResult editSave(PmBasePersonInfo pmBasePersonInfo) {
|
||||
return toAjax(pmBasePersonInfoService.updatePmBasePersonInfo(pmBasePersonInfo));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除人员信息
|
||||
*/
|
||||
@RequiresPermissions("pm:base_person_info:remove")
|
||||
@Log(title = "人员信息", businessType = BusinessType.DELETE)
|
||||
@PostMapping("/remove")
|
||||
@ResponseBody
|
||||
public AjaxResult remove(String ids) {
|
||||
return toAjax(pmBasePersonInfoService.deletePmBasePersonInfoByBasePersonIds(ids));
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,117 @@
|
||||
package com.ruoyi.pm.controller;
|
||||
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.pm.domain.PmRecordPenalty;
|
||||
import com.ruoyi.pm.service.IPmRecordPenaltyService;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.ModelMap;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 处罚记录Controller
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-11-27
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("/pm/record_penalty")
|
||||
public class PmRecordPenaltyController extends BaseController {
|
||||
private String prefix = "pm/record_penalty";
|
||||
|
||||
@Autowired
|
||||
private IPmRecordPenaltyService pmRecordPenaltyService;
|
||||
|
||||
@RequiresPermissions("pm:record_penalty:view")
|
||||
@GetMapping()
|
||||
public String record_penalty() {
|
||||
return prefix + "/record_penalty";
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询处罚记录列表
|
||||
*/
|
||||
@RequiresPermissions("pm:record_penalty:list")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
public TableDataInfo list(PmRecordPenalty pmRecordPenalty) {
|
||||
startPage();
|
||||
List<PmRecordPenalty> list = pmRecordPenaltyService.selectPmRecordPenaltyList(pmRecordPenalty);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出处罚记录列表
|
||||
*/
|
||||
@RequiresPermissions("pm:record_penalty:export")
|
||||
@Log(title = "处罚记录", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
@ResponseBody
|
||||
public AjaxResult export(PmRecordPenalty pmRecordPenalty) {
|
||||
List<PmRecordPenalty> list = pmRecordPenaltyService.selectPmRecordPenaltyList(pmRecordPenalty);
|
||||
ExcelUtil<PmRecordPenalty> util = new ExcelUtil<PmRecordPenalty>(PmRecordPenalty.class);
|
||||
return util.exportExcel(list, "处罚记录数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增处罚记录
|
||||
*/
|
||||
@RequiresPermissions("pm:record_penalty:add")
|
||||
@GetMapping("/add")
|
||||
public String add() {
|
||||
return prefix + "/add";
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增保存处罚记录
|
||||
*/
|
||||
@RequiresPermissions("pm:record_penalty:add")
|
||||
@Log(title = "处罚记录", businessType = BusinessType.INSERT)
|
||||
@PostMapping("/add")
|
||||
@ResponseBody
|
||||
public AjaxResult addSave(PmRecordPenalty pmRecordPenalty) {
|
||||
return toAjax(pmRecordPenaltyService.insertPmRecordPenalty(pmRecordPenalty));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改处罚记录
|
||||
*/
|
||||
@RequiresPermissions("pm:record_penalty:edit")
|
||||
@GetMapping("/edit/{recordPenaltyId}")
|
||||
public String edit(@PathVariable("recordPenaltyId") Long recordPenaltyId, ModelMap mmap) {
|
||||
PmRecordPenalty pmRecordPenalty =
|
||||
pmRecordPenaltyService.selectPmRecordPenaltyByRecordPenaltyId(recordPenaltyId);
|
||||
mmap.put("pmRecordPenalty", pmRecordPenalty);
|
||||
return prefix + "/edit";
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改保存处罚记录
|
||||
*/
|
||||
@RequiresPermissions("pm:record_penalty:edit")
|
||||
@Log(title = "处罚记录", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/edit")
|
||||
@ResponseBody
|
||||
public AjaxResult editSave(PmRecordPenalty pmRecordPenalty) {
|
||||
return toAjax(pmRecordPenaltyService.updatePmRecordPenalty(pmRecordPenalty));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除处罚记录
|
||||
*/
|
||||
@RequiresPermissions("pm:record_penalty:remove")
|
||||
@Log(title = "处罚记录", businessType = BusinessType.DELETE)
|
||||
@PostMapping("/remove")
|
||||
@ResponseBody
|
||||
public AjaxResult remove(String ids) {
|
||||
return toAjax(pmRecordPenaltyService.deletePmRecordPenaltyByRecordPenaltyIds(ids));
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,121 @@
|
||||
package com.ruoyi.pm.controller;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.ModelMap;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.pm.domain.PmRecordSan;
|
||||
import com.ruoyi.pm.service.IPmRecordSanService;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 扫描查询记录Controller
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-11-27
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("/pm/record_san")
|
||||
public class PmRecordSanController extends BaseController {
|
||||
private String prefix = "pm/record_san";
|
||||
|
||||
@Autowired
|
||||
private IPmRecordSanService pmRecordSanService;
|
||||
|
||||
@RequiresPermissions("pm:record_san:view")
|
||||
@GetMapping()
|
||||
public String record_san() {
|
||||
return prefix + "/record_san";
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询扫描查询记录列表
|
||||
*/
|
||||
@RequiresPermissions("pm:record_san:list")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
public TableDataInfo list(PmRecordSan pmRecordSan) {
|
||||
startPage();
|
||||
List<PmRecordSan> list = pmRecordSanService.selectPmRecordSanList(pmRecordSan);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出扫描查询记录列表
|
||||
*/
|
||||
@RequiresPermissions("pm:record_san:export")
|
||||
@Log(title = "扫描查询记录", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
@ResponseBody
|
||||
public AjaxResult export(PmRecordSan pmRecordSan) {
|
||||
List<PmRecordSan> list = pmRecordSanService.selectPmRecordSanList(pmRecordSan);
|
||||
ExcelUtil<PmRecordSan> util = new ExcelUtil<PmRecordSan>(PmRecordSan. class);
|
||||
return util.exportExcel(list, "扫描查询记录数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增扫描查询记录
|
||||
*/
|
||||
@RequiresPermissions("pm:record_san:add")
|
||||
@GetMapping("/add")
|
||||
public String add() {
|
||||
return prefix + "/add";
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增保存扫描查询记录
|
||||
*/
|
||||
@RequiresPermissions("pm:record_san:add")
|
||||
@Log(title = "扫描查询记录", businessType = BusinessType.INSERT)
|
||||
@PostMapping("/add")
|
||||
@ResponseBody
|
||||
public AjaxResult addSave(PmRecordSan pmRecordSan) {
|
||||
return toAjax(pmRecordSanService.insertPmRecordSan(pmRecordSan));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改扫描查询记录
|
||||
*/
|
||||
@RequiresPermissions("pm:record_san:edit")
|
||||
@GetMapping("/edit/{recordSanId}")
|
||||
public String edit(@PathVariable("recordSanId") Long recordSanId, ModelMap mmap) {
|
||||
PmRecordSan pmRecordSan =
|
||||
pmRecordSanService.selectPmRecordSanByRecordSanId(recordSanId);
|
||||
mmap.put("pmRecordSan", pmRecordSan);
|
||||
return prefix + "/edit";
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改保存扫描查询记录
|
||||
*/
|
||||
@RequiresPermissions("pm:record_san:edit")
|
||||
@Log(title = "扫描查询记录", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/edit")
|
||||
@ResponseBody
|
||||
public AjaxResult editSave(PmRecordSan pmRecordSan) {
|
||||
return toAjax(pmRecordSanService.updatePmRecordSan(pmRecordSan));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除扫描查询记录
|
||||
*/
|
||||
@RequiresPermissions("pm:record_san:remove")
|
||||
@Log(title = "扫描查询记录", businessType = BusinessType.DELETE)
|
||||
@PostMapping("/remove")
|
||||
@ResponseBody
|
||||
public AjaxResult remove(String ids) {
|
||||
return toAjax(pmRecordSanService.deletePmRecordSanByRecordSanIds(ids));
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,103 @@
|
||||
package com.ruoyi.pm.domain;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.TreeEntity;
|
||||
|
||||
/**
|
||||
* 处罚类型维护对象 pm_base_penalty_type
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-11-27
|
||||
*/
|
||||
public class PmBasePenaltyType extends TreeEntity{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 处罚类型主键 */
|
||||
private Long penaltyTypeId;
|
||||
|
||||
/** 类型编码 */
|
||||
@Excel(name = "类型编码")
|
||||
private String penaltyTypeCode;
|
||||
|
||||
/** 处罚说明 */
|
||||
@Excel(name = "处罚说明")
|
||||
private String penaltyInfo;
|
||||
|
||||
/** 处罚金额 */
|
||||
@Excel(name = "处罚金额")
|
||||
private BigDecimal penaltyAmount;
|
||||
|
||||
/** 类型状态 */
|
||||
@Excel(name = "类型状态")
|
||||
private String typeState;
|
||||
|
||||
public void setPenaltyTypeId(Long penaltyTypeId)
|
||||
{
|
||||
this.penaltyTypeId = penaltyTypeId;
|
||||
}
|
||||
|
||||
public Long getPenaltyTypeId()
|
||||
{
|
||||
return penaltyTypeId;
|
||||
}
|
||||
|
||||
public void setPenaltyTypeCode(String penaltyTypeCode)
|
||||
{
|
||||
this.penaltyTypeCode = penaltyTypeCode;
|
||||
}
|
||||
|
||||
public String getPenaltyTypeCode()
|
||||
{
|
||||
return penaltyTypeCode;
|
||||
}
|
||||
|
||||
public void setPenaltyInfo(String penaltyInfo)
|
||||
{
|
||||
this.penaltyInfo = penaltyInfo;
|
||||
}
|
||||
|
||||
public String getPenaltyInfo()
|
||||
{
|
||||
return penaltyInfo;
|
||||
}
|
||||
|
||||
public void setPenaltyAmount(BigDecimal penaltyAmount)
|
||||
{
|
||||
this.penaltyAmount = penaltyAmount;
|
||||
}
|
||||
|
||||
public BigDecimal getPenaltyAmount()
|
||||
{
|
||||
return penaltyAmount;
|
||||
}
|
||||
|
||||
public void setTypeState(String typeState)
|
||||
{
|
||||
this.typeState = typeState;
|
||||
}
|
||||
|
||||
public String getTypeState()
|
||||
{
|
||||
return typeState;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("penaltyTypeId", getPenaltyTypeId())
|
||||
.append("penaltyTypeCode", getPenaltyTypeCode())
|
||||
.append("penaltyInfo", getPenaltyInfo())
|
||||
.append("penaltyAmount", getPenaltyAmount())
|
||||
.append("parentId", getParentId())
|
||||
.append("typeState", getTypeState())
|
||||
.append("remark", getRemark())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,180 @@
|
||||
package com.ruoyi.pm.domain;
|
||||
|
||||
import java.util.Date;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 人员信息对象 pm_base_person_info
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-11-26
|
||||
*/
|
||||
public class PmBasePersonInfo extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 人员表主键 */
|
||||
private Long basePersonId;
|
||||
|
||||
/** RFID编码 */
|
||||
@Excel(name = "RFID编码")
|
||||
private String rfidId;
|
||||
|
||||
/** 工号 */
|
||||
@Excel(name = "工号")
|
||||
private String employeeId;
|
||||
|
||||
/** 姓名 */
|
||||
@Excel(name = "姓名")
|
||||
private String peopleName;
|
||||
|
||||
/** 性别 */
|
||||
@Excel(name = "性别")
|
||||
private String peopleSex;
|
||||
|
||||
/** 驾驶证代号 */
|
||||
@Excel(name = "驾驶证代号")
|
||||
private String driverCode;
|
||||
|
||||
/** 联系电话 */
|
||||
@Excel(name = "联系电话")
|
||||
private String phoneNumber;
|
||||
|
||||
/** 照片 */
|
||||
@Excel(name = "照片")
|
||||
private String photoPath;
|
||||
|
||||
/** 有效日期截止 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
|
||||
@Excel(name = "有效日期截止", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date joinDate;
|
||||
|
||||
/** 学历 */
|
||||
@Excel(name = "学历")
|
||||
private String academicQualification;
|
||||
|
||||
public void setBasePersonId(Long basePersonId)
|
||||
{
|
||||
this.basePersonId = basePersonId;
|
||||
}
|
||||
|
||||
public Long getBasePersonId()
|
||||
{
|
||||
return basePersonId;
|
||||
}
|
||||
|
||||
public void setRfidId(String rfidId)
|
||||
{
|
||||
this.rfidId = rfidId;
|
||||
}
|
||||
|
||||
public String getRfidId()
|
||||
{
|
||||
return rfidId;
|
||||
}
|
||||
|
||||
public void setEmployeeId(String employeeId)
|
||||
{
|
||||
this.employeeId = employeeId;
|
||||
}
|
||||
|
||||
public String getEmployeeId()
|
||||
{
|
||||
return employeeId;
|
||||
}
|
||||
|
||||
public void setPeopleName(String peopleName)
|
||||
{
|
||||
this.peopleName = peopleName;
|
||||
}
|
||||
|
||||
public String getPeopleName()
|
||||
{
|
||||
return peopleName;
|
||||
}
|
||||
|
||||
public void setPeopleSex(String peopleSex)
|
||||
{
|
||||
this.peopleSex = peopleSex;
|
||||
}
|
||||
|
||||
public String getPeopleSex()
|
||||
{
|
||||
return peopleSex;
|
||||
}
|
||||
|
||||
public void setDriverCode(String driverCode)
|
||||
{
|
||||
this.driverCode = driverCode;
|
||||
}
|
||||
|
||||
public String getDriverCode()
|
||||
{
|
||||
return driverCode;
|
||||
}
|
||||
|
||||
public void setPhoneNumber(String phoneNumber)
|
||||
{
|
||||
this.phoneNumber = phoneNumber;
|
||||
}
|
||||
|
||||
public String getPhoneNumber()
|
||||
{
|
||||
return phoneNumber;
|
||||
}
|
||||
|
||||
public void setPhotoPath(String photoPath)
|
||||
{
|
||||
this.photoPath = photoPath;
|
||||
}
|
||||
|
||||
public String getPhotoPath()
|
||||
{
|
||||
return photoPath;
|
||||
}
|
||||
|
||||
public void setJoinDate(Date joinDate)
|
||||
{
|
||||
this.joinDate = joinDate;
|
||||
}
|
||||
|
||||
public Date getJoinDate()
|
||||
{
|
||||
return joinDate;
|
||||
}
|
||||
|
||||
public void setAcademicQualification(String academicQualification)
|
||||
{
|
||||
this.academicQualification = academicQualification;
|
||||
}
|
||||
|
||||
public String getAcademicQualification()
|
||||
{
|
||||
return academicQualification;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("basePersonId", getBasePersonId())
|
||||
.append("rfidId", getRfidId())
|
||||
.append("employeeId", getEmployeeId())
|
||||
.append("peopleName", getPeopleName())
|
||||
.append("peopleSex", getPeopleSex())
|
||||
.append("driverCode", getDriverCode())
|
||||
.append("phoneNumber", getPhoneNumber())
|
||||
.append("photoPath", getPhotoPath())
|
||||
.append("joinDate", getJoinDate())
|
||||
.append("academicQualification", getAcademicQualification())
|
||||
.append("remark", getRemark())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,140 @@
|
||||
package com.ruoyi.pm.domain;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 处罚记录对象 pm_record_penalty
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-11-27
|
||||
*/
|
||||
public class PmRecordPenalty extends BaseEntity{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 处罚记录主键 */
|
||||
private Long recordPenaltyId;
|
||||
|
||||
/** 处罚类型 */
|
||||
@Excel(name = "处罚类型")
|
||||
private String penaltyType;
|
||||
|
||||
/** 类型编码 */
|
||||
@Excel(name = "类型编码")
|
||||
private String penaltyTypeCode;
|
||||
|
||||
/** 处罚说明 */
|
||||
@Excel(name = "处罚说明")
|
||||
private String penaltyInfo;
|
||||
|
||||
/** 处罚金额 */
|
||||
@Excel(name = "处罚金额")
|
||||
private Double penaltyAmount;
|
||||
|
||||
/** 处罚人员 */
|
||||
@Excel(name = "处罚人员")
|
||||
private Long basePersonId;
|
||||
|
||||
/** 处理状态 */
|
||||
@Excel(name = "处理状态")
|
||||
private String processState;
|
||||
|
||||
private PmBasePersonInfo basePersonInfo;
|
||||
|
||||
public PmBasePersonInfo getBasePersonInfo() {
|
||||
return basePersonInfo;
|
||||
}
|
||||
|
||||
public void setBasePersonInfo(PmBasePersonInfo basePersonInfo) {
|
||||
this.basePersonInfo = basePersonInfo;
|
||||
}
|
||||
|
||||
public void setRecordPenaltyId(Long recordPenaltyId)
|
||||
{
|
||||
this.recordPenaltyId = recordPenaltyId;
|
||||
}
|
||||
|
||||
public Long getRecordPenaltyId()
|
||||
{
|
||||
return recordPenaltyId;
|
||||
}
|
||||
|
||||
public void setPenaltyType(String penaltyType)
|
||||
{
|
||||
this.penaltyType = penaltyType;
|
||||
}
|
||||
|
||||
public String getPenaltyType()
|
||||
{
|
||||
return penaltyType;
|
||||
}
|
||||
|
||||
public void setPenaltyTypeCode(String penaltyTypeCode)
|
||||
{
|
||||
this.penaltyTypeCode = penaltyTypeCode;
|
||||
}
|
||||
|
||||
public String getPenaltyTypeCode()
|
||||
{
|
||||
return penaltyTypeCode;
|
||||
}
|
||||
|
||||
public void setPenaltyInfo(String penaltyInfo)
|
||||
{
|
||||
this.penaltyInfo = penaltyInfo;
|
||||
}
|
||||
|
||||
public String getPenaltyInfo()
|
||||
{
|
||||
return penaltyInfo;
|
||||
}
|
||||
|
||||
public void setPenaltyAmount(Double penaltyAmount)
|
||||
{
|
||||
this.penaltyAmount = penaltyAmount;
|
||||
}
|
||||
|
||||
public Double getPenaltyAmount()
|
||||
{
|
||||
return penaltyAmount;
|
||||
}
|
||||
|
||||
public void setBasePersonId(Long basePersonId)
|
||||
{
|
||||
this.basePersonId = basePersonId;
|
||||
}
|
||||
|
||||
public Long getBasePersonId()
|
||||
{
|
||||
return basePersonId;
|
||||
}
|
||||
|
||||
public void setProcessState(String processState)
|
||||
{
|
||||
this.processState = processState;
|
||||
}
|
||||
|
||||
public String getProcessState()
|
||||
{
|
||||
return processState;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("recordPenaltyId", getRecordPenaltyId())
|
||||
.append("penaltyType", getPenaltyType())
|
||||
.append("penaltyTypeCode", getPenaltyTypeCode())
|
||||
.append("penaltyInfo", getPenaltyInfo())
|
||||
.append("penaltyAmount", getPenaltyAmount())
|
||||
.append("basePersonId", getBasePersonId())
|
||||
.append("processState", getProcessState())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,95 @@
|
||||
package com.ruoyi.pm.domain;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 扫描查询记录对象 pm_record_san
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-11-27
|
||||
*/
|
||||
public class PmRecordSan extends BaseEntity{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 扫描记录主键 */
|
||||
private Long recordSanId;
|
||||
|
||||
/** 查询人 */
|
||||
@Excel(name = "查询人")
|
||||
private String queryUser;
|
||||
|
||||
/** 扫描RFID */
|
||||
@Excel(name = "扫描RFID")
|
||||
private String queryRfid;
|
||||
|
||||
/** 人员表主键 */
|
||||
@Excel(name = "人员表主键")
|
||||
private Long basePersonId;
|
||||
|
||||
private PmBasePersonInfo basePersonInfo;
|
||||
|
||||
public PmBasePersonInfo getBasePersonInfo() {
|
||||
return basePersonInfo;
|
||||
}
|
||||
|
||||
public void setBasePersonInfo(PmBasePersonInfo basePersonInfo) {
|
||||
this.basePersonInfo = basePersonInfo;
|
||||
}
|
||||
|
||||
public void setRecordSanId(Long recordSanId)
|
||||
{
|
||||
this.recordSanId = recordSanId;
|
||||
}
|
||||
|
||||
public Long getRecordSanId()
|
||||
{
|
||||
return recordSanId;
|
||||
}
|
||||
|
||||
public void setQueryUser(String queryUser)
|
||||
{
|
||||
this.queryUser = queryUser;
|
||||
}
|
||||
|
||||
public String getQueryUser()
|
||||
{
|
||||
return queryUser;
|
||||
}
|
||||
|
||||
public void setQueryRfid(String queryRfid)
|
||||
{
|
||||
this.queryRfid = queryRfid;
|
||||
}
|
||||
|
||||
public String getQueryRfid()
|
||||
{
|
||||
return queryRfid;
|
||||
}
|
||||
|
||||
public void setBasePersonId(Long basePersonId)
|
||||
{
|
||||
this.basePersonId = basePersonId;
|
||||
}
|
||||
|
||||
public Long getBasePersonId()
|
||||
{
|
||||
return basePersonId;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("recordSanId", getRecordSanId())
|
||||
.append("queryUser", getQueryUser())
|
||||
.append("queryRfid", getQueryRfid())
|
||||
.append("basePersonId", getBasePersonId())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,61 @@
|
||||
package com.ruoyi.pm.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.pm.domain.PmBasePenaltyType;
|
||||
|
||||
/**
|
||||
* 处罚类型维护Mapper接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-11-27
|
||||
*/
|
||||
public interface PmBasePenaltyTypeMapper
|
||||
{
|
||||
/**
|
||||
* 查询处罚类型维护
|
||||
*
|
||||
* @param penaltyTypeId 处罚类型维护主键
|
||||
* @return 处罚类型维护
|
||||
*/
|
||||
public PmBasePenaltyType selectPmBasePenaltyTypeByPenaltyTypeId(Long penaltyTypeId);
|
||||
|
||||
/**
|
||||
* 查询处罚类型维护列表
|
||||
*
|
||||
* @param pmBasePenaltyType 处罚类型维护
|
||||
* @return 处罚类型维护集合
|
||||
*/
|
||||
public List<PmBasePenaltyType> selectPmBasePenaltyTypeList(PmBasePenaltyType pmBasePenaltyType);
|
||||
|
||||
/**
|
||||
* 新增处罚类型维护
|
||||
*
|
||||
* @param pmBasePenaltyType 处罚类型维护
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertPmBasePenaltyType(PmBasePenaltyType pmBasePenaltyType);
|
||||
|
||||
/**
|
||||
* 修改处罚类型维护
|
||||
*
|
||||
* @param pmBasePenaltyType 处罚类型维护
|
||||
* @return 结果
|
||||
*/
|
||||
public int updatePmBasePenaltyType(PmBasePenaltyType pmBasePenaltyType);
|
||||
|
||||
/**
|
||||
* 删除处罚类型维护
|
||||
*
|
||||
* @param penaltyTypeId 处罚类型维护主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deletePmBasePenaltyTypeByPenaltyTypeId(Long penaltyTypeId);
|
||||
|
||||
/**
|
||||
* 批量删除处罚类型维护
|
||||
*
|
||||
* @param penaltyTypeIds 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deletePmBasePenaltyTypeByPenaltyTypeIds(String[] penaltyTypeIds);
|
||||
}
|
||||
@ -0,0 +1,63 @@
|
||||
package com.ruoyi.pm.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.pm.domain.PmBasePersonInfo;
|
||||
|
||||
/**
|
||||
* 人员信息Mapper接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-11-26
|
||||
*/
|
||||
public interface PmBasePersonInfoMapper
|
||||
{
|
||||
/**
|
||||
* 查询人员信息
|
||||
*
|
||||
* @param basePersonId 人员信息主键
|
||||
* @return 人员信息
|
||||
*/
|
||||
public PmBasePersonInfo selectPmBasePersonInfoByBasePersonId(Long basePersonId);
|
||||
|
||||
/**
|
||||
* 查询人员信息列表
|
||||
*
|
||||
* @param pmBasePersonInfo 人员信息
|
||||
* @return 人员信息集合
|
||||
*/
|
||||
public List<PmBasePersonInfo> selectPmBasePersonInfoList(PmBasePersonInfo pmBasePersonInfo);
|
||||
|
||||
/**
|
||||
* 新增人员信息
|
||||
*
|
||||
* @param pmBasePersonInfo 人员信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertPmBasePersonInfo(PmBasePersonInfo pmBasePersonInfo);
|
||||
|
||||
/**
|
||||
* 修改人员信息
|
||||
*
|
||||
* @param pmBasePersonInfo 人员信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updatePmBasePersonInfo(PmBasePersonInfo pmBasePersonInfo);
|
||||
|
||||
/**
|
||||
* 删除人员信息
|
||||
*
|
||||
* @param basePersonId 人员信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deletePmBasePersonInfoByBasePersonId(Long basePersonId);
|
||||
|
||||
/**
|
||||
* 批量删除人员信息
|
||||
*
|
||||
* @param basePersonIds 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deletePmBasePersonInfoByBasePersonIds(String[] basePersonIds);
|
||||
|
||||
PmBasePersonInfo selectPersonInfoByEpc(String epc);
|
||||
}
|
||||
@ -0,0 +1,61 @@
|
||||
package com.ruoyi.pm.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.pm.domain.PmRecordPenalty;
|
||||
|
||||
/**
|
||||
* 处罚记录Mapper接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-11-27
|
||||
*/
|
||||
public interface PmRecordPenaltyMapper
|
||||
{
|
||||
/**
|
||||
* 查询处罚记录
|
||||
*
|
||||
* @param recordPenaltyId 处罚记录主键
|
||||
* @return 处罚记录
|
||||
*/
|
||||
public PmRecordPenalty selectPmRecordPenaltyByRecordPenaltyId(Long recordPenaltyId);
|
||||
|
||||
/**
|
||||
* 查询处罚记录列表
|
||||
*
|
||||
* @param pmRecordPenalty 处罚记录
|
||||
* @return 处罚记录集合
|
||||
*/
|
||||
public List<PmRecordPenalty> selectPmRecordPenaltyList(PmRecordPenalty pmRecordPenalty);
|
||||
|
||||
/**
|
||||
* 新增处罚记录
|
||||
*
|
||||
* @param pmRecordPenalty 处罚记录
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertPmRecordPenalty(PmRecordPenalty pmRecordPenalty);
|
||||
|
||||
/**
|
||||
* 修改处罚记录
|
||||
*
|
||||
* @param pmRecordPenalty 处罚记录
|
||||
* @return 结果
|
||||
*/
|
||||
public int updatePmRecordPenalty(PmRecordPenalty pmRecordPenalty);
|
||||
|
||||
/**
|
||||
* 删除处罚记录
|
||||
*
|
||||
* @param recordPenaltyId 处罚记录主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deletePmRecordPenaltyByRecordPenaltyId(Long recordPenaltyId);
|
||||
|
||||
/**
|
||||
* 批量删除处罚记录
|
||||
*
|
||||
* @param recordPenaltyIds 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deletePmRecordPenaltyByRecordPenaltyIds(String[] recordPenaltyIds);
|
||||
}
|
||||
@ -0,0 +1,61 @@
|
||||
package com.ruoyi.pm.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.pm.domain.PmRecordSan;
|
||||
|
||||
/**
|
||||
* 扫描查询记录Mapper接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-11-27
|
||||
*/
|
||||
public interface PmRecordSanMapper
|
||||
{
|
||||
/**
|
||||
* 查询扫描查询记录
|
||||
*
|
||||
* @param recordSanId 扫描查询记录主键
|
||||
* @return 扫描查询记录
|
||||
*/
|
||||
public PmRecordSan selectPmRecordSanByRecordSanId(Long recordSanId);
|
||||
|
||||
/**
|
||||
* 查询扫描查询记录列表
|
||||
*
|
||||
* @param pmRecordSan 扫描查询记录
|
||||
* @return 扫描查询记录集合
|
||||
*/
|
||||
public List<PmRecordSan> selectPmRecordSanList(PmRecordSan pmRecordSan);
|
||||
|
||||
/**
|
||||
* 新增扫描查询记录
|
||||
*
|
||||
* @param pmRecordSan 扫描查询记录
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertPmRecordSan(PmRecordSan pmRecordSan);
|
||||
|
||||
/**
|
||||
* 修改扫描查询记录
|
||||
*
|
||||
* @param pmRecordSan 扫描查询记录
|
||||
* @return 结果
|
||||
*/
|
||||
public int updatePmRecordSan(PmRecordSan pmRecordSan);
|
||||
|
||||
/**
|
||||
* 删除扫描查询记录
|
||||
*
|
||||
* @param recordSanId 扫描查询记录主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deletePmRecordSanByRecordSanId(Long recordSanId);
|
||||
|
||||
/**
|
||||
* 批量删除扫描查询记录
|
||||
*
|
||||
* @param recordSanIds 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deletePmRecordSanByRecordSanIds(String[] recordSanIds);
|
||||
}
|
||||
@ -0,0 +1,69 @@
|
||||
package com.ruoyi.pm.service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.ruoyi.pm.domain.PmBasePenaltyType;
|
||||
import com.ruoyi.common.core.domain.Ztree;
|
||||
|
||||
/**
|
||||
* 处罚类型维护Service接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-11-27
|
||||
*/
|
||||
public interface IPmBasePenaltyTypeService {
|
||||
/**
|
||||
* 查询处罚类型维护
|
||||
*
|
||||
* @param penaltyTypeId 处罚类型维护主键
|
||||
* @return 处罚类型维护
|
||||
*/
|
||||
public PmBasePenaltyType selectPmBasePenaltyTypeByPenaltyTypeId(Long penaltyTypeId);
|
||||
|
||||
/**
|
||||
* 查询处罚类型维护列表
|
||||
*
|
||||
* @param pmBasePenaltyType 处罚类型维护
|
||||
* @return 处罚类型维护集合
|
||||
*/
|
||||
public List<PmBasePenaltyType> selectPmBasePenaltyTypeList(PmBasePenaltyType pmBasePenaltyType);
|
||||
|
||||
/**
|
||||
* 新增处罚类型维护
|
||||
*
|
||||
* @param pmBasePenaltyType 处罚类型维护
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertPmBasePenaltyType(PmBasePenaltyType pmBasePenaltyType);
|
||||
|
||||
/**
|
||||
* 修改处罚类型维护
|
||||
*
|
||||
* @param pmBasePenaltyType 处罚类型维护
|
||||
* @return 结果
|
||||
*/
|
||||
public int updatePmBasePenaltyType(PmBasePenaltyType pmBasePenaltyType);
|
||||
|
||||
/**
|
||||
* 批量删除处罚类型维护
|
||||
*
|
||||
* @param penaltyTypeIds 需要删除的处罚类型维护主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deletePmBasePenaltyTypeByPenaltyTypeIds(String penaltyTypeIds);
|
||||
|
||||
/**
|
||||
* 删除处罚类型维护信息
|
||||
*
|
||||
* @param penaltyTypeId 处罚类型维护主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deletePmBasePenaltyTypeByPenaltyTypeId(Long penaltyTypeId);
|
||||
|
||||
/**
|
||||
* 查询处罚类型维护树列表
|
||||
*
|
||||
* @return 所有处罚类型维护信息
|
||||
*/
|
||||
public List<Ztree> selectPmBasePenaltyTypeTree();
|
||||
}
|
||||
@ -0,0 +1,63 @@
|
||||
package com.ruoyi.pm.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.pm.domain.PmBasePersonInfo;
|
||||
|
||||
/**
|
||||
* 人员信息Service接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-11-26
|
||||
*/
|
||||
public interface IPmBasePersonInfoService
|
||||
{
|
||||
/**
|
||||
* 查询人员信息
|
||||
*
|
||||
* @param basePersonId 人员信息主键
|
||||
* @return 人员信息
|
||||
*/
|
||||
public PmBasePersonInfo selectPmBasePersonInfoByBasePersonId(Long basePersonId);
|
||||
|
||||
/**
|
||||
* 查询人员信息列表
|
||||
*
|
||||
* @param pmBasePersonInfo 人员信息
|
||||
* @return 人员信息集合
|
||||
*/
|
||||
public List<PmBasePersonInfo> selectPmBasePersonInfoList(PmBasePersonInfo pmBasePersonInfo);
|
||||
|
||||
/**
|
||||
* 新增人员信息
|
||||
*
|
||||
* @param pmBasePersonInfo 人员信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertPmBasePersonInfo(PmBasePersonInfo pmBasePersonInfo);
|
||||
|
||||
/**
|
||||
* 修改人员信息
|
||||
*
|
||||
* @param pmBasePersonInfo 人员信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updatePmBasePersonInfo(PmBasePersonInfo pmBasePersonInfo);
|
||||
|
||||
/**
|
||||
* 批量删除人员信息
|
||||
*
|
||||
* @param basePersonIds 需要删除的人员信息主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deletePmBasePersonInfoByBasePersonIds(String basePersonIds);
|
||||
|
||||
/**
|
||||
* 删除人员信息信息
|
||||
*
|
||||
* @param basePersonId 人员信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deletePmBasePersonInfoByBasePersonId(Long basePersonId);
|
||||
|
||||
PmBasePersonInfo selectPersonInfoByEpc(String epc);
|
||||
}
|
||||
@ -0,0 +1,61 @@
|
||||
package com.ruoyi.pm.service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.ruoyi.pm.domain.PmRecordPenalty;
|
||||
|
||||
/**
|
||||
* 处罚记录Service接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-11-27
|
||||
*/
|
||||
public interface IPmRecordPenaltyService {
|
||||
/**
|
||||
* 查询处罚记录
|
||||
*
|
||||
* @param recordPenaltyId 处罚记录主键
|
||||
* @return 处罚记录
|
||||
*/
|
||||
public PmRecordPenalty selectPmRecordPenaltyByRecordPenaltyId(Long recordPenaltyId);
|
||||
|
||||
/**
|
||||
* 查询处罚记录列表
|
||||
*
|
||||
* @param pmRecordPenalty 处罚记录
|
||||
* @return 处罚记录集合
|
||||
*/
|
||||
public List<PmRecordPenalty> selectPmRecordPenaltyList(PmRecordPenalty pmRecordPenalty);
|
||||
|
||||
/**
|
||||
* 新增处罚记录
|
||||
*
|
||||
* @param pmRecordPenalty 处罚记录
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertPmRecordPenalty(PmRecordPenalty pmRecordPenalty);
|
||||
|
||||
/**
|
||||
* 修改处罚记录
|
||||
*
|
||||
* @param pmRecordPenalty 处罚记录
|
||||
* @return 结果
|
||||
*/
|
||||
public int updatePmRecordPenalty(PmRecordPenalty pmRecordPenalty);
|
||||
|
||||
/**
|
||||
* 批量删除处罚记录
|
||||
*
|
||||
* @param recordPenaltyIds 需要删除的处罚记录主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deletePmRecordPenaltyByRecordPenaltyIds(String recordPenaltyIds);
|
||||
|
||||
/**
|
||||
* 删除处罚记录信息
|
||||
*
|
||||
* @param recordPenaltyId 处罚记录主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deletePmRecordPenaltyByRecordPenaltyId(Long recordPenaltyId);
|
||||
}
|
||||
@ -0,0 +1,61 @@
|
||||
package com.ruoyi.pm.service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.ruoyi.pm.domain.PmRecordSan;
|
||||
|
||||
/**
|
||||
* 扫描查询记录Service接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-11-27
|
||||
*/
|
||||
public interface IPmRecordSanService {
|
||||
/**
|
||||
* 查询扫描查询记录
|
||||
*
|
||||
* @param recordSanId 扫描查询记录主键
|
||||
* @return 扫描查询记录
|
||||
*/
|
||||
public PmRecordSan selectPmRecordSanByRecordSanId(Long recordSanId);
|
||||
|
||||
/**
|
||||
* 查询扫描查询记录列表
|
||||
*
|
||||
* @param pmRecordSan 扫描查询记录
|
||||
* @return 扫描查询记录集合
|
||||
*/
|
||||
public List<PmRecordSan> selectPmRecordSanList(PmRecordSan pmRecordSan);
|
||||
|
||||
/**
|
||||
* 新增扫描查询记录
|
||||
*
|
||||
* @param pmRecordSan 扫描查询记录
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertPmRecordSan(PmRecordSan pmRecordSan);
|
||||
|
||||
/**
|
||||
* 修改扫描查询记录
|
||||
*
|
||||
* @param pmRecordSan 扫描查询记录
|
||||
* @return 结果
|
||||
*/
|
||||
public int updatePmRecordSan(PmRecordSan pmRecordSan);
|
||||
|
||||
/**
|
||||
* 批量删除扫描查询记录
|
||||
*
|
||||
* @param recordSanIds 需要删除的扫描查询记录主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deletePmRecordSanByRecordSanIds(String recordSanIds);
|
||||
|
||||
/**
|
||||
* 删除扫描查询记录信息
|
||||
*
|
||||
* @param recordSanId 扫描查询记录主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deletePmRecordSanByRecordSanId(Long recordSanId);
|
||||
}
|
||||
@ -0,0 +1,116 @@
|
||||
package com.ruoyi.pm.service.impl;
|
||||
|
||||
import com.ruoyi.common.core.domain.Ztree;
|
||||
import com.ruoyi.common.core.text.Convert;
|
||||
import com.ruoyi.common.utils.DateUtils;
|
||||
import com.ruoyi.common.utils.ShiroUtils;
|
||||
import com.ruoyi.pm.domain.PmBasePenaltyType;
|
||||
import com.ruoyi.pm.mapper.PmBasePenaltyTypeMapper;
|
||||
import com.ruoyi.pm.service.IPmBasePenaltyTypeService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 处罚类型维护Service业务层处理
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-11-27
|
||||
*/
|
||||
@Service
|
||||
public class PmBasePenaltyTypeServiceImpl implements IPmBasePenaltyTypeService {
|
||||
@Autowired
|
||||
private PmBasePenaltyTypeMapper pmBasePenaltyTypeMapper;
|
||||
|
||||
/**
|
||||
* 查询处罚类型维护
|
||||
*
|
||||
* @param penaltyTypeId 处罚类型维护主键
|
||||
* @return 处罚类型维护
|
||||
*/
|
||||
@Override
|
||||
public PmBasePenaltyType selectPmBasePenaltyTypeByPenaltyTypeId(Long penaltyTypeId) {
|
||||
return pmBasePenaltyTypeMapper.selectPmBasePenaltyTypeByPenaltyTypeId(penaltyTypeId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询处罚类型维护列表
|
||||
*
|
||||
* @param pmBasePenaltyType 处罚类型维护
|
||||
* @return 处罚类型维护
|
||||
*/
|
||||
@Override
|
||||
public List<PmBasePenaltyType> selectPmBasePenaltyTypeList(PmBasePenaltyType pmBasePenaltyType) {
|
||||
return pmBasePenaltyTypeMapper.selectPmBasePenaltyTypeList(pmBasePenaltyType);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增处罚类型维护
|
||||
*
|
||||
* @param pmBasePenaltyType 处罚类型维护
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertPmBasePenaltyType(PmBasePenaltyType pmBasePenaltyType) {
|
||||
pmBasePenaltyType.setCreateTime(DateUtils.getNowDate());
|
||||
pmBasePenaltyType.setCreateBy(ShiroUtils.getLoginName());
|
||||
return pmBasePenaltyTypeMapper.insertPmBasePenaltyType(pmBasePenaltyType);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改处罚类型维护
|
||||
*
|
||||
* @param pmBasePenaltyType 处罚类型维护
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updatePmBasePenaltyType(PmBasePenaltyType pmBasePenaltyType) {
|
||||
pmBasePenaltyType.setUpdateTime(DateUtils.getNowDate());
|
||||
pmBasePenaltyType.setUpdateBy(ShiroUtils.getLoginName());
|
||||
return pmBasePenaltyTypeMapper.updatePmBasePenaltyType(pmBasePenaltyType);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除处罚类型维护
|
||||
*
|
||||
* @param penaltyTypeIds 需要删除的处罚类型维护主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deletePmBasePenaltyTypeByPenaltyTypeIds(String penaltyTypeIds) {
|
||||
return pmBasePenaltyTypeMapper.deletePmBasePenaltyTypeByPenaltyTypeIds(Convert.toStrArray(penaltyTypeIds));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除处罚类型维护信息
|
||||
*
|
||||
* @param penaltyTypeId 处罚类型维护主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deletePmBasePenaltyTypeByPenaltyTypeId(Long penaltyTypeId) {
|
||||
return pmBasePenaltyTypeMapper.deletePmBasePenaltyTypeByPenaltyTypeId(penaltyTypeId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询处罚类型维护树列表
|
||||
*
|
||||
* @return 所有处罚类型维护信息
|
||||
*/
|
||||
@Override
|
||||
public List<Ztree> selectPmBasePenaltyTypeTree() {
|
||||
List<PmBasePenaltyType> pmBasePenaltyTypeList = pmBasePenaltyTypeMapper.selectPmBasePenaltyTypeList(new PmBasePenaltyType());
|
||||
List<Ztree> ztrees = new ArrayList<Ztree>();
|
||||
for (PmBasePenaltyType pmBasePenaltyType : pmBasePenaltyTypeList) {
|
||||
Ztree ztree = new Ztree();
|
||||
ztree.setId(pmBasePenaltyType.getPenaltyTypeId());
|
||||
ztree.setpId(pmBasePenaltyType.getParentId());
|
||||
ztree.setName(pmBasePenaltyType.getPenaltyInfo());
|
||||
ztree.setTitle(pmBasePenaltyType.getPenaltyInfo());
|
||||
ztrees.add(ztree);
|
||||
}
|
||||
return ztrees;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,99 @@
|
||||
package com.ruoyi.pm.service.impl;
|
||||
|
||||
import com.ruoyi.common.core.text.Convert;
|
||||
import com.ruoyi.common.utils.DateUtils;
|
||||
import com.ruoyi.common.utils.ShiroUtils;
|
||||
import com.ruoyi.pm.domain.PmBasePersonInfo;
|
||||
import com.ruoyi.pm.mapper.PmBasePersonInfoMapper;
|
||||
import com.ruoyi.pm.service.IPmBasePersonInfoService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 人员信息Service业务层处理
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-11-26
|
||||
*/
|
||||
@Service
|
||||
public class PmBasePersonInfoServiceImpl implements IPmBasePersonInfoService {
|
||||
@Autowired
|
||||
private PmBasePersonInfoMapper pmBasePersonInfoMapper;
|
||||
|
||||
/**
|
||||
* 查询人员信息
|
||||
*
|
||||
* @param basePersonId 人员信息主键
|
||||
* @return 人员信息
|
||||
*/
|
||||
@Override
|
||||
public PmBasePersonInfo selectPmBasePersonInfoByBasePersonId(Long basePersonId) {
|
||||
return pmBasePersonInfoMapper.selectPmBasePersonInfoByBasePersonId(basePersonId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询人员信息列表
|
||||
*
|
||||
* @param pmBasePersonInfo 人员信息
|
||||
* @return 人员信息
|
||||
*/
|
||||
@Override
|
||||
public List<PmBasePersonInfo> selectPmBasePersonInfoList(PmBasePersonInfo pmBasePersonInfo) {
|
||||
return pmBasePersonInfoMapper.selectPmBasePersonInfoList(pmBasePersonInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增人员信息
|
||||
*
|
||||
* @param pmBasePersonInfo 人员信息
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertPmBasePersonInfo(PmBasePersonInfo pmBasePersonInfo) {
|
||||
pmBasePersonInfo.setCreateBy(ShiroUtils.getLoginName());
|
||||
pmBasePersonInfo.setCreateTime(DateUtils.getNowDate());
|
||||
return pmBasePersonInfoMapper.insertPmBasePersonInfo(pmBasePersonInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改人员信息
|
||||
*
|
||||
* @param pmBasePersonInfo 人员信息
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updatePmBasePersonInfo(PmBasePersonInfo pmBasePersonInfo) {
|
||||
pmBasePersonInfo.setUpdateBy(ShiroUtils.getLoginName());
|
||||
pmBasePersonInfo.setUpdateTime(DateUtils.getNowDate());
|
||||
return pmBasePersonInfoMapper.updatePmBasePersonInfo(pmBasePersonInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除人员信息
|
||||
*
|
||||
* @param basePersonIds 需要删除的人员信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deletePmBasePersonInfoByBasePersonIds(String basePersonIds) {
|
||||
return pmBasePersonInfoMapper.deletePmBasePersonInfoByBasePersonIds(Convert.toStrArray(basePersonIds));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除人员信息信息
|
||||
*
|
||||
* @param basePersonId 人员信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deletePmBasePersonInfoByBasePersonId(Long basePersonId) {
|
||||
return pmBasePersonInfoMapper.deletePmBasePersonInfoByBasePersonId(basePersonId);
|
||||
}
|
||||
|
||||
@Override
|
||||
public PmBasePersonInfo selectPersonInfoByEpc(String epc) {
|
||||
return pmBasePersonInfoMapper.selectPersonInfoByEpc(epc);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,93 @@
|
||||
package com.ruoyi.pm.service.impl;
|
||||
|
||||
import com.ruoyi.common.core.text.Convert;
|
||||
import com.ruoyi.common.utils.DateUtils;
|
||||
import com.ruoyi.common.utils.ShiroUtils;
|
||||
import com.ruoyi.pm.domain.PmRecordPenalty;
|
||||
import com.ruoyi.pm.mapper.PmRecordPenaltyMapper;
|
||||
import com.ruoyi.pm.service.IPmRecordPenaltyService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 处罚记录Service业务层处理
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-11-27
|
||||
*/
|
||||
@Service
|
||||
public class PmRecordPenaltyServiceImpl implements IPmRecordPenaltyService {
|
||||
@Autowired
|
||||
private PmRecordPenaltyMapper pmRecordPenaltyMapper;
|
||||
|
||||
/**
|
||||
* 查询处罚记录
|
||||
*
|
||||
* @param recordPenaltyId 处罚记录主键
|
||||
* @return 处罚记录
|
||||
*/
|
||||
@Override
|
||||
public PmRecordPenalty selectPmRecordPenaltyByRecordPenaltyId(Long recordPenaltyId) {
|
||||
return pmRecordPenaltyMapper.selectPmRecordPenaltyByRecordPenaltyId(recordPenaltyId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询处罚记录列表
|
||||
*
|
||||
* @param pmRecordPenalty 处罚记录
|
||||
* @return 处罚记录
|
||||
*/
|
||||
@Override
|
||||
public List<PmRecordPenalty> selectPmRecordPenaltyList(PmRecordPenalty pmRecordPenalty) {
|
||||
return pmRecordPenaltyMapper.selectPmRecordPenaltyList(pmRecordPenalty);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增处罚记录
|
||||
*
|
||||
* @param pmRecordPenalty 处罚记录
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertPmRecordPenalty(PmRecordPenalty pmRecordPenalty) {
|
||||
pmRecordPenalty.setCreateTime(DateUtils.getNowDate());
|
||||
return pmRecordPenaltyMapper.insertPmRecordPenalty(pmRecordPenalty);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改处罚记录
|
||||
*
|
||||
* @param pmRecordPenalty 处罚记录
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updatePmRecordPenalty(PmRecordPenalty pmRecordPenalty) {
|
||||
pmRecordPenalty.setUpdateTime(DateUtils.getNowDate());
|
||||
pmRecordPenalty.setUpdateBy(ShiroUtils.getLoginName());
|
||||
return pmRecordPenaltyMapper.updatePmRecordPenalty(pmRecordPenalty);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除处罚记录
|
||||
*
|
||||
* @param recordPenaltyIds 需要删除的处罚记录主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deletePmRecordPenaltyByRecordPenaltyIds(String recordPenaltyIds) {
|
||||
return pmRecordPenaltyMapper.deletePmRecordPenaltyByRecordPenaltyIds(Convert.toStrArray(recordPenaltyIds));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除处罚记录信息
|
||||
*
|
||||
* @param recordPenaltyId 处罚记录主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deletePmRecordPenaltyByRecordPenaltyId(Long recordPenaltyId) {
|
||||
return pmRecordPenaltyMapper.deletePmRecordPenaltyByRecordPenaltyId(recordPenaltyId);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,90 @@
|
||||
package com.ruoyi.pm.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.common.utils.DateUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.ruoyi.pm.mapper.PmRecordSanMapper;
|
||||
import com.ruoyi.pm.domain.PmRecordSan;
|
||||
import com.ruoyi.pm.service.IPmRecordSanService;
|
||||
import com.ruoyi.common.core.text.Convert;
|
||||
|
||||
/**
|
||||
* 扫描查询记录Service业务层处理
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-11-27
|
||||
*/
|
||||
@Service
|
||||
public class PmRecordSanServiceImpl implements IPmRecordSanService {
|
||||
@Autowired
|
||||
private PmRecordSanMapper pmRecordSanMapper;
|
||||
|
||||
/**
|
||||
* 查询扫描查询记录
|
||||
*
|
||||
* @param recordSanId 扫描查询记录主键
|
||||
* @return 扫描查询记录
|
||||
*/
|
||||
@Override
|
||||
public PmRecordSan selectPmRecordSanByRecordSanId(Long recordSanId) {
|
||||
return pmRecordSanMapper.selectPmRecordSanByRecordSanId(recordSanId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询扫描查询记录列表
|
||||
*
|
||||
* @param pmRecordSan 扫描查询记录
|
||||
* @return 扫描查询记录
|
||||
*/
|
||||
@Override
|
||||
public List<PmRecordSan> selectPmRecordSanList(PmRecordSan pmRecordSan) {
|
||||
return pmRecordSanMapper.selectPmRecordSanList(pmRecordSan);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增扫描查询记录
|
||||
*
|
||||
* @param pmRecordSan 扫描查询记录
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertPmRecordSan(PmRecordSan pmRecordSan) {
|
||||
pmRecordSan.setCreateTime(DateUtils.getNowDate());
|
||||
return pmRecordSanMapper.insertPmRecordSan(pmRecordSan);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改扫描查询记录
|
||||
*
|
||||
* @param pmRecordSan 扫描查询记录
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updatePmRecordSan(PmRecordSan pmRecordSan) {
|
||||
pmRecordSan.setUpdateTime(DateUtils.getNowDate());
|
||||
return pmRecordSanMapper.updatePmRecordSan(pmRecordSan);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除扫描查询记录
|
||||
*
|
||||
* @param recordSanIds 需要删除的扫描查询记录主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deletePmRecordSanByRecordSanIds(String recordSanIds) {
|
||||
return pmRecordSanMapper.deletePmRecordSanByRecordSanIds(Convert.toStrArray(recordSanIds));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除扫描查询记录信息
|
||||
*
|
||||
* @param recordSanId 扫描查询记录主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deletePmRecordSanByRecordSanId(Long recordSanId) {
|
||||
return pmRecordSanMapper.deletePmRecordSanByRecordSanId(recordSanId);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,22 @@
|
||||
-- 菜单 SQL
|
||||
insert into sys_menu (menu_name, parent_id, order_num, url, menu_type, visible, perms, icon, create_by, create_time, update_by, update_time, remark)
|
||||
values('人员信息', '4', '1', '/pm/base_person_info', 'C', '0', 'pm:base_person_info:view', '#', 'admin', sysdate(), '', null, '人员信息菜单');
|
||||
|
||||
-- 按钮父菜单ID
|
||||
SELECT @parentId := LAST_INSERT_ID();
|
||||
|
||||
-- 按钮 SQL
|
||||
insert into sys_menu (menu_name, parent_id, order_num, url, menu_type, visible, perms, icon, create_by, create_time, update_by, update_time, remark)
|
||||
values('人员信息查询', @parentId, '1', '#', 'F', '0', 'pm:base_person_info:list', '#', 'admin', sysdate(), '', null, '');
|
||||
|
||||
insert into sys_menu (menu_name, parent_id, order_num, url, menu_type, visible, perms, icon, create_by, create_time, update_by, update_time, remark)
|
||||
values('人员信息新增', @parentId, '2', '#', 'F', '0', 'pm:base_person_info:add', '#', 'admin', sysdate(), '', null, '');
|
||||
|
||||
insert into sys_menu (menu_name, parent_id, order_num, url, menu_type, visible, perms, icon, create_by, create_time, update_by, update_time, remark)
|
||||
values('人员信息修改', @parentId, '3', '#', 'F', '0', 'pm:base_person_info:edit', '#', 'admin', sysdate(), '', null, '');
|
||||
|
||||
insert into sys_menu (menu_name, parent_id, order_num, url, menu_type, visible, perms, icon, create_by, create_time, update_by, update_time, remark)
|
||||
values('人员信息删除', @parentId, '4', '#', 'F', '0', 'pm:base_person_info:remove', '#', 'admin', sysdate(), '', null, '');
|
||||
|
||||
insert into sys_menu (menu_name, parent_id, order_num, url, menu_type, visible, perms, icon, create_by, create_time, update_by, update_time, remark)
|
||||
values('人员信息导出', @parentId, '5', '#', 'F', '0', 'pm:base_person_info:export', '#', 'admin', sysdate(), '', null, '');
|
||||
@ -0,0 +1,22 @@
|
||||
-- 菜单 SQL
|
||||
insert into sys_menu (menu_name, parent_id, order_num, url, menu_type, visible, perms, icon, create_by, create_time, update_by, update_time, remark)
|
||||
values('处罚记录', '2000', '1', '/pm/record_penalty', 'C', '0', 'pm:record_penalty:view', '#', 'admin', sysdate(), '', null, '处罚记录菜单');
|
||||
|
||||
-- 按钮父菜单ID
|
||||
SELECT @parentId := LAST_INSERT_ID();
|
||||
|
||||
-- 按钮 SQL
|
||||
insert into sys_menu (menu_name, parent_id, order_num, url, menu_type, visible, perms, icon, create_by, create_time, update_by, update_time, remark)
|
||||
values('处罚记录查询', @parentId, '1', '#', 'F', '0', 'pm:record_penalty:list', '#', 'admin', sysdate(), '', null, '');
|
||||
|
||||
insert into sys_menu (menu_name, parent_id, order_num, url, menu_type, visible, perms, icon, create_by, create_time, update_by, update_time, remark)
|
||||
values('处罚记录新增', @parentId, '2', '#', 'F', '0', 'pm:record_penalty:add', '#', 'admin', sysdate(), '', null, '');
|
||||
|
||||
insert into sys_menu (menu_name, parent_id, order_num, url, menu_type, visible, perms, icon, create_by, create_time, update_by, update_time, remark)
|
||||
values('处罚记录修改', @parentId, '3', '#', 'F', '0', 'pm:record_penalty:edit', '#', 'admin', sysdate(), '', null, '');
|
||||
|
||||
insert into sys_menu (menu_name, parent_id, order_num, url, menu_type, visible, perms, icon, create_by, create_time, update_by, update_time, remark)
|
||||
values('处罚记录删除', @parentId, '4', '#', 'F', '0', 'pm:record_penalty:remove', '#', 'admin', sysdate(), '', null, '');
|
||||
|
||||
insert into sys_menu (menu_name, parent_id, order_num, url, menu_type, visible, perms, icon, create_by, create_time, update_by, update_time, remark)
|
||||
values('处罚记录导出', @parentId, '5', '#', 'F', '0', 'pm:record_penalty:export', '#', 'admin', sysdate(), '', null, '');
|
||||
@ -0,0 +1,22 @@
|
||||
-- 菜单 SQL
|
||||
insert into sys_menu (menu_name, parent_id, order_num, url, menu_type, visible, perms, icon, create_by, create_time, update_by, update_time, remark)
|
||||
values('扫描查询记录', '2000', '1', '/pm/record_san', 'C', '0', 'pm:record_san:view', '#', 'admin', sysdate(), '', null, '扫描查询记录菜单');
|
||||
|
||||
-- 按钮父菜单ID
|
||||
SELECT @parentId := LAST_INSERT_ID();
|
||||
|
||||
-- 按钮 SQL
|
||||
insert into sys_menu (menu_name, parent_id, order_num, url, menu_type, visible, perms, icon, create_by, create_time, update_by, update_time, remark)
|
||||
values('扫描查询记录查询', @parentId, '1', '#', 'F', '0', 'pm:record_san:list', '#', 'admin', sysdate(), '', null, '');
|
||||
|
||||
insert into sys_menu (menu_name, parent_id, order_num, url, menu_type, visible, perms, icon, create_by, create_time, update_by, update_time, remark)
|
||||
values('扫描查询记录新增', @parentId, '2', '#', 'F', '0', 'pm:record_san:add', '#', 'admin', sysdate(), '', null, '');
|
||||
|
||||
insert into sys_menu (menu_name, parent_id, order_num, url, menu_type, visible, perms, icon, create_by, create_time, update_by, update_time, remark)
|
||||
values('扫描查询记录修改', @parentId, '3', '#', 'F', '0', 'pm:record_san:edit', '#', 'admin', sysdate(), '', null, '');
|
||||
|
||||
insert into sys_menu (menu_name, parent_id, order_num, url, menu_type, visible, perms, icon, create_by, create_time, update_by, update_time, remark)
|
||||
values('扫描查询记录删除', @parentId, '4', '#', 'F', '0', 'pm:record_san:remove', '#', 'admin', sysdate(), '', null, '');
|
||||
|
||||
insert into sys_menu (menu_name, parent_id, order_num, url, menu_type, visible, perms, icon, create_by, create_time, update_by, update_time, remark)
|
||||
values('扫描查询记录导出', @parentId, '5', '#', 'F', '0', 'pm:record_san:export', '#', 'admin', sysdate(), '', null, '');
|
||||
@ -0,0 +1,100 @@
|
||||
<?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.ruoyi.pm.mapper.PmBasePenaltyTypeMapper">
|
||||
|
||||
<resultMap type="PmBasePenaltyType" id="PmBasePenaltyTypeResult">
|
||||
<result property="penaltyTypeId" column="penalty_type_id" />
|
||||
<result property="penaltyTypeCode" column="penalty_type_code" />
|
||||
<result property="penaltyInfo" column="penalty_info" />
|
||||
<result property="penaltyAmount" column="penalty_amount" />
|
||||
<result property="parentId" column="parent_id" />
|
||||
<result property="typeState" column="type_state" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="parentName" column="parent_name" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectPmBasePenaltyTypeVo">
|
||||
select penalty_type_id, penalty_type_code, penalty_info, penalty_amount, parent_id, type_state, remark, create_by, create_time, update_by, update_time from pm_base_penalty_type
|
||||
</sql>
|
||||
|
||||
<select id="selectPmBasePenaltyTypeList" parameterType="PmBasePenaltyType" resultMap="PmBasePenaltyTypeResult">
|
||||
<include refid="selectPmBasePenaltyTypeVo"/>
|
||||
<where>
|
||||
<if test="penaltyTypeCode != null and penaltyTypeCode != ''"> and penalty_type_code = #{penaltyTypeCode}</if>
|
||||
<if test="penaltyInfo != null and penaltyInfo != ''"> and penalty_info like concat('%', #{penaltyInfo}, '%')</if>
|
||||
<if test="parentId != null "> and parent_id = #{parentId}</if>
|
||||
<if test="typeState != null and typeState != ''"> and type_state = #{typeState}</if>
|
||||
</where>
|
||||
order by parent_id
|
||||
</select>
|
||||
|
||||
<select id="selectPmBasePenaltyTypeByPenaltyTypeId" parameterType="Long" resultMap="PmBasePenaltyTypeResult">
|
||||
select t.penalty_type_id, t.penalty_type_code, t.penalty_info, t.penalty_amount, t.parent_id, t.type_state, t.remark, t.create_by, t.create_time, t.update_by, t.update_time, p.penalty_info as parent_name
|
||||
from pm_base_penalty_type t
|
||||
left join pm_base_penalty_type p on p.penalty_type_id = t.parent_id
|
||||
where t.penalty_type_id = #{penaltyTypeId}
|
||||
</select>
|
||||
|
||||
<insert id="insertPmBasePenaltyType" parameterType="PmBasePenaltyType" useGeneratedKeys="true" keyProperty="penaltyTypeId">
|
||||
insert into pm_base_penalty_type
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="penaltyTypeCode != null">penalty_type_code,</if>
|
||||
<if test="penaltyInfo != null">penalty_info,</if>
|
||||
<if test="penaltyAmount != null">penalty_amount,</if>
|
||||
<if test="parentId != null">parent_id,</if>
|
||||
<if test="typeState != null">type_state,</if>
|
||||
<if test="remark != null">remark,</if>
|
||||
<if test="createBy != null">create_by,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateBy != null">update_by,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="penaltyTypeCode != null">#{penaltyTypeCode},</if>
|
||||
<if test="penaltyInfo != null">#{penaltyInfo},</if>
|
||||
<if test="penaltyAmount != null">#{penaltyAmount},</if>
|
||||
<if test="parentId != null">#{parentId},</if>
|
||||
<if test="typeState != null">#{typeState},</if>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
<if test="createBy != null">#{createBy},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateBy != null">#{updateBy},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updatePmBasePenaltyType" parameterType="PmBasePenaltyType">
|
||||
update pm_base_penalty_type
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="penaltyTypeCode != null">penalty_type_code = #{penaltyTypeCode},</if>
|
||||
<if test="penaltyInfo != null">penalty_info = #{penaltyInfo},</if>
|
||||
<if test="penaltyAmount != null">penalty_amount = #{penaltyAmount},</if>
|
||||
<if test="parentId != null">parent_id = #{parentId},</if>
|
||||
<if test="typeState != null">type_state = #{typeState},</if>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
<if test="createBy != null">create_by = #{createBy},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
</trim>
|
||||
where penalty_type_id = #{penaltyTypeId}
|
||||
</update>
|
||||
|
||||
<delete id="deletePmBasePenaltyTypeByPenaltyTypeId" parameterType="Long">
|
||||
delete from pm_base_penalty_type where penalty_type_id = #{penaltyTypeId}
|
||||
</delete>
|
||||
|
||||
<delete id="deletePmBasePenaltyTypeByPenaltyTypeIds" parameterType="String">
|
||||
delete from pm_base_penalty_type where penalty_type_id in
|
||||
<foreach item="penaltyTypeId" collection="array" open="(" separator="," close=")">
|
||||
#{penaltyTypeId}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
</mapper>
|
||||
@ -0,0 +1,128 @@
|
||||
<?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.ruoyi.pm.mapper.PmBasePersonInfoMapper">
|
||||
|
||||
<resultMap type="PmBasePersonInfo" id="PmBasePersonInfoResult">
|
||||
<result property="basePersonId" column="base_person_id" />
|
||||
<result property="rfidId" column="rfid_id" />
|
||||
<result property="employeeId" column="employee_id" />
|
||||
<result property="peopleName" column="people_name" />
|
||||
<result property="peopleSex" column="people_sex" />
|
||||
<result property="driverCode" column="driver_code" />
|
||||
<result property="phoneNumber" column="phone_number" />
|
||||
<result property="photoPath" column="photo_path" />
|
||||
<result property="joinDate" column="join_date" />
|
||||
<result property="academicQualification" column="academic_qualification" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectPmBasePersonInfoVo">
|
||||
select base_person_id, rfid_id, employee_id, people_name, people_sex, driver_code, phone_number, photo_path, join_date, academic_qualification, remark, create_by, create_time, update_by, update_time from pm_base_person_info
|
||||
</sql>
|
||||
|
||||
<select id="selectPmBasePersonInfoList" parameterType="PmBasePersonInfo" resultMap="PmBasePersonInfoResult">
|
||||
<include refid="selectPmBasePersonInfoVo"/>
|
||||
<where>
|
||||
<if test="rfidId != null and rfidId != ''"> and rfid_id like concat('%', #{rfidId}, '%')</if>
|
||||
<if test="employeeId != null and employeeId != ''"> and employee_id like concat('%', #{employeeId}, '%')</if>
|
||||
<if test="peopleName != null and peopleName != ''"> and people_name like concat('%', #{peopleName}, '%')</if>
|
||||
<if test="peopleSex != null and peopleSex != ''"> and people_sex = #{peopleSex}</if>
|
||||
<if test="academicQualification != null and academicQualification != ''"> and academic_qualification = #{academicQualification}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectPmBasePersonInfoByBasePersonId" parameterType="Long" resultMap="PmBasePersonInfoResult">
|
||||
<include refid="selectPmBasePersonInfoVo"/>
|
||||
where base_person_id = #{basePersonId}
|
||||
</select>
|
||||
|
||||
<insert id="insertPmBasePersonInfo" parameterType="PmBasePersonInfo" useGeneratedKeys="true" keyProperty="basePersonId">
|
||||
insert into pm_base_person_info
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="rfidId != null">rfid_id,</if>
|
||||
<if test="employeeId != null">employee_id,</if>
|
||||
<if test="peopleName != null and peopleName != ''">people_name,</if>
|
||||
<if test="peopleSex != null and peopleSex != ''">people_sex,</if>
|
||||
<if test="driverCode != null and driverCode != ''">driver_code,</if>
|
||||
<if test="phoneNumber != null">phone_number,</if>
|
||||
<if test="photoPath != null">photo_path,</if>
|
||||
<if test="joinDate != null">join_date,</if>
|
||||
<if test="academicQualification != null">academic_qualification,</if>
|
||||
<if test="remark != null">remark,</if>
|
||||
<if test="createBy != null">create_by,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateBy != null">update_by,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="rfidId != null">#{rfidId},</if>
|
||||
<if test="employeeId != null">#{employeeId},</if>
|
||||
<if test="peopleName != null and peopleName != ''">#{peopleName},</if>
|
||||
<if test="peopleSex != null and peopleSex != ''">#{peopleSex},</if>
|
||||
<if test="driverCode != null and driverCode != ''">#{driverCode},</if>
|
||||
<if test="phoneNumber != null">#{phoneNumber},</if>
|
||||
<if test="photoPath != null">#{photoPath},</if>
|
||||
<if test="joinDate != null">#{joinDate},</if>
|
||||
<if test="academicQualification != null">#{academicQualification},</if>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
<if test="createBy != null">#{createBy},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateBy != null">#{updateBy},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updatePmBasePersonInfo" parameterType="PmBasePersonInfo">
|
||||
update pm_base_person_info
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="rfidId != null">rfid_id = #{rfidId},</if>
|
||||
<if test="employeeId != null">employee_id = #{employeeId},</if>
|
||||
<if test="peopleName != null and peopleName != ''">people_name = #{peopleName},</if>
|
||||
<if test="peopleSex != null and peopleSex != ''">people_sex = #{peopleSex},</if>
|
||||
<if test="driverCode != null and driverCode != ''">driver_code = #{driverCode},</if>
|
||||
<if test="phoneNumber != null">phone_number = #{phoneNumber},</if>
|
||||
<if test="photoPath != null">photo_path = #{photoPath},</if>
|
||||
<if test="joinDate != null">join_date = #{joinDate},</if>
|
||||
<if test="academicQualification != null">academic_qualification = #{academicQualification},</if>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
<if test="createBy != null">create_by = #{createBy},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
</trim>
|
||||
where base_person_id = #{basePersonId}
|
||||
</update>
|
||||
|
||||
<delete id="deletePmBasePersonInfoByBasePersonId" parameterType="Long">
|
||||
delete from pm_base_person_info where base_person_id = #{basePersonId}
|
||||
</delete>
|
||||
|
||||
<delete id="deletePmBasePersonInfoByBasePersonIds" parameterType="String">
|
||||
delete from pm_base_person_info where base_person_id in
|
||||
<foreach item="basePersonId" collection="array" open="(" separator="," close=")">
|
||||
#{basePersonId}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
<select id="selectPersonInfoByEpc" resultMap="PmBasePersonInfoResult">
|
||||
select base_person_id,
|
||||
rfid_id,
|
||||
employee_id,
|
||||
people_name,
|
||||
people_sex,
|
||||
driver_code,
|
||||
phone_number,
|
||||
photo_path,
|
||||
join_date,
|
||||
academic_qualification
|
||||
from pm_base_person_info
|
||||
where rfid_id = #{epc}
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
@ -0,0 +1,115 @@
|
||||
<?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.ruoyi.pm.mapper.PmRecordPenaltyMapper">
|
||||
|
||||
<resultMap type="PmRecordPenalty" id="PmRecordPenaltyResult">
|
||||
<result property="recordPenaltyId" column="record_penalty_id" />
|
||||
<result property="penaltyType" column="penalty_type" />
|
||||
<result property="penaltyTypeCode" column="penalty_type_code" />
|
||||
<result property="penaltyInfo" column="penalty_info" />
|
||||
<result property="penaltyAmount" column="penalty_amount" />
|
||||
<result property="basePersonId" column="base_person_id" />
|
||||
<result property="processState" column="process_state" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<association property="basePersonInfo" javaType="PmBasePersonInfo" resultMap="com.ruoyi.pm.mapper.PmBasePersonInfoMapper.PmBasePersonInfoResult"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectPmRecordPenaltyVo">
|
||||
select record_penalty_id,
|
||||
penalty_type,
|
||||
penalty_type_code,
|
||||
penalty_info,
|
||||
penalty_amount,
|
||||
rp.base_person_id,
|
||||
process_state,
|
||||
rp.create_by,
|
||||
rp.create_time,
|
||||
rp.update_by,
|
||||
rp.update_time,
|
||||
rfid_id,
|
||||
employee_id,
|
||||
people_name,
|
||||
driver_code
|
||||
from pm_record_penalty rp
|
||||
left join pm_base_person_info pbpi on rp.base_person_id = pbpi.base_person_id
|
||||
</sql>
|
||||
|
||||
<select id="selectPmRecordPenaltyList" parameterType="PmRecordPenalty" resultMap="PmRecordPenaltyResult">
|
||||
<include refid="selectPmRecordPenaltyVo"/>
|
||||
<where>
|
||||
<if test="penaltyType != null and penaltyType != ''"> and penalty_type = #{penaltyType}</if>
|
||||
<if test="penaltyTypeCode != null and penaltyTypeCode != ''"> and penalty_type_code = #{penaltyTypeCode}</if>
|
||||
<if test="penaltyInfo != null and penaltyInfo != ''"> and penalty_info like concat('%', #{penaltyInfo}, '%')</if>
|
||||
<if test="processState != null and processState != ''"> and process_state = #{processState}</if>
|
||||
<if test="params.beginCreateTime != null and params.beginCreateTime != '' and params.endCreateTime != null and params.endCreateTime != ''"> and create_time between #{params.beginCreateTime} and #{params.endCreateTime}</if>
|
||||
<if test="params.beginUpdateTime != null and params.beginUpdateTime != '' and params.endUpdateTime != null and params.endUpdateTime != ''"> and update_time between #{params.beginUpdateTime} and #{params.endUpdateTime}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectPmRecordPenaltyByRecordPenaltyId" parameterType="Long" resultMap="PmRecordPenaltyResult">
|
||||
<include refid="selectPmRecordPenaltyVo"/>
|
||||
where record_penalty_id = #{recordPenaltyId}
|
||||
</select>
|
||||
|
||||
<insert id="insertPmRecordPenalty" parameterType="PmRecordPenalty" useGeneratedKeys="true" keyProperty="recordPenaltyId">
|
||||
insert into pm_record_penalty
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="penaltyType != null">penalty_type,</if>
|
||||
<if test="penaltyTypeCode != null">penalty_type_code,</if>
|
||||
<if test="penaltyInfo != null">penalty_info,</if>
|
||||
<if test="penaltyAmount != null">penalty_amount,</if>
|
||||
<if test="basePersonId != null">base_person_id,</if>
|
||||
<if test="processState != null">process_state,</if>
|
||||
<if test="createBy != null">create_by,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateBy != null">update_by,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="penaltyType != null">#{penaltyType},</if>
|
||||
<if test="penaltyTypeCode != null">#{penaltyTypeCode},</if>
|
||||
<if test="penaltyInfo != null">#{penaltyInfo},</if>
|
||||
<if test="penaltyAmount != null">#{penaltyAmount},</if>
|
||||
<if test="basePersonId != null">#{basePersonId},</if>
|
||||
<if test="processState != null">#{processState},</if>
|
||||
<if test="createBy != null">#{createBy},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateBy != null">#{updateBy},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updatePmRecordPenalty" parameterType="PmRecordPenalty">
|
||||
update pm_record_penalty
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="penaltyType != null">penalty_type = #{penaltyType},</if>
|
||||
<if test="penaltyTypeCode != null">penalty_type_code = #{penaltyTypeCode},</if>
|
||||
<if test="penaltyInfo != null">penalty_info = #{penaltyInfo},</if>
|
||||
<if test="penaltyAmount != null">penalty_amount = #{penaltyAmount},</if>
|
||||
<if test="basePersonId != null">base_person_id = #{basePersonId},</if>
|
||||
<if test="processState != null">process_state = #{processState},</if>
|
||||
<if test="createBy != null">create_by = #{createBy},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
</trim>
|
||||
where record_penalty_id = #{recordPenaltyId}
|
||||
</update>
|
||||
|
||||
<delete id="deletePmRecordPenaltyByRecordPenaltyId" parameterType="Long">
|
||||
delete from pm_record_penalty where record_penalty_id = #{recordPenaltyId}
|
||||
</delete>
|
||||
|
||||
<delete id="deletePmRecordPenaltyByRecordPenaltyIds" parameterType="String">
|
||||
delete from pm_record_penalty where record_penalty_id in
|
||||
<foreach item="recordPenaltyId" collection="array" open="(" separator="," close=")">
|
||||
#{recordPenaltyId}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
</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.ruoyi.pm.mapper.PmRecordSanMapper">
|
||||
|
||||
<resultMap type="PmRecordSan" id="PmRecordSanResult">
|
||||
<result property="recordSanId" column="record_san_id" />
|
||||
<result property="queryUser" column="query_user" />
|
||||
<result property="queryRfid" column="query_rfid" />
|
||||
<result property="basePersonId" column="base_person_id" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
|
||||
<association property="basePersonInfo" javaType="PmBasePersonInfo" resultMap="com.ruoyi.pm.mapper.PmBasePersonInfoMapper.PmBasePersonInfoResult"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectPmRecordSanVo">
|
||||
select record_san_id,
|
||||
query_user,
|
||||
query_rfid,
|
||||
rs.base_person_id,
|
||||
rs.create_by,
|
||||
rs.create_time,
|
||||
rs.update_by,
|
||||
rs.update_time,
|
||||
rfid_id,
|
||||
employee_id,
|
||||
people_name,
|
||||
driver_code
|
||||
from pm_record_san rs
|
||||
left join bgs_personnel_management.pm_base_person_info pbpi on rs.base_person_id = pbpi.base_person_id
|
||||
</sql>
|
||||
|
||||
<select id="selectPmRecordSanList" parameterType="PmRecordSan" resultMap="PmRecordSanResult">
|
||||
<include refid="selectPmRecordSanVo"/>
|
||||
<where>
|
||||
<if test="queryUser != null and queryUser != ''"> and query_user = #{queryUser}</if>
|
||||
<if test="queryRfid != null and queryRfid != ''"> and query_rfid like concat('%', #{queryRfid}, '%')</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectPmRecordSanByRecordSanId" parameterType="Long" resultMap="PmRecordSanResult">
|
||||
<include refid="selectPmRecordSanVo"/>
|
||||
where record_san_id = #{recordSanId}
|
||||
</select>
|
||||
|
||||
<insert id="insertPmRecordSan" parameterType="PmRecordSan" useGeneratedKeys="true" keyProperty="recordSanId">
|
||||
insert into pm_record_san
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="queryUser != null">query_user,</if>
|
||||
<if test="queryRfid != null">query_rfid,</if>
|
||||
<if test="basePersonId != null">base_person_id,</if>
|
||||
<if test="createBy != null">create_by,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateBy != null">update_by,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="queryUser != null">#{queryUser},</if>
|
||||
<if test="queryRfid != null">#{queryRfid},</if>
|
||||
<if test="basePersonId != null">#{basePersonId},</if>
|
||||
<if test="createBy != null">#{createBy},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateBy != null">#{updateBy},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updatePmRecordSan" parameterType="PmRecordSan">
|
||||
update pm_record_san
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="queryUser != null">query_user = #{queryUser},</if>
|
||||
<if test="queryRfid != null">query_rfid = #{queryRfid},</if>
|
||||
<if test="basePersonId != null">base_person_id = #{basePersonId},</if>
|
||||
<if test="createBy != null">create_by = #{createBy},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
</trim>
|
||||
where record_san_id = #{recordSanId}
|
||||
</update>
|
||||
|
||||
<delete id="deletePmRecordSanByRecordSanId" parameterType="Long">
|
||||
delete from pm_record_san where record_san_id = #{recordSanId}
|
||||
</delete>
|
||||
|
||||
<delete id="deletePmRecordSanByRecordSanIds" parameterType="String">
|
||||
delete from pm_record_san where record_san_id in
|
||||
<foreach item="recordSanId" collection="array" open="(" separator="," close=")">
|
||||
#{recordSanId}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
</mapper>
|
||||
@ -0,0 +1,98 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
|
||||
<head>
|
||||
<th:block th:include="include :: header('新增处罚类型维护')" />
|
||||
</head>
|
||||
<body class="white-bg">
|
||||
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
|
||||
<form class="form-horizontal m" id="form-base_penalty_type-add">
|
||||
<div class="col-xs-12">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">上级类型:</label>
|
||||
<div class="col-sm-8">
|
||||
<div class="input-group">
|
||||
<input id="treeId" name="parentId" type="hidden" th:value="${pmBasePenaltyType?.penaltyTypeId}"/>
|
||||
<input class="form-control" type="text" onclick="selectBase_penalty_typeTree()" id="treeName" readonly="true" th:value="${pmBasePenaltyType?.penaltyInfo}">
|
||||
<span class="input-group-addon"><i class="fa fa-search"></i></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-12">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label" is-required>处罚名称:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="penaltyInfo" class="form-control" type="text" required >
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-12">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">类型编码:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="penaltyTypeCode" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-12">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">处罚金额:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="penaltyAmount" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-xs-12">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">类型状态:</label>
|
||||
<div class="col-sm-8">
|
||||
<select name="typeState" class="form-control" th:with="type=${@dict.getType('sys_normal_disable')}">
|
||||
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-12">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">备注:</label>
|
||||
<div class="col-sm-8">
|
||||
<textarea name="remark" class="form-control" rows="3"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<th:block th:include="include :: footer" />
|
||||
<script th:inline="javascript">
|
||||
var prefix = ctx + "pm/base_penalty_type"
|
||||
$("#form-base_penalty_type-add").validate({
|
||||
focusCleanup: true
|
||||
});
|
||||
|
||||
function submitHandler() {
|
||||
if ($.validate.form()) {
|
||||
$.operate.save(prefix + "/add", $('#form-base_penalty_type-add').serialize());
|
||||
}
|
||||
}
|
||||
|
||||
/*处罚类型维护-新增-选择父处罚类型维护树*/
|
||||
function selectBase_penalty_typeTree() {
|
||||
var options = {
|
||||
title: '处罚类型维护选择',
|
||||
width: "380",
|
||||
url: prefix + "/selectBase_penalty_typeTree/" + $("#treeId").val(),
|
||||
callBack: doSubmit
|
||||
};
|
||||
$.modal.openOptions(options);
|
||||
}
|
||||
|
||||
function doSubmit(index, layero){
|
||||
var body = $.modal.getChildFrame(index);
|
||||
$("#treeId").val(body.find('#treeId').val());
|
||||
$("#treeName").val(body.find('#treeName').val());
|
||||
$.modal.close(index);
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@ -0,0 +1,101 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
|
||||
<head>
|
||||
<th:block th:include="include :: header('修改处罚类型维护')"/>
|
||||
</head>
|
||||
<body class="white-bg">
|
||||
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
|
||||
<form class="form-horizontal m" id="form-base_penalty_type-edit" th:object="${pmBasePenaltyType}">
|
||||
<input name="penaltyTypeId" th:field="*{penaltyTypeId}" type="hidden">
|
||||
<div class="col-xs-12">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">上级类型:</label>
|
||||
<div class="col-sm-8">
|
||||
<div class="input-group">
|
||||
<input id="treeId" name="parentId" type="hidden" th:field="*{parentId}"/>
|
||||
<input class="form-control" type="text" onclick="selectBase_penalty_typeTree()" id="treeName"
|
||||
readonly="true" th:field="*{parentName}">
|
||||
<span class="input-group-addon"><i class="fa fa-search"></i></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-12">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">处罚名称:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="penaltyInfo" th:field="*{penaltyInfo}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-12">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">类型编码:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="penaltyTypeCode" th:field="*{penaltyTypeCode}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-12">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">处罚金额:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="penaltyAmount" th:field="*{penaltyAmount}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-xs-12">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">类型状态:</label>
|
||||
<div class="col-sm-8">
|
||||
<select name="typeState" class="form-control" th:with="type=${@dict.getType('sys_normal_disable')}">
|
||||
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"
|
||||
th:field="*{typeState}"></option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-12">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">备注:</label>
|
||||
<div class="col-sm-8">
|
||||
<textarea name="remark" th:field="*{remark}" class="form-control"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<th:block th:include="include :: footer"/>
|
||||
<script th:inline="javascript">
|
||||
var prefix = ctx + "pm/base_penalty_type";
|
||||
$("#form-base_penalty_type-edit").validate({
|
||||
focusCleanup: true
|
||||
});
|
||||
|
||||
function submitHandler() {
|
||||
if ($.validate.form()) {
|
||||
$.operate.save(prefix + "/edit", $('#form-base_penalty_type-edit').serialize());
|
||||
}
|
||||
}
|
||||
|
||||
/*处罚类型维护-编辑-选择父处罚类型维护树*/
|
||||
function selectBase_penalty_typeTree() {
|
||||
var options = {
|
||||
title: '处罚类型维护选择',
|
||||
width: "380",
|
||||
url: prefix + "/selectBase_penalty_typeTree/" + $("#treeId").val(),
|
||||
callBack: doSubmit
|
||||
};
|
||||
$.modal.openOptions(options);
|
||||
}
|
||||
|
||||
function doSubmit(index, layero) {
|
||||
var body = $.modal.getChildFrame(index);
|
||||
$("#treeId").val(body.find('#treeId').val());
|
||||
$("#treeName").val(body.find('#treeName').val());
|
||||
$.modal.close(index);
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@ -0,0 +1,49 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
|
||||
<head>
|
||||
<th:block th:include="include :: header('处罚类型维护树选择')" />
|
||||
<th:block th:include="include :: ztree-css" />
|
||||
</head>
|
||||
<style>
|
||||
body{height:auto;font-family: "Microsoft YaHei";}
|
||||
button{font-family: "SimSun","Helvetica Neue",Helvetica,Arial;}
|
||||
</style>
|
||||
<body class="hold-transition box box-main">
|
||||
<input id="treeId" name="treeId" type="hidden" th:value="${pmBasePenaltyType?.penaltyTypeId}"/>
|
||||
<input id="treeName" name="treeName" type="hidden" th:value="${pmBasePenaltyType?.penaltyInfo}"/>
|
||||
<div class="wrapper"><div class="treeShowHideButton" onclick="$.tree.toggleSearch();">
|
||||
<label id="btnShow" title="显示搜索" style="display:none;">︾</label>
|
||||
<label id="btnHide" title="隐藏搜索">︽</label>
|
||||
</div>
|
||||
<div class="treeSearchInput" id="search">
|
||||
<label for="keyword">关键字:</label><input type="text" class="empty" id="keyword" maxlength="50">
|
||||
<button class="btn" id="btn" onclick="$.tree.searchNode()"> 搜索 </button>
|
||||
</div>
|
||||
<div class="treeExpandCollapse">
|
||||
<a href="javascript:;" onclick="$.tree.expand()">展开</a> /
|
||||
<a href="javascript:;" onclick="$.tree.collapse()">折叠</a>
|
||||
</div>
|
||||
<div id="tree" class="ztree treeselect"></div>
|
||||
</div>
|
||||
<th:block th:include="include :: footer" />
|
||||
<th:block th:include="include :: ztree-js" />
|
||||
<script th:inline="javascript">
|
||||
$(function() {
|
||||
var url = ctx + "pm/base_penalty_type/treeData";
|
||||
var options = {
|
||||
url: url,
|
||||
expandLevel: 2,
|
||||
onClick : zOnClick
|
||||
};
|
||||
$.tree.init(options);
|
||||
});
|
||||
|
||||
function zOnClick(event, treeId, treeNode) {
|
||||
var treeId = treeNode.id;
|
||||
var treeName = treeNode.name;
|
||||
$("#treeId").val(treeId);
|
||||
$("#treeName").val(treeName);
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@ -0,0 +1,67 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
|
||||
<head>
|
||||
<th:block th:include="include :: header('新增处罚记录')" />
|
||||
</head>
|
||||
<body class="white-bg">
|
||||
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
|
||||
<form class="form-horizontal m" id="form-record_penalty-add">
|
||||
<div class="col-xs-6">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-4 control-label">类型编码:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="penaltyTypeCode" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-6">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-4 control-label">处罚说明:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="penaltyInfo" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-6">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-4 control-label">处罚金额:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="penaltyAmount" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-6">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-4 control-label">处罚人员:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="basePersonId" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-6">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-4 control-label">处理状态:</label>
|
||||
<div class="col-sm-8">
|
||||
<select name="processState" class="form-control" th:with="type=${@dict.getType('record_penalty_state')}">
|
||||
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<th:block th:include="include :: footer" />
|
||||
<script th:inline="javascript">
|
||||
var prefix = ctx + "pm/record_penalty"
|
||||
$("#form-record_penalty-add").validate({
|
||||
focusCleanup: true
|
||||
});
|
||||
|
||||
function submitHandler() {
|
||||
if ($.validate.form()) {
|
||||
$.operate.save(prefix + "/add", $('#form-record_penalty-add').serialize());
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@ -0,0 +1,68 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
|
||||
<head>
|
||||
<th:block th:include="include :: header('修改处罚记录')" />
|
||||
</head>
|
||||
<body class="white-bg">
|
||||
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
|
||||
<form class="form-horizontal m" id="form-record_penalty-edit" th:object="${pmRecordPenalty}">
|
||||
<input name="recordPenaltyId" th:field="*{recordPenaltyId}" type="hidden">
|
||||
<div class="col-xs-6">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-4 control-label">类型编码:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="penaltyTypeCode" th:field="*{penaltyTypeCode}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-6">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-4 control-label">处罚说明:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="penaltyInfo" th:field="*{penaltyInfo}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-6">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-4 control-label">处罚金额:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="penaltyAmount" th:field="*{penaltyAmount}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-6">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-4 control-label">处罚人员:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="basePersonId" th:field="*{basePersonId}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-6">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-4 control-label">处理状态:</label>
|
||||
<div class="col-sm-8">
|
||||
<select name="processState" class="form-control" th:with="type=${@dict.getType('record_penalty_state')}">
|
||||
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{processState}"></option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<th:block th:include="include :: footer" />
|
||||
<script th:inline="javascript">
|
||||
var prefix = ctx + "pm/record_penalty";
|
||||
$("#form-record_penalty-edit").validate({
|
||||
focusCleanup: true
|
||||
});
|
||||
|
||||
function submitHandler() {
|
||||
if ($.validate.form()) {
|
||||
$.operate.save(prefix + "/edit", $('#form-record_penalty-edit').serialize());
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@ -0,0 +1,179 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro" xmlns:th="http://www.thymeleaf.org">
|
||||
<head>
|
||||
<th:block th:include="include :: header('处罚记录列表')"/>
|
||||
</head>
|
||||
<body class="gray-bg">
|
||||
<div class="container-div">
|
||||
<div class="row">
|
||||
<div class="col-sm-12 search-collapse">
|
||||
<form id="formId">
|
||||
<div class="select-list">
|
||||
<ul>
|
||||
<li>
|
||||
<label>类型编码:</label>
|
||||
<input name="penaltyTypeCode" type="text"/>
|
||||
</li>
|
||||
<li>
|
||||
<label>处罚说明:</label>
|
||||
<input name="penaltyInfo" type="text"/>
|
||||
</li>
|
||||
<li>
|
||||
<label>处理状态:</label>
|
||||
<select name="processState" th:with="type=${@dict.getType('record_penalty_state')}">
|
||||
<option value="">所有</option>
|
||||
<option th:each="dict : ${type}" th:text="${dict.dictLabel}"
|
||||
th:value="${dict.dictValue}"></option>
|
||||
</select>
|
||||
</li>
|
||||
<li class="select-time">
|
||||
<label>记录时间:</label>
|
||||
<input class="time-input" id="startTime" name="params[beginCreateTime]" placeholder="开始时间"
|
||||
type="text"/>
|
||||
<span>-</span>
|
||||
<input class="time-input" id="endTime" name="params[endCreateTime]" placeholder="结束时间"
|
||||
type="text"/>
|
||||
</li>
|
||||
<li class="select-time">
|
||||
<label>处理时间:</label>
|
||||
<input class="time-input" id="startTime" name="params[beginUpdateTime]" placeholder="开始时间"
|
||||
type="text"/>
|
||||
<span>-</span>
|
||||
<input class="time-input" id="endTime" name="params[endUpdateTime]" placeholder="结束时间"
|
||||
type="text"/>
|
||||
</li>
|
||||
<li>
|
||||
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i
|
||||
class="fa fa-search"></i> 搜索</a>
|
||||
<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i
|
||||
class="fa fa-refresh"></i> 重置</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<div class="btn-group-sm" id="toolbar" role="group">
|
||||
<a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="pm:record_penalty:add">
|
||||
<i class="fa fa-plus"></i> 添加
|
||||
</a>
|
||||
<a class="btn btn-primary single disabled" onclick="$.operate.edit()"
|
||||
shiro:hasPermission="pm:record_penalty:edit">
|
||||
<i class="fa fa-edit"></i> 修改
|
||||
</a>
|
||||
<a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()"
|
||||
shiro:hasPermission="pm:record_penalty:remove">
|
||||
<i class="fa fa-remove"></i> 删除
|
||||
</a>
|
||||
<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="pm:record_penalty:export">
|
||||
<i class="fa fa-download"></i> 导出
|
||||
</a>
|
||||
</div>
|
||||
<div class="col-sm-12 select-table table-striped">
|
||||
<table id="bootstrap-table"></table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<th:block th:include="include :: footer"/>
|
||||
<script th:inline="javascript">
|
||||
var editFlag = [[${@permission.hasPermi('pm:record_penalty:edit')}]];
|
||||
var removeFlag = [[${@permission.hasPermi('pm:record_penalty:remove')}]];
|
||||
var processStateDatas = [[${@dict.getType('record_penalty_state')}]];
|
||||
var prefix = ctx + "pm/record_penalty";
|
||||
|
||||
$(function () {
|
||||
var options = {
|
||||
url: prefix + "/list",
|
||||
createUrl: prefix + "/add",
|
||||
updateUrl: prefix + "/edit/{id}",
|
||||
removeUrl: prefix + "/remove",
|
||||
exportUrl: prefix + "/export",
|
||||
modalName: "处罚记录",
|
||||
columns: [{
|
||||
checkbox: true
|
||||
},
|
||||
{
|
||||
field: 'recordPenaltyId',
|
||||
title: '处罚记录主键',
|
||||
visible: false
|
||||
},
|
||||
{
|
||||
field: 'penaltyType',
|
||||
title: '处罚类型'
|
||||
},
|
||||
{
|
||||
field: 'penaltyTypeCode',
|
||||
title: '类型编码'
|
||||
},
|
||||
{
|
||||
field: 'penaltyInfo',
|
||||
title: '处罚说明'
|
||||
},
|
||||
{
|
||||
field: 'penaltyAmount',
|
||||
title: '处罚金额'
|
||||
},
|
||||
// {
|
||||
// field: 'basePersonId',
|
||||
// title: '处罚人员'
|
||||
// },
|
||||
|
||||
|
||||
{
|
||||
field: 'basePersonInfo.employeeId',
|
||||
title: '工号'
|
||||
},
|
||||
{
|
||||
field: 'basePersonInfo.peopleName',
|
||||
title: '人员姓名'
|
||||
},
|
||||
|
||||
{
|
||||
field: 'basePersonInfo.driverCode',
|
||||
title: '驾驶证代号'
|
||||
},
|
||||
{
|
||||
field: 'basePersonInfo.phoneNumber',
|
||||
title: '联系电话'
|
||||
},
|
||||
|
||||
|
||||
{
|
||||
field: 'processState',
|
||||
title: '处理状态',
|
||||
formatter: function (value, row, index) {
|
||||
return $.table.selectDictLabel(processStateDatas, value);
|
||||
}
|
||||
},
|
||||
{
|
||||
field: 'createBy',
|
||||
title: '记录人'
|
||||
},
|
||||
{
|
||||
field: 'createTime',
|
||||
title: '记录时间'
|
||||
},
|
||||
{
|
||||
field: 'updateBy',
|
||||
title: '处理人'
|
||||
},
|
||||
{
|
||||
field: 'updateTime',
|
||||
title: '处理时间'
|
||||
},
|
||||
{
|
||||
title: '操作',
|
||||
align: 'center',
|
||||
formatter: function (value, row, index) {
|
||||
var actions = [];
|
||||
actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.recordPenaltyId + '\')"><i class="fa fa-edit"></i>编辑</a> ');
|
||||
actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.recordPenaltyId + '\')"><i class="fa fa-remove"></i>删除</a>');
|
||||
return actions.join('');
|
||||
}
|
||||
}]
|
||||
};
|
||||
$.table.init(options);
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Reference in New Issue