|  |  |  | 
|---|
|  |  |  | @RequestMapping(value = "/locMast/update/auth") | 
|---|
|  |  |  | @ManagerAuth(memo = "库位修改") | 
|---|
|  |  |  | public R update(LocMast locMast){ | 
|---|
|  |  |  | LocMast locMast1 = locMastService.selectById(locMast.getLocNo()); | 
|---|
|  |  |  | if (locMast.getLocType1()==0){ | 
|---|
|  |  |  | locMast.setLocType1(locMast1.getLocType1()); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | if (!locMast1.getLocType1().equals(locMast.getLocType1())){ | 
|---|
|  |  |  | if (locMast.getRow1()!=2){ | 
|---|
|  |  |  | return R.error("当前操作已被阻止,只允许第二排库位修改库位类型!!!"); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | if (locMast1.getLocType1()==1){ | 
|---|
|  |  |  | return R.error("当前操作已被阻止,测试库位禁止修改库位类型!!!"); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | if (Cools.isEmpty(locMast) || null==locMast.getLocNo()){ | 
|---|
|  |  |  | return R.error(); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | 
|---|
|  |  |  | matNew.setMatnr(param.getPackNo()); | 
|---|
|  |  |  | matNew.setMaktx(param.getPackName()); | 
|---|
|  |  |  | matNew.setManuDate(param.getRequestTime()); | 
|---|
|  |  |  | matNew.setDeadWarn(360);//6小时  360分钟 | 
|---|
|  |  |  | matNew.setDeadWarn(1440);//6小时  360分钟  24小时  1440分钟 | 
|---|
|  |  |  | matNew.setCreateBy(9999L);//9999表示erp下发 | 
|---|
|  |  |  | matNew.setCreateTime(now); | 
|---|
|  |  |  | matNew.setUpdateBy(9999L);//9999表示erp下发 | 
|---|
|  |  |  | 
|---|
|  |  |  | @ManagerAuth(value = ManagerAuth.Auth.NONE, memo = "登录") | 
|---|
|  |  |  | public R loginAction(String username, String password){ | 
|---|
|  |  |  | //验证许可证是否有效 | 
|---|
|  |  |  | LicenseVerify licenseVerify = new LicenseVerify(); | 
|---|
|  |  |  | boolean verify = licenseVerify.verify(); | 
|---|
|  |  |  | if (!verify) {//许可证已失效 | 
|---|
|  |  |  | return R.parse(CodeRes.SYSTEM_20001); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | //        LicenseVerify licenseVerify = new LicenseVerify(); | 
|---|
|  |  |  | //        boolean verify = licenseVerify.verify(); | 
|---|
|  |  |  | //        if (!verify) {//许可证已失效 | 
|---|
|  |  |  | //            return R.parse(CodeRes.SYSTEM_20001); | 
|---|
|  |  |  | //        } | 
|---|
|  |  |  | if (username.equals("super") && password.equals(Cools.md5(superPwd))) { | 
|---|
|  |  |  | Map<String, Object> res = new HashMap<>(); | 
|---|
|  |  |  | res.put("username", username); | 
|---|
|  |  |  | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @RequestMapping(value = "/getLicenseDays") | 
|---|
|  |  |  | public R getLicenseDays() { | 
|---|
|  |  |  | if (true){ | 
|---|
|  |  |  | return R.ok().add(0); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | LicenseVerify licenseVerify = new LicenseVerify(); | 
|---|
|  |  |  | LicenseContent verifyInfo = licenseVerify.getVerifyInfo(); | 
|---|
|  |  |  | if (verifyInfo == null) { | 
|---|
|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | LicenseVerify licenseVerify = new LicenseVerify(); | 
|---|
|  |  |  | //安装证书 | 
|---|
|  |  |  | LicenseContent install = licenseVerify.install(param); | 
|---|
|  |  |  | //                LicenseContent install = licenseVerify.install(param); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | logger.info("++++++++ 许可证加载结束 ++++++++"); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | return install != null; | 
|---|
|  |  |  | return true; | 
|---|
|  |  |  | } catch (Exception e) { | 
|---|
|  |  |  | return false; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | 
|---|
|  |  |  | pltType: $('#pltType').val(), | 
|---|
|  |  |  | ctnType: $('#ctnType').val(), | 
|---|
|  |  |  | locSts: $('#locSts').val(), | 
|---|
|  |  |  | locType1: $('#loc_type1').val(), | 
|---|
|  |  |  | sheetNo: $('#sheetNo').val(), | 
|---|
|  |  |  | crnNo: $('#crnNo').val(), | 
|---|
|  |  |  | row1: $('#row1').val(), | 
|---|
|  |  |  | 
|---|
|  |  |  | <!--        <a ew-event="note" title="便签"><i class="layui-icon layui-icon-note"></i></a>--> | 
|---|
|  |  |  | <!--      </li>--> | 
|---|
|  |  |  | <li class="layui-nav-item" lay-unselect id="licenseShow" style="display: none;user-select: none;"> | 
|---|
|  |  |  | <div style="color: red;">许可证有效期:<span id="licenseDays">29</span>天</div> | 
|---|
|  |  |  | <!--        <div style="color: red;">许可证有效期:<span id="licenseDays">29</span>天</div>--> | 
|---|
|  |  |  | </li> | 
|---|
|  |  |  | <li class="layui-nav-item layui-hide-xs" lay-unselect> | 
|---|
|  |  |  | <a ew-event="fullScreen" title="全屏"><i class="layui-icon layui-icon-screen-full"></i></a> | 
|---|
|  |  |  | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | <div class="layui-inline"  style="width:80%;"> | 
|---|
|  |  |  | <label class="layui-form-label"><span class="not-null">*</span>库位类型:</label> | 
|---|
|  |  |  | <div class="layui-input-inline"> | 
|---|
|  |  |  | <select id="loc_type1" class="layui-input" type="text"> | 
|---|
|  |  |  | <!--                    <option style="display: none"></option>--> | 
|---|
|  |  |  | <option value="0">不修改</option> | 
|---|
|  |  |  | <!--                    <option value="1">待测</option>--> | 
|---|
|  |  |  | <option value="2">静置库位</option> | 
|---|
|  |  |  | <option value="3">测试前暂存库位</option> | 
|---|
|  |  |  | <option value="4">NG库位</option> | 
|---|
|  |  |  | </select> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | <div class="layui-inline"  style="width:80%;"> | 
|---|
|  |  |  | <label class="layui-form-label"><span class="not-null">*</span>冻结状态:</label> | 
|---|
|  |  |  | <div class="layui-input-inline"> | 
|---|
|  |  |  | <select id="freeze" class="layui-input" type="text"> | 
|---|