feat:多余字段去除

kingbase
wangxy 10 months ago
parent 6188428c35
commit ea1fc2631f

@ -1,5 +1,6 @@
package com.ruoyi.web.controller.system.system; package com.ruoyi.web.controller.system.system;
import java.util.Date;
import java.util.List; import java.util.List;
import com.ruoyi.common.core.domain.entity.SysUser; import com.ruoyi.common.core.domain.entity.SysUser;
@ -88,6 +89,8 @@ public class TdTrainController extends BaseController
@ResponseBody @ResponseBody
public AjaxResult addSave(TdTrain tdTrain) public AjaxResult addSave(TdTrain tdTrain)
{ {
tdTrain.setCreateStaffid(getLoginName());
tdTrain.setCreateDate(new Date());
return toAjax(tdTrainService.insertTdTrain(tdTrain)); return toAjax(tdTrainService.insertTdTrain(tdTrain));
} }

@ -89,9 +89,9 @@
</div> </div>
<div class="col-sm-6"> <div class="col-sm-6">
<div class="form-group"> <div class="form-group">
<label class="col-sm-4 control-label is-required">培训地点</label> <label class="col-sm-4 control-label">培训人员</label>
<div class="col-sm-8"> <div class="col-sm-8">
<textarea name="trainAddress" required class="form-control"></textarea> <input name="trainName" class="form-control" type="text">
</div> </div>
</div> </div>
</div> </div>
@ -110,38 +110,17 @@
</div> </div>
</div> </div>
</div> </div>
<div class="row"> <div class="row">
<div class="col-sm-6"> <div class="col-sm-12">
<div class="form-group">
<label class="col-sm-4 control-label">填报人:</label>
<div class="col-sm-8">
<input name="createStaffid" class="form-control" type="text" >
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label">填报日期:</label>
<div class="col-sm-8">
<div class="input-group date">
<input name="createDate" class="form-control" placeholder="yyyy-MM-dd" type="text">
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group"> <div class="form-group">
<label class="col-sm-4 control-label">培训人员</label> <label class="col-sm-2 control-label is-required">培训地点:</label>
<div class="col-sm-8"> <div class="col-sm-10">
<input name="trainName" class="form-control" type="text"> <textarea name="trainAddress" required class="form-control"></textarea>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</form> </form>
</div> </div>
<th:block th:include="include :: footer" /> <th:block th:include="include :: footer" />

@ -94,9 +94,13 @@
<div class="row"> <div class="row">
<div class="col-sm-12"> <div class="col-sm-12">
<div class="form-group"> <div class="form-group">
<label class="col-sm-2 control-label is-required">培训地点</label> <label class="col-sm-2 control-label is-required">培训日期</label>
<div class="col-sm-10"> <div class="col-sm-10">
<textarea name="trainAddress" required class="form-control">[[*{trainAddress}]]</textarea> <div class="input-daterange input-group">
<input type="text" class="input-sm form-control" th:value="${#dates.format(tdTrain.trainDate, 'yyyy-MM-dd')}" name="trainDate" id="laydate-startTime" placeholder="开始日期"/>
<span class="input-group-addon"></span>
<input type="text" class="input-sm form-control" th:value="${#dates.format(tdTrain.trainTimeend, 'yyyy-MM-dd')}" name="trainTimeend" id="laydate-endTime" placeholder="结束日期"/>
</div>
</div> </div>
</div> </div>
</div> </div>
@ -104,13 +108,9 @@
<div class="row"> <div class="row">
<div class="col-sm-12"> <div class="col-sm-12">
<div class="form-group"> <div class="form-group">
<label class="col-sm-2 control-label is-required">培训日期</label> <label class="col-sm-2 control-label is-required">培训地点</label>
<div class="col-sm-10"> <div class="col-sm-10">
<div class="input-daterange input-group"> <textarea name="trainAddress" required class="form-control">[[*{trainAddress}]]</textarea>
<input type="text" class="input-sm form-control" th:value="${#dates.format(tdTrain.trainDate, 'yyyy-MM-dd')}" name="trainDate" id="laydate-startTime" placeholder="开始日期"/>
<span class="input-group-addon"></span>
<input type="text" class="input-sm form-control" th:value="${#dates.format(tdTrain.trainTimeend, 'yyyy-MM-dd')}" name="trainTimeend" id="laydate-endTime" placeholder="结束日期"/>
</div>
</div> </div>
</div> </div>
</div> </div>

@ -54,6 +54,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="PART != null and PART != ''"> and PART = #{PART}</if> <if test="PART != null and PART != ''"> and PART = #{PART}</if>
<if test="TRAININFO != null and TRAININFO != ''"> and TRAININFO = #{TRAININFO}</if> <if test="TRAININFO != null and TRAININFO != ''"> and TRAININFO = #{TRAININFO}</if>
</where> </where>
order by CREATE_DATE desc
</select> </select>
<select id="selectTdTrainByID" parameterType="Long" resultMap="TdTrainResult"> <select id="selectTdTrainByID" parameterType="Long" resultMap="TdTrainResult">

Loading…
Cancel
Save