Merge remote-tracking branch 'gitbit/hylyasrs' into hylyasrs
 
	
	
	
	
	
	
	
	
	
	
	
	
	
 |  |  | 
 |  |  |         EntityWrapper<AdjDetl> wrapper = new EntityWrapper<>(); | 
 |  |  |         convert(param, wrapper); | 
 |  |  |         allLike(AdjDetl.class, param.keySet(), wrapper, condition); | 
 |  |  |         if (!Cools.isEmpty(orderByField)){wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType));} | 
 |  |  |         if (!Cools.isEmpty(orderByField)){ | 
 |  |  |             wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType)); | 
 |  |  |         }else { | 
 |  |  |             wrapper.orderBy("modi_time", false); | 
 |  |  |         } | 
 |  |  |         return R.ok(adjDetlService.selectPage(new Page<>(curr, limit), wrapper)); | 
 |  |  |     } | 
 |  |  |  | 
 
 |  |  | 
 |  |  |             if (!wrkMastService.deleteById(wrkMast)) { | 
 |  |  |                 exceptionHandle("删除工作主档[workNo={0}]失败", wrkMast.getWrkNo()); | 
 |  |  |             } | 
 |  |  |             // 保存工作明细档历史档 | 
 |  |  |             if (!wrkDetlLogService.save(wrkMast.getWrkNo())) { | 
 |  |  |                 exceptionHandle("保存工作明细历史档[workNo={0}]失败", wrkMast.getWrkNo()); | 
 |  |  |             } | 
 |  |  |             // 删除工作明细档 | 
 |  |  |             if (!wrkDetlService.delete(new EntityWrapper<WrkDetl>().eq("wrk_no", wrkMast.getWrkNo()))) { | 
 |  |  |                 exceptionHandle("删除工作明细档[workNo={0}]失败", wrkMast.getWrkNo()); | 
 |  |  |             if(!wrkMast.getEmptyMk().equals("Y")) { | 
 |  |  |                 // 保存工作明细档历史档 | 
 |  |  |                 if (!wrkDetlLogService.save(wrkMast.getWrkNo())) { | 
 |  |  |                     exceptionHandle("保存工作明细历史档[workNo={0}]失败", wrkMast.getWrkNo()); | 
 |  |  |                 } | 
 |  |  |                 // 删除工作明细档 | 
 |  |  |                 if (!wrkDetlService.delete(new EntityWrapper<WrkDetl>().eq("wrk_no", wrkMast.getWrkNo()))) { | 
 |  |  |                     exceptionHandle("删除工作明细档[workNo={0}]失败", wrkMast.getWrkNo()); | 
 |  |  |                 } | 
 |  |  |             } | 
 |  |  |         } catch (Exception e) { | 
 |  |  |             log.error("fail", e); | 
 
 |  |  | 
 |  |  |                     // 检测目标库位是否为空库位 | 
 |  |  |                     LocMast shallowLoc = locMastService.selectById(shallowLocNo); | 
 |  |  |                     if (shallowLoc != null && shallowLoc.getLocSts().equals("O")) { | 
 |  |  |                         if (shallowLoc.getLocType1()<locTypeDto.getLocType1()){ | 
 |  |  |                             continue; | 
 |  |  |                         } | 
 |  |  |                         if (basCrnpService.checkSiteError(shallowLoc.getCrnNo(), true)) { | 
 |  |  |                             locMast = shallowLoc; | 
 |  |  |                             crnNo = locMast.getCrnNo(); | 
 
 |  |  | 
 |  |  |                 <input class="layui-input layui-laydate-range" name="modi_time" type="text" placeholder="起始时间 - 终止时间" autocomplete="off" style="width: 300px"> | 
 |  |  |             </div> | 
 |  |  |         </div> | 
 |  |  |         <div class="layui-inline"> | 
 |  |  |             <div class="layui-input-inline"> | 
 |  |  |                 <input class="layui-input" type="text" name="batch" placeholder="合同号" autocomplete="off"> | 
 |  |  |             </div> | 
 |  |  |         </div> | 
 |  |  |         <!-- 待添加 --> | 
 |  |  |         <div id="data-search-btn" class="layui-btn-container layui-form-item" style="display: inline-block"> | 
 |  |  |             <button id="search" class="layui-btn layui-btn-primary layui-btn-radius" lay-submit lay-filter="search">搜索</button> | 
 |  |  |             <button id="reset" class="layui-btn layui-btn-primary layui-btn-radius" lay-submit lay-filter="reset">重置</button> | 
 |  |  | <!--            <button id="reset" class="layui-btn layui-btn-primary layui-btn-radius" lay-submit lay-filter="reset">重置</button>--> | 
 |  |  |         </div> | 
 |  |  |     </div> | 
 |  |  | </fieldset> |