datetime
This commit is contained in:
parent
7d12bce02e
commit
9e0b96e482
|
|
@ -1,8 +1,11 @@
|
||||||
package com.bonus.sgzb.base.api.domain;
|
package com.bonus.sgzb.base.api.domain;
|
||||||
|
|
||||||
import com.bonus.sgzb.common.core.web.domain.BaseEntity;
|
import com.bonus.sgzb.common.core.web.domain.BaseEntity;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
import org.springframework.format.annotation.DateTimeFormat;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -106,7 +109,9 @@ public class DirectApplyInfo extends BaseEntity {
|
||||||
/**
|
/**
|
||||||
* 审核时间
|
* 审核时间
|
||||||
*/
|
*/
|
||||||
private String auditTime;
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||||
|
private Date auditTime;
|
||||||
/**
|
/**
|
||||||
* 审核备注
|
* 审核备注
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -3,10 +3,13 @@ package com.bonus.sgzb.base.api.domain;
|
||||||
|
|
||||||
import com.bonus.sgzb.common.core.annotation.Excel;
|
import com.bonus.sgzb.common.core.annotation.Excel;
|
||||||
import com.bonus.sgzb.common.core.web.domain.BaseEntity;
|
import com.bonus.sgzb.common.core.web.domain.BaseEntity;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
import org.springframework.format.annotation.DateTimeFormat;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -103,7 +106,9 @@ public class MaMachine extends BaseEntity {
|
||||||
* 出厂日期
|
* 出厂日期
|
||||||
*/
|
*/
|
||||||
@ApiModelProperty(value = "出厂日期")
|
@ApiModelProperty(value = "出厂日期")
|
||||||
private String outFacTime;
|
@DateTimeFormat(pattern = "yyyy-MM-dd")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
|
||||||
|
private Date outFacTime;
|
||||||
/**
|
/**
|
||||||
* 出厂编号
|
* 出厂编号
|
||||||
*/
|
*/
|
||||||
|
|
@ -124,12 +129,16 @@ public class MaMachine extends BaseEntity {
|
||||||
* 本次检验日期
|
* 本次检验日期
|
||||||
*/
|
*/
|
||||||
@ApiModelProperty(value = "本次检验日期")
|
@ApiModelProperty(value = "本次检验日期")
|
||||||
private String thisCheckTime;
|
@DateTimeFormat(pattern = "yyyy-MM-dd")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
|
||||||
|
private Date thisCheckTime;
|
||||||
/**
|
/**
|
||||||
* 下次检验日期
|
* 下次检验日期
|
||||||
*/
|
*/
|
||||||
@ApiModelProperty(value = "下次检验日期")
|
@ApiModelProperty(value = "下次检验日期")
|
||||||
private String nextCheckTime;
|
@DateTimeFormat(pattern = "yyyy-MM-dd")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
|
||||||
|
private Date nextCheckTime;
|
||||||
/**
|
/**
|
||||||
* gps编号
|
* gps编号
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,10 @@
|
||||||
package com.bonus.sgzb.base.api.domain;
|
package com.bonus.sgzb.base.api.domain;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
import org.springframework.format.annotation.DateTimeFormat;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -37,7 +40,9 @@ public class SltAgreementApply {
|
||||||
/**
|
/**
|
||||||
*创建时间
|
*创建时间
|
||||||
*/
|
*/
|
||||||
private String createTime;
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||||
|
private Date createTime;
|
||||||
/**
|
/**
|
||||||
*审核人
|
*审核人
|
||||||
*/
|
*/
|
||||||
|
|
@ -45,7 +50,9 @@ public class SltAgreementApply {
|
||||||
/**
|
/**
|
||||||
*审核时间
|
*审核时间
|
||||||
*/
|
*/
|
||||||
private String audiTime;
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||||
|
private Date audiTime;
|
||||||
/**
|
/**
|
||||||
*状态0待审核1审核通过2审核驳回
|
*状态0待审核1审核通过2审核驳回
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -2,9 +2,12 @@ package com.bonus.sgzb.base.api.domain;
|
||||||
|
|
||||||
import com.alibaba.excel.annotation.ExcelProperty;
|
import com.alibaba.excel.annotation.ExcelProperty;
|
||||||
import com.bonus.sgzb.common.core.annotation.Excel;
|
import com.bonus.sgzb.common.core.annotation.Excel;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
import org.springframework.format.annotation.DateTimeFormat;
|
||||||
|
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
|
import java.util.Date;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -60,13 +63,17 @@ public class SltAgreementInfo {
|
||||||
*/
|
*/
|
||||||
// @Excel(name = "开始日期",sort = 6)
|
// @Excel(name = "开始日期",sort = 6)
|
||||||
@ExcelProperty(index = 6, value = "开始日期")
|
@ExcelProperty(index = 6, value = "开始日期")
|
||||||
private String startTime;
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||||
|
private Date startTime;
|
||||||
/**
|
/**
|
||||||
* 退料时间
|
* 退料时间
|
||||||
*/
|
*/
|
||||||
// @Excel(name = "结算日期",sort = 7)
|
// @Excel(name = "结算日期",sort = 7)
|
||||||
@ExcelProperty(index = 7, value = "结算日期")
|
@ExcelProperty(index = 7, value = "结算日期")
|
||||||
private String endTime;
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||||
|
private Date endTime;
|
||||||
/**
|
/**
|
||||||
* 0在用1退回
|
* 0在用1退回
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,10 @@
|
||||||
package com.bonus.sgzb.app.domain;
|
package com.bonus.sgzb.app.domain;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
import org.springframework.format.annotation.DateTimeFormat;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
@ -33,7 +35,9 @@ public class BmAgreementInfo implements Serializable {
|
||||||
* 签订日期
|
* 签订日期
|
||||||
*/
|
*/
|
||||||
@ApiModelProperty(value = "签订日期")
|
@ApiModelProperty(value = "签订日期")
|
||||||
private String signTime;
|
@DateTimeFormat(pattern = "yyyy-MM-dd")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
|
||||||
|
private Date signTime;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 往来单位id
|
* 往来单位id
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
package com.bonus.sgzb.app.domain;
|
package com.bonus.sgzb.app.domain;
|
||||||
|
|
||||||
import com.alibaba.fastjson2.annotation.JSONField;
|
import com.alibaba.fastjson2.annotation.JSONField;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
@ -78,7 +79,9 @@ public class LeaseApplyInfo implements Serializable {
|
||||||
* 公司审批时间
|
* 公司审批时间
|
||||||
*/
|
*/
|
||||||
@ApiModelProperty(value = "公司审批时间")
|
@ApiModelProperty(value = "公司审批时间")
|
||||||
private String companyAuditTime;
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||||
|
private Date companyAuditTime;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 公司审批备注
|
* 公司审批备注
|
||||||
|
|
@ -96,7 +99,9 @@ public class LeaseApplyInfo implements Serializable {
|
||||||
* 分管审批时间
|
* 分管审批时间
|
||||||
*/
|
*/
|
||||||
@ApiModelProperty(value = "分管审批时间")
|
@ApiModelProperty(value = "分管审批时间")
|
||||||
private String deptAuditTime;
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||||
|
private Date deptAuditTime;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 分管审批备注
|
* 分管审批备注
|
||||||
|
|
@ -114,7 +119,9 @@ public class LeaseApplyInfo implements Serializable {
|
||||||
* 机具分公司审批时间
|
* 机具分公司审批时间
|
||||||
*/
|
*/
|
||||||
@ApiModelProperty(value = "机具分公司审批时间")
|
@ApiModelProperty(value = "机具分公司审批时间")
|
||||||
private String directAuditTime;
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||||
|
private Date directAuditTime;
|
||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "机具分公司审批备注")
|
@ApiModelProperty(value = "机具分公司审批备注")
|
||||||
|
|
|
||||||
|
|
@ -169,12 +169,20 @@ public class TmTask implements Serializable {
|
||||||
private String backPerson;
|
private String backPerson;
|
||||||
@ApiModelProperty(value = "退料人联系电话")
|
@ApiModelProperty(value = "退料人联系电话")
|
||||||
private String phone;
|
private String phone;
|
||||||
|
|
||||||
@ApiModelProperty(value = "退料申请时间")
|
@ApiModelProperty(value = "退料申请时间")
|
||||||
private String backTime;
|
@DateTimeFormat(pattern = "yyyy-MM-dd")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
|
||||||
|
private Date backTime;
|
||||||
|
|
||||||
@ApiModelProperty(value = "退料审核人 机具分公司审批人")
|
@ApiModelProperty(value = "退料审核人 机具分公司审批人")
|
||||||
private String directAuditBy;
|
private String directAuditBy;
|
||||||
|
|
||||||
@ApiModelProperty(value = "退料审核时间 机具分公司审批时间")
|
@ApiModelProperty(value = "退料审核时间 机具分公司审批时间")
|
||||||
private String directAuditTime;
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||||
|
private Date directAuditTime;
|
||||||
|
|
||||||
@ApiModelProperty(value = "退料审核备注 机具分公司审批备注")
|
@ApiModelProperty(value = "退料审核备注 机具分公司审批备注")
|
||||||
private String directAuditRemark;
|
private String directAuditRemark;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,15 @@
|
||||||
package com.bonus.sgzb.base.domain;
|
package com.bonus.sgzb.base.domain;
|
||||||
|
|
||||||
|
import com.bonus.sgzb.common.core.web.domain.BaseEntity;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
||||||
@Data
|
@Data
|
||||||
public class MaPropSet {
|
public class MaPropSet extends BaseEntity {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
/**
|
/**
|
||||||
* ID
|
* ID
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -39,10 +39,6 @@ public class MaTypeFile extends BaseEntity {
|
||||||
@Excel(name = "上传人")
|
@Excel(name = "上传人")
|
||||||
private String userId;
|
private String userId;
|
||||||
|
|
||||||
//上传时间
|
|
||||||
@Excel(name = "上传时间")
|
|
||||||
private String time;
|
|
||||||
|
|
||||||
//帐号状态(0正常 1停用)
|
//帐号状态(0正常 1停用)
|
||||||
@Excel(name = "帐号状态(0正常 1停用)")
|
@Excel(name = "帐号状态(0正常 1停用)")
|
||||||
private String status;
|
private String status;
|
||||||
|
|
@ -99,14 +95,6 @@ public class MaTypeFile extends BaseEntity {
|
||||||
this.userId = userId;
|
this.userId = userId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getTime() {
|
|
||||||
return time;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setTime(String time) {
|
|
||||||
this.time = time;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getStatus() {
|
public String getStatus() {
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,11 @@
|
||||||
package com.bonus.sgzb.base.domain;
|
package com.bonus.sgzb.base.domain;
|
||||||
|
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import org.springframework.format.annotation.DateTimeFormat;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
public class MaTypeHisNum {
|
public class MaTypeHisNum {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -14,7 +19,9 @@ public class MaTypeHisNum {
|
||||||
/**
|
/**
|
||||||
* 存入日期
|
* 存入日期
|
||||||
*/
|
*/
|
||||||
private String time;
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||||
|
private Date time;
|
||||||
/**
|
/**
|
||||||
* 帐号状态(0正常 1停用)
|
* 帐号状态(0正常 1停用)
|
||||||
*/
|
*/
|
||||||
|
|
@ -43,11 +50,11 @@ public class MaTypeHisNum {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public String getTime() {
|
public Date getTime() {
|
||||||
return time;
|
return time;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setTime(String time) {
|
public void setTime(Date time) {
|
||||||
this.time = time;
|
this.time = time;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,11 @@
|
||||||
package com.bonus.sgzb.base.domain;
|
package com.bonus.sgzb.base.domain;
|
||||||
|
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import org.springframework.format.annotation.DateTimeFormat;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
public class MaTypeHisPrice {
|
public class MaTypeHisPrice {
|
||||||
/**
|
/**
|
||||||
* 类型ID
|
* 类型ID
|
||||||
|
|
@ -13,7 +18,9 @@ public class MaTypeHisPrice {
|
||||||
/**
|
/**
|
||||||
* 修改日期
|
* 修改日期
|
||||||
*/
|
*/
|
||||||
private String time;
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||||
|
private Date time;
|
||||||
/**
|
/**
|
||||||
* 帐号状态(0正常 1停用)
|
* 帐号状态(0正常 1停用)
|
||||||
*/
|
*/
|
||||||
|
|
@ -42,11 +49,11 @@ public class MaTypeHisPrice {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public String getTime() {
|
public Date getTime() {
|
||||||
return time;
|
return time;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setTime(String time) {
|
public void setTime(Date time) {
|
||||||
this.time = time;
|
this.time = time;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,10 @@ package com.bonus.sgzb.base.domain;
|
||||||
|
|
||||||
import com.bonus.sgzb.common.core.annotation.Excel;
|
import com.bonus.sgzb.common.core.annotation.Excel;
|
||||||
import com.bonus.sgzb.common.core.web.domain.BaseEntity;
|
import com.bonus.sgzb.common.core.web.domain.BaseEntity;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import org.springframework.format.annotation.DateTimeFormat;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 库管员配置ma_type_keeper(MaTypeKeeper)表实体类
|
* 库管员配置ma_type_keeper(MaTypeKeeper)表实体类
|
||||||
|
|
@ -22,10 +26,6 @@ public class MaTypeKeeper extends BaseEntity {
|
||||||
@Excel(name = "用户")
|
@Excel(name = "用户")
|
||||||
private Long userId;
|
private Long userId;
|
||||||
|
|
||||||
//创建时间
|
|
||||||
@Excel(name = "创建时间")
|
|
||||||
private String time;
|
|
||||||
|
|
||||||
//数据所属组织
|
//数据所属组织
|
||||||
@Excel(name = "数据所属组织")
|
@Excel(name = "数据所属组织")
|
||||||
private String companyId;
|
private String companyId;
|
||||||
|
|
@ -46,14 +46,6 @@ public class MaTypeKeeper extends BaseEntity {
|
||||||
this.userId = userId;
|
this.userId = userId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getTime() {
|
|
||||||
return time;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setTime(String time) {
|
|
||||||
this.time = time;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getCompanyId() {
|
public String getCompanyId() {
|
||||||
return companyId;
|
return companyId;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -159,12 +159,12 @@ public class MaMachineServiceImpl implements MaMachineService {
|
||||||
if (leaseProject != null){
|
if (leaseProject != null){
|
||||||
ma.setLeaseUnit(leaseProject.getUnitName());
|
ma.setLeaseUnit(leaseProject.getUnitName());
|
||||||
ma.setLeasePro(leaseProject.getProjectName());
|
ma.setLeasePro(leaseProject.getProjectName());
|
||||||
ma.setLeaseTime(leaseProject.getCreateTime());
|
ma.setLeaseTime(String.valueOf(leaseProject.getCreateTime()));
|
||||||
}
|
}
|
||||||
if (backProject != null){
|
if (backProject != null){
|
||||||
ma.setBackUnit(backProject.getUnitName());
|
ma.setBackUnit(backProject.getUnitName());
|
||||||
ma.setBackPro(backProject.getProjectName());
|
ma.setBackPro(backProject.getProjectName());
|
||||||
ma.setBackTime(backProject.getCreateTime());
|
ma.setBackTime(String.valueOf(backProject.getCreateTime()));
|
||||||
}
|
}
|
||||||
}else {
|
}else {
|
||||||
throw new ServiceException("二维码对应机具信息无效");
|
throw new ServiceException("二维码对应机具信息无效");
|
||||||
|
|
|
||||||
|
|
@ -73,6 +73,7 @@ public class MaTypeServiceImpl implements ITypeService {
|
||||||
typeFile.setFileName(maType.getPhotoName());
|
typeFile.setFileName(maType.getPhotoName());
|
||||||
typeFile.setFileUrl(maType.getPhotoUrl());
|
typeFile.setFileUrl(maType.getPhotoUrl());
|
||||||
typeFile.setFileType("1");
|
typeFile.setFileType("1");
|
||||||
|
typeFile.setCreateTime(DateUtils.getNowDate());
|
||||||
typeFileMapper.insertMaTypeFile(typeFile);
|
typeFileMapper.insertMaTypeFile(typeFile);
|
||||||
}
|
}
|
||||||
// 文档路径保存
|
// 文档路径保存
|
||||||
|
|
@ -82,23 +83,27 @@ public class MaTypeServiceImpl implements ITypeService {
|
||||||
typeFile1.setFileName(maType.getDocumentName());
|
typeFile1.setFileName(maType.getDocumentName());
|
||||||
typeFile1.setFileUrl(maType.getDocumentUrl());
|
typeFile1.setFileUrl(maType.getDocumentUrl());
|
||||||
typeFile1.setFileType("2");
|
typeFile1.setFileType("2");
|
||||||
|
typeFile1.setCreateTime(DateUtils.getNowDate());
|
||||||
typeFileMapper.insertMaTypeFile(typeFile1);
|
typeFileMapper.insertMaTypeFile(typeFile1);
|
||||||
}
|
}
|
||||||
// 库管员配置
|
// 库管员配置
|
||||||
MaTypeKeeper typeKeeper = new MaTypeKeeper();
|
MaTypeKeeper typeKeeper = new MaTypeKeeper();
|
||||||
typeKeeper.setUserId(maType.getKeeperUserId());
|
typeKeeper.setUserId(maType.getKeeperUserId());
|
||||||
typeKeeper.setTypeId(typeId);
|
typeKeeper.setTypeId(typeId);
|
||||||
|
typeKeeper.setCreateTime(DateUtils.getNowDate());
|
||||||
maTypeMapper.insertKeeper(typeKeeper);
|
maTypeMapper.insertKeeper(typeKeeper);
|
||||||
|
|
||||||
// 维修员配置
|
// 维修员配置
|
||||||
MaTypeRepair typeRepair = new MaTypeRepair();
|
MaTypeRepair typeRepair = new MaTypeRepair();
|
||||||
typeRepair.setUserId(maType.getRepairUserId());
|
typeRepair.setUserId(maType.getRepairUserId());
|
||||||
typeRepair.setTypeId(typeId);
|
typeRepair.setTypeId(typeId);
|
||||||
|
typeRepair.setCreateTime(DateUtils.getNowDate());
|
||||||
maTypeMapper.insertRepair(typeRepair);
|
maTypeMapper.insertRepair(typeRepair);
|
||||||
// 资产属性配置
|
// 资产属性配置
|
||||||
MaPropSet propSet = new MaPropSet();
|
MaPropSet propSet = new MaPropSet();
|
||||||
propSet.setTypeId(typeId);
|
propSet.setTypeId(typeId);
|
||||||
propSet.setPropId(maType.getPropId());
|
propSet.setPropId(maType.getPropId());
|
||||||
|
propSet.setCreateTime(DateUtils.getNowDate());
|
||||||
maTypeMapper.insertMaPropSet(propSet);
|
maTypeMapper.insertMaPropSet(propSet);
|
||||||
return i;
|
return i;
|
||||||
}
|
}
|
||||||
|
|
@ -122,6 +127,8 @@ public class MaTypeServiceImpl implements ITypeService {
|
||||||
typeFile.setFileName(maType.getPhotoName());
|
typeFile.setFileName(maType.getPhotoName());
|
||||||
typeFile.setFileUrl(maType.getPhotoUrl());
|
typeFile.setFileUrl(maType.getPhotoUrl());
|
||||||
typeFile.setFileType("1");
|
typeFile.setFileType("1");
|
||||||
|
typeFile.setCreateTime(DateUtils.getNowDate());
|
||||||
|
typeFile.setUpdateTime(DateUtils.getNowDate());
|
||||||
typeFileMapper.insertMaTypeFile(typeFile);
|
typeFileMapper.insertMaTypeFile(typeFile);
|
||||||
}
|
}
|
||||||
// 文档路径保存
|
// 文档路径保存
|
||||||
|
|
@ -132,6 +139,8 @@ public class MaTypeServiceImpl implements ITypeService {
|
||||||
typeFile1.setFileName(maType.getDocumentName());
|
typeFile1.setFileName(maType.getDocumentName());
|
||||||
typeFile1.setFileUrl(maType.getDocumentUrl());
|
typeFile1.setFileUrl(maType.getDocumentUrl());
|
||||||
typeFile1.setFileType("2");
|
typeFile1.setFileType("2");
|
||||||
|
typeFile1.setCreateTime(DateUtils.getNowDate());
|
||||||
|
typeFile1.setUpdateTime(DateUtils.getNowDate());
|
||||||
typeFileMapper.insertMaTypeFile(typeFile1);
|
typeFileMapper.insertMaTypeFile(typeFile1);
|
||||||
}
|
}
|
||||||
// 库管员配置
|
// 库管员配置
|
||||||
|
|
@ -140,6 +149,8 @@ public class MaTypeServiceImpl implements ITypeService {
|
||||||
MaTypeKeeper typeKeeper = new MaTypeKeeper();
|
MaTypeKeeper typeKeeper = new MaTypeKeeper();
|
||||||
typeKeeper.setUserId(maType.getKeeperUserId());
|
typeKeeper.setUserId(maType.getKeeperUserId());
|
||||||
typeKeeper.setTypeId(typeId);
|
typeKeeper.setTypeId(typeId);
|
||||||
|
typeKeeper.setCreateTime(DateUtils.getNowDate());
|
||||||
|
typeKeeper.setUpdateTime(DateUtils.getNowDate());
|
||||||
maTypeMapper.insertKeeper(typeKeeper);
|
maTypeMapper.insertKeeper(typeKeeper);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -157,6 +168,8 @@ public class MaTypeServiceImpl implements ITypeService {
|
||||||
MaPropSet propSet = new MaPropSet();
|
MaPropSet propSet = new MaPropSet();
|
||||||
propSet.setTypeId(typeId);
|
propSet.setTypeId(typeId);
|
||||||
propSet.setPropId(maType.getPropId());
|
propSet.setPropId(maType.getPropId());
|
||||||
|
propSet.setCreateTime(DateUtils.getNowDate());
|
||||||
|
propSet.setUpdateTime(DateUtils.getNowDate());
|
||||||
maTypeMapper.insertMaPropSet(propSet);
|
maTypeMapper.insertMaPropSet(propSet);
|
||||||
}
|
}
|
||||||
return i;
|
return i;
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,7 @@ import com.bonus.sgzb.base.api.domain.DirectApplyDetails;
|
||||||
import com.bonus.sgzb.base.api.domain.DirectApplyInfo;
|
import com.bonus.sgzb.base.api.domain.DirectApplyInfo;
|
||||||
import com.bonus.sgzb.base.api.domain.LeaseOutDetails;
|
import com.bonus.sgzb.base.api.domain.LeaseOutDetails;
|
||||||
import com.bonus.sgzb.base.api.domain.SltAgreementInfo;
|
import com.bonus.sgzb.base.api.domain.SltAgreementInfo;
|
||||||
|
import com.bonus.sgzb.common.core.utils.DateUtils;
|
||||||
import com.bonus.sgzb.common.core.utils.StringUtils;
|
import com.bonus.sgzb.common.core.utils.StringUtils;
|
||||||
import com.bonus.sgzb.common.core.web.controller.BaseController;
|
import com.bonus.sgzb.common.core.web.controller.BaseController;
|
||||||
import com.bonus.sgzb.common.core.web.domain.AjaxResult;
|
import com.bonus.sgzb.common.core.web.domain.AjaxResult;
|
||||||
|
|
@ -127,7 +128,7 @@ public class WorkSiteDirectManageController extends BaseController {
|
||||||
if (directApplyInfo != null) {
|
if (directApplyInfo != null) {
|
||||||
directApplyInfo.setStatus("2");
|
directApplyInfo.setStatus("2");
|
||||||
directApplyInfo.setAuditor(SecurityUtils.getLoginUser().getUsername());
|
directApplyInfo.setAuditor(SecurityUtils.getLoginUser().getUsername());
|
||||||
directApplyInfo.setAuditTime(DateUtil.format(new Date(), "yyyy-MM-dd HH:mm:ss"));
|
directApplyInfo.setAuditTime(DateUtils.getNowDate());
|
||||||
workSiteDirectManageService.refuseDirectApplyInfo(directApplyInfo);
|
workSiteDirectManageService.refuseDirectApplyInfo(directApplyInfo);
|
||||||
} else {
|
} else {
|
||||||
return AjaxResult.error("参数为空,审核失败");
|
return AjaxResult.error("参数为空,审核失败");
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,7 @@ import com.bonus.sgzb.common.core.web.domain.BaseEntity;
|
||||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
import org.springframework.format.annotation.DateTimeFormat;
|
||||||
|
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
@ -41,7 +42,9 @@ public class AgreementInfo extends BaseEntity {
|
||||||
*/
|
*/
|
||||||
@Excel(name = "签订日期")
|
@Excel(name = "签订日期")
|
||||||
@ApiModelProperty(value = "签订日期")
|
@ApiModelProperty(value = "签订日期")
|
||||||
private String signTime;
|
@DateTimeFormat(pattern = "yyyy-MM-dd")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
|
||||||
|
private Date signTime;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 往来单位id
|
* 往来单位id
|
||||||
|
|
|
||||||
|
|
@ -2,10 +2,13 @@ package com.bonus.sgzb.material.domain;
|
||||||
|
|
||||||
import com.bonus.sgzb.common.core.annotation.Excel;
|
import com.bonus.sgzb.common.core.annotation.Excel;
|
||||||
import com.bonus.sgzb.common.core.web.domain.BaseEntity;
|
import com.bonus.sgzb.common.core.web.domain.BaseEntity;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||||
|
import org.springframework.format.annotation.DateTimeFormat;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -36,13 +39,17 @@ public class PurchaseCheckInfo extends BaseEntity
|
||||||
|
|
||||||
/** 采购日期 */
|
/** 采购日期 */
|
||||||
@ApiModelProperty(value = "采购日期")
|
@ApiModelProperty(value = "采购日期")
|
||||||
|
@DateTimeFormat(pattern = "yyyy-MM-dd")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
|
||||||
@Excel(name = "采购日期")
|
@Excel(name = "采购日期")
|
||||||
private String purchaseTime;
|
private Date purchaseTime;
|
||||||
|
|
||||||
/** 到货日期 */
|
/** 到货日期 */
|
||||||
@ApiModelProperty(value = "到货日期")
|
@ApiModelProperty(value = "到货日期")
|
||||||
|
@DateTimeFormat(pattern = "yyyy-MM-dd")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
|
||||||
@Excel(name = "到货日期")
|
@Excel(name = "到货日期")
|
||||||
private String arrivalTime;
|
private Date arrivalTime;
|
||||||
|
|
||||||
/** 采购员名称 */
|
/** 采购员名称 */
|
||||||
@ApiModelProperty(value = "采购员名称")
|
@ApiModelProperty(value = "采购员名称")
|
||||||
|
|
@ -153,21 +160,21 @@ public class PurchaseCheckInfo extends BaseEntity
|
||||||
{
|
{
|
||||||
return taskId;
|
return taskId;
|
||||||
}
|
}
|
||||||
public void setPurchaseTime(String purchaseTime)
|
public void setPurchaseTime(Date purchaseTime)
|
||||||
{
|
{
|
||||||
this.purchaseTime = purchaseTime;
|
this.purchaseTime = purchaseTime;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getPurchaseTime()
|
public Date getPurchaseTime()
|
||||||
{
|
{
|
||||||
return purchaseTime;
|
return purchaseTime;
|
||||||
}
|
}
|
||||||
public void setArrivalTime(String arrivalTime)
|
public void setArrivalTime(Date arrivalTime)
|
||||||
{
|
{
|
||||||
this.arrivalTime = arrivalTime;
|
this.arrivalTime = arrivalTime;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getArrivalTime()
|
public Date getArrivalTime()
|
||||||
{
|
{
|
||||||
return arrivalTime;
|
return arrivalTime;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -132,8 +132,10 @@ public class PurchasePartDetails extends BaseEntity
|
||||||
private BigDecimal inputNum;
|
private BigDecimal inputNum;
|
||||||
|
|
||||||
/** 入库时间 */
|
/** 入库时间 */
|
||||||
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||||
@ApiModelProperty(value = "入库时间")
|
@ApiModelProperty(value = "入库时间")
|
||||||
private String inputTime;
|
private Date inputTime;
|
||||||
|
|
||||||
/** 入库人 */
|
/** 入库人 */
|
||||||
@ApiModelProperty(value = "入库人")
|
@ApiModelProperty(value = "入库人")
|
||||||
|
|
@ -400,11 +402,11 @@ public class PurchasePartDetails extends BaseEntity
|
||||||
this.modelId = modelId;
|
this.modelId = modelId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getInputTime() {
|
public Date getInputTime() {
|
||||||
return inputTime;
|
return inputTime;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setInputTime(String inputTime) {
|
public void setInputTime(Date inputTime) {
|
||||||
this.inputTime = inputTime;
|
this.inputTime = inputTime;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,10 +2,13 @@ package com.bonus.sgzb.material.domain;
|
||||||
|
|
||||||
import com.bonus.sgzb.common.core.annotation.Excel;
|
import com.bonus.sgzb.common.core.annotation.Excel;
|
||||||
import com.bonus.sgzb.common.core.web.domain.BaseEntity;
|
import com.bonus.sgzb.common.core.web.domain.BaseEntity;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||||
|
import org.springframework.format.annotation.DateTimeFormat;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -31,13 +34,17 @@ public class PurchasePartInfo extends BaseEntity
|
||||||
|
|
||||||
/** 采购日期 */
|
/** 采购日期 */
|
||||||
@ApiModelProperty(value = "采购日期")
|
@ApiModelProperty(value = "采购日期")
|
||||||
|
@DateTimeFormat(pattern = "yyyy-MM-dd")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
|
||||||
@Excel(name = "采购日期")
|
@Excel(name = "采购日期")
|
||||||
private String purchaseTime;
|
private Date purchaseTime;
|
||||||
|
|
||||||
/** 到货日期 */
|
/** 到货日期 */
|
||||||
@ApiModelProperty(value = "到货日期")
|
@ApiModelProperty(value = "到货日期")
|
||||||
|
@DateTimeFormat(pattern = "yyyy-MM-dd")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
|
||||||
@Excel(name = "到货日期")
|
@Excel(name = "到货日期")
|
||||||
private String arrivalTime;
|
private Date arrivalTime;
|
||||||
|
|
||||||
/** 采购员 */
|
/** 采购员 */
|
||||||
@ApiModelProperty(value = "采购员")
|
@ApiModelProperty(value = "采购员")
|
||||||
|
|
@ -159,21 +166,21 @@ public class PurchasePartInfo extends BaseEntity
|
||||||
{
|
{
|
||||||
return taskId;
|
return taskId;
|
||||||
}
|
}
|
||||||
public void setPurchaseTime(String purchaseTime)
|
public void setPurchaseTime(Date purchaseTime)
|
||||||
{
|
{
|
||||||
this.purchaseTime = purchaseTime;
|
this.purchaseTime = purchaseTime;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getPurchaseTime()
|
public Date getPurchaseTime()
|
||||||
{
|
{
|
||||||
return purchaseTime;
|
return purchaseTime;
|
||||||
}
|
}
|
||||||
public void setArrivalTime(String arrivalTime)
|
public void setArrivalTime(Date arrivalTime)
|
||||||
{
|
{
|
||||||
this.arrivalTime = arrivalTime;
|
this.arrivalTime = arrivalTime;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getArrivalTime()
|
public Date getArrivalTime()
|
||||||
{
|
{
|
||||||
return arrivalTime;
|
return arrivalTime;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,12 @@
|
||||||
package com.bonus.sgzb.material.domain;
|
package com.bonus.sgzb.material.domain;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
import org.springframework.format.annotation.DateTimeFormat;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
@ApiModel(description="报废审核人员配置")
|
@ApiModel(description="报废审核人员配置")
|
||||||
@Data
|
@Data
|
||||||
|
|
@ -55,7 +59,9 @@ public class ScrapAuditorSet {
|
||||||
* 审核时间
|
* 审核时间
|
||||||
*/
|
*/
|
||||||
@ApiModelProperty(value = "审核时间")
|
@ApiModelProperty(value = "审核时间")
|
||||||
private String auditTime;
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||||
|
private Date auditTime;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*驳回原因
|
*驳回原因
|
||||||
|
|
|
||||||
|
|
@ -154,8 +154,8 @@ public class CalcMonthlyServiceImp implements CalcMonthlyService {
|
||||||
projectMonthDetail.setMaId(Integer.valueOf(bean.getMaId()));
|
projectMonthDetail.setMaId(Integer.valueOf(bean.getMaId()));
|
||||||
}
|
}
|
||||||
projectMonthDetail.setUnit(bean.getNuitName());
|
projectMonthDetail.setUnit(bean.getNuitName());
|
||||||
projectMonthDetail.setStartTime(bean.getStartTime());
|
projectMonthDetail.setStartTime(String.valueOf(bean.getStartTime()));
|
||||||
projectMonthDetail.setEndTime(bean.getEndTime());
|
projectMonthDetail.setEndTime(String.valueOf(bean.getEndTime()));
|
||||||
projectMonthDetail.setSltDays(bean.getLeaseDays());
|
projectMonthDetail.setSltDays(bean.getLeaseDays());
|
||||||
projectMonthDetail.setNum(bean.getNum());
|
projectMonthDetail.setNum(bean.getNum());
|
||||||
projectMonthDetail.setLeasePrice(bean.getLeasePrice());
|
projectMonthDetail.setLeasePrice(bean.getLeasePrice());
|
||||||
|
|
|
||||||
|
|
@ -259,7 +259,7 @@ public class PurchaseAccessoryServiceImpl implements IPurchaseAccessoryService {
|
||||||
if ("1".equals(partDetails.getCheckResult())) {
|
if ("1".equals(partDetails.getCheckResult())) {
|
||||||
partDetails.setStatus(3);
|
partDetails.setStatus(3);
|
||||||
partDetails.setInputNum(partDetails.getCheckNum());
|
partDetails.setInputNum(partDetails.getCheckNum());
|
||||||
partDetails.setInputTime(String.valueOf(DateUtils.getNowDate()));
|
partDetails.setInputTime(DateUtils.getNowDate());
|
||||||
|
|
||||||
partDetails.setUpdateBy(String.valueOf(SecurityUtils.getLoginUser().getUserid()));
|
partDetails.setUpdateBy(String.valueOf(SecurityUtils.getLoginUser().getUserid()));
|
||||||
partDetails.setUpdateTime(DateUtils.getNowDate());
|
partDetails.setUpdateTime(DateUtils.getNowDate());
|
||||||
|
|
@ -309,6 +309,10 @@ public class PurchaseAccessoryServiceImpl implements IPurchaseAccessoryService {
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static void main(String[] args) {
|
||||||
|
System.out.println(DateUtils.getNowDate());
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<PurchasePartInfo> exportList(PurchasePartInfo bean) {
|
public List<PurchasePartInfo> exportList(PurchasePartInfo bean) {
|
||||||
return purchaseAccessoryMapper.exportList(bean);
|
return purchaseAccessoryMapper.exportList(bean);
|
||||||
|
|
|
||||||
|
|
@ -211,7 +211,7 @@ public class ScrapApplyDetailsServiceImpl implements IScrapApplyDetailsService {
|
||||||
public int scrapTaskReview(ScrapAuditorSet scrapAuditorSet) {
|
public int scrapTaskReview(ScrapAuditorSet scrapAuditorSet) {
|
||||||
log.info("ScrapApplyDetailsServiceImpl scrapTaskReview begin: {}", scrapAuditorSet);
|
log.info("ScrapApplyDetailsServiceImpl scrapTaskReview begin: {}", scrapAuditorSet);
|
||||||
try {
|
try {
|
||||||
scrapAuditorSet.setAuditTime(DateUtils.dateTimeNow());
|
scrapAuditorSet.setAuditTime(new Date());
|
||||||
//修改审核状态
|
//修改审核状态
|
||||||
scrapAuditorSetMapper.updateStatus(scrapAuditorSet);
|
scrapAuditorSetMapper.updateStatus(scrapAuditorSet);
|
||||||
//获取报废任务所有审核人员的审核详情
|
//获取报废任务所有审核人员的审核详情
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,7 @@ package com.bonus.sgzb.material.service.impl;
|
||||||
import cn.hutool.core.collection.CollUtil;
|
import cn.hutool.core.collection.CollUtil;
|
||||||
import cn.hutool.core.date.DateUtil;
|
import cn.hutool.core.date.DateUtil;
|
||||||
import com.bonus.sgzb.base.api.domain.*;
|
import com.bonus.sgzb.base.api.domain.*;
|
||||||
|
import com.bonus.sgzb.common.core.utils.DateUtils;
|
||||||
import com.bonus.sgzb.common.core.utils.StringUtils;
|
import com.bonus.sgzb.common.core.utils.StringUtils;
|
||||||
import com.bonus.sgzb.common.security.utils.SecurityUtils;
|
import com.bonus.sgzb.common.security.utils.SecurityUtils;
|
||||||
import com.bonus.sgzb.material.domain.*;
|
import com.bonus.sgzb.material.domain.*;
|
||||||
|
|
@ -600,7 +601,7 @@ public class WorkSiteDirectManageImpl implements WorkSiteDirectManageService {
|
||||||
DirectApplyInfo directApplyInfos = getDirectApplyInfoById(directApplyInfoDetails.getId());
|
DirectApplyInfo directApplyInfos = getDirectApplyInfoById(directApplyInfoDetails.getId());
|
||||||
directApplyInfos.setStatus("1");
|
directApplyInfos.setStatus("1");
|
||||||
directApplyInfos.setAuditor(SecurityUtils.getLoginUser().getUsername());
|
directApplyInfos.setAuditor(SecurityUtils.getLoginUser().getUsername());
|
||||||
directApplyInfos.setAuditTime(DateUtil.format(new Date(), "yyyy-MM-dd HH:mm:ss"));
|
directApplyInfos.setAuditTime(DateUtils.getNowDate());
|
||||||
res = refuseDirectApplyInfo(directApplyInfos);
|
res = refuseDirectApplyInfo(directApplyInfos);
|
||||||
} else {
|
} else {
|
||||||
return res;
|
return res;
|
||||||
|
|
@ -616,4 +617,8 @@ public class WorkSiteDirectManageImpl implements WorkSiteDirectManageService {
|
||||||
}
|
}
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static void main(String[] args) {
|
||||||
|
System.out.println(new Date());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -549,12 +549,14 @@
|
||||||
|
|
||||||
<update id="updateTaskStatus">
|
<update id="updateTaskStatus">
|
||||||
update tm_task
|
update tm_task
|
||||||
set task_status=#{status}
|
set task_status=#{status},
|
||||||
|
update_time = NOW()
|
||||||
where task_id = #{taskId}
|
where task_id = #{taskId}
|
||||||
</update>
|
</update>
|
||||||
<update id="updateMaStatus">
|
<update id="updateMaStatus">
|
||||||
update ma_machine
|
update ma_machine
|
||||||
set ma_status=#{maStatus}
|
set ma_status=#{maStatus},
|
||||||
|
update_time = NOW()
|
||||||
where ma_id = #{maId}
|
where ma_id = #{maId}
|
||||||
</update>
|
</update>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -304,7 +304,8 @@
|
||||||
</update>
|
</update>
|
||||||
<update id="updateTaskStatus">
|
<update id="updateTaskStatus">
|
||||||
update tm_task
|
update tm_task
|
||||||
set task_status = #{status}
|
set task_status = #{status},
|
||||||
|
update_time = NOW()
|
||||||
where task_id = #{taskId}
|
where task_id = #{taskId}
|
||||||
</update>
|
</update>
|
||||||
<update id="updSltInfo">
|
<update id="updSltInfo">
|
||||||
|
|
|
||||||
|
|
@ -80,13 +80,16 @@
|
||||||
</insert>
|
</insert>
|
||||||
|
|
||||||
<update id="updateMaMachine">
|
<update id="updateMaMachine">
|
||||||
update ma_machine set ma_status = #{maStatus} where ma_id = #{maId}
|
update ma_machine
|
||||||
|
set ma_status = #{maStatus},
|
||||||
|
update_time = NOW()
|
||||||
|
where ma_id = #{maId}
|
||||||
</update>
|
</update>
|
||||||
<update id="updateTypeByTypeId">
|
<update id="updateTypeByTypeId">
|
||||||
update ma_type set num = #{num} where type_id = #{typeId}
|
update ma_type set num = #{num} where type_id = #{typeId}
|
||||||
</update>
|
</update>
|
||||||
<update id="updateByTaskIdTypeId">
|
<update id="updateByTaskIdTypeId">
|
||||||
update purchase_check_details set check_num = #{inputNum},status = #{status},input_num=#{inputNum},input_status='1',input_time=NOW() where task_id = #{taskId} and type_id = #{typeId}
|
update purchase_check_details set check_num = #{inputNum},status = #{status},input_num=#{inputNum},input_status='1',input_time=NOW(),update_time = NOW() where task_id = #{taskId} and type_id = #{typeId}
|
||||||
</update>
|
</update>
|
||||||
<update id="updateMacodeByType">
|
<update id="updateMacodeByType">
|
||||||
update purchase_macode_info
|
update purchase_macode_info
|
||||||
|
|
@ -120,7 +123,7 @@
|
||||||
and type_id = #{typeId}
|
and type_id = #{typeId}
|
||||||
</update>
|
</update>
|
||||||
<update id="updatePurchaseCheckDetailsByTaskId">
|
<update id="updatePurchaseCheckDetailsByTaskId">
|
||||||
update purchase_check_details set bind_num = bind_num - 1 , status='5' where task_id = #{taskId} and type_id = #{typeId}
|
update purchase_check_details set bind_num = bind_num - 1 , status='5', update_time = NOW() where task_id = #{taskId} and type_id = #{typeId}
|
||||||
</update>
|
</update>
|
||||||
|
|
||||||
<delete id="deleteMaMachineInfoByMaId">
|
<delete id="deleteMaMachineInfoByMaId">
|
||||||
|
|
|
||||||
|
|
@ -55,7 +55,7 @@
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<update id="deleteTaskByPrimaryKey" >
|
<update id="deleteTaskByPrimaryKey" >
|
||||||
update tm_task set `status` = '0'
|
update tm_task set `status` = '0',update_time = NOW()
|
||||||
where task_id = #{taskId}
|
where task_id = #{taskId}
|
||||||
</update>
|
</update>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -76,7 +76,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
</update>
|
</update>
|
||||||
|
|
||||||
<delete id="deleteHouseById" parameterType="Long">
|
<delete id="deleteHouseById" parameterType="Long">
|
||||||
update ma_house_info set del_flag = '2' where house_id = #{houseId}
|
update ma_house_info set del_flag = '2', update_time = NOW() where house_id = #{houseId}
|
||||||
</delete>
|
</delete>
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -83,7 +83,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
</update>
|
</update>
|
||||||
|
|
||||||
<delete id="deleteHouseSetById" parameterType="Long">
|
<delete id="deleteHouseSetById" parameterType="Long">
|
||||||
update ma_house_set set del_flag = '2' where id = #{id}
|
update ma_house_set set del_flag = '2', update_time = NOW() where id = #{id}
|
||||||
</delete>
|
</delete>
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -169,6 +169,7 @@
|
||||||
<if test="binder != null">binder = #{binder},</if>
|
<if test="binder != null">binder = #{binder},</if>
|
||||||
<if test="labelType != null">label_type = #{labelType},</if>
|
<if test="labelType != null">label_type = #{labelType},</if>
|
||||||
<if test="companyId != null">company_id = #{companyId},</if>
|
<if test="companyId != null">company_id = #{companyId},</if>
|
||||||
|
update_time = NOW()
|
||||||
</trim>
|
</trim>
|
||||||
where ma_id = #{maId}
|
where ma_id = #{maId}
|
||||||
</update>
|
</update>
|
||||||
|
|
@ -178,7 +179,7 @@
|
||||||
</delete>
|
</delete>
|
||||||
|
|
||||||
<update id="updateMaLabelBindByMaIds" parameterType="Long">
|
<update id="updateMaLabelBindByMaIds" parameterType="Long">
|
||||||
update ma_label_bind set status = '2' where id = #{id}
|
update ma_label_bind set status = '2', update_time = NOW() where id = #{id}
|
||||||
</update>
|
</update>
|
||||||
|
|
||||||
<select id="selectMaMachineMaId" parameterType="com.bonus.sgzb.base.vo.MaLabelBindVO">
|
<select id="selectMaMachineMaId" parameterType="com.bonus.sgzb.base.vo.MaLabelBindVO">
|
||||||
|
|
@ -191,12 +192,12 @@
|
||||||
</select>
|
</select>
|
||||||
<update id="updateMaLabelBindMaIds" parameterType="com.bonus.sgzb.base.vo.MaLabelBindVO">
|
<update id="updateMaLabelBindMaIds" parameterType="com.bonus.sgzb.base.vo.MaLabelBindVO">
|
||||||
update ma_machine_label set
|
update ma_machine_label set
|
||||||
ma_id = #{maId},is_bind =#{isBind}
|
ma_id = #{maId},is_bind =#{isBind},update_time = NOW()
|
||||||
where label_id =#{labelId}
|
where label_id =#{labelId}
|
||||||
</update>
|
</update>
|
||||||
<update id="updateMalableCode" parameterType="com.bonus.sgzb.base.api.domain.MaLabelBind">
|
<update id="updateMalableCode" parameterType="com.bonus.sgzb.base.api.domain.MaLabelBind">
|
||||||
update ma_machine_label set
|
update ma_machine_label set
|
||||||
ma_id = #{maId},is_bind =1
|
ma_id = #{maId},is_bind =1,update_time = NOW()
|
||||||
where label_code =#{labelCode}
|
where label_code =#{labelCode}
|
||||||
</update>
|
</update>
|
||||||
<update id="updateMatypeNum">
|
<update id="updateMatypeNum">
|
||||||
|
|
|
||||||
|
|
@ -265,6 +265,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
<if test="buyTask != null and buyTask != ''">buy_task = #{buyTask},</if>
|
<if test="buyTask != null and buyTask != ''">buy_task = #{buyTask},</if>
|
||||||
<if test="ownHouse != null and ownHouse != ''">own_house = #{ownHouse},</if>
|
<if test="ownHouse != null and ownHouse != ''">own_house = #{ownHouse},</if>
|
||||||
<if test="companyId != null and companyId != ''">company_id = #{companyId},</if>
|
<if test="companyId != null and companyId != ''">company_id = #{companyId},</if>
|
||||||
|
update_time = sysdate()
|
||||||
</set>
|
</set>
|
||||||
where ma_id = #{maId}
|
where ma_id = #{maId}
|
||||||
</update>
|
</update>
|
||||||
|
|
|
||||||
|
|
@ -221,13 +221,15 @@
|
||||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
<if test="typeId != null">type_id,</if>
|
<if test="typeId != null">type_id,</if>
|
||||||
<if test="userId != null">user_id,</if>
|
<if test="userId != null">user_id,</if>
|
||||||
<if test="time != null">time,</if>
|
<if test="createTime != null">create_time,</if>
|
||||||
|
<if test="updateTime != null">update_time,</if>
|
||||||
<if test="companyId != null">company_id,</if>
|
<if test="companyId != null">company_id,</if>
|
||||||
</trim>
|
</trim>
|
||||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
<if test="typeId != null">#{typeId},</if>
|
<if test="typeId != null">#{typeId},</if>
|
||||||
<if test="userId != null">#{userId},</if>
|
<if test="userId != null">#{userId},</if>
|
||||||
<if test="time != null">#{time},</if>
|
<if test="createTime != null">#{createTime},</if>
|
||||||
|
<if test="updateTime != null">#{updateTime},</if>
|
||||||
<if test="companyId != null">#{companyId},</if>
|
<if test="companyId != null">#{companyId},</if>
|
||||||
</trim>
|
</trim>
|
||||||
</insert>
|
</insert>
|
||||||
|
|
@ -237,13 +239,15 @@
|
||||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
<if test="typeId != null">type_id,</if>
|
<if test="typeId != null">type_id,</if>
|
||||||
<if test="userId != null">user_id,</if>
|
<if test="userId != null">user_id,</if>
|
||||||
<if test="time != null">time,</if>
|
<if test="createTime != null">create_time,</if>
|
||||||
|
<if test="updateTime != null">update_time,</if>
|
||||||
<if test="companyId != null">company_id,</if>
|
<if test="companyId != null">company_id,</if>
|
||||||
</trim>
|
</trim>
|
||||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
<if test="typeId != null">#{typeId},</if>
|
<if test="typeId != null">#{typeId},</if>
|
||||||
<if test="userId != null">#{userId},</if>
|
<if test="userId != null">#{userId},</if>
|
||||||
<if test="time != null">#{time},</if>
|
<if test="createTime != null">#{createTime},</if>
|
||||||
|
<if test="updateTime != null">#{updateTime},</if>
|
||||||
<if test="companyId != null">#{companyId},</if>
|
<if test="companyId != null">#{companyId},</if>
|
||||||
</trim>
|
</trim>
|
||||||
</insert>
|
</insert>
|
||||||
|
|
|
||||||
|
|
@ -11,13 +11,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
<result property="fileUrl" column="file_url" />
|
<result property="fileUrl" column="file_url" />
|
||||||
<result property="fileType" column="file_type" />
|
<result property="fileType" column="file_type" />
|
||||||
<result property="userId" column="user_id" />
|
<result property="userId" column="user_id" />
|
||||||
<result property="time" column="time" />
|
|
||||||
<result property="status" column="status" />
|
<result property="status" column="status" />
|
||||||
<result property="companyId" column="company_id" />
|
<result property="companyId" column="company_id" />
|
||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
<sql id="selectMaTypeFileVo">
|
<sql id="selectMaTypeFileVo">
|
||||||
select type_id, ma_id, file_name, file_url, file_type, user_id, time, status, company_id from ma_type_file
|
select type_id, ma_id, file_name, file_url, file_type, user_id, status, company_id from ma_type_file
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
<select id="selectMaTypeFileList" parameterType="com.bonus.sgzb.base.domain.MaTypeFile" resultMap="MaTypeFileResult">
|
<select id="selectMaTypeFileList" parameterType="com.bonus.sgzb.base.domain.MaTypeFile" resultMap="MaTypeFileResult">
|
||||||
|
|
@ -28,7 +27,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
<if test="fileUrl != null and fileUrl != ''"> and file_url = #{fileUrl}</if>
|
<if test="fileUrl != null and fileUrl != ''"> and file_url = #{fileUrl}</if>
|
||||||
<if test="fileType != null and fileType != ''"> and file_type = #{fileType}</if>
|
<if test="fileType != null and fileType != ''"> and file_type = #{fileType}</if>
|
||||||
<if test="userId != null and userId != ''"> and user_id = #{userId}</if>
|
<if test="userId != null and userId != ''"> and user_id = #{userId}</if>
|
||||||
<if test="time != null and time != ''"> and time = #{time}</if>
|
|
||||||
<if test="status != null and status != ''"> and status = #{status}</if>
|
<if test="status != null and status != ''"> and status = #{status}</if>
|
||||||
<if test="companyId != null and companyId != ''"> and company_id = #{companyId}</if>
|
<if test="companyId != null and companyId != ''"> and company_id = #{companyId}</if>
|
||||||
</where>
|
</where>
|
||||||
|
|
@ -48,7 +46,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
<if test="fileUrl != null">file_url,</if>
|
<if test="fileUrl != null">file_url,</if>
|
||||||
<if test="fileType != null">file_type,</if>
|
<if test="fileType != null">file_type,</if>
|
||||||
<if test="userId != null">user_id,</if>
|
<if test="userId != null">user_id,</if>
|
||||||
<if test="time != null">time,</if>
|
<if test="createTime != null">create_time,</if>
|
||||||
|
<if test="updateTime != null">update_time,</if>
|
||||||
<if test="status != null">status,</if>
|
<if test="status != null">status,</if>
|
||||||
<if test="companyId != null">company_id,</if>
|
<if test="companyId != null">company_id,</if>
|
||||||
</trim>
|
</trim>
|
||||||
|
|
@ -59,7 +58,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
<if test="fileUrl != null">#{fileUrl},</if>
|
<if test="fileUrl != null">#{fileUrl},</if>
|
||||||
<if test="fileType != null">#{fileType},</if>
|
<if test="fileType != null">#{fileType},</if>
|
||||||
<if test="userId != null">#{userId},</if>
|
<if test="userId != null">#{userId},</if>
|
||||||
<if test="time != null">#{time},</if>
|
<if test="createTime != null">#{createTime},</if>
|
||||||
|
<if test="updateTime != null">#{updateTime},</if>
|
||||||
<if test="status != null">#{status},</if>
|
<if test="status != null">#{status},</if>
|
||||||
<if test="companyId != null">#{companyId},</if>
|
<if test="companyId != null">#{companyId},</if>
|
||||||
</trim>
|
</trim>
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
<mapper namespace="com.bonus.sgzb.base.mapper.MaintenanceGangMapper">
|
<mapper namespace="com.bonus.sgzb.base.mapper.MaintenanceGangMapper">
|
||||||
<insert id="add">
|
<insert id="add">
|
||||||
insert into ma_type_repair(type_id, user_id,company_id ,time) values
|
insert into ma_type_repair(type_id, user_id,company_id ,create_time) values
|
||||||
<foreach item="item" index="index" collection="list" separator=",">
|
<foreach item="item" index="index" collection="list" separator=",">
|
||||||
(#{item.typeIds},#{item.userId},#{item.companyId},NOW())
|
(#{item.typeIds},#{item.userId},#{item.companyId},NOW())
|
||||||
</foreach>
|
</foreach>
|
||||||
|
|
|
||||||
|
|
@ -74,7 +74,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
</insert>
|
</insert>
|
||||||
<update id="updateMaStatus">
|
<update id="updateMaStatus">
|
||||||
update ma_machine
|
update ma_machine
|
||||||
set ma_status=#{maStatus}
|
set ma_status=#{maStatus},
|
||||||
|
update_time = NOW()
|
||||||
where ma_id = #{maId}
|
where ma_id = #{maId}
|
||||||
</update>
|
</update>
|
||||||
<update id="updateStlInfo">
|
<update id="updateStlInfo">
|
||||||
|
|
|
||||||
|
|
@ -193,7 +193,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
</insert>
|
</insert>
|
||||||
|
|
||||||
<update id="updateCheckDetailsByTaskId">
|
<update id="updateCheckDetailsByTaskId">
|
||||||
update purchase_check_details set status = 0 where task_id = #{taskId}
|
update purchase_check_details set status = 0, update_time = NOW() where task_id = #{taskId}
|
||||||
</update>
|
</update>
|
||||||
|
|
||||||
<select id="selectPurchaseCheckDetailsStatus" resultType="int">
|
<select id="selectPurchaseCheckDetailsStatus" resultType="int">
|
||||||
|
|
@ -250,13 +250,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
</delete>
|
</delete>
|
||||||
|
|
||||||
<update id="updateByTaskIdTypeId">
|
<update id="updateByTaskIdTypeId">
|
||||||
update purchase_check_details set status = #{status},input_num=#{inputNum},input_status='1',input_time=NOW() where task_id = #{taskId} and type_id = #{typeId}
|
update purchase_check_details set status = #{status},input_num=#{inputNum},input_status='1',input_time=NOW(), update_time = NOW() where task_id = #{taskId} and type_id = #{typeId}
|
||||||
</update>
|
</update>
|
||||||
<update id="updateCheckDetails">
|
<update id="updateCheckDetails">
|
||||||
update purchase_check_details set status = '0' where task_id = #{taskId}
|
update purchase_check_details set status = '0' where task_id = #{taskId}
|
||||||
</update>
|
</update>
|
||||||
<update id="updateBindByTaskIdTypeId">
|
<update id="updateBindByTaskIdTypeId">
|
||||||
update purchase_check_details set bind_num = #{bindNum} where task_id = #{taskId} and type_id = #{typeId}
|
update purchase_check_details set bind_num = #{bindNum}, update_time = NOW() where task_id = #{taskId} and type_id = #{typeId}
|
||||||
</update>
|
</update>
|
||||||
<update id="updatePurchaseCheckDetailsByTaskId">
|
<update id="updatePurchaseCheckDetailsByTaskId">
|
||||||
update purchase_check_details set bind_num = bind_num - 1 , status='5' where task_id = #{taskId} and type_id = #{typeId}
|
update purchase_check_details set bind_num = bind_num - 1 , status='5' where task_id = #{taskId} and type_id = #{typeId}
|
||||||
|
|
|
||||||
|
|
@ -82,7 +82,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
</update>
|
</update>
|
||||||
<update id="updateMaStatus">
|
<update id="updateMaStatus">
|
||||||
update ma_machine
|
update ma_machine
|
||||||
set ma_status = '103'
|
set ma_status = '103',
|
||||||
|
update_time = NOW()
|
||||||
where ma_id = #{maId}
|
where ma_id = #{maId}
|
||||||
</update>
|
</update>
|
||||||
<update id="updateTrimDay">
|
<update id="updateTrimDay">
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue