From 9e0b96e482ebf8b230adc316f16c7b74be7746bc Mon Sep 17 00:00:00 2001 From: mashuai Date: Wed, 4 Sep 2024 09:13:59 +0800 Subject: [PATCH 1/2] datetime --- .../sgzb/base/api/domain/DirectApplyInfo.java | 7 ++++++- .../bonus/sgzb/base/api/domain/MaMachine.java | 15 ++++++++++++--- .../base/api/domain/SltAgreementApply.java | 11 +++++++++-- .../base/api/domain/SltAgreementInfo.java | 11 +++++++++-- .../sgzb/app/domain/BmAgreementInfo.java | 6 +++++- .../bonus/sgzb/app/domain/LeaseApplyInfo.java | 13 ++++++++++--- .../com/bonus/sgzb/app/domain/TmTask.java | 12 ++++++++++-- .../com/bonus/sgzb/base/domain/MaPropSet.java | 5 ++++- .../bonus/sgzb/base/domain/MaTypeFile.java | 12 ------------ .../bonus/sgzb/base/domain/MaTypeHisNum.java | 13 ++++++++++--- .../sgzb/base/domain/MaTypeHisPrice.java | 13 ++++++++++--- .../bonus/sgzb/base/domain/MaTypeKeeper.java | 16 ++++------------ .../service/impl/MaMachineServiceImpl.java | 4 ++-- .../base/service/impl/MaTypeServiceImpl.java | 13 +++++++++++++ .../WorkSiteDirectManageController.java | 3 ++- .../sgzb/material/domain/AgreementInfo.java | 5 ++++- .../material/domain/PurchaseCheckInfo.java | 19 +++++++++++++------ .../material/domain/PurchasePartDetails.java | 8 +++++--- .../material/domain/PurchasePartInfo.java | 19 +++++++++++++------ .../sgzb/material/domain/ScrapAuditorSet.java | 8 +++++++- .../remind/service/CalcMonthlyServiceImp.java | 4 ++-- .../impl/PurchaseAccessoryServiceImpl.java | 6 +++++- .../impl/ScrapApplyDetailsServiceImpl.java | 2 +- .../impl/WorkSiteDirectManageImpl.java | 7 ++++++- .../mapper/app/BackReceiveMapper.xml | 6 ++++-- .../mapper/app/LeaseOutDetailsMapper.xml | 3 ++- .../mapper/app/PurchaseInputMapper.xml | 9 ++++++--- .../resources/mapper/app/TmTaskMapper.xml | 2 +- .../resources/mapper/base/MaHouseMapper.xml | 2 +- .../mapper/base/MaHouseSetMapper.xml | 2 +- .../mapper/base/MaLabelBindMapper.xml | 7 ++++--- .../resources/mapper/base/MaMachineMapper.xml | 1 + .../mapper/base/MaMachineTypeMapper.xml | 12 ++++++++---- .../mapper/base/MaTypeFileMapper.xml | 10 +++++----- .../mapper/base/MaintenanceGangMapper.xml | 2 +- .../mapper/material/BackRecordMapper.xml | 3 ++- .../material/PurchaseCheckDetailsMapper.xml | 6 +++--- .../material/SltAgreementInfoMapper.xml | 3 ++- 38 files changed, 203 insertions(+), 97 deletions(-) diff --git a/sgzb-api/sgzb-api-system/src/main/java/com/bonus/sgzb/base/api/domain/DirectApplyInfo.java b/sgzb-api/sgzb-api-system/src/main/java/com/bonus/sgzb/base/api/domain/DirectApplyInfo.java index 76e71ea..4f34c10 100644 --- a/sgzb-api/sgzb-api-system/src/main/java/com/bonus/sgzb/base/api/domain/DirectApplyInfo.java +++ b/sgzb-api/sgzb-api-system/src/main/java/com/bonus/sgzb/base/api/domain/DirectApplyInfo.java @@ -1,8 +1,11 @@ package com.bonus.sgzb.base.api.domain; import com.bonus.sgzb.common.core.web.domain.BaseEntity; +import com.fasterxml.jackson.annotation.JsonFormat; import lombok.Data; +import org.springframework.format.annotation.DateTimeFormat; +import java.util.Date; 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; /** * 审核备注 */ diff --git a/sgzb-api/sgzb-api-system/src/main/java/com/bonus/sgzb/base/api/domain/MaMachine.java b/sgzb-api/sgzb-api-system/src/main/java/com/bonus/sgzb/base/api/domain/MaMachine.java index 3a1c186..5f9f2ec 100644 --- a/sgzb-api/sgzb-api-system/src/main/java/com/bonus/sgzb/base/api/domain/MaMachine.java +++ b/sgzb-api/sgzb-api-system/src/main/java/com/bonus/sgzb/base/api/domain/MaMachine.java @@ -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.web.domain.BaseEntity; +import com.fasterxml.jackson.annotation.JsonFormat; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import lombok.Data; +import org.springframework.format.annotation.DateTimeFormat; +import java.util.Date; import java.util.List; /** @@ -103,7 +106,9 @@ public class MaMachine extends BaseEntity { * 出厂日期 */ @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 = "本次检验日期") - private String thisCheckTime; + @DateTimeFormat(pattern = "yyyy-MM-dd") + @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") + private Date thisCheckTime; /** * 下次检验日期 */ @ApiModelProperty(value = "下次检验日期") - private String nextCheckTime; + @DateTimeFormat(pattern = "yyyy-MM-dd") + @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") + private Date nextCheckTime; /** * gps编号 */ diff --git a/sgzb-api/sgzb-api-system/src/main/java/com/bonus/sgzb/base/api/domain/SltAgreementApply.java b/sgzb-api/sgzb-api-system/src/main/java/com/bonus/sgzb/base/api/domain/SltAgreementApply.java index 5962cfe..98873c9 100644 --- a/sgzb-api/sgzb-api-system/src/main/java/com/bonus/sgzb/base/api/domain/SltAgreementApply.java +++ b/sgzb-api/sgzb-api-system/src/main/java/com/bonus/sgzb/base/api/domain/SltAgreementApply.java @@ -1,7 +1,10 @@ package com.bonus.sgzb.base.api.domain; +import com.fasterxml.jackson.annotation.JsonFormat; import lombok.Data; +import org.springframework.format.annotation.DateTimeFormat; +import java.util.Date; 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审核驳回 */ diff --git a/sgzb-api/sgzb-api-system/src/main/java/com/bonus/sgzb/base/api/domain/SltAgreementInfo.java b/sgzb-api/sgzb-api-system/src/main/java/com/bonus/sgzb/base/api/domain/SltAgreementInfo.java index 5bd3751..231e01d 100644 --- a/sgzb-api/sgzb-api-system/src/main/java/com/bonus/sgzb/base/api/domain/SltAgreementInfo.java +++ b/sgzb-api/sgzb-api-system/src/main/java/com/bonus/sgzb/base/api/domain/SltAgreementInfo.java @@ -2,9 +2,12 @@ package com.bonus.sgzb.base.api.domain; import com.alibaba.excel.annotation.ExcelProperty; import com.bonus.sgzb.common.core.annotation.Excel; +import com.fasterxml.jackson.annotation.JsonFormat; import lombok.Data; +import org.springframework.format.annotation.DateTimeFormat; import java.math.BigDecimal; +import java.util.Date; import java.util.List; /** @@ -60,13 +63,17 @@ public class SltAgreementInfo { */ // @Excel(name = "开始日期",sort = 6) @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) @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退回 */ diff --git a/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/app/domain/BmAgreementInfo.java b/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/app/domain/BmAgreementInfo.java index ca9c148..6cd769e 100644 --- a/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/app/domain/BmAgreementInfo.java +++ b/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/app/domain/BmAgreementInfo.java @@ -1,8 +1,10 @@ package com.bonus.sgzb.app.domain; +import com.fasterxml.jackson.annotation.JsonFormat; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import lombok.Data; +import org.springframework.format.annotation.DateTimeFormat; import java.io.Serializable; import java.util.Date; @@ -33,7 +35,9 @@ public class BmAgreementInfo implements Serializable { * 签订日期 */ @ApiModelProperty(value = "签订日期") - private String signTime; + @DateTimeFormat(pattern = "yyyy-MM-dd") + @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") + private Date signTime; /** * 往来单位id diff --git a/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/app/domain/LeaseApplyInfo.java b/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/app/domain/LeaseApplyInfo.java index f5bab20..4eb954d 100644 --- a/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/app/domain/LeaseApplyInfo.java +++ b/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/app/domain/LeaseApplyInfo.java @@ -1,6 +1,7 @@ package com.bonus.sgzb.app.domain; import com.alibaba.fastjson2.annotation.JSONField; +import com.fasterxml.jackson.annotation.JsonFormat; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import lombok.Data; @@ -78,7 +79,9 @@ public class LeaseApplyInfo implements Serializable { * 公司审批时间 */ @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 = "分管审批时间") - 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 = "机具分公司审批时间") - 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 = "机具分公司审批备注") diff --git a/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/app/domain/TmTask.java b/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/app/domain/TmTask.java index 1701377..a4b9024 100644 --- a/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/app/domain/TmTask.java +++ b/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/app/domain/TmTask.java @@ -169,12 +169,20 @@ public class TmTask implements Serializable { private String backPerson; @ApiModelProperty(value = "退料人联系电话") private String phone; + @ApiModelProperty(value = "退料申请时间") - private String backTime; + @DateTimeFormat(pattern = "yyyy-MM-dd") + @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") + private Date backTime; + @ApiModelProperty(value = "退料审核人 机具分公司审批人") private String directAuditBy; + @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 = "退料审核备注 机具分公司审批备注") private String directAuditRemark; diff --git a/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/base/domain/MaPropSet.java b/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/base/domain/MaPropSet.java index 29a74ff..3498d41 100644 --- a/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/base/domain/MaPropSet.java +++ b/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/base/domain/MaPropSet.java @@ -1,12 +1,15 @@ package com.bonus.sgzb.base.domain; +import com.bonus.sgzb.common.core.web.domain.BaseEntity; import io.swagger.annotations.ApiModelProperty; import lombok.Data; import java.util.Date; @Data -public class MaPropSet { +public class MaPropSet extends BaseEntity { + + private static final long serialVersionUID = 1L; /** * ID */ diff --git a/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/base/domain/MaTypeFile.java b/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/base/domain/MaTypeFile.java index e91347e..9358709 100644 --- a/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/base/domain/MaTypeFile.java +++ b/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/base/domain/MaTypeFile.java @@ -39,10 +39,6 @@ public class MaTypeFile extends BaseEntity { @Excel(name = "上传人") private String userId; - //上传时间 - @Excel(name = "上传时间") - private String time; - //帐号状态(0正常 1停用) @Excel(name = "帐号状态(0正常 1停用)") private String status; @@ -99,14 +95,6 @@ public class MaTypeFile extends BaseEntity { this.userId = userId; } - public String getTime() { - return time; - } - - public void setTime(String time) { - this.time = time; - } - public String getStatus() { return status; } diff --git a/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/base/domain/MaTypeHisNum.java b/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/base/domain/MaTypeHisNum.java index 4cf7de3..4db75b5 100644 --- a/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/base/domain/MaTypeHisNum.java +++ b/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/base/domain/MaTypeHisNum.java @@ -1,6 +1,11 @@ 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 { /** @@ -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停用) */ @@ -43,11 +50,11 @@ public class MaTypeHisNum { } - public String getTime() { + public Date getTime() { return time; } - public void setTime(String time) { + public void setTime(Date time) { this.time = time; } diff --git a/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/base/domain/MaTypeHisPrice.java b/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/base/domain/MaTypeHisPrice.java index 2c39b51..5067910 100644 --- a/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/base/domain/MaTypeHisPrice.java +++ b/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/base/domain/MaTypeHisPrice.java @@ -1,6 +1,11 @@ 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 { /** * 类型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停用) */ @@ -42,11 +49,11 @@ public class MaTypeHisPrice { } - public String getTime() { + public Date getTime() { return time; } - public void setTime(String time) { + public void setTime(Date time) { this.time = time; } diff --git a/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/base/domain/MaTypeKeeper.java b/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/base/domain/MaTypeKeeper.java index 7c33cfc..155bce4 100644 --- a/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/base/domain/MaTypeKeeper.java +++ b/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/base/domain/MaTypeKeeper.java @@ -2,6 +2,10 @@ package com.bonus.sgzb.base.domain; import com.bonus.sgzb.common.core.annotation.Excel; 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)表实体类 @@ -22,10 +26,6 @@ public class MaTypeKeeper extends BaseEntity { @Excel(name = "用户") private Long userId; - //创建时间 - @Excel(name = "创建时间") - private String time; - //数据所属组织 @Excel(name = "数据所属组织") private String companyId; @@ -46,14 +46,6 @@ public class MaTypeKeeper extends BaseEntity { this.userId = userId; } - public String getTime() { - return time; - } - - public void setTime(String time) { - this.time = time; - } - public String getCompanyId() { return companyId; } diff --git a/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/base/service/impl/MaMachineServiceImpl.java b/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/base/service/impl/MaMachineServiceImpl.java index 9d718f2..ba8c901 100644 --- a/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/base/service/impl/MaMachineServiceImpl.java +++ b/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/base/service/impl/MaMachineServiceImpl.java @@ -159,12 +159,12 @@ public class MaMachineServiceImpl implements MaMachineService { if (leaseProject != null){ ma.setLeaseUnit(leaseProject.getUnitName()); ma.setLeasePro(leaseProject.getProjectName()); - ma.setLeaseTime(leaseProject.getCreateTime()); + ma.setLeaseTime(String.valueOf(leaseProject.getCreateTime())); } if (backProject != null){ ma.setBackUnit(backProject.getUnitName()); ma.setBackPro(backProject.getProjectName()); - ma.setBackTime(backProject.getCreateTime()); + ma.setBackTime(String.valueOf(backProject.getCreateTime())); } }else { throw new ServiceException("二维码对应机具信息无效"); diff --git a/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/base/service/impl/MaTypeServiceImpl.java b/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/base/service/impl/MaTypeServiceImpl.java index 90c43a9..dcae5d0 100644 --- a/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/base/service/impl/MaTypeServiceImpl.java +++ b/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/base/service/impl/MaTypeServiceImpl.java @@ -73,6 +73,7 @@ public class MaTypeServiceImpl implements ITypeService { typeFile.setFileName(maType.getPhotoName()); typeFile.setFileUrl(maType.getPhotoUrl()); typeFile.setFileType("1"); + typeFile.setCreateTime(DateUtils.getNowDate()); typeFileMapper.insertMaTypeFile(typeFile); } // 文档路径保存 @@ -82,23 +83,27 @@ public class MaTypeServiceImpl implements ITypeService { typeFile1.setFileName(maType.getDocumentName()); typeFile1.setFileUrl(maType.getDocumentUrl()); typeFile1.setFileType("2"); + typeFile1.setCreateTime(DateUtils.getNowDate()); typeFileMapper.insertMaTypeFile(typeFile1); } // 库管员配置 MaTypeKeeper typeKeeper = new MaTypeKeeper(); typeKeeper.setUserId(maType.getKeeperUserId()); typeKeeper.setTypeId(typeId); + typeKeeper.setCreateTime(DateUtils.getNowDate()); maTypeMapper.insertKeeper(typeKeeper); // 维修员配置 MaTypeRepair typeRepair = new MaTypeRepair(); typeRepair.setUserId(maType.getRepairUserId()); typeRepair.setTypeId(typeId); + typeRepair.setCreateTime(DateUtils.getNowDate()); maTypeMapper.insertRepair(typeRepair); // 资产属性配置 MaPropSet propSet = new MaPropSet(); propSet.setTypeId(typeId); propSet.setPropId(maType.getPropId()); + propSet.setCreateTime(DateUtils.getNowDate()); maTypeMapper.insertMaPropSet(propSet); return i; } @@ -122,6 +127,8 @@ public class MaTypeServiceImpl implements ITypeService { typeFile.setFileName(maType.getPhotoName()); typeFile.setFileUrl(maType.getPhotoUrl()); typeFile.setFileType("1"); + typeFile.setCreateTime(DateUtils.getNowDate()); + typeFile.setUpdateTime(DateUtils.getNowDate()); typeFileMapper.insertMaTypeFile(typeFile); } // 文档路径保存 @@ -132,6 +139,8 @@ public class MaTypeServiceImpl implements ITypeService { typeFile1.setFileName(maType.getDocumentName()); typeFile1.setFileUrl(maType.getDocumentUrl()); typeFile1.setFileType("2"); + typeFile1.setCreateTime(DateUtils.getNowDate()); + typeFile1.setUpdateTime(DateUtils.getNowDate()); typeFileMapper.insertMaTypeFile(typeFile1); } // 库管员配置 @@ -140,6 +149,8 @@ public class MaTypeServiceImpl implements ITypeService { MaTypeKeeper typeKeeper = new MaTypeKeeper(); typeKeeper.setUserId(maType.getKeeperUserId()); typeKeeper.setTypeId(typeId); + typeKeeper.setCreateTime(DateUtils.getNowDate()); + typeKeeper.setUpdateTime(DateUtils.getNowDate()); maTypeMapper.insertKeeper(typeKeeper); } @@ -157,6 +168,8 @@ public class MaTypeServiceImpl implements ITypeService { MaPropSet propSet = new MaPropSet(); propSet.setTypeId(typeId); propSet.setPropId(maType.getPropId()); + propSet.setCreateTime(DateUtils.getNowDate()); + propSet.setUpdateTime(DateUtils.getNowDate()); maTypeMapper.insertMaPropSet(propSet); } return i; diff --git a/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/controller/WorkSiteDirectManageController.java b/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/controller/WorkSiteDirectManageController.java index 648517e..562bd19 100644 --- a/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/controller/WorkSiteDirectManageController.java +++ b/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/controller/WorkSiteDirectManageController.java @@ -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.LeaseOutDetails; 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.web.controller.BaseController; import com.bonus.sgzb.common.core.web.domain.AjaxResult; @@ -127,7 +128,7 @@ public class WorkSiteDirectManageController extends BaseController { if (directApplyInfo != null) { directApplyInfo.setStatus("2"); directApplyInfo.setAuditor(SecurityUtils.getLoginUser().getUsername()); - directApplyInfo.setAuditTime(DateUtil.format(new Date(), "yyyy-MM-dd HH:mm:ss")); + directApplyInfo.setAuditTime(DateUtils.getNowDate()); workSiteDirectManageService.refuseDirectApplyInfo(directApplyInfo); } else { return AjaxResult.error("参数为空,审核失败"); diff --git a/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/domain/AgreementInfo.java b/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/domain/AgreementInfo.java index 89dedb1..8f06bc5 100644 --- a/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/domain/AgreementInfo.java +++ b/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/domain/AgreementInfo.java @@ -5,6 +5,7 @@ import com.bonus.sgzb.common.core.web.domain.BaseEntity; import com.fasterxml.jackson.annotation.JsonFormat; import io.swagger.annotations.ApiModelProperty; import lombok.Data; +import org.springframework.format.annotation.DateTimeFormat; import java.util.Date; import java.util.List; @@ -41,7 +42,9 @@ public class AgreementInfo extends BaseEntity { */ @Excel(name = "签订日期") @ApiModelProperty(value = "签订日期") - private String signTime; + @DateTimeFormat(pattern = "yyyy-MM-dd") + @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") + private Date signTime; /** * 往来单位id diff --git a/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/domain/PurchaseCheckInfo.java b/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/domain/PurchaseCheckInfo.java index 4a93f77..2058b7d 100644 --- a/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/domain/PurchaseCheckInfo.java +++ b/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/domain/PurchaseCheckInfo.java @@ -2,10 +2,13 @@ package com.bonus.sgzb.material.domain; import com.bonus.sgzb.common.core.annotation.Excel; import com.bonus.sgzb.common.core.web.domain.BaseEntity; +import com.fasterxml.jackson.annotation.JsonFormat; import io.swagger.annotations.ApiModelProperty; import org.apache.commons.lang3.builder.ToStringBuilder; import org.apache.commons.lang3.builder.ToStringStyle; +import org.springframework.format.annotation.DateTimeFormat; +import java.util.Date; import java.util.List; /** @@ -36,13 +39,17 @@ public class PurchaseCheckInfo extends BaseEntity /** 采购日期 */ @ApiModelProperty(value = "采购日期") + @DateTimeFormat(pattern = "yyyy-MM-dd") + @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") @Excel(name = "采购日期") - private String purchaseTime; + private Date purchaseTime; /** 到货日期 */ @ApiModelProperty(value = "到货日期") + @DateTimeFormat(pattern = "yyyy-MM-dd") + @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") @Excel(name = "到货日期") - private String arrivalTime; + private Date arrivalTime; /** 采购员名称 */ @ApiModelProperty(value = "采购员名称") @@ -153,21 +160,21 @@ public class PurchaseCheckInfo extends BaseEntity { return taskId; } - public void setPurchaseTime(String purchaseTime) + public void setPurchaseTime(Date purchaseTime) { this.purchaseTime = purchaseTime; } - public String getPurchaseTime() + public Date getPurchaseTime() { return purchaseTime; } - public void setArrivalTime(String arrivalTime) + public void setArrivalTime(Date arrivalTime) { this.arrivalTime = arrivalTime; } - public String getArrivalTime() + public Date getArrivalTime() { return arrivalTime; } diff --git a/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/domain/PurchasePartDetails.java b/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/domain/PurchasePartDetails.java index 301d04e..aace633 100644 --- a/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/domain/PurchasePartDetails.java +++ b/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/domain/PurchasePartDetails.java @@ -132,8 +132,10 @@ public class PurchasePartDetails extends BaseEntity private BigDecimal inputNum; /** 入库时间 */ + @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") @ApiModelProperty(value = "入库时间") - private String inputTime; + private Date inputTime; /** 入库人 */ @ApiModelProperty(value = "入库人") @@ -400,11 +402,11 @@ public class PurchasePartDetails extends BaseEntity this.modelId = modelId; } - public String getInputTime() { + public Date getInputTime() { return inputTime; } - public void setInputTime(String inputTime) { + public void setInputTime(Date inputTime) { this.inputTime = inputTime; } diff --git a/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/domain/PurchasePartInfo.java b/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/domain/PurchasePartInfo.java index 1dab06e..8910aec 100644 --- a/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/domain/PurchasePartInfo.java +++ b/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/domain/PurchasePartInfo.java @@ -2,10 +2,13 @@ package com.bonus.sgzb.material.domain; import com.bonus.sgzb.common.core.annotation.Excel; import com.bonus.sgzb.common.core.web.domain.BaseEntity; +import com.fasterxml.jackson.annotation.JsonFormat; import io.swagger.annotations.ApiModelProperty; import org.apache.commons.lang3.builder.ToStringBuilder; import org.apache.commons.lang3.builder.ToStringStyle; +import org.springframework.format.annotation.DateTimeFormat; +import java.util.Date; import java.util.List; /** @@ -31,13 +34,17 @@ public class PurchasePartInfo extends BaseEntity /** 采购日期 */ @ApiModelProperty(value = "采购日期") + @DateTimeFormat(pattern = "yyyy-MM-dd") + @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") @Excel(name = "采购日期") - private String purchaseTime; + private Date purchaseTime; /** 到货日期 */ @ApiModelProperty(value = "到货日期") + @DateTimeFormat(pattern = "yyyy-MM-dd") + @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") @Excel(name = "到货日期") - private String arrivalTime; + private Date arrivalTime; /** 采购员 */ @ApiModelProperty(value = "采购员") @@ -159,21 +166,21 @@ public class PurchasePartInfo extends BaseEntity { return taskId; } - public void setPurchaseTime(String purchaseTime) + public void setPurchaseTime(Date purchaseTime) { this.purchaseTime = purchaseTime; } - public String getPurchaseTime() + public Date getPurchaseTime() { return purchaseTime; } - public void setArrivalTime(String arrivalTime) + public void setArrivalTime(Date arrivalTime) { this.arrivalTime = arrivalTime; } - public String getArrivalTime() + public Date getArrivalTime() { return arrivalTime; } diff --git a/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/domain/ScrapAuditorSet.java b/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/domain/ScrapAuditorSet.java index a245219..dc794bf 100644 --- a/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/domain/ScrapAuditorSet.java +++ b/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/domain/ScrapAuditorSet.java @@ -1,8 +1,12 @@ package com.bonus.sgzb.material.domain; +import com.fasterxml.jackson.annotation.JsonFormat; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import lombok.Data; +import org.springframework.format.annotation.DateTimeFormat; + +import java.util.Date; @ApiModel(description="报废审核人员配置") @Data @@ -55,7 +59,9 @@ public class ScrapAuditorSet { * 审核时间 */ @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; /** *驳回原因 diff --git a/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/remind/service/CalcMonthlyServiceImp.java b/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/remind/service/CalcMonthlyServiceImp.java index 3c0cea1..b0124cc 100644 --- a/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/remind/service/CalcMonthlyServiceImp.java +++ b/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/remind/service/CalcMonthlyServiceImp.java @@ -154,8 +154,8 @@ public class CalcMonthlyServiceImp implements CalcMonthlyService { projectMonthDetail.setMaId(Integer.valueOf(bean.getMaId())); } projectMonthDetail.setUnit(bean.getNuitName()); - projectMonthDetail.setStartTime(bean.getStartTime()); - projectMonthDetail.setEndTime(bean.getEndTime()); + projectMonthDetail.setStartTime(String.valueOf(bean.getStartTime())); + projectMonthDetail.setEndTime(String.valueOf(bean.getEndTime())); projectMonthDetail.setSltDays(bean.getLeaseDays()); projectMonthDetail.setNum(bean.getNum()); projectMonthDetail.setLeasePrice(bean.getLeasePrice()); diff --git a/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/service/impl/PurchaseAccessoryServiceImpl.java b/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/service/impl/PurchaseAccessoryServiceImpl.java index 4324f74..4952ec0 100644 --- a/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/service/impl/PurchaseAccessoryServiceImpl.java +++ b/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/service/impl/PurchaseAccessoryServiceImpl.java @@ -259,7 +259,7 @@ public class PurchaseAccessoryServiceImpl implements IPurchaseAccessoryService { if ("1".equals(partDetails.getCheckResult())) { partDetails.setStatus(3); partDetails.setInputNum(partDetails.getCheckNum()); - partDetails.setInputTime(String.valueOf(DateUtils.getNowDate())); + partDetails.setInputTime(DateUtils.getNowDate()); partDetails.setUpdateBy(String.valueOf(SecurityUtils.getLoginUser().getUserid())); partDetails.setUpdateTime(DateUtils.getNowDate()); @@ -309,6 +309,10 @@ public class PurchaseAccessoryServiceImpl implements IPurchaseAccessoryService { return res; } + public static void main(String[] args) { + System.out.println(DateUtils.getNowDate()); + } + @Override public List exportList(PurchasePartInfo bean) { return purchaseAccessoryMapper.exportList(bean); diff --git a/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/service/impl/ScrapApplyDetailsServiceImpl.java b/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/service/impl/ScrapApplyDetailsServiceImpl.java index ffb5d33..87bb5f8 100644 --- a/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/service/impl/ScrapApplyDetailsServiceImpl.java +++ b/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/service/impl/ScrapApplyDetailsServiceImpl.java @@ -211,7 +211,7 @@ public class ScrapApplyDetailsServiceImpl implements IScrapApplyDetailsService { public int scrapTaskReview(ScrapAuditorSet scrapAuditorSet) { log.info("ScrapApplyDetailsServiceImpl scrapTaskReview begin: {}", scrapAuditorSet); try { - scrapAuditorSet.setAuditTime(DateUtils.dateTimeNow()); + scrapAuditorSet.setAuditTime(new Date()); //修改审核状态 scrapAuditorSetMapper.updateStatus(scrapAuditorSet); //获取报废任务所有审核人员的审核详情 diff --git a/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/service/impl/WorkSiteDirectManageImpl.java b/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/service/impl/WorkSiteDirectManageImpl.java index 9ce8dba..e57afa4 100644 --- a/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/service/impl/WorkSiteDirectManageImpl.java +++ b/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/service/impl/WorkSiteDirectManageImpl.java @@ -3,6 +3,7 @@ package com.bonus.sgzb.material.service.impl; import cn.hutool.core.collection.CollUtil; import cn.hutool.core.date.DateUtil; 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.security.utils.SecurityUtils; import com.bonus.sgzb.material.domain.*; @@ -600,7 +601,7 @@ public class WorkSiteDirectManageImpl implements WorkSiteDirectManageService { DirectApplyInfo directApplyInfos = getDirectApplyInfoById(directApplyInfoDetails.getId()); directApplyInfos.setStatus("1"); directApplyInfos.setAuditor(SecurityUtils.getLoginUser().getUsername()); - directApplyInfos.setAuditTime(DateUtil.format(new Date(), "yyyy-MM-dd HH:mm:ss")); + directApplyInfos.setAuditTime(DateUtils.getNowDate()); res = refuseDirectApplyInfo(directApplyInfos); } else { return res; @@ -616,4 +617,8 @@ public class WorkSiteDirectManageImpl implements WorkSiteDirectManageService { } return res; } + + public static void main(String[] args) { + System.out.println(new Date()); + } } diff --git a/sgzb-modules/sgzb-material/src/main/resources/mapper/app/BackReceiveMapper.xml b/sgzb-modules/sgzb-material/src/main/resources/mapper/app/BackReceiveMapper.xml index 79b53dd..581c5fd 100644 --- a/sgzb-modules/sgzb-material/src/main/resources/mapper/app/BackReceiveMapper.xml +++ b/sgzb-modules/sgzb-material/src/main/resources/mapper/app/BackReceiveMapper.xml @@ -549,12 +549,14 @@ update tm_task - set task_status=#{status} + set task_status=#{status}, + update_time = NOW() where task_id = #{taskId} update ma_machine - set ma_status=#{maStatus} + set ma_status=#{maStatus}, + update_time = NOW() where ma_id = #{maId} diff --git a/sgzb-modules/sgzb-material/src/main/resources/mapper/app/LeaseOutDetailsMapper.xml b/sgzb-modules/sgzb-material/src/main/resources/mapper/app/LeaseOutDetailsMapper.xml index 694e503..6e456bb 100644 --- a/sgzb-modules/sgzb-material/src/main/resources/mapper/app/LeaseOutDetailsMapper.xml +++ b/sgzb-modules/sgzb-material/src/main/resources/mapper/app/LeaseOutDetailsMapper.xml @@ -304,7 +304,8 @@ update tm_task - set task_status = #{status} + set task_status = #{status}, + update_time = NOW() where task_id = #{taskId} diff --git a/sgzb-modules/sgzb-material/src/main/resources/mapper/app/PurchaseInputMapper.xml b/sgzb-modules/sgzb-material/src/main/resources/mapper/app/PurchaseInputMapper.xml index 0d01075..aef1c50 100644 --- a/sgzb-modules/sgzb-material/src/main/resources/mapper/app/PurchaseInputMapper.xml +++ b/sgzb-modules/sgzb-material/src/main/resources/mapper/app/PurchaseInputMapper.xml @@ -80,13 +80,16 @@ - 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 ma_type set num = #{num} where type_id = #{typeId} - 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 purchase_macode_info @@ -120,7 +123,7 @@ and type_id = #{typeId} - 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} diff --git a/sgzb-modules/sgzb-material/src/main/resources/mapper/app/TmTaskMapper.xml b/sgzb-modules/sgzb-material/src/main/resources/mapper/app/TmTaskMapper.xml index 8daffb9..8d645ac 100644 --- a/sgzb-modules/sgzb-material/src/main/resources/mapper/app/TmTaskMapper.xml +++ b/sgzb-modules/sgzb-material/src/main/resources/mapper/app/TmTaskMapper.xml @@ -55,7 +55,7 @@ - update tm_task set `status` = '0' + update tm_task set `status` = '0',update_time = NOW() where task_id = #{taskId} diff --git a/sgzb-modules/sgzb-material/src/main/resources/mapper/base/MaHouseMapper.xml b/sgzb-modules/sgzb-material/src/main/resources/mapper/base/MaHouseMapper.xml index 2b0c539..0282f3d 100644 --- a/sgzb-modules/sgzb-material/src/main/resources/mapper/base/MaHouseMapper.xml +++ b/sgzb-modules/sgzb-material/src/main/resources/mapper/base/MaHouseMapper.xml @@ -76,7 +76,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" - 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} diff --git a/sgzb-modules/sgzb-material/src/main/resources/mapper/base/MaHouseSetMapper.xml b/sgzb-modules/sgzb-material/src/main/resources/mapper/base/MaHouseSetMapper.xml index 95925ce..44bf636 100644 --- a/sgzb-modules/sgzb-material/src/main/resources/mapper/base/MaHouseSetMapper.xml +++ b/sgzb-modules/sgzb-material/src/main/resources/mapper/base/MaHouseSetMapper.xml @@ -83,7 +83,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" - 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} diff --git a/sgzb-modules/sgzb-material/src/main/resources/mapper/base/MaLabelBindMapper.xml b/sgzb-modules/sgzb-material/src/main/resources/mapper/base/MaLabelBindMapper.xml index 08bab02..450e330 100644 --- a/sgzb-modules/sgzb-material/src/main/resources/mapper/base/MaLabelBindMapper.xml +++ b/sgzb-modules/sgzb-material/src/main/resources/mapper/base/MaLabelBindMapper.xml @@ -169,6 +169,7 @@ binder = #{binder}, label_type = #{labelType}, company_id = #{companyId}, + update_time = NOW() where ma_id = #{maId} @@ -178,7 +179,7 @@ - update ma_label_bind set status = '2' where id = #{id} + update ma_label_bind set status = '2', update_time = NOW() where id = #{id} update ma_machine_label set - ma_id = #{maId},is_bind =#{isBind} + ma_id = #{maId},is_bind =#{isBind},update_time = NOW() where label_id =#{labelId} update ma_machine_label set - ma_id = #{maId},is_bind =1 + ma_id = #{maId},is_bind =1,update_time = NOW() where label_code =#{labelCode} diff --git a/sgzb-modules/sgzb-material/src/main/resources/mapper/base/MaMachineMapper.xml b/sgzb-modules/sgzb-material/src/main/resources/mapper/base/MaMachineMapper.xml index 528d3b7..99c4c4e 100644 --- a/sgzb-modules/sgzb-material/src/main/resources/mapper/base/MaMachineMapper.xml +++ b/sgzb-modules/sgzb-material/src/main/resources/mapper/base/MaMachineMapper.xml @@ -265,6 +265,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" buy_task = #{buyTask}, own_house = #{ownHouse}, company_id = #{companyId}, + update_time = sysdate() where ma_id = #{maId} diff --git a/sgzb-modules/sgzb-material/src/main/resources/mapper/base/MaMachineTypeMapper.xml b/sgzb-modules/sgzb-material/src/main/resources/mapper/base/MaMachineTypeMapper.xml index e5516f9..7c44461 100644 --- a/sgzb-modules/sgzb-material/src/main/resources/mapper/base/MaMachineTypeMapper.xml +++ b/sgzb-modules/sgzb-material/src/main/resources/mapper/base/MaMachineTypeMapper.xml @@ -221,13 +221,15 @@ type_id, user_id, - time, + create_time, + update_time, company_id, #{typeId}, #{userId}, - #{time}, + #{createTime}, + #{updateTime}, #{companyId}, @@ -237,13 +239,15 @@ type_id, user_id, - time, + create_time, + update_time, company_id, #{typeId}, #{userId}, - #{time}, + #{createTime}, + #{updateTime}, #{companyId}, diff --git a/sgzb-modules/sgzb-material/src/main/resources/mapper/base/MaTypeFileMapper.xml b/sgzb-modules/sgzb-material/src/main/resources/mapper/base/MaTypeFileMapper.xml index 5e5e32b..dba5333 100644 --- a/sgzb-modules/sgzb-material/src/main/resources/mapper/base/MaTypeFileMapper.xml +++ b/sgzb-modules/sgzb-material/src/main/resources/mapper/base/MaTypeFileMapper.xml @@ -11,13 +11,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" - - 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 @@ -250,13 +250,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" - 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 purchase_check_details set status = '0' where task_id = #{taskId} - 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 purchase_check_details set bind_num = bind_num - 1 , status='5' where task_id = #{taskId} and type_id = #{typeId} diff --git a/sgzb-modules/sgzb-material/src/main/resources/mapper/material/SltAgreementInfoMapper.xml b/sgzb-modules/sgzb-material/src/main/resources/mapper/material/SltAgreementInfoMapper.xml index 358c4c9..f5c4e52 100644 --- a/sgzb-modules/sgzb-material/src/main/resources/mapper/material/SltAgreementInfoMapper.xml +++ b/sgzb-modules/sgzb-material/src/main/resources/mapper/material/SltAgreementInfoMapper.xml @@ -82,7 +82,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" update ma_machine - set ma_status = '103' + set ma_status = '103', + update_time = NOW() where ma_id = #{maId} From 11eca5c209848df96895ac17ccf73ce3d02272c5 Mon Sep 17 00:00:00 2001 From: mashuai Date: Fri, 6 Sep 2024 10:34:28 +0800 Subject: [PATCH 2/2] datetime --- .../bonus/sgzb/base/api/domain/MaMachine.java | 8 ++++++-- .../service/impl/MaMachineServiceImpl.java | 4 ++-- .../material/domain/ProjectMonthDetail.java | 10 ++++++++-- .../remind/service/CalcMonthlyServiceImp.java | 4 ++-- .../impl/ScrapApplyDetailsServiceImpl.java | 1 + .../resources/mapper/app/BackReceiveMapper.xml | 8 +++++--- .../mapper/app/LeaseApplyInfoMapper.xml | 18 ++++++------------ .../mapper/app/LeaseOutDetailsMapper.xml | 7 ++++--- .../mapper/base/MaMachineTypeMapper.xml | 6 +++--- .../resources/mapper/base/MaTypeFileMapper.xml | 2 +- .../mapper/base/WarehouseKeeperMapper.xml | 2 +- .../mapper/material/BackApplyMapper.xml | 3 ++- .../mapper/material/BackRecordMapper.xml | 6 ++++-- .../mapper/material/CalMonthlyMapper.xml | 10 +++++----- .../mapper/material/LeaseRecordMapper.xml | 7 ++++--- .../material/RepairAuditDetailsMapper.xml | 2 +- .../mapper/material/SltAgreementInfoMapper.xml | 13 ++++++++----- .../material/WorkSiteDirectManageMapper.xml | 6 +++--- 18 files changed, 66 insertions(+), 51 deletions(-) diff --git a/sgzb-api/sgzb-api-system/src/main/java/com/bonus/sgzb/base/api/domain/MaMachine.java b/sgzb-api/sgzb-api-system/src/main/java/com/bonus/sgzb/base/api/domain/MaMachine.java index 5f9f2ec..e0cf4b0 100644 --- a/sgzb-api/sgzb-api-system/src/main/java/com/bonus/sgzb/base/api/domain/MaMachine.java +++ b/sgzb-api/sgzb-api-system/src/main/java/com/bonus/sgzb/base/api/domain/MaMachine.java @@ -232,7 +232,9 @@ public class MaMachine extends BaseEntity { /** * 领料时间 */ - private String leaseTime; + @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") + private Date leaseTime; /** * 退料单位 */ @@ -244,7 +246,9 @@ public class MaMachine extends BaseEntity { /** * 退料时间 */ - private String backTime; + @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") + private Date backTime; @ApiModelProperty(value = "1:二维码绑定标识 2:rfid绑定标识") private Integer flag; diff --git a/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/base/service/impl/MaMachineServiceImpl.java b/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/base/service/impl/MaMachineServiceImpl.java index ba8c901..9d718f2 100644 --- a/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/base/service/impl/MaMachineServiceImpl.java +++ b/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/base/service/impl/MaMachineServiceImpl.java @@ -159,12 +159,12 @@ public class MaMachineServiceImpl implements MaMachineService { if (leaseProject != null){ ma.setLeaseUnit(leaseProject.getUnitName()); ma.setLeasePro(leaseProject.getProjectName()); - ma.setLeaseTime(String.valueOf(leaseProject.getCreateTime())); + ma.setLeaseTime(leaseProject.getCreateTime()); } if (backProject != null){ ma.setBackUnit(backProject.getUnitName()); ma.setBackPro(backProject.getProjectName()); - ma.setBackTime(String.valueOf(backProject.getCreateTime())); + ma.setBackTime(backProject.getCreateTime()); } }else { throw new ServiceException("二维码对应机具信息无效"); diff --git a/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/domain/ProjectMonthDetail.java b/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/domain/ProjectMonthDetail.java index 3ac12f2..589119f 100644 --- a/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/domain/ProjectMonthDetail.java +++ b/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/domain/ProjectMonthDetail.java @@ -1,6 +1,8 @@ package com.bonus.sgzb.material.domain; +import com.fasterxml.jackson.annotation.JsonFormat; import lombok.Data; +import org.springframework.format.annotation.DateTimeFormat; import java.util.Date; @@ -29,11 +31,15 @@ public class ProjectMonthDetail { /** * 开始日期 */ - private String startTime; + @DateTimeFormat(pattern = "yyyy-MM-dd") + @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") + private Date startTime; /** * 结束日期 */ - private String endTime; + @DateTimeFormat(pattern = "yyyy-MM-dd") + @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") + private Date endTime; /** * 结算天数 */ diff --git a/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/remind/service/CalcMonthlyServiceImp.java b/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/remind/service/CalcMonthlyServiceImp.java index b0124cc..3c0cea1 100644 --- a/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/remind/service/CalcMonthlyServiceImp.java +++ b/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/remind/service/CalcMonthlyServiceImp.java @@ -154,8 +154,8 @@ public class CalcMonthlyServiceImp implements CalcMonthlyService { projectMonthDetail.setMaId(Integer.valueOf(bean.getMaId())); } projectMonthDetail.setUnit(bean.getNuitName()); - projectMonthDetail.setStartTime(String.valueOf(bean.getStartTime())); - projectMonthDetail.setEndTime(String.valueOf(bean.getEndTime())); + projectMonthDetail.setStartTime(bean.getStartTime()); + projectMonthDetail.setEndTime(bean.getEndTime()); projectMonthDetail.setSltDays(bean.getLeaseDays()); projectMonthDetail.setNum(bean.getNum()); projectMonthDetail.setLeasePrice(bean.getLeasePrice()); diff --git a/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/service/impl/ScrapApplyDetailsServiceImpl.java b/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/service/impl/ScrapApplyDetailsServiceImpl.java index 87bb5f8..0e5b28a 100644 --- a/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/service/impl/ScrapApplyDetailsServiceImpl.java +++ b/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/service/impl/ScrapApplyDetailsServiceImpl.java @@ -135,6 +135,7 @@ public class ScrapApplyDetailsServiceImpl implements IScrapApplyDetailsService { //修改装备状态 for (ScrapApplyDetails scrapApplyDetails: scrapApplyDetailList){ scrapApplyDetails.setAuditTime(new Date()); + scrapApplyDetails.setUpdateTime(DateUtils.getNowDate()); scrapApplyDetailsMapper.updateScrapApplyDetails(scrapApplyDetails); } //根据任务id查看是否还有未审核的设备 diff --git a/sgzb-modules/sgzb-material/src/main/resources/mapper/app/BackReceiveMapper.xml b/sgzb-modules/sgzb-material/src/main/resources/mapper/app/BackReceiveMapper.xml index 581c5fd..6240bb9 100644 --- a/sgzb-modules/sgzb-material/src/main/resources/mapper/app/BackReceiveMapper.xml +++ b/sgzb-modules/sgzb-material/src/main/resources/mapper/app/BackReceiveMapper.xml @@ -542,8 +542,8 @@ ) - insert into slt_agreement_info (agreement_id,type_id,ma_id,num,start_time,status,lease_id,lease_price,buy_price,is_slt,company_id,lease_type) - values (#{info.agreementId},#{info.typeId},#{info.maId},#{many},#{info.startTime},#{info.status},#{info.leaseId},#{info.leasePrice},#{info.buyPrice},'0',#{info.companyId},#{info.leaseType}); + insert into slt_agreement_info (agreement_id,type_id,ma_id,num,start_time,status,lease_id,lease_price,buy_price,is_slt,company_id,lease_type,create_time) + values (#{info.agreementId},#{info.typeId},#{info.maId},#{many},#{info.startTime},#{info.status},#{info.leaseId},#{info.leasePrice},#{info.buyPrice},'0',#{info.companyId},#{info.leaseType},now()); @@ -568,6 +568,7 @@ update slt_agreement_info set end_time = now(), + update_time = now(), back_id = #{record.parentId}, status = '1' where id = #{info.id} @@ -576,13 +577,14 @@ update slt_agreement_info set num = #{backNum}, end_time = now(), + update_time = now(), back_id = #{record.parentId}, status = '1' where id = #{info.id} - update back_check_details set is_finished = 1 where parent_id = #{parentId} and type_id = #{typeId} and (is_finished is null or is_finished != 1) + update back_check_details set is_finished = 1, update_time = now() where parent_id = #{parentId} and type_id = #{typeId} and (is_finished is null or is_finished != 1) diff --git a/sgzb-modules/sgzb-material/src/main/resources/mapper/app/LeaseApplyInfoMapper.xml b/sgzb-modules/sgzb-material/src/main/resources/mapper/app/LeaseApplyInfoMapper.xml index f8f8c91..367f0d6 100644 --- a/sgzb-modules/sgzb-material/src/main/resources/mapper/app/LeaseApplyInfoMapper.xml +++ b/sgzb-modules/sgzb-material/src/main/resources/mapper/app/LeaseApplyInfoMapper.xml @@ -71,7 +71,7 @@ values (#{code,jdbcType=VARCHAR}, #{taskId,jdbcType=INTEGER}, #{leasePerson,jdbcType=VARCHAR}, #{phone,jdbcType=VARCHAR}, #{type,jdbcType=VARCHAR}, #{companyAuditBy,jdbcType=INTEGER}, #{companyAuditTime,jdbcType=VARCHAR}, #{companyAuditRemark,jdbcType=VARCHAR}, #{deptAuditBy,jdbcType=INTEGER}, #{deptAuditTime,jdbcType=VARCHAR}, - #{deptAuditRemark,jdbcType=VARCHAR}, #{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, + #{deptAuditRemark,jdbcType=VARCHAR}, #{createBy,jdbcType=VARCHAR}, NOW(), #{updateBy,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, #{remark,jdbcType=VARCHAR}, #{companyId,jdbcType=INTEGER}, #{estimateLeaseTime,jdbcType=TIMESTAMP},#{leaseType,jdbcType=VARCHAR},#{costBearingParty,jdbcType=VARCHAR}) @@ -116,9 +116,7 @@ create_by, - - create_time, - + create_time, update_by, @@ -178,9 +176,7 @@ #{createBy,jdbcType=VARCHAR}, - - #{createTime,jdbcType=TIMESTAMP}, - + NOW(), #{updateBy,jdbcType=VARCHAR}, @@ -248,15 +244,13 @@ update_by = #{updateBy,jdbcType=VARCHAR}, - - update_time = #{updateTime,jdbcType=TIMESTAMP}, - remark = #{remark,jdbcType=VARCHAR}, company_id = #{companyId,jdbcType=INTEGER}, + update_time = NOW(), where id = #{id,jdbcType=INTEGER} @@ -277,7 +271,7 @@ create_by = #{createBy,jdbcType=VARCHAR}, create_time = #{createTime,jdbcType=TIMESTAMP}, update_by = #{updateBy,jdbcType=VARCHAR}, - update_time = #{updateTime,jdbcType=TIMESTAMP}, + update_time = NOW(), remark = #{remark,jdbcType=VARCHAR}, company_id = #{companyId,jdbcType=INTEGER} where id = #{id,jdbcType=INTEGER} @@ -509,7 +503,7 @@ #{item.type,jdbcType=VARCHAR}, #{item.companyAuditBy,jdbcType=INTEGER}, #{item.companyAuditTime,jdbcType=VARCHAR}, #{item.companyAuditRemark,jdbcType=VARCHAR}, #{item.deptAuditBy,jdbcType=INTEGER}, #{item.deptAuditTime,jdbcType=VARCHAR}, #{item.deptAuditRemark,jdbcType=VARCHAR}, - #{item.createBy,jdbcType=VARCHAR}, #{item.createTime,jdbcType=TIMESTAMP}, #{item.updateBy,jdbcType=VARCHAR}, + #{item.createBy,jdbcType=VARCHAR}, #{item.createTime,jdbcType=TIMESTAMP}, #{item.updateBy,jdbcType=VARCHAR}, #{item.updateTime,jdbcType=TIMESTAMP}, #{item.remark,jdbcType=VARCHAR}, #{item.companyId,jdbcType=INTEGER} ) diff --git a/sgzb-modules/sgzb-material/src/main/resources/mapper/app/LeaseOutDetailsMapper.xml b/sgzb-modules/sgzb-material/src/main/resources/mapper/app/LeaseOutDetailsMapper.xml index 6e456bb..a48df0c 100644 --- a/sgzb-modules/sgzb-material/src/main/resources/mapper/app/LeaseOutDetailsMapper.xml +++ b/sgzb-modules/sgzb-material/src/main/resources/mapper/app/LeaseOutDetailsMapper.xml @@ -310,7 +310,8 @@ update slt_agreement_info - set num = #{num} + set num = #{num}, + update_time = now() where id = #{id} @@ -384,8 +385,8 @@ - insert into slt_agreement_info (agreement_id,type_id,ma_id,num,start_time,status,lease_id,lease_price,buy_price,is_slt,company_id,lease_type) - values (#{agreementId},#{record.typeId},#{record.maId},#{record.outNum},now(),0,#{record.parentId},#{ma.finalPrice},#{ma.buyPrice},'0',#{record.companyId},#{record.leaseType}); + insert into slt_agreement_info (agreement_id,type_id,ma_id,num,start_time,status,lease_id,lease_price,buy_price,is_slt,company_id,lease_type,create_time) + values (#{agreementId},#{record.typeId},#{record.maId},#{record.outNum},now(),0,#{record.parentId},#{ma.finalPrice},#{ma.buyPrice},'0',#{record.companyId},#{record.leaseType},now()); - update ma_type_keeper set user_id = #{userId} where type_id = #{typeId} + update ma_type_keeper set user_id = #{userId},update_time = now() where type_id = #{typeId} - update ma_type_repair set user_id = #{userId} where type_id = #{typeId} + update ma_type_repair set user_id = #{userId},update_time = now() where type_id = #{typeId} diff --git a/sgzb-modules/sgzb-material/src/main/resources/mapper/base/MaTypeFileMapper.xml b/sgzb-modules/sgzb-material/src/main/resources/mapper/base/MaTypeFileMapper.xml index dba5333..43422e0 100644 --- a/sgzb-modules/sgzb-material/src/main/resources/mapper/base/MaTypeFileMapper.xml +++ b/sgzb-modules/sgzb-material/src/main/resources/mapper/base/MaTypeFileMapper.xml @@ -72,7 +72,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" file_name = #{fileName}, file_url = #{fileUrl}, user_id = #{userId}, - time = #{time}, + update_time = now(), status = #{status}, company_id = #{companyId}, diff --git a/sgzb-modules/sgzb-material/src/main/resources/mapper/base/WarehouseKeeperMapper.xml b/sgzb-modules/sgzb-material/src/main/resources/mapper/base/WarehouseKeeperMapper.xml index ad253c7..a255fed 100644 --- a/sgzb-modules/sgzb-material/src/main/resources/mapper/base/WarehouseKeeperMapper.xml +++ b/sgzb-modules/sgzb-material/src/main/resources/mapper/base/WarehouseKeeperMapper.xml @@ -4,7 +4,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> - insert into ma_type_keeper(type_id, user_id,company_id,time) values + insert into ma_type_keeper(type_id, user_id,company_id,create_time) values (#{item.typeIds},#{item.userId},#{item.companyId},NOW()) diff --git a/sgzb-modules/sgzb-material/src/main/resources/mapper/material/BackApplyMapper.xml b/sgzb-modules/sgzb-material/src/main/resources/mapper/material/BackApplyMapper.xml index 1102058..e4fd483 100644 --- a/sgzb-modules/sgzb-material/src/main/resources/mapper/material/BackApplyMapper.xml +++ b/sgzb-modules/sgzb-material/src/main/resources/mapper/material/BackApplyMapper.xml @@ -302,7 +302,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" update back_apply_details - set pre_num =#{num} + set pre_num =#{num}, + update_time = NOW() where id = #{detailsId} diff --git a/sgzb-modules/sgzb-material/src/main/resources/mapper/material/BackRecordMapper.xml b/sgzb-modules/sgzb-material/src/main/resources/mapper/material/BackRecordMapper.xml index a128bba..15a9b77 100644 --- a/sgzb-modules/sgzb-material/src/main/resources/mapper/material/BackRecordMapper.xml +++ b/sgzb-modules/sgzb-material/src/main/resources/mapper/material/BackRecordMapper.xml @@ -69,8 +69,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ) - insert into slt_agreement_info (agreement_id,type_id,ma_id,num,start_time,status,lease_id,lease_price,buy_price,is_slt,company_id) - values (#{info.agreementId},#{info.typeId},#{info.maId},#{many},#{info.startTime},#{info.status},#{info.leaseId},#{info.leasePrice},#{info.buyPrice},'0',#{info.companyId}); + insert into slt_agreement_info (agreement_id,type_id,ma_id,num,start_time,status,lease_id,lease_price,buy_price,is_slt,company_id,create_time) + values (#{info.agreementId},#{info.typeId},#{info.maId},#{many},#{info.startTime},#{info.status},#{info.leaseId},#{info.leasePrice},#{info.buyPrice},'0',#{info.companyId},now()); update ma_machine @@ -81,6 +81,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" update slt_agreement_info set end_time = now(), + update_time = now(), back_id = #{record.parentId}, status = '1' where id = #{info.id} @@ -89,6 +90,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" update slt_agreement_info set num = #{backNum}, end_time = now(), + update_time = now(), back_id = #{record.parentId}, status = '1' where id = #{info.id} diff --git a/sgzb-modules/sgzb-material/src/main/resources/mapper/material/CalMonthlyMapper.xml b/sgzb-modules/sgzb-material/src/main/resources/mapper/material/CalMonthlyMapper.xml index e02f52f..010e2ef 100644 --- a/sgzb-modules/sgzb-material/src/main/resources/mapper/material/CalMonthlyMapper.xml +++ b/sgzb-modules/sgzb-material/src/main/resources/mapper/material/CalMonthlyMapper.xml @@ -8,17 +8,17 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" INSERT INTO slt_project_month (month,create_time) VALUES (#{month},now()) - insert into project_month_costs(agreement_id,task_id,unit_id,project_id,month,cost_bearing_party) + insert into project_month_costs(agreement_id,task_id,unit_id,project_id,month,cost_bearing_party,create_time) values - (#{agreementId},#{taskId},#{unitId},#{projectId},#{month},#{costBearingParty}) + (#{agreementId},#{taskId},#{unitId},#{projectId},#{month},#{costBearingParty},now()) - insert into project_month_detail (type_id,ma_id,unit,start_time,end_time,slt_days,slt_costs,month_temporarily_costs,pro_month_cost_id,num,lease_price) + insert into project_month_detail (type_id,ma_id,unit,start_time,end_time,slt_days,slt_costs,month_temporarily_costs,pro_month_cost_id,num,lease_price,create_time) values - (#{typeId},#{maId},#{unit},#{startTime},#{endTime},#{sltDays},#{sltCosts},#{monthTemporarilyCosts},#{proMonthCostId},#{num},#{leasePrice}) + (#{typeId},#{maId},#{unit},#{startTime},#{endTime},#{sltDays},#{sltCosts},#{monthTemporarilyCosts},#{proMonthCostId},#{num},#{leasePrice},now()) - update project_month_costs set costs = #{costs} where id = #{id} + update project_month_costs set costs = #{costs},update_time = now() where id = #{id} SELECT bai.agreement_id, bai.agreement_code , contract_code,file_url ,file_name,sign_time, diff --git a/sgzb-modules/sgzb-material/src/main/resources/mapper/material/WorkSiteDirectManageMapper.xml b/sgzb-modules/sgzb-material/src/main/resources/mapper/material/WorkSiteDirectManageMapper.xml index ab00e53..8e1e939 100644 --- a/sgzb-modules/sgzb-material/src/main/resources/mapper/material/WorkSiteDirectManageMapper.xml +++ b/sgzb-modules/sgzb-material/src/main/resources/mapper/material/WorkSiteDirectManageMapper.xml @@ -90,8 +90,8 @@ ) - insert into direct_apply_details(direct_id,type_id,ma_id,direct_num) - values (#{directId},#{typeId},#{maId}, #{directNum}) + insert into direct_apply_details(direct_id,type_id,ma_id,direct_num,create_time) + values (#{directId},#{typeId},#{maId}, #{directNum},NOW()) @@ -323,7 +323,7 @@ ) - update direct_apply_info set status = #{status},auditor=#{auditor},audit_time=#{auditTime} where id = #{id} + update direct_apply_info set status = #{status},auditor=#{auditor},audit_time=#{auditTime},update_time = now() where id = #{id} UPDATE