feat:涉密问题bug修改

kingbase
wangxy 9 months ago
parent 067dd41f3c
commit 548bb40cfb

@ -1,5 +1,6 @@
package com.ruoyi.web.controller.system.exam;
import java.util.Date;
import java.util.List;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
@ -87,6 +88,8 @@ public class TdQuestionController extends BaseController
@ResponseBody
public AjaxResult addSave(TdQuestion tdQuestion)
{
tdQuestion.setCREATEPERSON(getLoginName());
tdQuestion.setCREATEDATE(new Date());
return toAjax(tdQuestionService.insertTdQuestion(tdQuestion));
}

@ -52,21 +52,6 @@
<input name="NOTE" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">创建人:</label>
<div class="col-sm-8">
<input name="CREATEPERSON" class="form-control" readonly th:value="${sysuser.userName}" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 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>
</form>
</div>
<th:block th:include="include :: footer" />

@ -52,21 +52,6 @@
<input name="NOTE" required th:field="*{NOTE}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">创建人:</label>
<div class="col-sm-8">
<input name="CREATEPERSON" readonly th:field="*{CREATEPERSON}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">创建时间:</label>
<div class="col-sm-8">
<div class="input-group date">
<input name="CREATEDATE" disabled th:value="${#dates.format(tdQuestion.CREATEDATE, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
</div>
</div>
</div>
</form>
</div>
<th:block th:include="include :: footer" />

@ -34,6 +34,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="CREATEPERSON != null and CREATEPERSON != ''"> and CREATEPERSON = #{CREATEPERSON}</if>
<if test="CREATEDATE != null "> and CREATEDATE = #{CREATEDATE}</if>
</where>
order by CREATEDATE desc
</select>
<select id="selectTdQuestionByID" parameterType="Long" resultMap="TdQuestionResult">

Loading…
Cancel
Save