原创 vue ant table 嵌套
<a-table ref="table" size="middle" bordered rowKey="id" :columns="columns
原创 mybatisplus 一對多查詢 xml方式
關聯查詢時,需使用獨立子查詢才能使結果數量正確 實體類 Resident public class Resident implements Serializable { private static final long
原创 vue axios post 參數
後端action ,參數使用了@RequestParam @PostMapping(value = "/addMy") public Result<?> addMy(@RequestParam String ids){
原创 vue ant table 行號
嘗試了多次,在customRender的函數中用不了this,用slot來代替解決了 html: <a-table :columns="columns"> <span slot="serial" slot-scop
原创 vue ant 下拉選擇 使用v-decorator設置值顯示爲數字的解決
字段名爲type , 數據庫中爲int型,前端獲取到的也是數字,使用form.setFieldsValue設置值,結果一直顯示爲數字,不顯示文字標題,設置值前將數字轉換爲字符串,可正確顯示 字段: <a-select
原创 vue ant checkbox 使用 v-decorator 設置默認值
html: <a-checkbox v-decorator="['isValid',{valuePropName:'checked',initialValue:false}]"></a-checkbox> js: this.f
原创 c# post json數據 與接收
客戶端: static void Main(string[] args) { string _url = "http://localhost:55084//api/datasrv/sets
原创 jquery select 通過text查找
$("#bkgw").find("option:contains('監理員')").remove(); 通過text=監理員 在下拉框中找到並刪除
原创 sql server 歸組統計後取整條記錄
需按學號等字段歸組統計出成績值,取最大的那個整條記錄,用group by 無法實現 實現: select * from( select ROW_NUMBER() over(partition by stid,type,leve
原创 .net mvc中母版與視圖中使用vue
母版中: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-widt
原创 springboot 發佈jar中使用jsp做頁面
pom文件中: <build> <plugins> <plugin> <groupId>org.springframework.boot</groupId>
原创 導出多個工作表的電子錶文件
寫電子錶內容: public byte[] writeMapData(Map<String,List<Map<String,Object>>> data) throws Exception { ByteArrayO
原创 mybatis 註解方式一對一,多重對象關聯
三個關聯的對象查詢 實體類 public class SchoolEntity { private SchoolDbEntity db; public SchoolDbEntity getDb() {return db;
原创 mybatis 註解方式多對多
類型表(type)字段:id,name 年級表(grade)字段:id,name 類型年級:typeid,gradeid 實體類(type): public class ScTypeEntity { private St
原创 springboot 攔截器過濾權限和錯誤處理
先說異常處理,增加一個異常處理的類MyControllerAdvice就可以了,不需要其他地方使用,注意使用註解@ControllerAdvice @ControllerAdvice public class MyControll