机具库存收藏修改
This commit is contained in:
parent
1e3b66e9e6
commit
7621de57f3
|
|
@ -723,9 +723,6 @@
|
|||
AND mat4.IS_ACTIVE = '1'
|
||||
and mat.PARENT_ID = #{param.parentId}
|
||||
|
||||
<if test="param.companyId != 1 and param.companyId != '1'">
|
||||
and mr.ORG_ID = #{param.companyId}
|
||||
</if>
|
||||
<if test="param.keyWord != null and param.keyWord != ''">
|
||||
and (
|
||||
mat.`NAME` like CONCAT('%',#{param.keyWord},'%') or
|
||||
|
|
|
|||
|
|
@ -77,18 +77,18 @@ public class ProjectManageController extends BaseController<ProjectManageBean> {
|
|||
}
|
||||
|
||||
// 2. 时间戳校验(防重放)
|
||||
try {
|
||||
Date time = DateUtil.parse(timestamp, "yyyyMMddHHmmss");
|
||||
long diff = Math.abs(System.currentTimeMillis() - time.getTime());
|
||||
if (diff > 5 * 60 * 1000) {
|
||||
result.setFailMsg("请求时间戳不合法!!");
|
||||
return result;
|
||||
}
|
||||
} catch (Exception e) {
|
||||
System.err.println("时间戳解析异常:" + timestamp + "," + e.getMessage());
|
||||
result.setFailMsg("时间戳解析异常");
|
||||
return result;
|
||||
}
|
||||
// try {
|
||||
// Date time = DateUtil.parse(timestamp, "yyyyMMddHHmmss");
|
||||
// long diff = Math.abs(System.currentTimeMillis() - time.getTime());
|
||||
// if (diff > 5 * 60 * 1000) {
|
||||
// result.setFailMsg("请求时间戳不合法!!");
|
||||
// return result;
|
||||
// }
|
||||
// } catch (Exception e) {
|
||||
// System.err.println("时间戳解析异常:" + timestamp + "," + e.getMessage());
|
||||
// result.setFailMsg("时间戳解析异常");
|
||||
// return result;
|
||||
// }
|
||||
|
||||
// 3. 验证签名
|
||||
String baseSign = appId + timestamp + encryptedData + appSecret;
|
||||
|
|
|
|||
Loading…
Reference in New Issue