2020年7月16日

接口单元测试案例

摘要: 接口: /// <summary> /// 获取“我的收藏”页面数据-H5 /// </summary> [HttpGet] [Route("api/UserCollectQuestion/ExamPaperListForH5")] public ResponseMessage GetCollect 阅读全文

posted @ 2020-07-16 09:24 Cinderella露 阅读(274) 评论(0) 推荐(0)

2020年1月16日

.net接口导出excel文件

摘要: /// <summary> /// 导出机构管理列表 /// </summary> [HttpGet] [Route("api/schoolManage/ExportSchoolManageList")] public HttpResponseMessage ExportSchoolManageLi 阅读全文

posted @ 2020-01-16 15:47 Cinderella露 阅读(409) 评论(0) 推荐(0)

C#四舍五入的几种方法

摘要: 1、使用 Round() 方法输出 double dValue = 1880.875; double d = Math.Round(dValue, 2); //输出:1880.88 decimal de = decimal.Round(decimal.Parse(dValue), 2); //输出: 阅读全文

posted @ 2020-01-16 15:36 Cinderella露 阅读(1372) 评论(0) 推荐(0)

2019年5月9日

防注入拼接SQL

摘要: 循环更新数据库,为提高性能,可foreach拼接SQL后一次访问数据库去更新 var updateunionTestPaperRule = new Sql(""); foreach (var questionNote in req.questionNoteList) { updateunionTes 阅读全文

posted @ 2019-05-09 15:54 Cinderella露 阅读(197) 评论(0) 推荐(0)

2019年2月20日

手机端自适应显示样式设置(两种方式)

摘要: <!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv=" 阅读全文

posted @ 2019-02-20 19:35 Cinderella露 阅读(1412) 评论(0) 推荐(0)

导航