增加lasttime字段

2024年9月2日09:19:09
This commit is contained in:
xiang2lin 2024-09-02 09:19:19 +08:00
parent ad389b9f16
commit 14dd5c798a
7 changed files with 60 additions and 11 deletions

View File

@ -45,14 +45,16 @@ public class DeliveryOrderEntity extends BaseEntity {
private String pushFlagField; private String pushFlagField;
//帐套名 //帐套名
private String dbname; private String dbname;
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private String startTime;//定时任务执行时传入的开始时间 private String startTime;//定时任务执行时传入的开始时间
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private String endTime;//定时任务执行时传入的结束时间 private String endTime;//定时任务执行时传入的结束时间
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
//最后操作时间 isnull(dmodifysystime,dcreatesystime)
private String lasttime;
public String getDlid() { public String getDlid() {
return dlid; return dlid;
} }
@ -203,4 +205,11 @@ public class DeliveryOrderEntity extends BaseEntity {
public void setEndTime(String endTime) { public void setEndTime(String endTime) {
this.endTime = endTime; this.endTime = endTime;
} }
public String getLasttime() {
return lasttime;
}
public void setLasttime(String lasttime) {
this.lasttime = lasttime;
}
} }

View File

@ -47,8 +47,8 @@
<if test="ccusname != null and ccusname !='' "> and ccusname = #{ccusname} </if> <if test="ccusname != null and ccusname !='' "> and ccusname = #{ccusname} </if>
<if test="csocode != null and csocode !='' "> and csocode = #{csocode} </if> <if test="csocode != null and csocode !='' "> and csocode = #{csocode} </if>
<if test="bReturnFlag != null and bReturnFlag !='' "> and bReturnFlag = #{bReturnFlag} </if> <if test="bReturnFlag != null and bReturnFlag !='' "> and bReturnFlag = #{bReturnFlag} </if>
<if test="startTime != null and startTime !='' "> and dmodifysystime >= #{startTime} </if> <if test="startTime != null and startTime !='' "> and lasttime >= #{startTime} </if>
<if test="endTime != null and endTime !='' "><![CDATA[ and dmodifysystime < #{endTime} ]]> </if> <if test="endTime != null and endTime !='' "><![CDATA[ and lasttime < #{endTime} ]]> </if>
and cVerifier is not null and cVerifier is not null
</trim> </trim>
order by dlid order by dlid

View File

@ -25,7 +25,7 @@ public class MomOrderDTO {
private String createuser; private String createuser;
//表体 //表体
@JSONField(ordinal = 5) @JSONField(ordinal = 5)
private List<MomOrderDetailDTO> itesm; private List<MomOrderDetailDTO> items;
public String getMoId() { public String getMoId() {
return moId; return moId;
} }
@ -58,11 +58,11 @@ public class MomOrderDTO {
this.createuser = createuser; this.createuser = createuser;
} }
public List<MomOrderDetailDTO> getItesm() { public List<MomOrderDetailDTO> getItems() {
return itesm; return items;
} }
public void setItesm(List<MomOrderDetailDTO> itesm) { public void setItems(List<MomOrderDetailDTO> items) {
this.itesm = itesm; this.items = items;
} }
} }

View File

@ -1,6 +1,8 @@
package com.hzya.frame.u8.production.entity; package com.hzya.frame.u8.production.entity;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.hzya.frame.web.entity.BaseEntity; import com.hzya.frame.web.entity.BaseEntity;
import org.springframework.format.annotation.DateTimeFormat;
/** /**
* @Description u8生产订单表体 mom_orderdetail * @Description u8生产订单表体 mom_orderdetail
@ -28,6 +30,13 @@ public class MomOrderDetailEntity extends BaseEntity {
private String relsUser; private String relsUser;
//审核时间 //审核时间
private String relsTime; private String relsTime;
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private String startTime;//定时任务执行时传入的开始时间
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private String endTime;//定时任务执行时传入的结束时间
public String getMoId() { public String getMoId() {
return moId; return moId;
} }
@ -107,4 +116,20 @@ public class MomOrderDetailEntity extends BaseEntity {
public void setRelsTime(String relsTime) { public void setRelsTime(String relsTime) {
this.relsTime = relsTime; this.relsTime = relsTime;
} }
public String getStartTime() {
return startTime;
}
public void setStartTime(String startTime) {
this.startTime = startTime;
}
public String getEndTime() {
return endTime;
}
public void setEndTime(String endTime) {
this.endTime = endTime;
}
} }

View File

@ -34,6 +34,8 @@
<if test="moId != null ">moId= #{moId} </if> <if test="moId != null ">moId= #{moId} </if>
<if test="cinvcode != null and cinvcode !='' "> and cinvcode = #{cinvcode} </if> <if test="cinvcode != null and cinvcode !='' "> and cinvcode = #{cinvcode} </if>
<if test="cinvname != null and cinvname !='' "> and cinvname = #{cinvname} </if> <if test="cinvname != null and cinvname !='' "> and cinvname = #{cinvname} </if>
<if test="startTime != null and startTime !='' "> and relsTime >= #{startTime} </if>
<if test="endTime != null and endTime !='' "><![CDATA[ and relsTime < #{endTime} ]]> </if>
</trim> </trim>
order by moId order by moId
</select> </select>

View File

@ -34,6 +34,11 @@ public class MomOrderEntity extends BaseEntity {
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private String endTime;//定时任务执行时传入的结束时间 private String endTime;//定时任务执行时传入的结束时间
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
//最后操作时间 isnull(dmodifysystime,dcreatesystime)
private String lasttime;
public String getMoId() { public String getMoId() {
return moId; return moId;
} }
@ -120,4 +125,12 @@ public class MomOrderEntity extends BaseEntity {
public void setEndTime(String endTime) { public void setEndTime(String endTime) {
this.endTime = endTime; this.endTime = endTime;
} }
public String getLasttime() {
return lasttime;
}
public void setLasttime(String lasttime) {
this.lasttime = lasttime;
}
} }

View File

@ -27,8 +27,8 @@
<trim prefix="where" prefixOverrides="and"> <trim prefix="where" prefixOverrides="and">
<if test="moId != null ">moId= #{moId} </if> <if test="moId != null ">moId= #{moId} </if>
<if test="mocode != null and mocode !='' "> and mocode = #{mocode} </if> <if test="mocode != null and mocode !='' "> and mocode = #{mocode} </if>
<if test="startTime != null and startTime !='' "> and modifytime >= #{startTime} </if> <if test="startTime != null and startTime !='' "> and lasttime >= #{startTime} </if>
<if test="endTime != null and endTime !='' "><![CDATA[ and modifytime < #{endTime} ]]> </if> <if test="endTime != null and endTime !='' "><![CDATA[ and lasttime < #{endTime} ]]> </if>
</trim> </trim>
order by moId order by moId
</select> </select>