退还日期

This commit is contained in:
syruan 2025-03-17 13:40:13 +08:00
parent 2ee86759ae
commit a1602b3c19
3 changed files with 12 additions and 5 deletions

View File

@ -55,6 +55,12 @@ public class PlanDataDetailBean {
*/
@Excel(name = "需用天数", width = 10.0,height = 20.0, orderNum = "7")
private String times;
/**
* 退还日期
*/
private String backDate;
/**
* 备注
*/

View File

@ -17,6 +17,7 @@ import com.alibaba.fastjson.JSON;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
/**
@ -42,12 +43,11 @@ public class PlanApplicationServiceImp implements PlanApplicationService {
try {
// shiro获取用户信息,shiro管理的session
SelfUserEntity acount= UserUtil.getLoginUser();
String userName=UserUtil.getLoginUser().getUsername();
String userName= Objects.requireNonNull(UserUtil.getLoginUser()).getUsername();
o.setCreator(userName);
o.setUpdater(userName);
List<PlanDataDetailBean> details=JSON.parseArray(o.getJsonData(), PlanDataDetailBean.class);
if(details==null || details.size()<1) {
if(details==null || details.isEmpty()) {
return ServerResponse.createErroe("请填写机具明细");
}else {
int num=dao.getTodayPlanNum(o);

View File

@ -98,13 +98,13 @@
insert INTO t_plan_details(
apply_id,model_id,need_num,
need_day,remark,type,
name,module,unit
name,module,unit,back_date
) VALUES
<foreach collection="list" item="item" separator=",">
(
#{param.id},#{item.moduleId},#{item.needNum},
#{item.times},#{item.remarks},#{item.type},
#{item.typeName},#{item.module},#{item.unit}
#{item.typeName},#{item.module},#{item.unit},#{item.backDate}
)
</foreach>
</insert>
@ -158,6 +158,7 @@
tpd.model_id moduleId,
tpd.need_num needNum,
tpd.need_day times,
tpd.back_date backDate,
tpd.remark remarks,
tpd.type,
tpd.NAME typeName,