| | |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | private Date appeTime; |
| | | |
| | | /** |
| | | * 仓库ID |
| | | */ |
| | | @ApiModelProperty(value= "仓库ID") |
| | | private Long hostId; |
| | | |
| | | public BasWhs() {} |
| | | |
| | | public BasWhs(String whsDesc,Long modiUser,Date modiTime,Long appeUser,Date appeTime) { |
| | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * ID |
| | | */ |
| | | @ApiModelProperty(value= "ID") |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Long id; |
| | | |
| | | /** |
| | | * 类别 |
| | | */ |
| | | @ApiModelProperty(value= "类别") |
| | | @TableId(value = "whs_type", type = IdType.INPUT) |
| | | private Integer whsType; |
| | | |
| | | /** |
| | |
| | | * 起始排号 |
| | | */ |
| | | @ApiModelProperty(value= "起始排号") |
| | | private Integer sRow; |
| | | private Integer startRow; |
| | | |
| | | /** |
| | | * 终止排号 |
| | | */ |
| | | @ApiModelProperty(value= "终止排号") |
| | | private Integer eRow; |
| | | private Integer targetRow; |
| | | |
| | | /** |
| | | * 堆垛机数量 |
| | |
| | | @ApiModelProperty(value= "") |
| | | private Integer limintLoc; |
| | | |
| | | /** |
| | | * 仓库ID |
| | | */ |
| | | @ApiModelProperty(value= "仓库ID") |
| | | private Long hostId; |
| | | |
| | | public RowLastno() {} |
| | | |
| | | public RowLastno(Integer whsType,String wrkMk,Integer currentRow,Integer sRow,Integer eRow,Integer crnQty,String memo,Long modiUser,Date modiTime,Long appeUser,Date appeTime,Integer limintLoc) { |
| | | public RowLastno(Integer whsType,String wrkMk,Integer currentRow,Integer startRow,Integer targetRow,Integer crnQty,String memo,Long modiUser,Date modiTime,Long appeUser,Date appeTime,Integer limintLoc) { |
| | | this.whsType = whsType; |
| | | this.wrkMk = wrkMk; |
| | | this.currentRow = currentRow; |
| | | this.sRow = sRow; |
| | | this.eRow = eRow; |
| | | this.startRow = startRow; |
| | | this.targetRow = targetRow; |
| | | this.crnQty = crnQty; |
| | | this.memo = memo; |
| | | this.modiUser = modiUser; |
| | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * ID |
| | | */ |
| | | @ApiModelProperty(value= "ID") |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Long id; |
| | | |
| | | /** |
| | | * 类型 |
| | | */ |
| | | @ApiModelProperty(value= "类型") |
| | | @TableId(value = "wrk_mk", type = IdType.INPUT) |
| | | private Integer wrkMk; |
| | | |
| | | /** |
| | |
| | | * 起始ID |
| | | */ |
| | | @ApiModelProperty(value= "起始ID") |
| | | private Integer sNo; |
| | | private Integer startNo; |
| | | |
| | | /** |
| | | * 终止ID |
| | | */ |
| | | @ApiModelProperty(value= "终止ID") |
| | | private Integer eNo; |
| | | private Integer targetNo; |
| | | |
| | | /** |
| | | * 备注 |
| | |
| | | @ApiModelProperty(value= "备注") |
| | | private String memoM; |
| | | |
| | | /** |
| | | * 仓库ID |
| | | */ |
| | | @ApiModelProperty(value= "仓库ID") |
| | | private Long hostId; |
| | | |
| | | public WrkLastno() {} |
| | | |
| | | public WrkLastno(Integer wrkMk,Integer wrkNo,Long modiUser,Date modiTime,Long appeUser,Date appeTime,Integer sNo,Integer eNo,String memoM) { |
| | | public WrkLastno(Integer wrkMk,Integer wrkNo,Long modiUser,Date modiTime,Long appeUser,Date appeTime,Integer startNo,Integer targetNo,String memoM) { |
| | | this.wrkMk = wrkMk; |
| | | this.wrkNo = wrkNo; |
| | | this.modiUser = modiUser; |
| | | this.modiTime = modiTime; |
| | | this.appeUser = appeUser; |
| | | this.appeTime = appeTime; |
| | | this.sNo = sNo; |
| | | this.eNo = eNo; |
| | | this.startNo = startNo; |
| | | this.targetNo = targetNo; |
| | | this.memoM = memoM; |
| | | } |
| | | |
| | |
| | | @RequestMapping(value = "/basWhs/{id}/auth") |
| | | @ManagerAuth |
| | | public R get(@PathVariable("id") String id) { |
| | | return R.ok(basWhsService.getById(String.valueOf(id))); |
| | | return R.ok(basWhsService.getOne(new LambdaQueryWrapper<BasWhs>().eq(BasWhs::getId, Long.parseLong(id)).eq(BasWhs::getHostId, getHostId()))); |
| | | } |
| | | |
| | | @RequestMapping(value = "/basWhs/page/auth") |
| | |
| | | @RequestParam(required = false) String timeRange, |
| | | @RequestParam Map<String, Object> param) { |
| | | LambdaQueryWrapper<BasWhs> wrapper = new LambdaQueryWrapper<>(); |
| | | wrapper.eq(BasWhs::getHostId, getHostId()); |
| | | if (!Cools.isEmpty(condition)) { |
| | | wrapper.like(BasWhs::getWhsDesc, condition); |
| | | } |
| | |
| | | @RequestMapping(value = "/basWhs/add/auth") |
| | | @ManagerAuth |
| | | public R add(BasWhs basWhs) { |
| | | basWhs.setHostId(getHostId()); |
| | | basWhsService.save(basWhs); |
| | | return R.ok(); |
| | | } |
| | |
| | | @ManagerAuth |
| | | public R query(String condition) { |
| | | LambdaQueryWrapper<BasWhs> wrapper = new LambdaQueryWrapper<>(); |
| | | wrapper.eq(BasWhs::getHostId, getHostId()); |
| | | wrapper.like(BasWhs::getWhsDesc, condition); |
| | | Page<BasWhs> page = basWhsService.page(new Page<>(0, 10), wrapper); |
| | | List<Map<String, Object>> result = new ArrayList<>(); |
| | |
| | | public R getDataKV(@RequestParam(required = false) String condition) { |
| | | List<KeyValueVo> vos = new ArrayList<>(); |
| | | LambdaQueryWrapper<BasWhs> wrapper = new LambdaQueryWrapper<>(); |
| | | wrapper.eq(BasWhs::getHostId, getHostId()); |
| | | if (!Cools.isEmpty(condition)) { |
| | | wrapper.like(BasWhs::getWhsDesc, condition); |
| | | } |
| | |
| | | |
| | | @RequestMapping(value = "/rowLastno/{id}/auth") |
| | | @ManagerAuth |
| | | public R get(@PathVariable("id") String id) { |
| | | return R.ok(rowLastnoService.getById(String.valueOf(id))); |
| | | public R get(@PathVariable("id") Long id) { |
| | | return R.ok(rowLastnoService.getById(id)); |
| | | } |
| | | |
| | | @RequestMapping(value = "/rowLastno/page/auth") |
| | |
| | | @RequestParam(required = false) String timeRange, |
| | | @RequestParam Map<String, Object> param) { |
| | | LambdaQueryWrapper<RowLastno> wrapper = new LambdaQueryWrapper<>(); |
| | | wrapper.eq(RowLastno::getHostId, getHostId()); |
| | | if (!Cools.isEmpty(condition)) { |
| | | wrapper.like(RowLastno::getWhsType, condition); |
| | | } |
| | |
| | | @RequestMapping(value = "/rowLastno/add/auth") |
| | | @ManagerAuth |
| | | public R add(RowLastno rowLastno) { |
| | | rowLastno.setHostId(getHostId()); |
| | | rowLastnoService.save(rowLastno); |
| | | return R.ok(); |
| | | } |
| | |
| | | @ManagerAuth |
| | | public R query(String condition) { |
| | | LambdaQueryWrapper<RowLastno> wrapper = new LambdaQueryWrapper<>(); |
| | | wrapper.eq(RowLastno::getHostId, getHostId()); |
| | | wrapper.like(RowLastno::getWhsType, condition); |
| | | Page<RowLastno> page = rowLastnoService.page(new Page<>(0, 10), wrapper); |
| | | List<Map<String, Object>> result = new ArrayList<>(); |
| | |
| | | public R getDataKV(@RequestParam(required = false) String condition) { |
| | | List<KeyValueVo> vos = new ArrayList<>(); |
| | | LambdaQueryWrapper<RowLastno> wrapper = new LambdaQueryWrapper<>(); |
| | | wrapper.eq(RowLastno::getHostId, getHostId()); |
| | | if (!Cools.isEmpty(condition)) { |
| | | wrapper.like(RowLastno::getWhsType, condition); |
| | | } |
| | |
| | | package com.zy.asrs.wms.controller; |
| | | |
| | | import com.alibaba.fastjson.JSONArray; |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.zy.asrs.common.wms.entity.WrkLastno; |
| | |
| | | |
| | | @RequestMapping(value = "/wrkLastno/{id}/auth") |
| | | @ManagerAuth |
| | | public R get(@PathVariable("id") String id) { |
| | | return R.ok(wrkLastnoService.getById(String.valueOf(id))); |
| | | public R get(@PathVariable("id") Long id) { |
| | | return R.ok(wrkLastnoService.getById(id)); |
| | | } |
| | | |
| | | @RequestMapping(value = "/wrkLastno/page/auth") |
| | |
| | | @RequestParam(required = false) String timeRange, |
| | | @RequestParam Map<String, Object> param) { |
| | | LambdaQueryWrapper<WrkLastno> wrapper = new LambdaQueryWrapper<>(); |
| | | wrapper.eq(WrkLastno::getHostId, getHostId()); |
| | | if (!Cools.isEmpty(condition)) { |
| | | wrapper.like(WrkLastno::getWrkMk, condition); |
| | | } |
| | |
| | | wrapper.ge(WrkLastno::getAppeTime, DateUtils.convert(range[0])); |
| | | wrapper.le(WrkLastno::getAppeTime, DateUtils.convert(range[1])); |
| | | } |
| | | return R.ok(wrkLastnoService.page(new Page<>(curr, limit), wrapper)); |
| | | Page<WrkLastno> page = wrkLastnoService.page(new Page<>(curr, limit), wrapper); |
| | | return R.ok(page); |
| | | } |
| | | |
| | | |
| | | @RequestMapping(value = "/wrkLastno/add/auth") |
| | | @ManagerAuth |
| | | public R add(WrkLastno wrkLastno) { |
| | | wrkLastno.setHostId(getHostId()); |
| | | wrkLastnoService.save(wrkLastno); |
| | | return R.ok(); |
| | | } |
| | |
| | | @ManagerAuth |
| | | public R query(String condition) { |
| | | LambdaQueryWrapper<WrkLastno> wrapper = new LambdaQueryWrapper<>(); |
| | | wrapper.eq(WrkLastno::getHostId, getHostId()); |
| | | wrapper.like(WrkLastno::getWrkMk, condition); |
| | | Page<WrkLastno> page = wrkLastnoService.page(new Page<>(0, 10), wrapper); |
| | | List<Map<String, Object>> result = new ArrayList<>(); |
| | |
| | | public R getDataKV(@RequestParam(required = false) String condition) { |
| | | List<KeyValueVo> vos = new ArrayList<>(); |
| | | LambdaQueryWrapper<WrkLastno> wrapper = new LambdaQueryWrapper<>(); |
| | | wrapper.eq(WrkLastno::getHostId, getHostId()); |
| | | if (!Cools.isEmpty(condition)) { |
| | | wrapper.like(WrkLastno::getWrkMk, condition); |
| | | } |
| | |
| | | ,{field: 'whsType', align: 'center',title: '类别'} |
| | | ,{field: 'wrkMk', align: 'center',title: '当前工作号'} |
| | | ,{field: 'currentRow', align: 'center',title: '当前排号'} |
| | | ,{field: 'sRow', align: 'center',title: '起始排号'} |
| | | ,{field: 'eRow', align: 'center',title: '终止排号'} |
| | | ,{field: 'startRow', align: 'center',title: '起始排号'} |
| | | ,{field: 'targetRow', align: 'center',title: '终止排号'} |
| | | ,{field: 'crnQty', align: 'center',title: '堆垛机数量'} |
| | | ,{field: 'memo', align: 'center',title: '备注'} |
| | | // ,{field: 'modiUser$', align: 'center',title: '修改人员'} |
| | |
| | | // ,{field: 'modiTime$', align: 'center',title: '修改时间'} |
| | | // ,{field: 'appeUser$', align: 'center',title: '创建者'} |
| | | // ,{field: 'appeTime$', align: 'center',title: '添加时间'} |
| | | ,{field: 'sno', align: 'center',title: '起始ID'} |
| | | ,{field: 'eno', align: 'center',title: '终止ID'} |
| | | ,{field: 'startNo', align: 'center',title: '起始ID'} |
| | | ,{field: 'targetNo', align: 'center',title: '终止ID'} |
| | | ,{field: 'memoM', align: 'center',title: '备注'} |
| | | |
| | | ,{fixed: 'right', title:'操作', align: 'center', toolbar: '#operate', width:120} |
| | |
| | | return; |
| | | } |
| | | del(checkStatus.map(function (d) { |
| | | return d.wrkMk; |
| | | return d.id; |
| | | })); |
| | | break; |
| | | case 'exportData': |
| | |
| | | showEditModel(data); |
| | | break; |
| | | case "del": |
| | | del([data.wrkMk]); |
| | | del([data.id]); |
| | | break; |
| | | } |
| | | }); |
| | |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">起始排号: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="sRow" placeholder="请输入起始排号"> |
| | | <input class="layui-input" name="startRow" placeholder="请输入起始排号"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">终止排号: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="eRow" placeholder="请输入终止排号"> |
| | | <input class="layui-input" name="targetRow" placeholder="请输入终止排号"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label layui-form-required">起始ID: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="sNo" placeholder="请输入起始ID" lay-vertype="tips" lay-verify="required"> |
| | | <input class="layui-input" name="startNo" placeholder="请输入起始ID" lay-vertype="tips" lay-verify="required"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label layui-form-required">终止ID: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="eNo" placeholder="请输入终止ID" lay-vertype="tips" lay-verify="required"> |
| | | <input class="layui-input" name="targetNo" placeholder="请输入终止ID" lay-vertype="tips" lay-verify="required"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |