代码优化

pull/1/head
liuwx_gitee 1 year ago
parent 2d7f896a3a
commit c11c451796

@ -13,8 +13,8 @@
body, body,
#app { #app {
height: 100%; height: 100%;
margin: 0px; margin: 0;
padding: 0px; padding: 0;
} }
.chromeframe { .chromeframe {
margin: 0.2em 0; margin: 0.2em 0;

@ -31,7 +31,7 @@
position: absolute; position: absolute;
white-space: pre; white-space: pre;
cursor: text; cursor: text;
transform-origin: 0% 0%; transform-origin: 0 0;
} }
.textLayer .highlight { .textLayer .highlight {
@ -1132,7 +1132,7 @@ html[dir="rtl"] #outerContainer.sidebarOpen #loadingBar {
position: absolute; position: absolute;
top: 0; top: 0;
left: 0; left: 0;
width: 0%; width: 0;
height: 100%; height: 100%;
background-color: var(--progressBar-color); background-color: var(--progressBar-color);
overflow: hidden; overflow: hidden;

@ -102,7 +102,7 @@ import BarMultid from '@/components/chart/BarMultid'
```json ```json
[ [
{ {
"type": "Jeecg", // 列名 "type": "Jeecg",
"Jan.": 18.9, "Jan.": 18.9,
"Feb.": 28.8, "Feb.": 28.8,
"Mar.": 39.3, "Mar.": 39.3,
@ -227,7 +227,7 @@ import LineChartMultid from '@/components/chart/LineChartMultid'
```json ```json
[ [
{ {
"type": "Jan", // 列名 "type": "Jan",
"jeecg": 7, "jeecg": 7,
"jeebt": 3.9 "jeebt": 3.9
}, },
@ -264,7 +264,6 @@ import Pie from '@/components/chart/Pie'
```json ```json
[ [
// 所有的 percent 相加等于 100
{ "item": "一月", "percent": 40 }, { "item": "一月", "percent": 40 },
{ "item": "二月", "percent": 21 }, { "item": "二月", "percent": 21 },
{ "item": "三月", "percent": 17 }, { "item": "三月", "percent": 17 },
@ -292,7 +291,6 @@ import Radar from '@/components/chart/Radar'
```json ```json
[ [
// score 最小值为 0最大值为 100
{ "item": "一月", "score": 40 }, { "item": "一月", "score": 40 },
{ "item": "二月", "score": 20 }, { "item": "二月", "score": 20 },
{ "item": "三月", "score": 67 }, { "item": "三月", "score": 67 },

@ -264,8 +264,8 @@
&.no-title { &.no-title {
.ant-modal-header { .ant-modal-header {
padding: 0px 12px; padding: 0 12px;
border-bottom: 0px !important; border-bottom: 0 !important;
} }
} }
} }

@ -247,8 +247,8 @@
&.no-title { &.no-title {
.ant-modal-header { .ant-modal-header {
padding: 0px 12px; padding: 0 12px;
border-bottom: 0px !important; border-bottom: 0 !important;
} }
} }
} }

@ -246,8 +246,8 @@
&.no-title { &.no-title {
.ant-modal-header { .ant-modal-header {
padding: 0px 12px; padding: 0 12px;
border-bottom: 0px !important; border-bottom: 0 !important;
} }
} }
} }

@ -6,7 +6,7 @@
:confirmLoading="uploading" :confirmLoading="uploading"
@cancel="handleClose"> @cancel="handleClose">
<div style="margin: 0px 0px 5px 1px" v-if="online"> <div style="margin: 0 0 5px 1px" v-if="online">
<span style="display: inline-block;height: 32px;line-height: 32px;vertical-align: middle;">是否开启校验:</span> <span style="display: inline-block;height: 32px;line-height: 32px;vertical-align: middle;">是否开启校验:</span>
<span style="display: inline-block;height: 32px;margin-left: 6px"> <span style="display: inline-block;height: 32px;margin-left: 6px">
<a-switch :checked="validateStatus==1" @change="handleChangeValidateStatus" checked-children="" un-checked-children="" size="small"/> <a-switch :checked="validateStatus==1" @change="handleChangeValidateStatus" checked-children="" un-checked-children="" size="small"/>

@ -227,8 +227,8 @@
} }
&.no-title{ &.no-title{
.ant-modal-header { .ant-modal-header {
padding: 0px 24px; padding: 0 24px;
border-bottom: 0px !important; border-bottom: 0 !important;
} }
} }
} }

@ -2,7 +2,7 @@
<div class="drag" ref="dragDiv"> <div class="drag" ref="dragDiv">
<div class="drag_bg"></div> <div class="drag_bg"></div>
<div class="drag_text">{{confirmWords}}</div> <div class="drag_text">{{confirmWords}}</div>
<div ref="moveDiv" @mousedown="mousedownFn($event)" :class="{'handler_ok_bg':confirmSuccess}" class="handler handler_bg" style="border: 0.5px solid #fff;height: 34px;position: absolute;top: 0px;left: 0px;"></div> <div ref="moveDiv" @mousedown="mousedownFn($event)" :class="{'handler_ok_bg':confirmSuccess}" class="handler handler_bg" style="border: 0.5px solid #fff;height: 34px;position: absolute;top: 0;left: 0;"></div>
</div> </div>
</template> </template>
@ -101,11 +101,11 @@
.drag_bg{ .drag_bg{
background-color: #7ac23c; background-color: #7ac23c;
height: 34px; height: 34px;
width: 0px; width: 0;
} }
.drag_text{ .drag_text{
position: absolute; position: absolute;
top: 0px; top: 0;
width: 100%;text-align: center; width: 100%;text-align: center;
-moz-user-select: none; -moz-user-select: none;
-webkit-user-select: none; -webkit-user-select: none;

@ -172,7 +172,7 @@ this.$refs.superQueryModal.show();
<div style="width: 100%;"> <div style="width: 100%;">
<span>{{ title }}</span> <span>{{ title }}</span>
<span style="display:inline-block;width:calc(100% - 51px);padding-right:10px;text-align: right"> <span style="display:inline-block;width:calc(100% - 51px);padding-right:10px;text-align: right">
<a-button @click="toggleScreen" icon="appstore" style="height:20px;width:20px;border:0px"></a-button> <a-button @click="toggleScreen" icon="appstore" style="height:20px;width:20px;border:0"></a-button>
</span> </span>
</div> </div>
</template> </template>

@ -848,7 +848,7 @@
.ant-tabs-tab { .ant-tabs-tab {
padding: 0 24px!important; padding: 0 24px!important;
background-color: #f5f7fa!important; background-color: #f5f7fa!important;
margin-right: 0px!important; margin-right: 0!important;
border-radius: 0; border-radius: 0;
line-height: 38px; line-height: 38px;
border: 1px solid transparent!important; border: 1px solid transparent!important;

@ -74,7 +74,7 @@
</a-layout-content> </a-layout-content>
<!-- layout footer --> <!-- layout footer -->
<a-layout-footer style="padding: 0px"> <a-layout-footer style="padding: 0">
<global-footer/> <global-footer/>
</a-layout-footer> </a-layout-footer>
</a-layout> </a-layout>
@ -555,7 +555,7 @@
// //
.layout-content { .layout-content {
margin: 24px 24px 0px; margin: 24px 24px 0;
height: 64px; height: 64px;
padding: 0 12px 0 0; padding: 0 12px 0 0;
} }
@ -663,7 +663,7 @@
.ant-dropdown-menu-item > .anticon:first-child, .ant-dropdown-menu-item > .anticon:first-child,
.ant-dropdown-menu-item > a > .anticon:first-child, .ant-dropdown-menu-item > a > .anticon:first-child,
.ant-dropdown-menu-submenu-title > .anticon:first-child .ant-dropdown-menu-submenu-title > .anticon:first-child,
.ant-dropdown-menu-submenu-title > a > .anticon:first-child { .ant-dropdown-menu-submenu-title > a > .anticon:first-child {
min-width: 12px; min-width: 12px;
margin-right: 8px; margin-right: 8px;

@ -122,6 +122,6 @@
margin-top: 48px; margin-top: 48px;
} }
.page-header[data-v-6740ec88] { .page-header[data-v-6740ec88] {
margin: 0px 24px 0; margin: 0 24px 0;
} }
</style> </style>

@ -286,8 +286,8 @@
float: left; float: left;
cursor: pointer; cursor: pointer;
margin-right: 8px; margin-right: 8px;
padding-left: 0px; padding-left: 0;
padding-right: 0px; padding-right: 0;
text-align: center; text-align: center;
color: #fff; color: #fff;
font-weight: 700; font-weight: 700;

@ -32,7 +32,7 @@
<a-list-item :key="index" v-for="(record, index) in announcement1"> <a-list-item :key="index" v-for="(record, index) in announcement1">
<div style="margin-left: 5%;width: 80%"> <div style="margin-left: 5%;width: 80%">
<p><a @click="showAnnouncement(record)">{{ record.titile }}</a></p> <p><a @click="showAnnouncement(record)">{{ record.titile }}</a></p>
<p style="color: rgba(0,0,0,.45);margin-bottom: 0px">{{ record.createTime }} 发布</p> <p style="color: rgba(0,0,0,.45);margin-bottom: 0">{{ record.createTime }} 发布</p>
</div> </div>
<div style="text-align: right"> <div style="text-align: right">
<a-tag @click="showAnnouncement(record)" v-if="record.priority === 'L'" color="blue"></a-tag> <a-tag @click="showAnnouncement(record)" v-if="record.priority === 'L'" color="blue"></a-tag>
@ -50,7 +50,7 @@
<a-list-item :key="index" v-for="(record, index) in announcement2"> <a-list-item :key="index" v-for="(record, index) in announcement2">
<div style="margin-left: 5%;width: 80%"> <div style="margin-left: 5%;width: 80%">
<p><a @click="showAnnouncement(record)">{{ record.titile }}</a></p> <p><a @click="showAnnouncement(record)">{{ record.titile }}</a></p>
<p style="color: rgba(0,0,0,.45);margin-bottom: 0px">{{ record.createTime }} 发布</p> <p style="color: rgba(0,0,0,.45);margin-bottom: 0">{{ record.createTime }} 发布</p>
</div> </div>
<div style="text-align: right"> <div style="text-align: right">
<a-tag @click="showAnnouncement(record)" v-if="record.priority === 'L'" color="blue"></a-tag> <a-tag @click="showAnnouncement(record)" v-if="record.priority === 'L'" color="blue"></a-tag>

@ -46,7 +46,7 @@
<a-form layout="inline"> <a-form layout="inline">
<a-row> <a-row>
<a-col :xl="17" :lg="15" :md="14" :sm="24" style="background-color: #f2f2f2;padding: 15px"> <a-col :xl="17" :lg="15" :md="14" :sm="24" style="background-color: #f2f2f2;padding: 15px">
<div style="padding: 0px; box-shadow:1px 2px 3px 2px #ccc"> <div style="padding: 0; box-shadow:1px 2px 3px 2px #ccc">
<!--<a-col style="background-color: #108ee9">--> <!--<a-col style="background-color: #108ee9">-->
<!--<h3 style="color: white;margin-left: 20px;padding:5px"><b>新入库文档</b></h3>--> <!--<h3 style="color: white;margin-left: 20px;padding:5px"><b>新入库文档</b></h3>-->
<!--</a-col>--> <!--</a-col>-->
@ -104,7 +104,7 @@
</div> </div>
</a-col> </a-col>
<a-col :xl="7" :lg="9" :md="10" :sm="24" style="background-color: #f2f2f2;padding: 15px;min-width: 350px"> <a-col :xl="7" :lg="9" :md="10" :sm="24" style="background-color: #f2f2f2;padding: 15px;min-width: 350px">
<div style="background-color: white;padding: 0px; box-shadow:1px 2px 3px 2px #ccc"> <div style="background-color: white;padding: 0; box-shadow:1px 2px 3px 2px #ccc">
<a-form layout="inline" style="min-height: 10px"> <a-form layout="inline" style="min-height: 10px">
<a-row> <a-row>
<a-col style="background-color: #108ee9"> <a-col style="background-color: #108ee9">
@ -139,7 +139,7 @@
</div> </div>
</b-j-modal> </b-j-modal>
<a-layout-footer style="padding: 0px"> <a-layout-footer style="padding: 0">
<global-footer/> <global-footer/>
</a-layout-footer> </a-layout-footer>

@ -184,7 +184,7 @@
margin-bottom: 18px; margin-bottom: 18px;
} }
.anty-row-operator button{margin: 0 5px} .anty-row-operator button{margin: 0 5px}
.ant-btn-danger{background-color: #ffffff}z .ant-btn-danger{background-color: #ffffff}
.ant-modal-cust-warp{height: 100%} .ant-modal-cust-warp{height: 100%}
.ant-modal-cust-warp .ant-modal-body{height:calc(100% - 110px) !important;overflow-y: auto} .ant-modal-cust-warp .ant-modal-body{height:calc(100% - 110px) !important;overflow-y: auto}

@ -159,5 +159,5 @@
margin-top: 20px; margin-top: 20px;
} }
@import '../../../assets/less/index.less'; @import '@/assets/less/index.less';
</style> </style>

@ -13,7 +13,7 @@
<div style="width: 100%;"> <div style="width: 100%;">
<span>{{ title }}</span> <span>{{ title }}</span>
<span style="display:inline-block;width:calc(100% - 51px);padding-right:10px;text-align: right"> <span style="display:inline-block;width:calc(100% - 51px);padding-right:10px;text-align: right">
<a-button @click="toggleScreen" icon="appstore" style="height:20px;width:20px;border:0px"></a-button> <a-button @click="toggleScreen" icon="appstore" style="height:20px;width:20px;border:0"></a-button>
</span> </span>
</div> </div>

@ -177,7 +177,7 @@ public class JeecgController<T, S extends IService<T>> {
//1200条 saveBatch消耗时间3687毫秒 循环插入消耗时间5212毫秒 //1200条 saveBatch消耗时间3687毫秒 循环插入消耗时间5212毫秒
log.info("消耗时间" + (System.currentTimeMillis() - start) + "毫秒"); log.info("消耗时间" + (System.currentTimeMillis() - start) + "毫秒");
//update-end-author:taoyan date:20190528 for:批量插入数据 //update-end-author:taoyan date:20190528 for:批量插入数据
return Result.ok("文件导入成功!数据行数:" + list.size()); return Result.OK("文件导入成功!数据行数:" + list.size());
} catch (Exception e) { } catch (Exception e) {
log.error(e.getMessage(), e); log.error(e.getMessage(), e);
return Result.error("文件导入失败:" + e.getMessage()); return Result.error("文件导入失败:" + e.getMessage());

@ -18,7 +18,7 @@ public class ImportExcelUtil {
public static Result<?> imporReturnRes(int errorLines,int successLines,List<String> errorMessage) throws IOException { public static Result<?> imporReturnRes(int errorLines,int successLines,List<String> errorMessage) throws IOException {
if (errorLines == 0) { if (errorLines == 0) {
return Result.ok("共" + successLines + "行数据全部导入成功!"); return Result.OK("共" + successLines + "行数据全部导入成功!");
} else { } else {
JSONObject result = new JSONObject(5); JSONObject result = new JSONObject(5);
int totalCount = successLines + errorLines; int totalCount = successLines + errorLines;
@ -31,7 +31,7 @@ public class ImportExcelUtil {
String fileName = fileUrl.substring(lastIndex + 1); String fileName = fileUrl.substring(lastIndex + 1);
result.put("fileUrl", "/sys/common/static/" + fileUrl); result.put("fileUrl", "/sys/common/static/" + fileUrl);
result.put("fileName", fileName); result.put("fileName", fileName);
Result res = Result.ok(result); Result res = Result.OK(result);
res.setCode(201); res.setCode(201);
res.setMessage("文件导入成功,但有错误。"); res.setMessage("文件导入成功,但有错误。");
return res; return res;

@ -9,10 +9,10 @@ import javax.crypto.spec.PBEKeySpec;
import javax.crypto.spec.PBEParameterSpec; import javax.crypto.spec.PBEParameterSpec;
public class PasswordUtil { public class PasswordUtil {
/** /*
* JAVA6 PBEWITHMD5ANDDES PBEWITHMD5ANDTRIPLEDES JAVA6 PBEWITHMD5ANDDES PBEWITHMD5ANDTRIPLEDES
* PBEWITHSHAANDDESEDE PBEWITHSHA1ANDRC2_40 PBKDF2WITHHMACSHA1 PBEWITHSHAANDDESEDE PBEWITHSHA1ANDRC2_40 PBKDF2WITHHMACSHA1
* */ */
/** /**
* 使:PBEWITHMD5andDES * 使:PBEWITHMD5andDES

@ -125,7 +125,7 @@ public class YouBianCodeUtil {
/** /**
* *
* *
* @param num * @param zimu
* @return * @return
*/ */
private static char getNextZiMu(char zimu) { private static char getNextZiMu(char zimu) {

@ -23,7 +23,7 @@ public class AesEncryptUtil {
* @return * @return
* @throws Exception * @throws Exception
*/ */
public static String encrypt(String data, String key, String iv) throws Exception { public static String encrypt(String data, String key, String iv) {
try { try {
Cipher cipher = Cipher.getInstance("AES/CBC/NoPadding");//"算法/模式/补码方式"NoPadding PkcsPadding Cipher cipher = Cipher.getInstance("AES/CBC/NoPadding");//"算法/模式/补码方式"NoPadding PkcsPadding
@ -60,7 +60,7 @@ public class AesEncryptUtil {
* @return * @return
* @throws Exception * @throws Exception
*/ */
public static String desEncrypt(String data, String key, String iv) throws Exception { public static String desEncrypt(String data, String key, String iv) {
try { try {
byte[] encrypted1 = Base64.decode(data); byte[] encrypted1 = Base64.decode(data);

@ -199,14 +199,6 @@ public class oConvertUtils {
return (getString(s, "")); return (getString(s, ""));
} }
/**
* Unicode
* @param s
* @return
*/
/*public static String escapeJava(Object s) {
return StringEscapeUtils.escapeJava(getString(s));
}*/
public static String getString(Object object) { public static String getString(Object object) {
if (isEmpty(object)) { if (isEmpty(object)) {
@ -371,7 +363,7 @@ public class oConvertUtils {
/** /**
* SETMAP * SETMAP
* *
* @param str * @param setobj
* @return * @return
*/ */
public static Map<Object, Object> SetToMap(Set<Object> setobj) { public static Map<Object, Object> SetToMap(Set<Object> setobj) {
@ -387,9 +379,9 @@ public class oConvertUtils {
public static boolean isInnerIP(String ipAddress) { public static boolean isInnerIP(String ipAddress) {
boolean isInnerIp = false; boolean isInnerIp = false;
long ipNum = getIpNum(ipAddress); long ipNum = getIpNum(ipAddress);
/** /*
* IPA 10.0.0.0-10.255.255.255 B 172.16.0.0-172.31.255.255 C 192.168.0.0-192.168.255.255 127 IPA 10.0.0.0-10.255.255.255 B 172.16.0.0-172.31.255.255 C 192.168.0.0-192.168.255.255 127
**/ */
long aBegin = getIpNum("10.0.0.0"); long aBegin = getIpNum("10.0.0.0");
long aEnd = getIpNum("10.255.255.255"); long aEnd = getIpNum("10.255.255.255");
long bBegin = getIpNum("172.16.0.0"); long bBegin = getIpNum("172.16.0.0");
@ -462,7 +454,7 @@ public class oConvertUtils {
* 线</br> * 线</br>
* hello_world,test_id->helloWorld,testId * hello_world,test_id->helloWorld,testId
* *
* @param name * @param names
* 线 * 线
* @return * @return
*/ */

@ -183,9 +183,9 @@ public class ShiroConfig {
public DefaultAdvisorAutoProxyCreator defaultAdvisorAutoProxyCreator() { public DefaultAdvisorAutoProxyCreator defaultAdvisorAutoProxyCreator() {
DefaultAdvisorAutoProxyCreator defaultAdvisorAutoProxyCreator = new DefaultAdvisorAutoProxyCreator(); DefaultAdvisorAutoProxyCreator defaultAdvisorAutoProxyCreator = new DefaultAdvisorAutoProxyCreator();
defaultAdvisorAutoProxyCreator.setProxyTargetClass(true); defaultAdvisorAutoProxyCreator.setProxyTargetClass(true);
/** /*
* github#994 github#994
* Advisor Advisor
*/ */
defaultAdvisorAutoProxyCreator.setUsePrefix(true); defaultAdvisorAutoProxyCreator.setUsePrefix(true);
defaultAdvisorAutoProxyCreator.setAdvisorBeanNamePrefix("_no_advisor"); defaultAdvisorAutoProxyCreator.setAdvisorBeanNamePrefix("_no_advisor");

@ -139,7 +139,7 @@ public class RedisUtil {
* *
* *
* @param key * @param key
* @param by (0) * @param delta (0)
* @return * @return
*/ */
public long incr(String key, long delta) { public long incr(String key, long delta) {
@ -153,7 +153,7 @@ public class RedisUtil {
* *
* *
* @param key * @param key
* @param by (0) * @param delta (0)
* @return * @return
*/ */
public long decr(String key, long delta) { public long decr(String key, long delta) {
@ -463,7 +463,6 @@ public class RedisUtil {
* *
* @param key * @param key
* @param value * @param value
* @param time ()
* @return * @return
*/ */
public boolean lSet(String key, Object value) { public boolean lSet(String key, Object value) {
@ -502,7 +501,6 @@ public class RedisUtil {
* *
* @param key * @param key
* @param value * @param value
* @param time ()
* @return * @return
*/ */
public boolean lSet(String key, List<Object> value) { public boolean lSet(String key, List<Object> value) {

@ -34,9 +34,9 @@ public interface IKmDocService extends IService<KmDoc> {
KmDoc getDocByFileId(String fileId); KmDoc getDocByFileId(String fileId);
void downloadKmDoc(String docId, HttpServletResponse response, HttpServletRequest req) throws IOException, ParseException; void downloadKmDoc(String docId, HttpServletResponse response, HttpServletRequest req) throws IOException;
void viewKmDoc( String docId, HttpServletResponse response,HttpServletRequest req) throws IOException; void viewKmDoc( String docId, HttpServletResponse response,HttpServletRequest req);
Result<?> editDraft(KmDocParamVO kmDocParamVO); Result<?> editDraft(KmDocParamVO kmDocParamVO);

@ -1528,7 +1528,7 @@ public class KmDocServiceImpl extends ServiceImpl<KmDocMapper, KmDoc> implements
//下载文件 //下载文件
@SuppressWarnings("ALL") @SuppressWarnings("ALL")
public void downloadKmDoc(String docId, HttpServletResponse response, HttpServletRequest req) throws IOException, ParseException { public void downloadKmDoc(String docId, HttpServletResponse response, HttpServletRequest req) throws IOException {
KmDoc kmDoc = super.getById(docId); KmDoc kmDoc = super.getById(docId);
if(kmDoc == null) { if(kmDoc == null) {
response.sendError(HttpStatus.NOT_FOUND.value(),"无效的文档"); response.sendError(HttpStatus.NOT_FOUND.value(),"无效的文档");
@ -1561,7 +1561,7 @@ public class KmDocServiceImpl extends ServiceImpl<KmDocMapper, KmDoc> implements
//预览文件 //预览文件
@SuppressWarnings("ALL") @SuppressWarnings("ALL")
public void viewKmDoc( String docId, HttpServletResponse response,HttpServletRequest req) throws IOException { public void viewKmDoc( String docId, HttpServletResponse response,HttpServletRequest req) {
try { try {
KmDoc kmDoc = super.getById(docId); KmDoc kmDoc = super.getById(docId);
if(kmDoc == null) { if(kmDoc == null) {

@ -67,7 +67,6 @@ public class CASServiceUtil {
/** /**
* https SSL * https SSL
* *
* @param cookieStore Cookies
* @return * @return
* @throws Exception * @throws Exception
*/ */

@ -36,7 +36,7 @@ public class ActuatorRedisController {
public Result<?> getRedisInfo() throws Exception { public Result<?> getRedisInfo() throws Exception {
List<RedisInfo> infoList = this.redisService.getRedisInfo(); List<RedisInfo> infoList = this.redisService.getRedisInfo();
log.info(infoList.toString()); log.info(infoList.toString());
return Result.ok(infoList); return Result.OK(infoList);
} }
@GetMapping("/keysSize") @GetMapping("/keysSize")

@ -65,7 +65,7 @@ public class QuartzJobController {
QueryWrapper<QuartzJob> queryWrapper = QueryGenerator.initQueryWrapper(quartzJob, req.getParameterMap()); QueryWrapper<QuartzJob> queryWrapper = QueryGenerator.initQueryWrapper(quartzJob, req.getParameterMap());
Page<QuartzJob> page = new Page<QuartzJob>(pageNo, pageSize); Page<QuartzJob> page = new Page<QuartzJob>(pageNo, pageSize);
IPage<QuartzJob> pageList = quartzJobService.page(page, queryWrapper); IPage<QuartzJob> pageList = quartzJobService.page(page, queryWrapper);
return Result.ok(pageList); return Result.OK(pageList);
} }
@ -79,7 +79,7 @@ public class QuartzJobController {
@RequestMapping(value = "/add", method = RequestMethod.POST) @RequestMapping(value = "/add", method = RequestMethod.POST)
public Result<?> add(@RequestBody QuartzJob quartzJob) { public Result<?> add(@RequestBody QuartzJob quartzJob) {
quartzJobService.saveAndScheduleJob(quartzJob); quartzJobService.saveAndScheduleJob(quartzJob);
return Result.ok("创建定时任务成功"); return Result.OK("创建定时任务成功");
} }
/** /**
@ -97,7 +97,7 @@ public class QuartzJobController {
log.error(e.getMessage(),e); log.error(e.getMessage(),e);
return Result.error("更新定时任务失败!"); return Result.error("更新定时任务失败!");
} }
return Result.ok("更新定时任务成功!"); return Result.OK("更新定时任务成功!");
} }
/** /**
@ -114,7 +114,7 @@ public class QuartzJobController {
return Result.error("未找到对应实体"); return Result.error("未找到对应实体");
} }
quartzJobService.deleteAndStopJob(quartzJob); quartzJobService.deleteAndStopJob(quartzJob);
return Result.ok("删除成功!"); return Result.OK("删除成功!");
} }
@ -134,7 +134,7 @@ public class QuartzJobController {
QuartzJob job = quartzJobService.getById(id); QuartzJob job = quartzJobService.getById(id);
quartzJobService.deleteAndStopJob(job); quartzJobService.deleteAndStopJob(job);
} }
return Result.ok("删除定时任务成功!"); return Result.OK("删除定时任务成功!");
} }
/** /**
@ -152,7 +152,7 @@ public class QuartzJobController {
return Result.error("定时任务不存在!"); return Result.error("定时任务不存在!");
} }
quartzJobService.pause(job); quartzJobService.pause(job);
return Result.ok("暂停定时任务成功"); return Result.OK("暂停定时任务成功");
} }
/** /**
@ -171,7 +171,7 @@ public class QuartzJobController {
} }
quartzJobService.resumeJob(job); quartzJobService.resumeJob(job);
//scheduler.resumeJob(JobKey.jobKey(job.getJobClassName().trim())); //scheduler.resumeJob(JobKey.jobKey(job.getJobClassName().trim()));
return Result.ok("恢复定时任务成功"); return Result.OK("恢复定时任务成功");
} }
/** /**
@ -183,7 +183,7 @@ public class QuartzJobController {
@RequestMapping(value = "/queryById", method = RequestMethod.GET) @RequestMapping(value = "/queryById", method = RequestMethod.GET)
public Result<?> queryById(@RequestParam(name = "id", required = true) String id) { public Result<?> queryById(@RequestParam(name = "id", required = true) String id) {
QuartzJob quartzJob = quartzJobService.getById(id); QuartzJob quartzJob = quartzJobService.getById(id);
return Result.ok(quartzJob); return Result.OK(quartzJob);
} }
/** /**
@ -265,6 +265,6 @@ public class QuartzJobController {
log.info("定时任务 立即执行失败>>"+e.getMessage()); log.info("定时任务 立即执行失败>>"+e.getMessage());
return Result.error("执行失败!"); return Result.error("执行失败!");
} }
return Result.ok("执行成功!"); return Result.OK("执行成功!");
} }
} }

@ -90,7 +90,7 @@ public class CommonController {
//update-begin-author:lvdandan date:20200928 for:修改JEditor编辑器本地上传 //update-begin-author:lvdandan date:20200928 for:修改JEditor编辑器本地上传
savePath = this.uploadLocal(file,bizPath); savePath = this.uploadLocal(file,bizPath);
//update-begin-author:lvdandan date:20200928 for:修改JEditor编辑器本地上传 //update-begin-author:lvdandan date:20200928 for:修改JEditor编辑器本地上传
/** markdown /* markdown
//针对jeditor编辑器如何使 lcaol模式采用 base64格式存储 //针对jeditor编辑器如何使 lcaol模式采用 base64格式存储
String jeditor = request.getParameter("jeditor"); String jeditor = request.getParameter("jeditor");
if(oConvertUtils.isNotEmpty(jeditor)){ if(oConvertUtils.isNotEmpty(jeditor)){

@ -57,7 +57,7 @@ public class DuplicateCheckController {
if (num == null || num == 0) { if (num == null || num == 0) {
// 该值可用 // 该值可用
return Result.ok("该值可用!"); return Result.OK("该值可用!");
} else { } else {
// 该值不可用 // 该值不可用
log.info("该值不可用,系统中已存在!"); log.info("该值不可用,系统中已存在!");

@ -306,7 +306,7 @@ public class LoginController {
redisUtil.del(String.format("%s::%s", CacheConstant.SYS_USERS_CACHE, sysUser.getUsername())); redisUtil.del(String.format("%s::%s", CacheConstant.SYS_USERS_CACHE, sysUser.getUsername()));
//调用shiro的logout //调用shiro的logout
SecurityUtils.getSubject().logout(); SecurityUtils.getSubject().logout();
return Result.ok("退出登录成功!"); return Result.OK("退出登录成功!");
}else { }else {
return Result.error("Token无效!"); return Result.error("Token无效!");
} }
@ -439,8 +439,8 @@ public class LoginController {
return result; return result;
} }
/** /*
* smsmode 0 .1.2. smsmode 0 .1.2.
*/ */
if (CommonConstant.SMS_TPL_TYPE_0.equals(smsmode)) { if (CommonConstant.SMS_TPL_TYPE_0.equals(smsmode)) {
//登录模板 //登录模板
@ -663,7 +663,7 @@ public class LoginController {
if(checkCode==null || !checkCode.equals(lowerCaseCaptcha)) { if(checkCode==null || !checkCode.equals(lowerCaseCaptcha)) {
return Result.error("验证码错误"); return Result.error("验证码错误");
} }
return Result.ok(); return Result.OK();
} }
} }

@ -400,7 +400,7 @@ public class SysAnnouncementController {
} }
sysAnnouncementService.save(sysAnnouncementExcel); sysAnnouncementService.save(sysAnnouncementExcel);
} }
return Result.ok("文件导入成功!数据行数:" + listSysAnnouncements.size()); return Result.OK("文件导入成功!数据行数:" + listSysAnnouncements.size());
} catch (Exception e) { } catch (Exception e) {
log.error(e.getMessage(),e); log.error(e.getMessage(),e);
return Result.error("文件导入失败!"); return Result.error("文件导入失败!");

@ -97,15 +97,15 @@ public class SysGatewayRoute implements Serializable {
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
@ApiModelProperty(value = "创建日期") @ApiModelProperty(value = "创建日期")
private Date createTime; private Date createTime;
/* *//**更新人*//* /* *//*更新人*//*
@ApiModelProperty(value = "更新人") @ApiModelProperty(value = "更新人")
private String updateBy; private String updateBy;
*//**更新日期*//* *//*更新日期*//*
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
@ApiModelProperty(value = "更新日期") @ApiModelProperty(value = "更新日期")
private Date updateTime; private Date updateTime;
*//**所属部门*//* *//*所属部门*//*
@ApiModelProperty(value = "所属部门") @ApiModelProperty(value = "所属部门")
private String sysOrgCode;*/ private String sysOrgCode;*/
} }

@ -22,8 +22,7 @@ public interface SysAnnouncementSendMapper extends BaseMapper<SysAnnouncementSen
/** /**
* @ * @
* @param announcementSendModel * @param announcementSendModel
* @param pageSize * @param page
* @param pageNo
* @return * @return
*/ */
public List<AnnouncementSendModel> getMyAnnouncementSendList(Page<AnnouncementSendModel> page,@Param("announcementSendModel") AnnouncementSendModel announcementSendModel); public List<AnnouncementSendModel> getMyAnnouncementSendList(Page<AnnouncementSendModel> page,@Param("announcementSendModel") AnnouncementSendModel announcementSendModel);

@ -62,7 +62,7 @@ public interface SysUserMapper extends BaseMapper<SysUser> {
/** /**
* ID * ID
* @param username * @param username
* @param departId * @param orgCode
*/ */
void updateUserDepart(@Param("username") String username,@Param("orgCode") String orgCode); void updateUserDepart(@Param("username") String username,@Param("orgCode") String orgCode);

@ -48,9 +48,9 @@ public interface ISysDepartService extends IService<SysDepart>{
*/ */
Boolean updateDepartDataById(SysDepart sysDepart,String username); Boolean updateDepartDataById(SysDepart sysDepart,String username);
/** /*
* depart depart
* @param id @param id
* @return * @return
*/ */
/* boolean removeDepartDataById(String id); */ /* boolean removeDepartDataById(String id); */
@ -86,7 +86,7 @@ public interface ISysDepartService extends IService<SysDepart>{
/** /**
* id * id
* @param id * @param ids
* @return * @return
*/ */
void deleteBatchWithChildren(List<String> ids); void deleteBatchWithChildren(List<String> ids);

@ -19,7 +19,7 @@ public interface ISysPermissionDataRuleService extends IService<SysPermissionDat
/** /**
* id * id
* *
* @param permRule * @param permissionId
*/ */
List<SysPermissionDataRule> getPermRuleListByPermId(String permissionId); List<SysPermissionDataRule> getPermRuleListByPermId(String permissionId);
@ -33,7 +33,7 @@ public interface ISysPermissionDataRuleService extends IService<SysPermissionDat
/** /**
* ID * ID
* @param permission * @param permissionId
* @param username * @param username
* @return * @return
*/ */

@ -198,9 +198,9 @@ public class SysDepartServiceImpl extends ServiceImpl<SysDepartMapper, SysDepart
} }
/** /*
* removeDepartDataById delete ID removeDepartDataById delete ID
*
*/ */
/* /*
* @Override * @Override

@ -11,12 +11,12 @@ public class SecurityToolsTest {
MyKeyPair mkeyPair = SecurityTools.generateKeyPair(); MyKeyPair mkeyPair = SecurityTools.generateKeyPair();
JSONObject msg = new JSONObject(); JSONObject msg = new JSONObject();
msg.put("name", "党政辉"); msg.set("name", "党政辉");
msg.put("age", 50); msg.set("age", 50);
JSONObject identity = new JSONObject(); JSONObject identity = new JSONObject();
identity.put("type", "01"); identity.set("type", "01");
identity.put("no", "210882165896524512"); identity.set("no", "210882165896524512");
msg.put("identity", identity); msg.set("identity", identity);
// 签名加密部分 // 签名加密部分
SecuritySignReq signReq = new SecuritySignReq(); SecuritySignReq signReq = new SecuritySignReq();

Loading…
Cancel
Save