Explorar o código

王子文 专项培训

wangggziwen %!s(int64=3) %!d(string=hai) anos
pai
achega
c20e1881ba

+ 1 - 0
master/src/main/java/com/ruoyi/project/training/spec/controller/TStPlanController.java

@@ -224,6 +224,7 @@ public class TStPlanController extends BaseController
     @PutMapping("/edit2")
     public AjaxResult edit2(@RequestBody TStPlan tStPlan)
     {
+        tStPlan.setDateOfCompletion(new Date());
         return toAjax(tStPlanService.updateTStPlan(tStPlan));
     }
 

+ 1 - 1
master/src/main/resources/mybatis/training/spec/TStPlanMapper.xml

@@ -195,7 +195,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             </if>
             <if test="overallComment != null">overall_comment = #{overallComment},</if>
             <if test="approveStatus != null">approve_status = #{approveStatus},</if>
-            <if test="dateOfCompletion != null"></if>
+            <if test="dateOfCompletion != null">date_of_completion = #{dateOfCompletion}</if>
         </trim>
         where id = #{id}
     </update>

+ 53 - 0
ui/src/api/training/spec/bank.js

@@ -0,0 +1,53 @@
+import request from '@/utils/request'
+
+// 查询专项培训题库列表
+export function listBank(query) {
+  return request({
+    url: '/spec/bank/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询专项培训题库详细
+export function getBank(id) {
+  return request({
+    url: '/spec/bank/' + id,
+    method: 'get'
+  })
+}
+
+// 新增专项培训题库
+export function addBank(data) {
+  return request({
+    url: '/spec/bank',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改专项培训题库
+export function updateBank(data) {
+  return request({
+    url: '/spec/bank',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除专项培训题库
+export function delBank(id) {
+  return request({
+    url: '/spec/bank/' + id,
+    method: 'delete'
+  })
+}
+
+// 导出专项培训题库
+export function exportBank(query) {
+  return request({
+    url: '/spec/bank/export',
+    method: 'get',
+    params: query
+  })
+}