| | |
| | | if (!Cools.isEmpty(this.barcode)) { |
| | | s.append("托盘码[" + this.barcode + "]\n"); |
| | | } |
| | | if (!this.emptyMk){ |
| | | if (!this.emptyMk) { |
| | | |
| | | for (MatDto matDto : matDtos) { |
| | | s.append("[商品编码:" + matDto.getMatnr() + ", 数量:" + matDto.getCount() + "]\n"); |
| | |
| | | |
| | | @RequestMapping(value = "/adjDetl/list/auth") |
| | | @ManagerAuth |
| | | public R list(@RequestParam(defaultValue = "1")Integer curr, |
| | | @RequestParam(defaultValue = "10")Integer limit, |
| | | @RequestParam(required = false)String orderByField, |
| | | @RequestParam(required = false)String orderByType, |
| | | @RequestParam(required = false)String condition, |
| | | @RequestParam Map<String, Object> param){ |
| | | public R list(@RequestParam(defaultValue = "1") Integer curr, |
| | | @RequestParam(defaultValue = "10") Integer limit, |
| | | @RequestParam(required = false) String orderByField, |
| | | @RequestParam(required = false) String orderByType, |
| | | @RequestParam(required = false) String condition, |
| | | @RequestParam Map<String, Object> param) { |
| | | excludeTrash(param); |
| | | EntityWrapper<AdjDetl> wrapper = new EntityWrapper<>(); |
| | | convert(param, wrapper); |
| | | allLike(AdjDetl.class, param.keySet(), wrapper, condition); |
| | | if (!Cools.isEmpty(orderByField)){ |
| | | if (!Cools.isEmpty(orderByField)) { |
| | | wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType)); |
| | | }else { |
| | | } else { |
| | | wrapper.orderBy("modi_time", false); |
| | | } |
| | | return R.ok(adjDetlService.selectPage(new Page<>(curr, limit), wrapper)); |
| | | } |
| | | |
| | | private <T> void convert(Map<String, Object> map, EntityWrapper<T> wrapper){ |
| | | for (Map.Entry<String, Object> entry : map.entrySet()){ |
| | | private <T> void convert(Map<String, Object> map, EntityWrapper<T> wrapper) { |
| | | for (Map.Entry<String, Object> entry : map.entrySet()) { |
| | | String val = String.valueOf(entry.getValue()); |
| | | if (val.contains(RANGE_TIME_LINK)){ |
| | | if (val.contains(RANGE_TIME_LINK)) { |
| | | String[] dates = val.split(RANGE_TIME_LINK); |
| | | wrapper.ge(entry.getKey(), DateUtils.convert(dates[0])); |
| | | wrapper.le(entry.getKey(), DateUtils.convert(dates[1])); |
| | |
| | | return R.ok(); |
| | | } |
| | | |
| | | @RequestMapping(value = "/adjDetl/update/auth") |
| | | @ManagerAuth |
| | | public R update(AdjDetl adjDetl){ |
| | | if (Cools.isEmpty(adjDetl) || null==adjDetl.getAdjId()){ |
| | | @RequestMapping(value = "/adjDetl/update/auth") |
| | | @ManagerAuth |
| | | public R update(AdjDetl adjDetl) { |
| | | if (Cools.isEmpty(adjDetl) || null == adjDetl.getAdjId()) { |
| | | return R.error(); |
| | | } |
| | | adjDetlService.updateById(adjDetl); |
| | |
| | | |
| | | @RequestMapping(value = "/adjDetl/delete/auth") |
| | | @ManagerAuth |
| | | public R delete(@RequestParam String param){ |
| | | public R delete(@RequestParam String param) { |
| | | List<AdjDetl> list = JSONArray.parseArray(param, AdjDetl.class); |
| | | if (Cools.isEmpty(list)){ |
| | | if (Cools.isEmpty(list)) { |
| | | return R.error(); |
| | | } |
| | | for (AdjDetl entity : list){ |
| | | for (AdjDetl entity : list) { |
| | | adjDetlService.delete(new EntityWrapper<>(entity)); |
| | | } |
| | | return R.ok(); |
| | |
| | | |
| | | @RequestMapping(value = "/adjDetl/export/auth") |
| | | @ManagerAuth |
| | | public R export(@RequestBody JSONObject param){ |
| | | public R export(@RequestBody JSONObject param) { |
| | | List<String> fields = JSONObject.parseArray(param.getJSONArray("fields").toJSONString(), String.class); |
| | | EntityWrapper<AdjDetl> wrapper = new EntityWrapper<>(); |
| | | Map<String, Object> map = excludeTrash(param.getJSONObject("adjDetl")); |
| | |
| | | wrapper.like("adj_id", condition); |
| | | Page<AdjDetl> page = adjDetlService.selectPage(new Page<>(0, 10), wrapper); |
| | | List<Map<String, Object>> result = new ArrayList<>(); |
| | | for (AdjDetl adjDetl : page.getRecords()){ |
| | | for (AdjDetl adjDetl : page.getRecords()) { |
| | | Map<String, Object> map = new HashMap<>(); |
| | | map.put("id", adjDetl.getAdjId()); |
| | | map.put("value", adjDetl.getAdjId()); |
| | |
| | | @ManagerAuth |
| | | public R query(@RequestBody JSONObject param) { |
| | | Wrapper<AdjDetl> wrapper = new EntityWrapper<AdjDetl>().eq(humpToLine(String.valueOf(param.get("key"))), param.get("val")); |
| | | if (null != adjDetlService.selectOne(wrapper)){ |
| | | if (null != adjDetlService.selectOne(wrapper)) { |
| | | return R.parse(BaseRes.REPEAT).add(getComment(AdjDetl.class, String.valueOf(param.get("key")))); |
| | | } |
| | | return R.ok(); |
| | |
| | | |
| | | @RequestMapping(value = "/apiLog/list/auth") |
| | | @ManagerAuth |
| | | public R list(@RequestParam(defaultValue = "1")Integer curr, |
| | | @RequestParam(defaultValue = "10")Integer limit, |
| | | @RequestParam(required = false)String orderByField, |
| | | @RequestParam(required = false)String orderByType, |
| | | @RequestParam Map<String, Object> param){ |
| | | public R list(@RequestParam(defaultValue = "1") Integer curr, |
| | | @RequestParam(defaultValue = "10") Integer limit, |
| | | @RequestParam(required = false) String orderByField, |
| | | @RequestParam(required = false) String orderByType, |
| | | @RequestParam Map<String, Object> param) { |
| | | EntityWrapper<ApiLog> wrapper = new EntityWrapper<>(); |
| | | excludeTrash(param); |
| | | convert(param, wrapper); |
| | | if (!Cools.isEmpty(orderByField)){wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType));} else { |
| | | if (!Cools.isEmpty(orderByField)) { |
| | | wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType)); |
| | | } else { |
| | | wrapper.orderBy("create_time", false); |
| | | } |
| | | return R.ok(apiLogService.selectPage(new Page<>(curr, limit), wrapper)); |
| | | } |
| | | |
| | | private <T> void convert(Map<String, Object> map, EntityWrapper<T> wrapper){ |
| | | for (Map.Entry<String, Object> entry : map.entrySet()){ |
| | | private <T> void convert(Map<String, Object> map, EntityWrapper<T> wrapper) { |
| | | for (Map.Entry<String, Object> entry : map.entrySet()) { |
| | | String val = String.valueOf(entry.getValue()); |
| | | if (val.contains(RANGE_TIME_LINK)){ |
| | | if (val.contains(RANGE_TIME_LINK)) { |
| | | String[] dates = val.split(RANGE_TIME_LINK); |
| | | wrapper.ge(entry.getKey(), DateUtils.convert(dates[0])); |
| | | wrapper.le(entry.getKey(), DateUtils.convert(dates[1])); |
| | |
| | | return R.ok(); |
| | | } |
| | | |
| | | @RequestMapping(value = "/apiLog/update/auth") |
| | | @ManagerAuth |
| | | public R update(ApiLog apiLog){ |
| | | if (Cools.isEmpty(apiLog) || null==apiLog.getId()){ |
| | | @RequestMapping(value = "/apiLog/update/auth") |
| | | @ManagerAuth |
| | | public R update(ApiLog apiLog) { |
| | | if (Cools.isEmpty(apiLog) || null == apiLog.getId()) { |
| | | return R.error(); |
| | | } |
| | | apiLogService.updateById(apiLog); |
| | |
| | | |
| | | @RequestMapping(value = "/apiLog/delete/auth") |
| | | @ManagerAuth |
| | | public R delete(@RequestParam(value="ids[]") Long[] ids){ |
| | | for (Long id : ids){ |
| | | public R delete(@RequestParam(value = "ids[]") Long[] ids) { |
| | | for (Long id : ids) { |
| | | apiLogService.deleteById(id); |
| | | } |
| | | return R.ok(); |
| | |
| | | |
| | | @RequestMapping(value = "/apiLog/export/auth") |
| | | @ManagerAuth |
| | | public R export(@RequestBody JSONObject param){ |
| | | public R export(@RequestBody JSONObject param) { |
| | | EntityWrapper<ApiLog> wrapper = new EntityWrapper<>(); |
| | | List<String> fields = JSONObject.parseArray(param.getJSONArray("fields").toJSONString(), String.class); |
| | | Map<String, Object> map = excludeTrash(param.getJSONObject("apiLog")); |
| | |
| | | wrapper.like("uuid", condition); |
| | | Page<ApiLog> page = apiLogService.selectPage(new Page<>(0, 10), wrapper); |
| | | List<Map<String, Object>> result = new ArrayList<>(); |
| | | for (ApiLog apiLog : page.getRecords()){ |
| | | for (ApiLog apiLog : page.getRecords()) { |
| | | Map<String, Object> map = new HashMap<>(); |
| | | map.put("id", apiLog.getId()); |
| | | map.put("value", apiLog.getId()); |
| | |
| | | @ManagerAuth |
| | | public R query(@RequestBody JSONObject param) { |
| | | Wrapper<ApiLog> wrapper = new EntityWrapper<ApiLog>().eq(humpToLine(String.valueOf(param.get("key"))), param.get("val")); |
| | | if (null != apiLogService.selectOne(wrapper)){ |
| | | if (null != apiLogService.selectOne(wrapper)) { |
| | | return R.parse(BaseRes.REPEAT).add(getComment(ApiLog.class, String.valueOf(param.get("key")))); |
| | | } |
| | | return R.ok(); |
| | |
| | | package com.zy.asrs.controller; |
| | | |
| | | import com.alibaba.fastjson.JSONArray; |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.baomidou.mybatisplus.mapper.EntityWrapper; |
| | | import com.baomidou.mybatisplus.mapper.Wrapper; |
| | | import com.baomidou.mybatisplus.plugins.Page; |
| | | import com.core.common.DateUtils; |
| | | import com.zy.asrs.entity.AutoMove; |
| | | import com.zy.asrs.service.AutoMoveService; |
| | | import com.core.annotations.ManagerAuth; |
| | | import com.core.common.BaseRes; |
| | | import com.core.common.Cools; |
| | | import com.core.common.DateUtils; |
| | | import com.core.common.R; |
| | | import com.zy.asrs.entity.AutoMove; |
| | | import com.zy.asrs.service.AutoMoveService; |
| | | import com.zy.common.web.BaseController; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.*; |
| | | import java.util.ArrayList; |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | @RestController |
| | | public class AutoMoveController extends BaseController { |
| | |
| | | |
| | | @RequestMapping(value = "/autoMove/list/auth") |
| | | @ManagerAuth |
| | | public R list(@RequestParam(defaultValue = "1")Integer curr, |
| | | @RequestParam(defaultValue = "10")Integer limit, |
| | | @RequestParam(required = false)String orderByField, |
| | | @RequestParam(required = false)String orderByType, |
| | | @RequestParam(required = false)String condition, |
| | | @RequestParam Map<String, Object> param){ |
| | | public R list(@RequestParam(defaultValue = "1") Integer curr, |
| | | @RequestParam(defaultValue = "10") Integer limit, |
| | | @RequestParam(required = false) String orderByField, |
| | | @RequestParam(required = false) String orderByType, |
| | | @RequestParam(required = false) String condition, |
| | | @RequestParam Map<String, Object> param) { |
| | | EntityWrapper<AutoMove> wrapper = new EntityWrapper<>(); |
| | | excludeTrash(param); |
| | | convert(param, wrapper); |
| | | allLike(AutoMove.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)); |
| | | } |
| | | return R.ok(autoMoveService.selectPage(new Page<>(curr, limit), wrapper)); |
| | | } |
| | | |
| | | private <T> void convert(Map<String, Object> map, EntityWrapper<T> wrapper){ |
| | | for (Map.Entry<String, Object> entry : map.entrySet()){ |
| | | private <T> void convert(Map<String, Object> map, EntityWrapper<T> wrapper) { |
| | | for (Map.Entry<String, Object> entry : map.entrySet()) { |
| | | String val = String.valueOf(entry.getValue()); |
| | | if (val.contains(RANGE_TIME_LINK)){ |
| | | if (val.contains(RANGE_TIME_LINK)) { |
| | | String[] dates = val.split(RANGE_TIME_LINK); |
| | | wrapper.ge(entry.getKey(), DateUtils.convert(dates[0])); |
| | | wrapper.le(entry.getKey(), DateUtils.convert(dates[1])); |
| | |
| | | return R.ok(); |
| | | } |
| | | |
| | | @RequestMapping(value = "/autoMove/update/auth") |
| | | @ManagerAuth |
| | | public R update(AutoMove autoMove){ |
| | | if (Cools.isEmpty(autoMove) || null==autoMove.getId()){ |
| | | @RequestMapping(value = "/autoMove/update/auth") |
| | | @ManagerAuth |
| | | public R update(AutoMove autoMove) { |
| | | if (Cools.isEmpty(autoMove) || null == autoMove.getId()) { |
| | | return R.error(); |
| | | } |
| | | autoMoveService.updateById(autoMove); |
| | |
| | | |
| | | @RequestMapping(value = "/autoMove/delete/auth") |
| | | @ManagerAuth |
| | | public R delete(@RequestParam(value="ids[]") Long[] ids){ |
| | | for (Long id : ids){ |
| | | public R delete(@RequestParam(value = "ids[]") Long[] ids) { |
| | | for (Long id : ids) { |
| | | autoMoveService.deleteById(id); |
| | | } |
| | | return R.ok(); |
| | |
| | | |
| | | @RequestMapping(value = "/autoMove/export/auth") |
| | | @ManagerAuth |
| | | public R export(@RequestBody JSONObject param){ |
| | | public R export(@RequestBody JSONObject param) { |
| | | EntityWrapper<AutoMove> wrapper = new EntityWrapper<>(); |
| | | List<String> fields = JSONObject.parseArray(param.getJSONArray("fields").toJSONString(), String.class); |
| | | Map<String, Object> map = excludeTrash(param.getJSONObject("autoMove")); |
| | |
| | | wrapper.like("id", condition); |
| | | Page<AutoMove> page = autoMoveService.selectPage(new Page<>(0, 10), wrapper); |
| | | List<Map<String, Object>> result = new ArrayList<>(); |
| | | for (AutoMove autoMove : page.getRecords()){ |
| | | for (AutoMove autoMove : page.getRecords()) { |
| | | Map<String, Object> map = new HashMap<>(); |
| | | map.put("id", autoMove.getId()); |
| | | map.put("value", autoMove.getId()); |
| | |
| | | @ManagerAuth |
| | | public R query(@RequestBody JSONObject param) { |
| | | Wrapper<AutoMove> wrapper = new EntityWrapper<AutoMove>().eq(humpToLine(String.valueOf(param.get("key"))), param.get("val")); |
| | | if (null != autoMoveService.selectOne(wrapper)){ |
| | | if (null != autoMoveService.selectOne(wrapper)) { |
| | | return R.parse(BaseRes.REPEAT).add(getComment(AutoMove.class, String.valueOf(param.get("key")))); |
| | | } |
| | | return R.ok(); |
| | |
| | | import com.baomidou.mybatisplus.mapper.EntityWrapper; |
| | | import com.baomidou.mybatisplus.mapper.Wrapper; |
| | | import com.baomidou.mybatisplus.plugins.Page; |
| | | import com.zy.asrs.entity.BasCrnError; |
| | | import com.zy.asrs.service.BasCrnErrorService; |
| | | import com.zy.common.web.BaseController; |
| | | import com.core.annotations.ManagerAuth; |
| | | import com.core.common.BaseRes; |
| | | import com.core.common.Cools; |
| | | import com.core.common.DateUtils; |
| | | import com.core.common.R; |
| | | import com.zy.asrs.entity.BasCrnError; |
| | | import com.zy.asrs.service.BasCrnErrorService; |
| | | import com.zy.common.web.BaseController; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | |
| | | |
| | | @RequestMapping(value = "/basCrnError/list/auth") |
| | | @ManagerAuth |
| | | public R list(@RequestParam(defaultValue = "1")Integer curr, |
| | | @RequestParam(defaultValue = "10")Integer limit, |
| | | @RequestParam(required = false)String orderByField, |
| | | @RequestParam(required = false)String orderByType, |
| | | @RequestParam Map<String, Object> param){ |
| | | public R list(@RequestParam(defaultValue = "1") Integer curr, |
| | | @RequestParam(defaultValue = "10") Integer limit, |
| | | @RequestParam(required = false) String orderByField, |
| | | @RequestParam(required = false) String orderByType, |
| | | @RequestParam Map<String, Object> param) { |
| | | excludeTrash(param); |
| | | EntityWrapper<BasCrnError> wrapper = new EntityWrapper<>(); |
| | | convert(param, wrapper); |
| | | if (!Cools.isEmpty(orderByField)){wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType));} |
| | | if (!Cools.isEmpty(orderByField)) { |
| | | wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType)); |
| | | } |
| | | return R.ok(basCrnErrorService.selectPage(new Page<>(curr, limit), wrapper)); |
| | | } |
| | | |
| | | private <T> void convert(Map<String, Object> map, EntityWrapper<T> wrapper){ |
| | | for (Map.Entry<String, Object> entry : map.entrySet()){ |
| | | private <T> void convert(Map<String, Object> map, EntityWrapper<T> wrapper) { |
| | | for (Map.Entry<String, Object> entry : map.entrySet()) { |
| | | String val = String.valueOf(entry.getValue()); |
| | | if (val.contains(RANGE_TIME_LINK)){ |
| | | if (val.contains(RANGE_TIME_LINK)) { |
| | | String[] dates = val.split(RANGE_TIME_LINK); |
| | | wrapper.ge(entry.getKey(), DateUtils.convert(dates[0])); |
| | | wrapper.le(entry.getKey(), DateUtils.convert(dates[1])); |
| | |
| | | } |
| | | } |
| | | } |
| | | |
| | | @RequestMapping(value = "/basCrnError/add/auth") |
| | | @ManagerAuth(memo = "堆垛机异常码添加") |
| | | public R add(BasCrnError basCrnError) { |
| | |
| | | return R.ok(); |
| | | } |
| | | |
| | | @RequestMapping(value = "/basCrnError/update/auth") |
| | | @RequestMapping(value = "/basCrnError/update/auth") |
| | | @ManagerAuth(memo = "堆垛机异常码修改") |
| | | public R update(BasCrnError basCrnError){ |
| | | if (Cools.isEmpty(basCrnError) || null==basCrnError.getErrorCode()){ |
| | | public R update(BasCrnError basCrnError) { |
| | | if (Cools.isEmpty(basCrnError) || null == basCrnError.getErrorCode()) { |
| | | return R.error(); |
| | | } |
| | | basCrnError.setModiUser(getUserId()); |
| | |
| | | |
| | | @RequestMapping(value = "/basCrnError/delete/auth") |
| | | @ManagerAuth(memo = "堆垛机异常码删除") |
| | | public R delete(@RequestParam String param){ |
| | | public R delete(@RequestParam String param) { |
| | | List<BasCrnError> list = JSONArray.parseArray(param, BasCrnError.class); |
| | | if (Cools.isEmpty(list)){ |
| | | if (Cools.isEmpty(list)) { |
| | | return R.error(); |
| | | } |
| | | for (BasCrnError entity : list){ |
| | | for (BasCrnError entity : list) { |
| | | basCrnErrorService.delete(new EntityWrapper<>(entity)); |
| | | } |
| | | return R.ok(); |
| | |
| | | |
| | | @RequestMapping(value = "/basCrnError/export/auth") |
| | | @ManagerAuth(memo = "堆垛机异常码导出") |
| | | public R export(@RequestBody JSONObject param){ |
| | | public R export(@RequestBody JSONObject param) { |
| | | List<String> fields = JSONObject.parseArray(param.getJSONArray("fields").toJSONString(), String.class); |
| | | EntityWrapper<BasCrnError> wrapper = new EntityWrapper<>(); |
| | | Map<String, Object> map = excludeTrash(param.getJSONObject("basCrnError")); |
| | |
| | | wrapper.like("err_name", condition); |
| | | Page<BasCrnError> page = basCrnErrorService.selectPage(new Page<>(0, 10), wrapper); |
| | | List<Map<String, Object>> result = new ArrayList<>(); |
| | | for (BasCrnError basCrnError : page.getRecords()){ |
| | | for (BasCrnError basCrnError : page.getRecords()) { |
| | | Map<String, Object> map = new HashMap<>(); |
| | | map.put("id", basCrnError.getErrorCode()); |
| | | map.put("value", basCrnError.getErrName()); |
| | |
| | | @ManagerAuth |
| | | public R query(@RequestBody JSONObject param) { |
| | | Wrapper<BasCrnError> wrapper = new EntityWrapper<BasCrnError>().eq(humpToLine(String.valueOf(param.get("key"))), param.get("val")); |
| | | if (null != basCrnErrorService.selectOne(wrapper)){ |
| | | if (null != basCrnErrorService.selectOne(wrapper)) { |
| | | return R.parse(BaseRes.REPEAT).add(getComment(BasCrnError.class, String.valueOf(param.get("key")))); |
| | | } |
| | | return R.ok(); |
| | |
| | | |
| | | @RequestMapping(value = "/basCrnOpt/list/auth") |
| | | @ManagerAuth |
| | | public R list(@RequestParam(defaultValue = "1")Integer curr, |
| | | @RequestParam(defaultValue = "10")Integer limit, |
| | | @RequestParam(required = false)String orderByField, |
| | | @RequestParam(required = false)String orderByType, |
| | | @RequestParam Map<String, Object> param){ |
| | | public R list(@RequestParam(defaultValue = "1") Integer curr, |
| | | @RequestParam(defaultValue = "10") Integer limit, |
| | | @RequestParam(required = false) String orderByField, |
| | | @RequestParam(required = false) String orderByType, |
| | | @RequestParam Map<String, Object> param) { |
| | | EntityWrapper<BasCrnOpt> wrapper = new EntityWrapper<>(); |
| | | excludeTrash(param); |
| | | convert(param, wrapper); |
| | | if (!Cools.isEmpty(orderByField)){wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType));} else { |
| | | if (!Cools.isEmpty(orderByField)) { |
| | | wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType)); |
| | | } else { |
| | | wrapper.orderBy("send_time", false); |
| | | } |
| | | return R.ok(basCrnOptService.selectPage(new Page<>(curr, limit), wrapper)); |
| | | } |
| | | |
| | | private void convert(Map<String, Object> map, EntityWrapper wrapper){ |
| | | for (Map.Entry<String, Object> entry : map.entrySet()){ |
| | | private void convert(Map<String, Object> map, EntityWrapper wrapper) { |
| | | for (Map.Entry<String, Object> entry : map.entrySet()) { |
| | | String val = String.valueOf(entry.getValue()); |
| | | if (val.contains(RANGE_TIME_LINK)){ |
| | | if (val.contains(RANGE_TIME_LINK)) { |
| | | String[] dates = val.split(RANGE_TIME_LINK); |
| | | wrapper.ge(entry.getKey(), DateUtils.convert(dates[0])); |
| | | wrapper.le(entry.getKey(), DateUtils.convert(dates[1])); |
| | |
| | | return R.ok(); |
| | | } |
| | | |
| | | @RequestMapping(value = "/basCrnOpt/update/auth") |
| | | @ManagerAuth |
| | | public R update(BasCrnOpt basCrnOpt){ |
| | | if (Cools.isEmpty(basCrnOpt) || null==basCrnOpt.getId()){ |
| | | @RequestMapping(value = "/basCrnOpt/update/auth") |
| | | @ManagerAuth |
| | | public R update(BasCrnOpt basCrnOpt) { |
| | | if (Cools.isEmpty(basCrnOpt) || null == basCrnOpt.getId()) { |
| | | return R.error(); |
| | | } |
| | | basCrnOptService.updateById(basCrnOpt); |
| | |
| | | |
| | | @RequestMapping(value = "/basCrnOpt/delete/auth") |
| | | @ManagerAuth |
| | | public R delete(@RequestParam String param){ |
| | | public R delete(@RequestParam String param) { |
| | | List<BasCrnOpt> list = JSONArray.parseArray(param, BasCrnOpt.class); |
| | | if (Cools.isEmpty(list)){ |
| | | if (Cools.isEmpty(list)) { |
| | | return R.error(); |
| | | } |
| | | for (BasCrnOpt entity : list){ |
| | | for (BasCrnOpt entity : list) { |
| | | basCrnOptService.delete(new EntityWrapper<>(entity)); |
| | | } |
| | | return R.ok(); |
| | |
| | | |
| | | @RequestMapping(value = "/basCrnOpt/export/auth") |
| | | @ManagerAuth |
| | | public R export(@RequestBody JSONObject param){ |
| | | public R export(@RequestBody JSONObject param) { |
| | | EntityWrapper<BasCrnOpt> wrapper = new EntityWrapper<>(); |
| | | List<String> fields = JSONObject.parseArray(param.getJSONArray("fields").toJSONString(), String.class); |
| | | Map<String, Object> map = excludeTrash(param.getJSONObject("basCrnOpt")); |
| | |
| | | wrapper.like("id", condition); |
| | | Page<BasCrnOpt> page = basCrnOptService.selectPage(new Page<>(0, 10), wrapper); |
| | | List<Map<String, Object>> result = new ArrayList<>(); |
| | | for (BasCrnOpt basCrnOpt : page.getRecords()){ |
| | | for (BasCrnOpt basCrnOpt : page.getRecords()) { |
| | | Map<String, Object> map = new HashMap<>(); |
| | | map.put("id", basCrnOpt.getId()); |
| | | map.put("value", basCrnOpt.getId()); |
| | |
| | | @ManagerAuth |
| | | public R query(@RequestBody JSONObject param) { |
| | | Wrapper<BasCrnOpt> wrapper = new EntityWrapper<BasCrnOpt>().eq(humpToLine(String.valueOf(param.get("key"))), param.get("val")); |
| | | if (null != basCrnOptService.selectOne(wrapper)){ |
| | | if (null != basCrnOptService.selectOne(wrapper)) { |
| | | return R.parse(BaseRes.REPEAT).add(getComment(BasCrnOpt.class, String.valueOf(param.get("key")))); |
| | | } |
| | | return R.ok(); |
| | |
| | | import com.baomidou.mybatisplus.mapper.EntityWrapper; |
| | | import com.baomidou.mybatisplus.mapper.Wrapper; |
| | | import com.baomidou.mybatisplus.plugins.Page; |
| | | import com.zy.asrs.entity.BasCrnStatus; |
| | | import com.zy.asrs.service.BasCrnStatusService; |
| | | import com.zy.common.web.BaseController; |
| | | import com.core.annotations.ManagerAuth; |
| | | import com.core.common.BaseRes; |
| | | import com.core.common.Cools; |
| | | import com.core.common.DateUtils; |
| | | import com.core.common.R; |
| | | import com.zy.asrs.entity.BasCrnStatus; |
| | | import com.zy.asrs.service.BasCrnStatusService; |
| | | import com.zy.common.web.BaseController; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | |
| | | |
| | | @RequestMapping(value = "/basCrnStatus/list/auth") |
| | | @ManagerAuth |
| | | public R list(@RequestParam(defaultValue = "1")Integer curr, |
| | | @RequestParam(defaultValue = "10")Integer limit, |
| | | @RequestParam(required = false, defaultValue = "stsNo")String orderByField, |
| | | @RequestParam(required = false, defaultValue = "asc")String orderByType, |
| | | @RequestParam Map<String, Object> param){ |
| | | public R list(@RequestParam(defaultValue = "1") Integer curr, |
| | | @RequestParam(defaultValue = "10") Integer limit, |
| | | @RequestParam(required = false, defaultValue = "stsNo") String orderByField, |
| | | @RequestParam(required = false, defaultValue = "asc") String orderByType, |
| | | @RequestParam Map<String, Object> param) { |
| | | excludeTrash(param); |
| | | EntityWrapper<BasCrnStatus> wrapper = new EntityWrapper<>(); |
| | | convert(param, wrapper); |
| | | if (!Cools.isEmpty(orderByField)){wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType));} else { |
| | | if (!Cools.isEmpty(orderByField)) { |
| | | wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType)); |
| | | } else { |
| | | wrapper.orderBy("sts_no", true); |
| | | } |
| | | return R.ok(basCrnStatusService.selectPage(new Page<>(curr, limit), wrapper)); |
| | | } |
| | | |
| | | private <T> void convert(Map<String, Object> map, EntityWrapper<T> wrapper){ |
| | | for (Map.Entry<String, Object> entry : map.entrySet()){ |
| | | private <T> void convert(Map<String, Object> map, EntityWrapper<T> wrapper) { |
| | | for (Map.Entry<String, Object> entry : map.entrySet()) { |
| | | String val = String.valueOf(entry.getValue()); |
| | | if (val.contains(RANGE_TIME_LINK)){ |
| | | if (val.contains(RANGE_TIME_LINK)) { |
| | | String[] dates = val.split(RANGE_TIME_LINK); |
| | | wrapper.ge(entry.getKey(), DateUtils.convert(dates[0])); |
| | | wrapper.le(entry.getKey(), DateUtils.convert(dates[1])); |
| | |
| | | return R.ok(); |
| | | } |
| | | |
| | | @RequestMapping(value = "/basCrnStatus/update/auth") |
| | | @ManagerAuth(memo = "堆垛机状态修改") |
| | | public R update(BasCrnStatus basCrnStatus){ |
| | | if (Cools.isEmpty(basCrnStatus) || null==basCrnStatus.getStsNo()){ |
| | | @RequestMapping(value = "/basCrnStatus/update/auth") |
| | | @ManagerAuth(memo = "堆垛机状态修改") |
| | | public R update(BasCrnStatus basCrnStatus) { |
| | | if (Cools.isEmpty(basCrnStatus) || null == basCrnStatus.getStsNo()) { |
| | | return R.error(); |
| | | } |
| | | basCrnStatus.setModiUser(getUserId()); |
| | |
| | | |
| | | @RequestMapping(value = "/basCrnStatus/delete/auth") |
| | | @ManagerAuth(memo = "堆垛机状态删除") |
| | | public R delete(@RequestParam String param){ |
| | | public R delete(@RequestParam String param) { |
| | | List<BasCrnStatus> list = JSONArray.parseArray(param, BasCrnStatus.class); |
| | | if (Cools.isEmpty(list)){ |
| | | if (Cools.isEmpty(list)) { |
| | | return R.error(); |
| | | } |
| | | for (BasCrnStatus entity : list){ |
| | | for (BasCrnStatus entity : list) { |
| | | basCrnStatusService.delete(new EntityWrapper<>(entity)); |
| | | } |
| | | return R.ok(); |
| | |
| | | |
| | | @RequestMapping(value = "/basCrnStatus/export/auth") |
| | | @ManagerAuth(memo = "堆垛机状态导出") |
| | | public R export(@RequestBody JSONObject param){ |
| | | public R export(@RequestBody JSONObject param) { |
| | | List<String> fields = JSONObject.parseArray(param.getJSONArray("fields").toJSONString(), String.class); |
| | | EntityWrapper<BasCrnStatus> wrapper = new EntityWrapper<>(); |
| | | Map<String, Object> map = excludeTrash(param.getJSONObject("basCrnStatus")); |
| | |
| | | wrapper.like("sts_desc", condition); |
| | | Page<BasCrnStatus> page = basCrnStatusService.selectPage(new Page<>(0, 10), wrapper); |
| | | List<Map<String, Object>> result = new ArrayList<>(); |
| | | for (BasCrnStatus basCrnStatus : page.getRecords()){ |
| | | for (BasCrnStatus basCrnStatus : page.getRecords()) { |
| | | Map<String, Object> map = new HashMap<>(); |
| | | map.put("id", basCrnStatus.getStsNo()); |
| | | map.put("value", basCrnStatus.getStsDesc()); |
| | |
| | | @ManagerAuth |
| | | public R query(@RequestBody JSONObject param) { |
| | | Wrapper<BasCrnStatus> wrapper = new EntityWrapper<BasCrnStatus>().eq(humpToLine(String.valueOf(param.get("key"))), param.get("val")); |
| | | if (null != basCrnStatusService.selectOne(wrapper)){ |
| | | if (null != basCrnStatusService.selectOne(wrapper)) { |
| | | return R.parse(BaseRes.REPEAT).add(getComment(BasCrnStatus.class, String.valueOf(param.get("key")))); |
| | | } |
| | | return R.ok(); |
| | |
| | | import com.baomidou.mybatisplus.mapper.EntityWrapper; |
| | | import com.baomidou.mybatisplus.mapper.Wrapper; |
| | | import com.baomidou.mybatisplus.plugins.Page; |
| | | import com.zy.asrs.entity.BasCrnp; |
| | | import com.zy.asrs.service.BasCrnpService; |
| | | import com.zy.common.web.BaseController; |
| | | import com.core.annotations.ManagerAuth; |
| | | import com.core.common.BaseRes; |
| | | import com.core.common.Cools; |
| | | import com.core.common.DateUtils; |
| | | import com.core.common.R; |
| | | import com.zy.asrs.entity.BasCrnp; |
| | | import com.zy.asrs.service.BasCrnpService; |
| | | import com.zy.common.web.BaseController; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | |
| | | |
| | | @RequestMapping(value = "/basCrnp/list/auth") |
| | | @ManagerAuth |
| | | public R list(@RequestParam(defaultValue = "1")Integer curr, |
| | | @RequestParam(defaultValue = "10")Integer limit, |
| | | @RequestParam(required = false)String orderByField, |
| | | @RequestParam(required = false)String orderByType, |
| | | @RequestParam Map<String, Object> param){ |
| | | public R list(@RequestParam(defaultValue = "1") Integer curr, |
| | | @RequestParam(defaultValue = "10") Integer limit, |
| | | @RequestParam(required = false) String orderByField, |
| | | @RequestParam(required = false) String orderByType, |
| | | @RequestParam Map<String, Object> param) { |
| | | excludeTrash(param); |
| | | EntityWrapper<BasCrnp> wrapper = new EntityWrapper<>(); |
| | | convert(param, wrapper); |
| | | if (!Cools.isEmpty(orderByField)){wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType));} |
| | | if (!Cools.isEmpty(orderByField)) { |
| | | wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType)); |
| | | } |
| | | return R.ok(basCrnpService.selectPage(new Page<>(curr, limit), wrapper)); |
| | | } |
| | | |
| | | private <T> void convert(Map<String, Object> map, EntityWrapper<T> wrapper){ |
| | | for (Map.Entry<String, Object> entry : map.entrySet()){ |
| | | private <T> void convert(Map<String, Object> map, EntityWrapper<T> wrapper) { |
| | | for (Map.Entry<String, Object> entry : map.entrySet()) { |
| | | String val = String.valueOf(entry.getValue()); |
| | | if (val.contains(RANGE_TIME_LINK)){ |
| | | if (val.contains(RANGE_TIME_LINK)) { |
| | | String[] dates = val.split(RANGE_TIME_LINK); |
| | | wrapper.ge(entry.getKey(), DateUtils.convert(dates[0])); |
| | | wrapper.le(entry.getKey(), DateUtils.convert(dates[1])); |
| | |
| | | return R.ok(); |
| | | } |
| | | |
| | | @RequestMapping(value = "/basCrnp/update/auth") |
| | | @ManagerAuth(memo = "堆垛机修改") |
| | | public R update(BasCrnp basCrnp){ |
| | | if (Cools.isEmpty(basCrnp) || null==basCrnp.getCrnNo()){ |
| | | @RequestMapping(value = "/basCrnp/update/auth") |
| | | @ManagerAuth(memo = "堆垛机修改") |
| | | public R update(BasCrnp basCrnp) { |
| | | if (Cools.isEmpty(basCrnp) || null == basCrnp.getCrnNo()) { |
| | | return R.error(); |
| | | } |
| | | basCrnp.setModiUser(getUserId()); |
| | |
| | | |
| | | @RequestMapping(value = "/basCrnp/delete/auth") |
| | | @ManagerAuth(memo = "堆垛机删除") |
| | | public R delete(@RequestParam String param){ |
| | | public R delete(@RequestParam String param) { |
| | | List<BasCrnp> list = JSONArray.parseArray(param, BasCrnp.class); |
| | | if (Cools.isEmpty(list)){ |
| | | if (Cools.isEmpty(list)) { |
| | | return R.error(); |
| | | } |
| | | for (BasCrnp entity : list){ |
| | | for (BasCrnp entity : list) { |
| | | basCrnpService.delete(new EntityWrapper<>(entity)); |
| | | } |
| | | return R.ok(); |
| | |
| | | |
| | | @RequestMapping(value = "/basCrnp/export/auth") |
| | | @ManagerAuth(memo = "堆垛机导出") |
| | | public R export(@RequestBody JSONObject param){ |
| | | public R export(@RequestBody JSONObject param) { |
| | | List<String> fields = JSONObject.parseArray(param.getJSONArray("fields").toJSONString(), String.class); |
| | | EntityWrapper<BasCrnp> wrapper = new EntityWrapper<>(); |
| | | Map<String, Object> map = excludeTrash(param.getJSONObject("basCrnp")); |
| | |
| | | wrapper.like("crn_no", condition); |
| | | Page<BasCrnp> page = basCrnpService.selectPage(new Page<>(0, 10), wrapper); |
| | | List<Map<String, Object>> result = new ArrayList<>(); |
| | | for (BasCrnp basCrnp : page.getRecords()){ |
| | | for (BasCrnp basCrnp : page.getRecords()) { |
| | | Map<String, Object> map = new HashMap<>(); |
| | | map.put("id", basCrnp.getCrnNo()); |
| | | map.put("value", basCrnp.getCrnNo()); |
| | |
| | | @ManagerAuth |
| | | public R query(@RequestBody JSONObject param) { |
| | | Wrapper<BasCrnp> wrapper = new EntityWrapper<BasCrnp>().eq(humpToLine(String.valueOf(param.get("key"))), param.get("val")); |
| | | if (null != basCrnpService.selectOne(wrapper)){ |
| | | if (null != basCrnpService.selectOne(wrapper)) { |
| | | return R.parse(BaseRes.REPEAT).add(getComment(BasCrnp.class, String.valueOf(param.get("key")))); |
| | | } |
| | | return R.ok(); |
| | |
| | | import com.baomidou.mybatisplus.mapper.EntityWrapper; |
| | | import com.baomidou.mybatisplus.mapper.Wrapper; |
| | | import com.baomidou.mybatisplus.plugins.Page; |
| | | import com.zy.asrs.entity.BasDevp; |
| | | import com.zy.asrs.entity.param.BasDevpInitParam; |
| | | import com.zy.asrs.service.BasDevpService; |
| | | import com.zy.common.web.BaseController; |
| | | import com.core.annotations.ManagerAuth; |
| | | import com.core.common.BaseRes; |
| | | import com.core.common.Cools; |
| | | import com.core.common.DateUtils; |
| | | import com.core.common.R; |
| | | import com.zy.asrs.entity.BasDevp; |
| | | import com.zy.asrs.entity.param.BasDevpInitParam; |
| | | import com.zy.asrs.service.BasDevpService; |
| | | import com.zy.common.web.BaseController; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | |
| | | @ManagerAuth(memo = "初始化站点") |
| | | public R init(BasDevpInitParam param) { |
| | | List<BasDevp> list = new ArrayList<>(); |
| | | for (int devNo = param.getStartDev() ; devNo<=param.getEndDev() ; devNo++){ |
| | | for (int devNo = param.getStartDev(); devNo <= param.getEndDev(); devNo++) { |
| | | BasDevp basDevp = basDevpService.selectById(devNo); |
| | | if (Cools.isEmpty(basDevp)){ |
| | | if (Cools.isEmpty(basDevp)) { |
| | | BasDevp basDevp1 = new BasDevp(); |
| | | basDevp1.setDevNo(devNo); |
| | | basDevp1.setInEnable("Y"); |
| | |
| | | |
| | | @RequestMapping(value = "/basDevp/list/auth") |
| | | @ManagerAuth |
| | | public R list(@RequestParam(defaultValue = "1")Integer curr, |
| | | @RequestParam(defaultValue = "10")Integer limit, |
| | | @RequestParam(required = false)String orderByField, |
| | | @RequestParam(required = false)String orderByType, |
| | | @RequestParam Map<String, Object> param){ |
| | | public R list(@RequestParam(defaultValue = "1") Integer curr, |
| | | @RequestParam(defaultValue = "10") Integer limit, |
| | | @RequestParam(required = false) String orderByField, |
| | | @RequestParam(required = false) String orderByType, |
| | | @RequestParam Map<String, Object> param) { |
| | | excludeTrash(param); |
| | | EntityWrapper<BasDevp> wrapper = new EntityWrapper<>(); |
| | | convert(param, wrapper); |
| | | if (!Cools.isEmpty(orderByField)){wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType));} |
| | | if (!Cools.isEmpty(orderByField)) { |
| | | wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType)); |
| | | } |
| | | return R.ok(basDevpService.selectPage(new Page<>(curr, limit), wrapper)); |
| | | } |
| | | |
| | | private <T> void convert(Map<String, Object> map, EntityWrapper<T> wrapper){ |
| | | for (Map.Entry<String, Object> entry : map.entrySet()){ |
| | | private <T> void convert(Map<String, Object> map, EntityWrapper<T> wrapper) { |
| | | for (Map.Entry<String, Object> entry : map.entrySet()) { |
| | | String val = String.valueOf(entry.getValue()); |
| | | if (val.contains(RANGE_TIME_LINK)){ |
| | | if (val.contains(RANGE_TIME_LINK)) { |
| | | String[] dates = val.split(RANGE_TIME_LINK); |
| | | wrapper.ge(entry.getKey(), DateUtils.convert(dates[0])); |
| | | wrapper.le(entry.getKey(), DateUtils.convert(dates[1])); |
| | |
| | | return R.ok(); |
| | | } |
| | | |
| | | @RequestMapping(value = "/basDevp/update/auth") |
| | | @ManagerAuth(memo = "站点修改") |
| | | public R update(BasDevp basDevp){ |
| | | if (Cools.isEmpty(basDevp) || null==basDevp.getDevNo()){ |
| | | @RequestMapping(value = "/basDevp/update/auth") |
| | | @ManagerAuth(memo = "站点修改") |
| | | public R update(BasDevp basDevp) { |
| | | if (Cools.isEmpty(basDevp) || null == basDevp.getDevNo()) { |
| | | return R.error(); |
| | | } |
| | | basDevp.setModiUser(getUserId()); |
| | |
| | | |
| | | @RequestMapping(value = "/basDevp/delete/auth") |
| | | @ManagerAuth(memo = "站点删除") |
| | | public R delete(@RequestParam String param){ |
| | | public R delete(@RequestParam String param) { |
| | | List<BasDevp> list = JSONArray.parseArray(param, BasDevp.class); |
| | | if (Cools.isEmpty(list)){ |
| | | if (Cools.isEmpty(list)) { |
| | | return R.error(); |
| | | } |
| | | for (BasDevp entity : list){ |
| | | for (BasDevp entity : list) { |
| | | basDevpService.delete(new EntityWrapper<>(entity)); |
| | | } |
| | | return R.ok(); |
| | |
| | | |
| | | @RequestMapping(value = "/basDevp/export/auth") |
| | | @ManagerAuth(memo = "站点导出") |
| | | public R export(@RequestBody JSONObject param){ |
| | | public R export(@RequestBody JSONObject param) { |
| | | List<String> fields = JSONObject.parseArray(param.getJSONArray("fields").toJSONString(), String.class); |
| | | EntityWrapper<BasDevp> wrapper = new EntityWrapper<>(); |
| | | Map<String, Object> map = excludeTrash(param.getJSONObject("basDevp")); |
| | |
| | | wrapper.like("dev_no", condition); |
| | | Page<BasDevp> page = basDevpService.selectPage(new Page<>(0, 1000), wrapper); |
| | | List<Map<String, Object>> result = new ArrayList<>(); |
| | | for (BasDevp basDevp : page.getRecords()){ |
| | | for (BasDevp basDevp : page.getRecords()) { |
| | | Map<String, Object> map = new HashMap<>(); |
| | | map.put("id", basDevp.getDevNo()); |
| | | map.put("value", basDevp.getDevNo()); |
| | |
| | | @ManagerAuth |
| | | public R query(@RequestBody JSONObject param) { |
| | | Wrapper<BasDevp> wrapper = new EntityWrapper<BasDevp>().eq(humpToLine(String.valueOf(param.get("key"))), param.get("val")); |
| | | if (null != basDevpService.selectOne(wrapper)){ |
| | | if (null != basDevpService.selectOne(wrapper)) { |
| | | return R.parse(BaseRes.REPEAT).add(getComment(BasDevp.class, String.valueOf(param.get("key")))); |
| | | } |
| | | return R.ok(); |
| | |
| | | |
| | | @RequestMapping(value = "/basErrLog/list/auth") |
| | | @ManagerAuth |
| | | public R list(@RequestParam(defaultValue = "1")Integer curr, |
| | | @RequestParam(defaultValue = "10")Integer limit, |
| | | @RequestParam(required = false)String orderByField, |
| | | @RequestParam(required = false)String orderByType, |
| | | @RequestParam Map<String, Object> param){ |
| | | public R list(@RequestParam(defaultValue = "1") Integer curr, |
| | | @RequestParam(defaultValue = "10") Integer limit, |
| | | @RequestParam(required = false) String orderByField, |
| | | @RequestParam(required = false) String orderByType, |
| | | @RequestParam Map<String, Object> param) { |
| | | EntityWrapper<BasErrLog> wrapper = new EntityWrapper<>(); |
| | | excludeTrash(param); |
| | | convert(param, wrapper); |
| | | if (!Cools.isEmpty(orderByField)){ |
| | | if (!Cools.isEmpty(orderByField)) { |
| | | wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType)); |
| | | } else { |
| | | wrapper.orderBy("create_time", false); |
| | |
| | | return R.ok(basErrLogService.selectPage(new Page<>(curr, limit), wrapper)); |
| | | } |
| | | |
| | | private void convert(Map<String, Object> map, EntityWrapper wrapper){ |
| | | for (Map.Entry<String, Object> entry : map.entrySet()){ |
| | | private void convert(Map<String, Object> map, EntityWrapper wrapper) { |
| | | for (Map.Entry<String, Object> entry : map.entrySet()) { |
| | | String val = String.valueOf(entry.getValue()); |
| | | if (val.contains(RANGE_TIME_LINK)){ |
| | | if (val.contains(RANGE_TIME_LINK)) { |
| | | String[] dates = val.split(RANGE_TIME_LINK); |
| | | wrapper.ge(entry.getKey(), DateUtils.convert(dates[0])); |
| | | wrapper.le(entry.getKey(), DateUtils.convert(dates[1])); |
| | |
| | | return R.ok(); |
| | | } |
| | | |
| | | @RequestMapping(value = "/basErrLog/update/auth") |
| | | @ManagerAuth |
| | | public R update(BasErrLog basErrLog){ |
| | | if (Cools.isEmpty(basErrLog) || null==basErrLog.getId()){ |
| | | @RequestMapping(value = "/basErrLog/update/auth") |
| | | @ManagerAuth |
| | | public R update(BasErrLog basErrLog) { |
| | | if (Cools.isEmpty(basErrLog) || null == basErrLog.getId()) { |
| | | return R.error(); |
| | | } |
| | | basErrLogService.updateById(basErrLog); |
| | |
| | | |
| | | @RequestMapping(value = "/basErrLog/delete/auth") |
| | | @ManagerAuth |
| | | public R delete(@RequestParam String param){ |
| | | public R delete(@RequestParam String param) { |
| | | List<BasErrLog> list = JSONArray.parseArray(param, BasErrLog.class); |
| | | if (Cools.isEmpty(list)){ |
| | | if (Cools.isEmpty(list)) { |
| | | return R.error(); |
| | | } |
| | | for (BasErrLog entity : list){ |
| | | for (BasErrLog entity : list) { |
| | | basErrLogService.delete(new EntityWrapper<>(entity)); |
| | | } |
| | | return R.ok(); |
| | |
| | | |
| | | @RequestMapping(value = "/basErrLog/export/auth") |
| | | @ManagerAuth |
| | | public R export(@RequestBody JSONObject param){ |
| | | public R export(@RequestBody JSONObject param) { |
| | | EntityWrapper<BasErrLog> wrapper = new EntityWrapper<>(); |
| | | List<String> fields = JSONObject.parseArray(param.getJSONArray("fields").toJSONString(), String.class); |
| | | Map<String, Object> map = excludeTrash(param.getJSONObject("basErrLog")); |
| | |
| | | wrapper.like("id", condition); |
| | | Page<BasErrLog> page = basErrLogService.selectPage(new Page<>(0, 10), wrapper); |
| | | List<Map<String, Object>> result = new ArrayList<>(); |
| | | for (BasErrLog basErrLog : page.getRecords()){ |
| | | for (BasErrLog basErrLog : page.getRecords()) { |
| | | Map<String, Object> map = new HashMap<>(); |
| | | map.put("id", basErrLog.getId()); |
| | | map.put("value", basErrLog.getId()); |
| | |
| | | @ManagerAuth |
| | | public R query(@RequestBody JSONObject param) { |
| | | Wrapper<BasErrLog> wrapper = new EntityWrapper<BasErrLog>().eq(humpToLine(String.valueOf(param.get("key"))), param.get("val")); |
| | | if (null != basErrLogService.selectOne(wrapper)){ |
| | | if (null != basErrLogService.selectOne(wrapper)) { |
| | | return R.parse(BaseRes.REPEAT).add(getComment(BasErrLog.class, String.valueOf(param.get("key")))); |
| | | } |
| | | return R.ok(); |
| | |
| | | import com.baomidou.mybatisplus.mapper.EntityWrapper; |
| | | import com.baomidou.mybatisplus.mapper.Wrapper; |
| | | import com.baomidou.mybatisplus.plugins.Page; |
| | | import com.zy.asrs.entity.BasLocSts; |
| | | import com.zy.asrs.service.BasLocStsService; |
| | | import com.zy.common.web.BaseController; |
| | | import com.core.annotations.ManagerAuth; |
| | | import com.core.common.BaseRes; |
| | | import com.core.common.Cools; |
| | | import com.core.common.DateUtils; |
| | | import com.core.common.R; |
| | | import com.zy.asrs.entity.BasLocSts; |
| | | import com.zy.asrs.service.BasLocStsService; |
| | | import com.zy.common.web.BaseController; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | |
| | | |
| | | @RequestMapping(value = "/basLocSts/list/auth") |
| | | @ManagerAuth |
| | | public R list(@RequestParam(defaultValue = "1")Integer curr, |
| | | @RequestParam(defaultValue = "10")Integer limit, |
| | | @RequestParam(required = false)String orderByField, |
| | | @RequestParam(required = false)String orderByType, |
| | | @RequestParam Map<String, Object> param){ |
| | | public R list(@RequestParam(defaultValue = "1") Integer curr, |
| | | @RequestParam(defaultValue = "10") Integer limit, |
| | | @RequestParam(required = false) String orderByField, |
| | | @RequestParam(required = false) String orderByType, |
| | | @RequestParam Map<String, Object> param) { |
| | | excludeTrash(param); |
| | | EntityWrapper<BasLocSts> wrapper = new EntityWrapper<>(); |
| | | convert(param, wrapper); |
| | | if (!Cools.isEmpty(orderByField)){wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType));} |
| | | if (!Cools.isEmpty(orderByField)) { |
| | | wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType)); |
| | | } |
| | | return R.ok(basLocStsService.selectPage(new Page<>(curr, limit), wrapper)); |
| | | } |
| | | |
| | | private <T> void convert(Map<String, Object> map, EntityWrapper<T> wrapper){ |
| | | for (Map.Entry<String, Object> entry : map.entrySet()){ |
| | | private <T> void convert(Map<String, Object> map, EntityWrapper<T> wrapper) { |
| | | for (Map.Entry<String, Object> entry : map.entrySet()) { |
| | | String val = String.valueOf(entry.getValue()); |
| | | if (val.contains(RANGE_TIME_LINK)){ |
| | | if (val.contains(RANGE_TIME_LINK)) { |
| | | String[] dates = val.split(RANGE_TIME_LINK); |
| | | wrapper.ge(entry.getKey(), DateUtils.convert(dates[0])); |
| | | wrapper.le(entry.getKey(), DateUtils.convert(dates[1])); |
| | |
| | | @RequestMapping(value = "/basLocSts/edit/auth") |
| | | @ManagerAuth |
| | | public R edit(BasLocSts basLocSts) { |
| | | if (Cools.isEmpty(basLocSts)){ |
| | | if (Cools.isEmpty(basLocSts)) { |
| | | return R.error(); |
| | | } |
| | | if (null == basLocSts.getLocSts()){ |
| | | if (null == basLocSts.getLocSts()) { |
| | | basLocStsService.insert(basLocSts); |
| | | } else { |
| | | basLocStsService.updateById(basLocSts); |
| | |
| | | return R.ok(); |
| | | } |
| | | |
| | | @RequestMapping(value = "/basLocSts/update/auth") |
| | | @RequestMapping(value = "/basLocSts/update/auth") |
| | | @ManagerAuth(memo = "库位状态修改") |
| | | public R update(BasLocSts basLocSts){ |
| | | if (Cools.isEmpty(basLocSts) || null==basLocSts.getLocSts()){ |
| | | public R update(BasLocSts basLocSts) { |
| | | if (Cools.isEmpty(basLocSts) || null == basLocSts.getLocSts()) { |
| | | return R.error(); |
| | | } |
| | | basLocSts.setModiUser(getUserId()); |
| | |
| | | |
| | | @RequestMapping(value = "/basLocSts/delete/auth") |
| | | @ManagerAuth(memo = "库位状态删除") |
| | | public R delete(@RequestParam String param){ |
| | | public R delete(@RequestParam String param) { |
| | | List<BasLocSts> list = JSONArray.parseArray(param, BasLocSts.class); |
| | | if (Cools.isEmpty(list)){ |
| | | if (Cools.isEmpty(list)) { |
| | | return R.error(); |
| | | } |
| | | for (BasLocSts entity : list){ |
| | | for (BasLocSts entity : list) { |
| | | basLocStsService.delete(new EntityWrapper<>(entity)); |
| | | } |
| | | return R.ok(); |
| | |
| | | |
| | | @RequestMapping(value = "/basLocSts/export/auth") |
| | | @ManagerAuth(memo = "库位状态导出") |
| | | public R export(@RequestBody JSONObject param){ |
| | | public R export(@RequestBody JSONObject param) { |
| | | List<String> fields = JSONObject.parseArray(param.getJSONArray("fields").toJSONString(), String.class); |
| | | EntityWrapper<BasLocSts> wrapper = new EntityWrapper<>(); |
| | | Map<String, Object> map = excludeTrash(param.getJSONObject("basLocSts")); |
| | |
| | | wrapper.like("loc_desc", condition); |
| | | Page<BasLocSts> page = basLocStsService.selectPage(new Page<>(0, 32), wrapper); |
| | | List<Map<String, Object>> result = new ArrayList<>(); |
| | | for (BasLocSts basLocSts : page.getRecords()){ |
| | | for (BasLocSts basLocSts : page.getRecords()) { |
| | | Map<String, Object> map = new HashMap<>(); |
| | | map.put("id", basLocSts.getLocSts()); |
| | | map.put("value", basLocSts.getLocDesc()); |
| | |
| | | @ManagerAuth |
| | | public R query(@RequestBody JSONObject param) { |
| | | Wrapper<BasLocSts> wrapper = new EntityWrapper<BasLocSts>().eq(humpToLine(String.valueOf(param.get("key"))), param.get("val")); |
| | | if (null != basLocStsService.selectOne(wrapper)){ |
| | | if (null != basLocStsService.selectOne(wrapper)) { |
| | | return R.parse(BaseRes.REPEAT).add(getComment(BasLocSts.class, String.valueOf(param.get("key")))); |
| | | } |
| | | return R.ok(); |
| | |
| | | |
| | | @RequestMapping(value = "/basPlcerror/list/auth") |
| | | @ManagerAuth |
| | | public R list(@RequestParam(defaultValue = "1")Integer curr, |
| | | @RequestParam(defaultValue = "10")Integer limit, |
| | | @RequestParam(required = false)String orderByField, |
| | | @RequestParam(required = false)String orderByType, |
| | | @RequestParam Map<String, Object> param){ |
| | | public R list(@RequestParam(defaultValue = "1") Integer curr, |
| | | @RequestParam(defaultValue = "10") Integer limit, |
| | | @RequestParam(required = false) String orderByField, |
| | | @RequestParam(required = false) String orderByType, |
| | | @RequestParam Map<String, Object> param) { |
| | | EntityWrapper<BasPlcerror> wrapper = new EntityWrapper<>(); |
| | | excludeTrash(param); |
| | | convert(param, wrapper); |
| | | if (!Cools.isEmpty(orderByField)){wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType));} |
| | | if (!Cools.isEmpty(orderByField)) { |
| | | wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType)); |
| | | } |
| | | return R.ok(basPlcerrorService.selectPage(new Page<>(curr, limit), wrapper)); |
| | | } |
| | | |
| | | private void convert(Map<String, Object> map, EntityWrapper wrapper){ |
| | | for (Map.Entry<String, Object> entry : map.entrySet()){ |
| | | private void convert(Map<String, Object> map, EntityWrapper wrapper) { |
| | | for (Map.Entry<String, Object> entry : map.entrySet()) { |
| | | String val = String.valueOf(entry.getValue()); |
| | | if (val.contains(RANGE_TIME_LINK)){ |
| | | if (val.contains(RANGE_TIME_LINK)) { |
| | | String[] dates = val.split(RANGE_TIME_LINK); |
| | | wrapper.ge(entry.getKey(), DateUtils.convert(dates[0])); |
| | | wrapper.le(entry.getKey(), DateUtils.convert(dates[1])); |
| | |
| | | return R.ok(); |
| | | } |
| | | |
| | | @RequestMapping(value = "/basPlcerror/update/auth") |
| | | @ManagerAuth |
| | | public R update(BasPlcerror basPlcerror){ |
| | | if (Cools.isEmpty(basPlcerror) || null==basPlcerror.getErrorCode()){ |
| | | @RequestMapping(value = "/basPlcerror/update/auth") |
| | | @ManagerAuth |
| | | public R update(BasPlcerror basPlcerror) { |
| | | if (Cools.isEmpty(basPlcerror) || null == basPlcerror.getErrorCode()) { |
| | | return R.error(); |
| | | } |
| | | basPlcerror.setModiUser(getUserId()); |
| | |
| | | |
| | | @RequestMapping(value = "/basPlcerror/delete/auth") |
| | | @ManagerAuth |
| | | public R delete(@RequestParam String param){ |
| | | public R delete(@RequestParam String param) { |
| | | List<BasPlcerror> list = JSONArray.parseArray(param, BasPlcerror.class); |
| | | if (Cools.isEmpty(list)){ |
| | | if (Cools.isEmpty(list)) { |
| | | return R.error(); |
| | | } |
| | | for (BasPlcerror entity : list){ |
| | | for (BasPlcerror entity : list) { |
| | | basPlcerrorService.delete(new EntityWrapper<>(entity)); |
| | | } |
| | | return R.ok(); |
| | |
| | | |
| | | @RequestMapping(value = "/basPlcerror/export/auth") |
| | | @ManagerAuth |
| | | public R export(@RequestBody JSONObject param){ |
| | | public R export(@RequestBody JSONObject param) { |
| | | EntityWrapper<BasPlcerror> wrapper = new EntityWrapper<>(); |
| | | List<String> fields = JSONObject.parseArray(param.getJSONArray("fields").toJSONString(), String.class); |
| | | Map<String, Object> map = excludeTrash(param.getJSONObject("basPlcerror")); |
| | |
| | | wrapper.like("error_desc", condition); |
| | | Page<BasPlcerror> page = basPlcerrorService.selectPage(new Page<>(0, 10), wrapper); |
| | | List<Map<String, Object>> result = new ArrayList<>(); |
| | | for (BasPlcerror basPlcerror : page.getRecords()){ |
| | | for (BasPlcerror basPlcerror : page.getRecords()) { |
| | | Map<String, Object> map = new HashMap<>(); |
| | | map.put("id", basPlcerror.getErrorCode()); |
| | | map.put("value", basPlcerror.getErrorDesc()); |
| | |
| | | @ManagerAuth |
| | | public R query(@RequestBody JSONObject param) { |
| | | Wrapper<BasPlcerror> wrapper = new EntityWrapper<BasPlcerror>().eq(humpToLine(String.valueOf(param.get("key"))), param.get("val")); |
| | | if (null != basPlcerrorService.selectOne(wrapper)){ |
| | | if (null != basPlcerrorService.selectOne(wrapper)) { |
| | | return R.parse(BaseRes.REPEAT).add(getComment(BasPlcerror.class, String.valueOf(param.get("key")))); |
| | | } |
| | | return R.ok(); |
| | |
| | | import com.baomidou.mybatisplus.mapper.EntityWrapper; |
| | | import com.baomidou.mybatisplus.mapper.Wrapper; |
| | | import com.baomidou.mybatisplus.plugins.Page; |
| | | import com.zy.asrs.entity.BasWhs; |
| | | import com.zy.asrs.service.BasWhsService; |
| | | import com.zy.common.web.BaseController; |
| | | import com.core.annotations.ManagerAuth; |
| | | import com.core.common.BaseRes; |
| | | import com.core.common.Cools; |
| | | import com.core.common.DateUtils; |
| | | import com.core.common.R; |
| | | import com.zy.asrs.entity.BasWhs; |
| | | import com.zy.asrs.service.BasWhsService; |
| | | import com.zy.common.web.BaseController; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | |
| | | |
| | | @RequestMapping(value = "/basWhs/list/auth") |
| | | @ManagerAuth |
| | | public R list(@RequestParam(defaultValue = "1")Integer curr, |
| | | @RequestParam(defaultValue = "10")Integer limit, |
| | | @RequestParam(required = false)String orderByField, |
| | | @RequestParam(required = false)String orderByType, |
| | | @RequestParam Map<String, Object> param){ |
| | | public R list(@RequestParam(defaultValue = "1") Integer curr, |
| | | @RequestParam(defaultValue = "10") Integer limit, |
| | | @RequestParam(required = false) String orderByField, |
| | | @RequestParam(required = false) String orderByType, |
| | | @RequestParam Map<String, Object> param) { |
| | | excludeTrash(param); |
| | | EntityWrapper<BasWhs> wrapper = new EntityWrapper<>(); |
| | | convert(param, wrapper); |
| | | if (!Cools.isEmpty(orderByField)){wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType));} |
| | | if (!Cools.isEmpty(orderByField)) { |
| | | wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType)); |
| | | } |
| | | return R.ok(basWhsService.selectPage(new Page<>(curr, limit), wrapper)); |
| | | } |
| | | |
| | | private <T> void convert(Map<String, Object> map, EntityWrapper<T> wrapper){ |
| | | for (Map.Entry<String, Object> entry : map.entrySet()){ |
| | | private <T> void convert(Map<String, Object> map, EntityWrapper<T> wrapper) { |
| | | for (Map.Entry<String, Object> entry : map.entrySet()) { |
| | | String val = String.valueOf(entry.getValue()); |
| | | if (val.contains(RANGE_TIME_LINK)){ |
| | | if (val.contains(RANGE_TIME_LINK)) { |
| | | String[] dates = val.split(RANGE_TIME_LINK); |
| | | wrapper.ge(entry.getKey(), DateUtils.convert(dates[0])); |
| | | wrapper.le(entry.getKey(), DateUtils.convert(dates[1])); |
| | |
| | | return R.ok(); |
| | | } |
| | | |
| | | @RequestMapping(value = "/basWhs/update/auth") |
| | | @RequestMapping(value = "/basWhs/update/auth") |
| | | @ManagerAuth(memo = "库位类型修改") |
| | | public R update(BasWhs basWhs){ |
| | | if (Cools.isEmpty(basWhs) || null==basWhs.getId()){ |
| | | public R update(BasWhs basWhs) { |
| | | if (Cools.isEmpty(basWhs) || null == basWhs.getId()) { |
| | | return R.error(); |
| | | } |
| | | basWhs.setModiUser(getUserId()); |
| | |
| | | |
| | | @RequestMapping(value = "/basWhs/delete/auth") |
| | | @ManagerAuth(memo = "库位类型删除") |
| | | public R delete(@RequestParam String param){ |
| | | public R delete(@RequestParam String param) { |
| | | List<BasWhs> list = JSONArray.parseArray(param, BasWhs.class); |
| | | if (Cools.isEmpty(list)){ |
| | | if (Cools.isEmpty(list)) { |
| | | return R.error(); |
| | | } |
| | | for (BasWhs entity : list){ |
| | | for (BasWhs entity : list) { |
| | | basWhsService.delete(new EntityWrapper<>(entity)); |
| | | } |
| | | return R.ok(); |
| | |
| | | |
| | | @RequestMapping(value = "/basWhs/export/auth") |
| | | @ManagerAuth(memo = "库位类型导出") |
| | | public R export(@RequestBody JSONObject param){ |
| | | public R export(@RequestBody JSONObject param) { |
| | | List<String> fields = JSONObject.parseArray(param.getJSONArray("fields").toJSONString(), String.class); |
| | | EntityWrapper<BasWhs> wrapper = new EntityWrapper<>(); |
| | | Map<String, Object> map = excludeTrash(param.getJSONObject("basWhs")); |
| | |
| | | wrapper.like("whs_desc", condition); |
| | | Page<BasWhs> page = basWhsService.selectPage(new Page<>(0, 10), wrapper); |
| | | List<Map<String, Object>> result = new ArrayList<>(); |
| | | for (BasWhs basWhs : page.getRecords()){ |
| | | for (BasWhs basWhs : page.getRecords()) { |
| | | Map<String, Object> map = new HashMap<>(); |
| | | map.put("id", basWhs.getIdentifying()); |
| | | map.put("value", basWhs.getWhsDesc()); |
| | |
| | | @ManagerAuth |
| | | public R query(@RequestBody JSONObject param) { |
| | | Wrapper<BasWhs> wrapper = new EntityWrapper<BasWhs>().eq(humpToLine(String.valueOf(param.get("key"))), param.get("val")); |
| | | if (null != basWhsService.selectOne(wrapper)){ |
| | | if (null != basWhsService.selectOne(wrapper)) { |
| | | return R.parse(BaseRes.REPEAT).add(getComment(BasWhs.class, String.valueOf(param.get("key")))); |
| | | } |
| | | return R.ok(); |
| | |
| | | import com.baomidou.mybatisplus.mapper.EntityWrapper; |
| | | import com.baomidou.mybatisplus.mapper.Wrapper; |
| | | import com.baomidou.mybatisplus.plugins.Page; |
| | | import com.zy.asrs.entity.BasWrkIotype; |
| | | import com.zy.asrs.service.BasWrkIotypeService; |
| | | import com.zy.common.web.BaseController; |
| | | import com.core.annotations.ManagerAuth; |
| | | import com.core.common.BaseRes; |
| | | import com.core.common.Cools; |
| | | import com.core.common.DateUtils; |
| | | import com.core.common.R; |
| | | import com.zy.asrs.entity.BasWrkIotype; |
| | | import com.zy.asrs.service.BasWrkIotypeService; |
| | | import com.zy.common.web.BaseController; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | |
| | | |
| | | @RequestMapping(value = "/basWrkIotype/list/auth") |
| | | @ManagerAuth |
| | | public R list(@RequestParam(defaultValue = "1")Integer curr, |
| | | @RequestParam(defaultValue = "10")Integer limit, |
| | | @RequestParam(required = false)String orderByField, |
| | | @RequestParam(required = false)String orderByType, |
| | | @RequestParam Map<String, Object> param){ |
| | | public R list(@RequestParam(defaultValue = "1") Integer curr, |
| | | @RequestParam(defaultValue = "10") Integer limit, |
| | | @RequestParam(required = false) String orderByField, |
| | | @RequestParam(required = false) String orderByType, |
| | | @RequestParam Map<String, Object> param) { |
| | | excludeTrash(param); |
| | | EntityWrapper<BasWrkIotype> wrapper = new EntityWrapper<>(); |
| | | convert(param, wrapper); |
| | | if (!Cools.isEmpty(orderByField)){wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType));} |
| | | if (!Cools.isEmpty(orderByField)) { |
| | | wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType)); |
| | | } |
| | | return R.ok(basWrkIotypeService.selectPage(new Page<>(curr, limit), wrapper)); |
| | | } |
| | | |
| | | private <T> void convert(Map<String, Object> map, EntityWrapper<T> wrapper){ |
| | | for (Map.Entry<String, Object> entry : map.entrySet()){ |
| | | private <T> void convert(Map<String, Object> map, EntityWrapper<T> wrapper) { |
| | | for (Map.Entry<String, Object> entry : map.entrySet()) { |
| | | String val = String.valueOf(entry.getValue()); |
| | | if (val.contains(RANGE_TIME_LINK)){ |
| | | if (val.contains(RANGE_TIME_LINK)) { |
| | | String[] dates = val.split(RANGE_TIME_LINK); |
| | | wrapper.ge(entry.getKey(), DateUtils.convert(dates[0])); |
| | | wrapper.le(entry.getKey(), DateUtils.convert(dates[1])); |
| | |
| | | @RequestMapping(value = "/basWrkIotype/edit/auth") |
| | | @ManagerAuth |
| | | public R edit(BasWrkIotype basWrkIotype) { |
| | | if (Cools.isEmpty(basWrkIotype)){ |
| | | if (Cools.isEmpty(basWrkIotype)) { |
| | | return R.error(); |
| | | } |
| | | if (null == basWrkIotype.getIoType()){ |
| | | if (null == basWrkIotype.getIoType()) { |
| | | basWrkIotypeService.insert(basWrkIotype); |
| | | } else { |
| | | basWrkIotypeService.updateById(basWrkIotype); |
| | |
| | | return R.ok(); |
| | | } |
| | | |
| | | @RequestMapping(value = "/basWrkIotype/update/auth") |
| | | @RequestMapping(value = "/basWrkIotype/update/auth") |
| | | @ManagerAuth(memo = "入出库类型修改") |
| | | public R update(BasWrkIotype basWrkIotype){ |
| | | if (Cools.isEmpty(basWrkIotype) || null==basWrkIotype.getIoType()){ |
| | | public R update(BasWrkIotype basWrkIotype) { |
| | | if (Cools.isEmpty(basWrkIotype) || null == basWrkIotype.getIoType()) { |
| | | return R.error(); |
| | | } |
| | | basWrkIotype.setModiUser(getUserId()); |
| | |
| | | |
| | | @RequestMapping(value = "/basWrkIotype/delete/auth") |
| | | @ManagerAuth(memo = "入出库类型删除") |
| | | public R delete(@RequestParam String param){ |
| | | public R delete(@RequestParam String param) { |
| | | List<BasWrkIotype> list = JSONArray.parseArray(param, BasWrkIotype.class); |
| | | if (Cools.isEmpty(list)){ |
| | | if (Cools.isEmpty(list)) { |
| | | return R.error(); |
| | | } |
| | | for (BasWrkIotype entity : list){ |
| | | for (BasWrkIotype entity : list) { |
| | | basWrkIotypeService.delete(new EntityWrapper<>(entity)); |
| | | } |
| | | return R.ok(); |
| | |
| | | |
| | | @RequestMapping(value = "/basWrkIotype/export/auth") |
| | | @ManagerAuth(memo = "入出库类型导出") |
| | | public R export(@RequestBody JSONObject param){ |
| | | public R export(@RequestBody JSONObject param) { |
| | | List<String> fields = JSONObject.parseArray(param.getJSONArray("fields").toJSONString(), String.class); |
| | | EntityWrapper<BasWrkIotype> wrapper = new EntityWrapper<>(); |
| | | Map<String, Object> map = excludeTrash(param.getJSONObject("basWrkIotype")); |
| | |
| | | wrapper.like("io_desc", condition); |
| | | Page<BasWrkIotype> page = basWrkIotypeService.selectPage(new Page<>(0, 20), wrapper); |
| | | List<Map<String, Object>> result = new ArrayList<>(); |
| | | for (BasWrkIotype basWrkIotype : page.getRecords()){ |
| | | for (BasWrkIotype basWrkIotype : page.getRecords()) { |
| | | Map<String, Object> map = new HashMap<>(); |
| | | map.put("id", basWrkIotype.getIoType()); |
| | | map.put("value", basWrkIotype.getIoDesc()); |
| | |
| | | @ManagerAuth |
| | | public R query(@RequestBody JSONObject param) { |
| | | Wrapper<BasWrkIotype> wrapper = new EntityWrapper<BasWrkIotype>().eq(humpToLine(String.valueOf(param.get("key"))), param.get("val")); |
| | | if (null != basWrkIotypeService.selectOne(wrapper)){ |
| | | if (null != basWrkIotypeService.selectOne(wrapper)) { |
| | | return R.parse(BaseRes.REPEAT).add(getComment(BasWrkIotype.class, String.valueOf(param.get("key")))); |
| | | } |
| | | return R.ok(); |
| | |
| | | import com.baomidou.mybatisplus.mapper.EntityWrapper; |
| | | import com.baomidou.mybatisplus.mapper.Wrapper; |
| | | import com.baomidou.mybatisplus.plugins.Page; |
| | | import com.zy.asrs.entity.BasWrkStatus; |
| | | import com.zy.asrs.service.BasWrkStatusService; |
| | | import com.zy.common.web.BaseController; |
| | | import com.core.annotations.ManagerAuth; |
| | | import com.core.common.BaseRes; |
| | | import com.core.common.Cools; |
| | | import com.core.common.DateUtils; |
| | | import com.core.common.R; |
| | | import com.zy.asrs.entity.BasWrkStatus; |
| | | import com.zy.asrs.service.BasWrkStatusService; |
| | | import com.zy.common.web.BaseController; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | |
| | | |
| | | @RequestMapping(value = "/basWrkStatus/list/auth") |
| | | @ManagerAuth |
| | | public R list(@RequestParam(defaultValue = "1")Integer curr, |
| | | @RequestParam(defaultValue = "10")Integer limit, |
| | | @RequestParam(required = false)String orderByField, |
| | | @RequestParam(required = false)String orderByType, |
| | | @RequestParam Map<String, Object> param){ |
| | | public R list(@RequestParam(defaultValue = "1") Integer curr, |
| | | @RequestParam(defaultValue = "10") Integer limit, |
| | | @RequestParam(required = false) String orderByField, |
| | | @RequestParam(required = false) String orderByType, |
| | | @RequestParam Map<String, Object> param) { |
| | | excludeTrash(param); |
| | | EntityWrapper<BasWrkStatus> wrapper = new EntityWrapper<>(); |
| | | convert(param, wrapper); |
| | | if (!Cools.isEmpty(orderByField)){wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType));} |
| | | if (!Cools.isEmpty(orderByField)) { |
| | | wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType)); |
| | | } |
| | | return R.ok(basWrkStatusService.selectPage(new Page<>(curr, limit), wrapper)); |
| | | } |
| | | |
| | | private <T> void convert(Map<String, Object> map, EntityWrapper<T> wrapper){ |
| | | for (Map.Entry<String, Object> entry : map.entrySet()){ |
| | | private <T> void convert(Map<String, Object> map, EntityWrapper<T> wrapper) { |
| | | for (Map.Entry<String, Object> entry : map.entrySet()) { |
| | | String val = String.valueOf(entry.getValue()); |
| | | if (val.contains(RANGE_TIME_LINK)){ |
| | | if (val.contains(RANGE_TIME_LINK)) { |
| | | String[] dates = val.split(RANGE_TIME_LINK); |
| | | wrapper.ge(entry.getKey(), DateUtils.convert(dates[0])); |
| | | wrapper.le(entry.getKey(), DateUtils.convert(dates[1])); |
| | |
| | | @RequestMapping(value = "/basWrkStatus/edit/auth") |
| | | @ManagerAuth |
| | | public R edit(BasWrkStatus basWrkStatus) { |
| | | if (Cools.isEmpty(basWrkStatus)){ |
| | | if (Cools.isEmpty(basWrkStatus)) { |
| | | return R.error(); |
| | | } |
| | | if (null == basWrkStatus.getWrkSts()){ |
| | | if (null == basWrkStatus.getWrkSts()) { |
| | | basWrkStatusService.insert(basWrkStatus); |
| | | } else { |
| | | basWrkStatusService.updateById(basWrkStatus); |
| | |
| | | return R.ok(); |
| | | } |
| | | |
| | | @RequestMapping(value = "/basWrkStatus/update/auth") |
| | | @RequestMapping(value = "/basWrkStatus/update/auth") |
| | | @ManagerAuth(memo = "工作状态修改") |
| | | public R update(BasWrkStatus basWrkStatus){ |
| | | if (Cools.isEmpty(basWrkStatus) || null==basWrkStatus.getWrkSts()){ |
| | | public R update(BasWrkStatus basWrkStatus) { |
| | | if (Cools.isEmpty(basWrkStatus) || null == basWrkStatus.getWrkSts()) { |
| | | return R.error(); |
| | | } |
| | | basWrkStatus.setModiUser(getUserId()); |
| | |
| | | |
| | | @RequestMapping(value = "/basWrkStatus/delete/auth") |
| | | @ManagerAuth(memo = "工作状态删除") |
| | | public R delete(@RequestParam String param){ |
| | | public R delete(@RequestParam String param) { |
| | | List<BasWrkStatus> list = JSONArray.parseArray(param, BasWrkStatus.class); |
| | | if (Cools.isEmpty(list)){ |
| | | if (Cools.isEmpty(list)) { |
| | | return R.error(); |
| | | } |
| | | for (BasWrkStatus entity : list){ |
| | | for (BasWrkStatus entity : list) { |
| | | basWrkStatusService.delete(new EntityWrapper<>(entity)); |
| | | } |
| | | return R.ok(); |
| | |
| | | |
| | | @RequestMapping(value = "/basWrkStatus/export/auth") |
| | | @ManagerAuth(memo = "工作状态导出") |
| | | public R export(@RequestBody JSONObject param){ |
| | | public R export(@RequestBody JSONObject param) { |
| | | List<String> fields = JSONObject.parseArray(param.getJSONArray("fields").toJSONString(), String.class); |
| | | EntityWrapper<BasWrkStatus> wrapper = new EntityWrapper<>(); |
| | | Map<String, Object> map = excludeTrash(param.getJSONObject("basWrkStatus")); |
| | |
| | | wrapper.like("wrk_desc", condition); |
| | | Page<BasWrkStatus> page = basWrkStatusService.selectPage(new Page<>(0, 20), wrapper); |
| | | List<Map<String, Object>> result = new ArrayList<>(); |
| | | for (BasWrkStatus basWrkStatus : page.getRecords()){ |
| | | for (BasWrkStatus basWrkStatus : page.getRecords()) { |
| | | Map<String, Object> map = new HashMap<>(); |
| | | map.put("id", basWrkStatus.getWrkSts()); |
| | | map.put("value", basWrkStatus.getWrkDesc()); |
| | |
| | | @ManagerAuth |
| | | public R query(@RequestBody JSONObject param) { |
| | | Wrapper<BasWrkStatus> wrapper = new EntityWrapper<BasWrkStatus>().eq(humpToLine(String.valueOf(param.get("key"))), param.get("val")); |
| | | if (null != basWrkStatusService.selectOne(wrapper)){ |
| | | if (null != basWrkStatusService.selectOne(wrapper)) { |
| | | return R.parse(BaseRes.REPEAT).add(getComment(BasWrkStatus.class, String.valueOf(param.get("key")))); |
| | | } |
| | | return R.ok(); |
| | |
| | | private ReportQueryMapper reportQueryMapper; |
| | | |
| | | @PostMapping("loc/pie/charts") |
| | | public R dsa(){ |
| | | Map<String,Object> map=new HashMap<String, Object>(); |
| | | List<ChartBean> list = new ArrayList<ChartBean>(); |
| | | public R dsa() { |
| | | Map<String, Object> map = new HashMap<String, Object>(); |
| | | List<ChartBean> list = new ArrayList<ChartBean>(); |
| | | |
| | | LocChartPie locUseRate = reportQueryMapper.getLocUseRate(); |
| | | if(locUseRate!=null) { |
| | | if (locUseRate != null) { |
| | | ChartBean fqty = new ChartBean(); |
| | | fqty.setName("在库库位"); |
| | | fqty.setY(locUseRate.getFqty()); |
| | |
| | | xqty.setY(locUseRate.getXqty()); |
| | | list.add(xqty); |
| | | } |
| | | map.put("rows",list); |
| | | map.put("rows", list); |
| | | return R.ok(map); |
| | | } |
| | | |
| | | @PostMapping("locIo/line/charts") |
| | | public R locIoLineCharts(){ |
| | | Map<String,Object> map=new HashMap<String, Object>(); |
| | | public R locIoLineCharts() { |
| | | Map<String, Object> map = new HashMap<String, Object>(); |
| | | List<AxisBean> list = new ArrayList<AxisBean>(); |
| | | |
| | | List<WorkChartAxis> listChart = reportQueryMapper.getChartAxis(); |
| | | |
| | | if(listChart!=null) { |
| | | if (listChart != null) { |
| | | ArrayList<Integer> data1 = new ArrayList<Integer>(); |
| | | ArrayList<Integer> data2 = new ArrayList<Integer>(); |
| | | |
| | | SimpleDateFormat sf = new SimpleDateFormat("yyyy-MM-dd"); |
| | | Calendar calendar = Calendar.getInstance(); |
| | | calendar.add(Calendar.DATE, -12); |
| | | for(int i=0;i<12;i++) { |
| | | for (int i = 0; i < 12; i++) { |
| | | boolean flag = true; |
| | | calendar.add(Calendar.DATE, 1); |
| | | String str = sf.format(calendar.getTime()); |
| | | for(WorkChartAxis workChart : listChart) { |
| | | if(str.equals(workChart.getYmd())) { |
| | | for (WorkChartAxis workChart : listChart) { |
| | | if (str.equals(workChart.getYmd())) { |
| | | data1.add(workChart.getInqty()); |
| | | data2.add(workChart.getOutqty()); |
| | | flag = false; |
| | | break; |
| | | } |
| | | } |
| | | if(flag) { |
| | | if (flag) { |
| | | data1.add(0); |
| | | data2.add(0); |
| | | } |
| | |
| | | outqty.setData(data2.toArray(array2)); |
| | | list.add(outqty); |
| | | } |
| | | map.put("rows",list); |
| | | map.put("rows", list); |
| | | return R.ok(map); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | } |
| | |
| | | |
| | | @RequestMapping(value = "/docType/list/auth") |
| | | @ManagerAuth |
| | | public R list(@RequestParam(defaultValue = "1")Integer curr, |
| | | @RequestParam(defaultValue = "10")Integer limit, |
| | | @RequestParam(required = false)String orderByField, |
| | | @RequestParam(required = false)String orderByType, |
| | | @RequestParam Map<String, Object> param){ |
| | | public R list(@RequestParam(defaultValue = "1") Integer curr, |
| | | @RequestParam(defaultValue = "10") Integer limit, |
| | | @RequestParam(required = false) String orderByField, |
| | | @RequestParam(required = false) String orderByType, |
| | | @RequestParam Map<String, Object> param) { |
| | | EntityWrapper<DocType> wrapper = new EntityWrapper<>(); |
| | | excludeTrash(param); |
| | | convert(param, wrapper); |
| | | if (!Cools.isEmpty(orderByField)){wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType));} |
| | | if (!Cools.isEmpty(orderByField)) { |
| | | wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType)); |
| | | } |
| | | return R.ok(docTypeService.selectPage(new Page<>(curr, limit), wrapper)); |
| | | } |
| | | |
| | | private <T> void convert(Map<String, Object> map, EntityWrapper<T> wrapper){ |
| | | for (Map.Entry<String, Object> entry : map.entrySet()){ |
| | | private <T> void convert(Map<String, Object> map, EntityWrapper<T> wrapper) { |
| | | for (Map.Entry<String, Object> entry : map.entrySet()) { |
| | | String val = String.valueOf(entry.getValue()); |
| | | if (val.contains(RANGE_TIME_LINK)){ |
| | | if (val.contains(RANGE_TIME_LINK)) { |
| | | String[] dates = val.split(RANGE_TIME_LINK); |
| | | wrapper.ge(entry.getKey(), DateUtils.convert(dates[0])); |
| | | wrapper.le(entry.getKey(), DateUtils.convert(dates[1])); |
| | |
| | | return R.ok(); |
| | | } |
| | | |
| | | @RequestMapping(value = "/docType/update/auth") |
| | | @ManagerAuth |
| | | public R update(DocType docType){ |
| | | if (Cools.isEmpty(docType) || null==docType.getDocId()){ |
| | | @RequestMapping(value = "/docType/update/auth") |
| | | @ManagerAuth |
| | | public R update(DocType docType) { |
| | | if (Cools.isEmpty(docType) || null == docType.getDocId()) { |
| | | return R.error(); |
| | | } |
| | | docType.setUpdateBy(getUserId()); |
| | |
| | | |
| | | @RequestMapping(value = "/docType/delete/auth") |
| | | @ManagerAuth |
| | | public R delete(@RequestParam(value="ids[]") Long[] ids){ |
| | | for (Long id : ids){ |
| | | public R delete(@RequestParam(value = "ids[]") Long[] ids) { |
| | | for (Long id : ids) { |
| | | docTypeService.deleteById(id); |
| | | } |
| | | return R.ok(); |
| | |
| | | |
| | | @RequestMapping(value = "/docType/export/auth") |
| | | @ManagerAuth |
| | | public R export(@RequestBody JSONObject param){ |
| | | public R export(@RequestBody JSONObject param) { |
| | | EntityWrapper<DocType> wrapper = new EntityWrapper<>(); |
| | | List<String> fields = JSONObject.parseArray(param.getJSONArray("fields").toJSONString(), String.class); |
| | | Map<String, Object> map = excludeTrash(param.getJSONObject("docType")); |
| | |
| | | wrapper.eq("status", 1); |
| | | Page<DocType> page = docTypeService.selectPage(new Page<>(0, 30), wrapper); |
| | | List<Map<String, Object>> result = new ArrayList<>(); |
| | | for (DocType docType : page.getRecords()){ |
| | | for (DocType docType : page.getRecords()) { |
| | | Map<String, Object> map = new HashMap<>(); |
| | | map.put("id", docType.getDocId()); |
| | | map.put("value", docType.getDocName()); |
| | |
| | | @ManagerAuth |
| | | public R query(@RequestBody JSONObject param) { |
| | | Wrapper<DocType> wrapper = new EntityWrapper<DocType>().eq(humpToLine(String.valueOf(param.get("key"))), param.get("val")); |
| | | if (null != docTypeService.selectOne(wrapper)){ |
| | | if (null != docTypeService.selectOne(wrapper)) { |
| | | return R.parse(BaseRes.REPEAT).add(getComment(DocType.class, String.valueOf(param.get("key")))); |
| | | } |
| | | return R.ok(); |
| | |
| | | } |
| | | param.remove("crn_no"); |
| | | convert(param, wrapper); |
| | | wrapper.orderBy("appe_time",true); |
| | | wrapper.orderBy("appe_time", true); |
| | | Page<LocDetl> locDetlPage = locDetlService.selectPage(new Page<>(curr, limit), wrapper); |
| | | if (locDetlPage.getRecords().size() == 0) { |
| | | locDetlPage = locDetlService.selectPage(new Page<>(1, limit), wrapper); |
| | |
| | | |
| | | @RequestMapping(value = "/locMast/list/auth") |
| | | @ManagerAuth |
| | | public R list(@RequestParam(defaultValue = "1")Integer curr, |
| | | @RequestParam(defaultValue = "10")Integer limit, |
| | | @RequestParam(required = false)String orderByField, |
| | | @RequestParam(required = false)String orderByType, |
| | | @RequestParam Map<String, Object> param){ |
| | | public R list(@RequestParam(defaultValue = "1") Integer curr, |
| | | @RequestParam(defaultValue = "10") Integer limit, |
| | | @RequestParam(required = false) String orderByField, |
| | | @RequestParam(required = false) String orderByType, |
| | | @RequestParam Map<String, Object> param) { |
| | | excludeTrash(param); |
| | | EntityWrapper<LocMast> wrapper = new EntityWrapper<>(); |
| | | convert(param, wrapper); |
| | | // 不同继承角色显示不同库信息 |
| | | RoleUtils.addRoleWrapperByCrn(getUserId(),wrapper); |
| | | if (!Cools.isEmpty(orderByField)){wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType));} |
| | | RoleUtils.addRoleWrapperByCrn(getUserId(), wrapper); |
| | | if (!Cools.isEmpty(orderByField)) { |
| | | wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType)); |
| | | } |
| | | return R.ok(locMastService.selectPage(new Page<>(curr, limit), wrapper)); |
| | | } |
| | | |
| | | @RequestMapping(value = "/locMast/crn/list/auth") |
| | | @ManagerAuth |
| | | public R crnList(@RequestParam(defaultValue = "1")Integer curr, |
| | | @RequestParam(defaultValue = "10")Integer limit, |
| | | @RequestParam(required = false)String orderByField, |
| | | @RequestParam(required = false)String orderByType, |
| | | @RequestParam Map<String, Object> param){ |
| | | public R crnList(@RequestParam(defaultValue = "1") Integer curr, |
| | | @RequestParam(defaultValue = "10") Integer limit, |
| | | @RequestParam(required = false) String orderByField, |
| | | @RequestParam(required = false) String orderByType, |
| | | @RequestParam Map<String, Object> param) { |
| | | excludeTrash(param); |
| | | EntityWrapper<LocMast> wrapper = new EntityWrapper<>(); |
| | | convert(param, wrapper); |
| | | wrapper.in("crn_no", 1,2); |
| | | if (!Cools.isEmpty(orderByField)){wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType));} |
| | | wrapper.in("crn_no", 1, 2); |
| | | if (!Cools.isEmpty(orderByField)) { |
| | | wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType)); |
| | | } |
| | | return R.ok(locMastService.selectPage(new Page<>(curr, limit), wrapper)); |
| | | } |
| | | |
| | | private <T> void convert(Map<String, Object> map, EntityWrapper<T> wrapper){ |
| | | private <T> void convert(Map<String, Object> map, EntityWrapper<T> wrapper) { |
| | | boolean sign = false; |
| | | for (Map.Entry<String, Object> entry : map.entrySet()){ |
| | | for (Map.Entry<String, Object> entry : map.entrySet()) { |
| | | String val = String.valueOf(entry.getValue()); |
| | | if (val.contains(RANGE_TIME_LINK)){ |
| | | if (val.contains(RANGE_TIME_LINK)) { |
| | | String[] dates = val.split(RANGE_TIME_LINK); |
| | | wrapper.ge(entry.getKey(), DateUtils.convert(dates[0])); |
| | | wrapper.le(entry.getKey(), DateUtils.convert(dates[1])); |
| | | } else if (entry.getKey().equals("loc_no")){ |
| | | } else if (entry.getKey().equals("loc_no")) { |
| | | wrapper.like(entry.getKey(), val); |
| | | } else { |
| | | if (entry.getKey().equals("loc_type1")){ |
| | | sign=true; |
| | | if (entry.getKey().equals("loc_type1")) { |
| | | sign = true; |
| | | } |
| | | wrapper.eq(entry.getKey(), val); |
| | | } |
| | | } |
| | | if (sign){ |
| | | wrapper.and().ne("loc_sts","Y"); |
| | | if (sign) { |
| | | wrapper.and().ne("loc_sts", "Y"); |
| | | } |
| | | } |
| | | |
| | |
| | | return R.ok(); |
| | | } |
| | | |
| | | @RequestMapping(value = "/locMast/update/auth") |
| | | @ManagerAuth(memo = "库位修改") |
| | | public R update(LocMast locMast){ |
| | | if (Cools.isEmpty(locMast) || null==locMast.getLocNo()){ |
| | | @RequestMapping(value = "/locMast/update/auth") |
| | | @ManagerAuth(memo = "库位修改") |
| | | public R update(LocMast locMast) { |
| | | if (Cools.isEmpty(locMast) || null == locMast.getLocNo()) { |
| | | return R.error(); |
| | | } |
| | | LocMast oldLocMast = locMastService.selectById(locMast.getLocNo()); |
| | |
| | | locDetlService.delete(new EntityWrapper<LocDetl>().eq("loc_no", locMast.getLocNo())); |
| | | } |
| | | } |
| | | if (locMast.getLocSts().equals("O")){ |
| | | if (locMast.getLocSts().equals("O")) { |
| | | locMast.setBarcode(""); |
| | | } |
| | | locMast.setModiUser(getUserId()); |
| | |
| | | |
| | | @RequestMapping(value = "/locMast/delete/auth") |
| | | @ManagerAuth(memo = "库位删除") |
| | | public R delete(@RequestParam String param){ |
| | | public R delete(@RequestParam String param) { |
| | | List<LocMast> list = JSONArray.parseArray(param, LocMast.class); |
| | | if (Cools.isEmpty(list)){ |
| | | if (Cools.isEmpty(list)) { |
| | | return R.error(); |
| | | } |
| | | for (LocMast entity : list){ |
| | | for (LocMast entity : list) { |
| | | locMastService.delete(new EntityWrapper<>(entity)); |
| | | } |
| | | return R.ok(); |
| | |
| | | |
| | | @RequestMapping(value = "/locMast/export/auth") |
| | | @ManagerAuth(memo = "库位导出") |
| | | public R export(@RequestBody JSONObject param){ |
| | | public R export(@RequestBody JSONObject param) { |
| | | List<String> fields = JSONObject.parseArray(param.getJSONArray("fields").toJSONString(), String.class); |
| | | EntityWrapper<LocMast> wrapper = new EntityWrapper<>(); |
| | | Map<String, Object> map = excludeTrash(param.getJSONObject("locMast")); |
| | |
| | | wrapper.like("loc_no", condition); |
| | | Page<LocMast> page = locMastService.selectPage(new Page<>(0, 10), wrapper); |
| | | List<Map<String, Object>> result = new ArrayList<>(); |
| | | for (LocMast locMast : page.getRecords()){ |
| | | for (LocMast locMast : page.getRecords()) { |
| | | Map<String, Object> map = new HashMap<>(); |
| | | map.put("id", locMast.getLocNo()); |
| | | map.put("value", locMast.getLocNo()); |
| | |
| | | @ManagerAuth |
| | | public R query(@RequestBody JSONObject param) { |
| | | Wrapper<LocMast> wrapper = new EntityWrapper<LocMast>().eq(humpToLine(String.valueOf(param.get("key"))), param.get("val")); |
| | | if (null != locMastService.selectOne(wrapper)){ |
| | | if (null != locMastService.selectOne(wrapper)) { |
| | | return R.parse(BaseRes.REPEAT).add(getComment(LocMast.class, String.valueOf(param.get("key")))); |
| | | } |
| | | return R.ok(); |
| | |
| | | @ManagerAuth(memo = "初始化库位") |
| | | // @Transactional |
| | | public R init(LocMastInitParam param) { |
| | | try{ |
| | | try { |
| | | List<LocMast> list = new ArrayList<>(); |
| | | BasWhs basWhs = basWhsService.selectByIdentifying(param.getIdentifying()); |
| | | if (Cools.isEmpty(basWhs)){ |
| | | if (Cools.isEmpty(basWhs)) { |
| | | return R.error("库型不存在!!!"); |
| | | } |
| | | for (int r=param.getStartRow(); r<=param.getEndRow(); r++){ |
| | | for (int b=param.getStartBay(); b<=param.getEndBay(); b++) { |
| | | for (int l=param.getStartLev(); l<=param.getEndLev(); l++) { |
| | | for (int r = param.getStartRow(); r <= param.getEndRow(); r++) { |
| | | for (int b = param.getStartBay(); b <= param.getEndBay(); b++) { |
| | | for (int l = param.getStartLev(); l <= param.getEndLev(); l++) { |
| | | // 获取库位号 |
| | | String locNo = String.format("%02d", r) + String.format("%03d", b) + String.format("%02d", l); |
| | | // 获取堆垛机号 |
| | | int crnNo = 0; |
| | | try{ |
| | | Shelves shelves = new Shelves(param.getEndRow() - param.getStartRow() + 1, param.getCrnAmount(),param.getStartRow()); |
| | | for (List<Integer> node : shelves.nodes){ |
| | | try { |
| | | Shelves shelves = new Shelves(param.getEndRow() - param.getStartRow() + 1, param.getCrnAmount(), param.getStartRow()); |
| | | for (List<Integer> node : shelves.nodes) { |
| | | |
| | | if (node.contains(r)) { |
| | | if (!Cools.isEmpty(param.getStaCrn()) && param.getStaCrn() > 0){ |
| | | if (!Cools.isEmpty(param.getStaCrn()) && param.getStaCrn() > 0) { |
| | | crnNo = shelves.nodes.indexOf(node) + param.getStaCrn(); |
| | | }else { |
| | | } else { |
| | | crnNo = shelves.nodes.indexOf(node) + 1; |
| | | } |
| | | |
| | | break; |
| | | } |
| | | } |
| | | }catch (Exception e){ |
| | | } catch (Exception e) { |
| | | throw new Exception("解析堆垛机号失败,请填写正确的数据!!!"); |
| | | } |
| | | |
| | | Date now = new Date(); |
| | | Date now = new Date(); |
| | | LocMast locMast = new LocMast(); |
| | | locMast.setLocNo(locNo); |
| | | locMast.setLocSts("O"); |
| | |
| | | } |
| | | } |
| | | } |
| | | if (!Cools.isEmpty(param.getEnable()) && param.getEnable() == 1){ |
| | | if (!Cools.isEmpty(param.getEnable()) && param.getEnable() == 1) { |
| | | locMastService.delete(new EntityWrapper<>()); |
| | | } |
| | | locMastService.insertBatch(list); |
| | | return R.ok("初始化成功"); |
| | | }catch (Exception e){ |
| | | return R.error("初始化失败===>"+e.getMessage()); |
| | | } catch (Exception e) { |
| | | return R.error("初始化失败===>" + e.getMessage()); |
| | | } |
| | | } |
| | | } |
| | |
| | | import com.zy.asrs.entity.*; |
| | | import com.zy.asrs.entity.param.*; |
| | | import com.zy.asrs.entity.result.MobileAdjustResult; |
| | | import com.zy.asrs.mapper.ManLocDetlMapper; |
| | | import com.zy.asrs.service.*; |
| | | import com.zy.common.model.WrkDto; |
| | | import com.zy.common.service.CommonService; |
| | |
| | | @RestController |
| | | @RequestMapping("mobile") |
| | | @Slf4j |
| | | public class MobileController extends BaseController { |
| | | public class MobileController extends BaseController { |
| | | |
| | | @Autowired |
| | | private MobileService mobileService; |
| | |
| | | @Autowired |
| | | private PackService packService; |
| | | @Autowired |
| | | private ManLocDetlMapper manLocDetlMapper; |
| | | @Autowired |
| | | private WrkDetlLogService wrkDetlLogService; |
| | | @Autowired |
| | | private CommonService commonService; |
| | |
| | | |
| | | @PostMapping("/agv/start") |
| | | @ManagerAuth |
| | | public R pdaAgvStart(@RequestBody Map<String,Object> map){ |
| | | public R pdaAgvStart(@RequestBody Map<String, Object> map) { |
| | | |
| | | if (Cools.isEmpty(map.get("sta"))) { |
| | | return R.parse("暂存位不能为空"); |
| | |
| | | |
| | | @PostMapping("/agv/unbind") |
| | | @ManagerAuth |
| | | public R pdaAgvUnbind(@RequestBody Map<String,Object> map){ |
| | | public R pdaAgvUnbind(@RequestBody Map<String, Object> map) { |
| | | |
| | | String site = (String) map.get("site"); // 暂存位 |
| | | |
| | |
| | | return mobileService.unbind(site); |
| | | } |
| | | |
| | | private void getAgvTaskParam(ForwardAGVTaskParam agvTaskCreateParam,String agv,String sta){ |
| | | private void getAgvTaskParam(ForwardAGVTaskParam agvTaskCreateParam, String agv, String sta) { |
| | | List<ForwardAGVTaskParam.PositionCodePaths> agvTaskParamList = Arrays.asList( |
| | | //起始位 |
| | | new ForwardAGVTaskParam.PositionCodePaths(agv,"05"), |
| | | new ForwardAGVTaskParam.PositionCodePaths(agv, "05"), |
| | | //目标位 |
| | | new ForwardAGVTaskParam.PositionCodePaths(sta,"05") |
| | | new ForwardAGVTaskParam.PositionCodePaths(sta, "05") |
| | | ); |
| | | Date date = new Date(); |
| | | DecimalFormat df = new DecimalFormat("0000"); |
| | | String wrkNo = "Crn"+date.getTime()/1000; |
| | | String wrkNo = "Crn" + date.getTime() / 1000; |
| | | agvTaskCreateParam.setReqCode(wrkNo); |
| | | agvTaskCreateParam.setReqTime(new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date())); |
| | | agvTaskCreateParam.setTaskTyp("GT1"); |
| | |
| | | |
| | | } |
| | | |
| | | private String forwardAGVHttpRequest(Object requestParam, String url, String path){ |
| | | private String forwardAGVHttpRequest(Object requestParam, String url, String path) { |
| | | String response = ""; |
| | | String success = "error"; |
| | | try { |
| | |
| | | JSONObject jsonObject = JSON.parseObject(response); |
| | | |
| | | String message = jsonObject.get("code").toString(); |
| | | if(("0").equals(message) || ("请求编号已存在").contains(message)){ |
| | | if (("0").equals(message) || ("请求编号已存在").contains(message)) { |
| | | success = "SUCCESS"; |
| | | }else { |
| | | } else { |
| | | success = message; |
| | | } |
| | | log.info("转发agv任务:请求体:"+JSONObject.toJSONString(requestParam)+",返回值:"+jsonObject); |
| | | }catch (Exception e){ |
| | | log.info("转发agv任务:请求体:" + JSONObject.toJSONString(requestParam) + ",返回值:" + jsonObject); |
| | | } catch (Exception e) { |
| | | |
| | | } |
| | | return success; |
| | |
| | | |
| | | @RequestMapping("/select/workDetl/barcode") |
| | | @ManagerAuth |
| | | public R selectWorkDetlBarcode(@RequestBody Map<String,Object> map) { |
| | | public R selectWorkDetlBarcode(@RequestBody Map<String, Object> map) { |
| | | String barcode = map.get("barcode").toString(); |
| | | if (Cools.isEmpty(barcode)) { |
| | | return R.error("条码为空"); |
| | |
| | | |
| | | @RequestMapping("/leftovers/out") |
| | | @ManagerAuth |
| | | public R leftoversOut(@RequestBody Map<String,Object> map) { |
| | | mobileService.leftoversOut(map,getUserId()); |
| | | public R leftoversOut(@RequestBody Map<String, Object> map) { |
| | | mobileService.leftoversOut(map, getUserId()); |
| | | |
| | | |
| | | return R.ok(); |
| | | } |
| | | |
| | | // 商品上架 |
| | | @RequestMapping("/mat/onSale/auth") |
| | | @ManagerAuth |
| | | public R matOnSale(@RequestBody CombParam combParam){ |
| | | mobileService.onSale(combParam); |
| | | return R.ok("上架成功"); |
| | | } |
| | | // 商品下架 |
| | | @RequestMapping("/mat/offSale/auth") |
| | | //@ManagerAuth |
| | | public R matOffSale(@RequestBody OffSaleParam offSaleParam){ |
| | | mobileService.offSale(offSaleParam); |
| | | return R.ok("下架成功"); |
| | | } |
| | | |
| | | |
| | | |
| | | // 组托 ---------------------------------------------------------------------------------------------------- |
| | |
| | | // } |
| | | @RequestMapping("/order/search/orderNo/auth") |
| | | @ManagerAuth |
| | | public R orderSearchByBarcode(@RequestParam String orderNo){ |
| | | if (Cools.isEmpty(orderNo)){ |
| | | orderNo=null; |
| | | public R orderSearchByBarcode(@RequestParam String orderNo) { |
| | | if (Cools.isEmpty(orderNo)) { |
| | | orderNo = null; |
| | | } |
| | | List<Order> orders = orderService.selectorderNoL(orderNo); |
| | | if (Cools.isEmpty(orders)){ |
| | | if (Cools.isEmpty(orders)) { |
| | | return R.ok(); |
| | | } |
| | | LinkedList<CombParam> combParams = new LinkedList<>(); |
| | | if (!Cools.isEmpty(orders)){ |
| | | for (Order order:orders){ |
| | | CombParam combParam=new CombParam(); |
| | | if (!Cools.isEmpty(orders)) { |
| | | for (Order order : orders) { |
| | | CombParam combParam = new CombParam(); |
| | | if (order == null) { |
| | | continue; |
| | | } |
| | |
| | | List<OrderDetl> orderDetls = orderService.selectWorkingDetls(order.getId()); |
| | | if (!Cools.isEmpty(orderDetls)) { |
| | | LinkedList<CombParam.CombMat> combMats = new LinkedList<>(); |
| | | for (OrderDetl orderDetl:orderDetls){ |
| | | for (OrderDetl orderDetl : orderDetls) { |
| | | CombParam.CombMat combMat = new CombParam.CombMat(); |
| | | combMat.setMatnr(orderDetl.getMatnr()); |
| | | combMat.setBatch(orderDetl.getBatch()); |
| | | combMat.setAnfme(orderDetl.getAnfme()-orderDetl.getWorkQty()); |
| | | combMat.setAnfme(orderDetl.getAnfme() - orderDetl.getWorkQty()); |
| | | combMat.setMaktx(orderDetl.getMaktx()); |
| | | combMat.setSpecs(orderDetl.getSpecs()); |
| | | combMats.add(combMat); |
| | |
| | | |
| | | @RequestMapping("/comb/auth") |
| | | @ManagerAuth(memo = "组托") |
| | | public R comb(@RequestBody CombParam combParam){ |
| | | log.info("组托:"+JSONObject.toJSONString(combParam)); |
| | | public R comb(@RequestBody CombParam combParam) { |
| | | log.info("组托:" + JSONObject.toJSONString(combParam)); |
| | | if (Cools.isEmpty(combParam.getBarcode(), combParam.getCombMats())) { |
| | | throw new CoolException(BaseRes.PARAM); |
| | | } |
| | | WrkMast wrkMast = wrkMastService.selectOne(new EntityWrapper<WrkMast>() |
| | | .eq("barcode", combParam.getBarcode()) |
| | | .eq("io_type", 104) |
| | | .in("wrk_sts", 14,105)); |
| | | .in("wrk_sts", 14, 105)); |
| | | if (Cools.isEmpty(wrkMast)) { |
| | | mobileService.comb(combParam, getUserId()); |
| | | return R.ok("组托成功"); |
| | | }else { |
| | | } else { |
| | | mobileService.mergeComb(combParam, getUserId()); |
| | | return R.ok("并板成功"); |
| | | } |
| | |
| | | |
| | | } |
| | | |
| | | @RequestMapping("/pingKu/Shelves/auth") |
| | | @ManagerAuth(memo = "平库上架") |
| | | public R pingKuShelves(@RequestBody CombParam combParam){ |
| | | if (Cools.isEmpty(combParam.getLocno(), combParam.getCombMats())) { |
| | | throw new CoolException(BaseRes.PARAM); |
| | | } |
| | | mobileService.pingKuShelves(combParam, getUserId()); |
| | | |
| | | return R.ok(); |
| | | } |
| | | |
| | | @RequestMapping("/pingKu/unShelves/auth") |
| | | @ManagerAuth(memo = "平库下架") |
| | | public R pingKuUnShelves(@RequestBody CombParam combParam){ |
| | | if (Cools.isEmpty(combParam.getLocno(), combParam.getCombMats())) { |
| | | throw new CoolException(BaseRes.PARAM); |
| | | } |
| | | mobileService.pingKuUnShelves(combParam, getUserId()); |
| | | |
| | | return R.ok(); |
| | | } |
| | | |
| | | @RequestMapping("/pack/get/auth") |
| | | @ManagerAuth |
| | | public R packGet(@RequestParam String barcode){ |
| | | public R packGet(@RequestParam String barcode) { |
| | | Pack pack = packService.selectByBarcode(barcode); |
| | | if (pack == null) { |
| | | return R.ok(); |
| | |
| | | |
| | | @RequestMapping("/pack/comb/auth") |
| | | @ManagerAuth(memo = "下线组托") |
| | | public R packComb(@RequestBody CombParam combParam){ |
| | | public R packComb(@RequestBody CombParam combParam) { |
| | | mobileService.packComb(combParam, getUserId()); |
| | | return R.ok("组托成功"); |
| | | } |
| | |
| | | @Deprecated |
| | | public R pakoutQuery(@RequestParam(required = false) String barcode, |
| | | @RequestParam(required = false) Integer staNo, |
| | | @RequestParam(required = false) String matnr){ |
| | | @RequestParam(required = false) String matnr) { |
| | | if (Cools.isEmpty(barcode) && Cools.isEmpty(matnr)) { |
| | | return R.ok(); |
| | | } |
| | |
| | | */ |
| | | @RequestMapping("/pakout/confirm/barcode/auth") |
| | | @ManagerAuth |
| | | public R pakoutQueryByBarcode(@RequestParam(required = false) String barcode){ |
| | | public R pakoutQueryByBarcode(@RequestParam(required = false) String barcode) { |
| | | if (Cools.isEmpty(barcode)) { |
| | | return R.ok(); |
| | | } |
| | |
| | | */ |
| | | @RequestMapping("/pakout/confirm/goods/auth") //待完善 原因(客户未给出详细信息) |
| | | @ManagerAuth |
| | | public R pakoutQueryByGoods(@RequestBody GDYKConfirmGoodsParam combParam){ |
| | | public R pakoutQueryByGoods(@RequestBody GDYKConfirmGoodsParam combParam) { |
| | | if (Cools.isEmpty(combParam)) { |
| | | return R.ok(); |
| | | } |
| | | // List<Order> orders = orderService.selectorderNoL(batch); |
| | | OrderDetl orderDetl = orderDetlService.selectOne(new EntityWrapper<OrderDetl>().eq("matnr", combParam.getMatnr()).eq("batch", combParam.getBatch()).eq("order_no",combParam.getOrderNo())); |
| | | if (Cools.isEmpty(orderDetl)){ |
| | | OrderDetl orderDetl = orderDetlService.selectOne(new EntityWrapper<OrderDetl>().eq("matnr", combParam.getMatnr()).eq("batch", combParam.getBatch()).eq("order_no", combParam.getOrderNo())); |
| | | if (Cools.isEmpty(orderDetl)) { |
| | | return R.error("未查到数据"); |
| | | } |
| | | if (!orderDetl.getQty$().equals("已完成")){ |
| | | if (!orderDetl.getQty$().equals("已完成")) { |
| | | return R.error("任务未完成"); |
| | | } |
| | | //复核数 |
| | |
| | | return R.ok(); |
| | | } |
| | | |
| | | // 根据库位码和商品码搜索商品 |
| | | @RequestMapping("/mat/find/auth") |
| | | public R find(@RequestParam(required = false) String locNo |
| | | , @RequestParam(required = false) String matnr){ |
| | | //List<ManLocDetl> manLocDetls = manLocDetlMapper.selectItem0(locNo, matnr); |
| | | ManLocDetl manLocDetl = manLocDetlMapper.selectLocNo0(locNo, matnr); |
| | | return R.ok(manLocDetl); |
| | | //return R.ok(manLocDetlMapper.selectItem0(locNo, matnr)); |
| | | } |
| | | |
| | | /** |
| | | * 出库确认 - 拣料出库 - 选择具体条码商品 |
| | |
| | | @RequestMapping("/pakout/confirm/pick/auth") |
| | | @ManagerAuth |
| | | public R pakoutQueryByBarcode(@RequestParam(required = false) Integer wrkNo |
| | | , @RequestParam(required = false) String matnr){ |
| | | , @RequestParam(required = false) String matnr) { |
| | | if (Cools.isEmpty(wrkNo)) { |
| | | return R.ok(); |
| | | } |
| | |
| | | |
| | | @RequestMapping("/adjust/auth") |
| | | @ManagerAuth(memo = "盘点") |
| | | public R adjust(@RequestBody MobileAdjustParam combParam){ |
| | | public R adjust(@RequestBody MobileAdjustParam combParam) { |
| | | mobileService.adjust(combParam, getUserId()); |
| | | return R.ok("盘点成功"); |
| | | } |
| | | |
| | | @RequestMapping("/pda/adjust/auth") |
| | | @ManagerAuth(memo = "pda盘点") |
| | | public R pdaAdjust(@RequestBody pdaAdjustParam param){ |
| | | mobileService.pdaAdjust(param,getUserId()); |
| | | return R.ok("盘点成功"); |
| | | } |
| | | |
| | | |
| | | @PostMapping("/order/out/pakout/auth") |
| | | @ManagerAuth(memo = "订单出库") |
| | | public synchronized R pakoutByOrder(@RequestBody JSONObject param) { |
| | | if(!param.containsKey("staNo") || !param.containsKey("orderNo")){ |
| | | if (!param.containsKey("staNo") || !param.containsKey("orderNo")) { |
| | | return R.parse(BaseRes.PARAM); |
| | | } |
| | | mobileService.pakoutByOrder(param,getUserId()); |
| | | mobileService.pakoutByOrder(param, getUserId()); |
| | | return R.ok("出库成功"); |
| | | } |
| | | |
| | | @GetMapping("/checkOut/submit/auth") |
| | | @ManagerAuth(memo = "盘点上传") |
| | | public R CheckOutUploadERP(@RequestParam String orderId){ |
| | | mobileService.inventoryUpload(orderId); |
| | | return R.ok("盘点成功"); |
| | | } |
| | | |
| | | |
| | | @RequestMapping("/ddd/ddd") |
| | |
| | | public R ddd() { |
| | | int w = 99999; |
| | | for (int i = 17; i <= 37; i++) { |
| | | for (int j = 8;j<=14;j++){ |
| | | LocMast locMast = locMastService.selectOne(new EntityWrapper<LocMast>().eq("row1", i).eq("bay1", j).eq("lev1", 1)); |
| | | LocMast locMast2 = locMastService.selectOne(new EntityWrapper<LocMast>().eq("row1", i).eq("bay1", j).eq("lev1", 2)); |
| | | LocMast locMast3 = locMastService.selectOne(new EntityWrapper<LocMast>().eq("row1", i).eq("bay1", j).eq("lev1", 3)); |
| | | for (int j = 8; j <= 14; j++) { |
| | | LocMast locMast = locMastService.selectOne(new EntityWrapper<LocMast>().eq("row1", i).eq("bay1", j).eq("lev1", 1)); |
| | | LocMast locMast2 = locMastService.selectOne(new EntityWrapper<LocMast>().eq("row1", i).eq("bay1", j).eq("lev1", 2)); |
| | | LocMast locMast3 = locMastService.selectOne(new EntityWrapper<LocMast>().eq("row1", i).eq("bay1", j).eq("lev1", 3)); |
| | | // LocMast locMast4 = locMastService.selectOne(new EntityWrapper<LocMast>().eq("row1", 26).eq("bay1", i).eq("lev1", 1)); |
| | | if (locMast.getGro1() == 999){ |
| | | continue; |
| | | } |
| | | if (locMast.getGro1() == 999) { |
| | | continue; |
| | | } |
| | | // locMast.setGro1(w); |
| | | // locMast.setGro1(locMast.getGro1()+1000); |
| | | locMast2.setGro1(locMast.getGro1()+1000); |
| | | locMast3.setGro1(locMast.getGro1()+2000); |
| | | locMast2.setGro1(locMast.getGro1() + 1000); |
| | | locMast3.setGro1(locMast.getGro1() + 2000); |
| | | // locMast4.setGro1(w); |
| | | // locMastService.updateById(locMast); |
| | | locMastService.updateById(locMast2); |
| | | locMastService.updateById(locMast3); |
| | | locMastService.updateById(locMast2); |
| | | locMastService.updateById(locMast3); |
| | | // locMastService.updateById(locMast4); |
| | | w++; |
| | | } |
| | | w++; |
| | | } |
| | | } |
| | | // for (int i = 17; i <=37; i++) { |
| | | // LocMast locMast = locMastService.selectOne(new EntityWrapper<LocMast>().eq("row1", i).eq("bay1", 3).eq("lev1", 1)); |
| | |
| | | return R.ok(); |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | } |
| | |
| | | import com.core.common.DateUtils; |
| | | import com.core.common.R; |
| | | import com.core.exception.CoolException; |
| | | import com.zy.asrs.entity.ManLocDetl; |
| | | import com.zy.asrs.entity.Node; |
| | | import com.zy.asrs.entity.param.InitPakoutParam; |
| | | import com.zy.asrs.entity.param.PakinParam; |
| | | import com.zy.asrs.entity.result.KeyValueVo; |
| | | import com.zy.asrs.mapper.ManLocDetlMapper; |
| | | import com.zy.asrs.service.NodeService; |
| | | import com.zy.common.entity.NodeExcel; |
| | | import com.zy.common.entity.NodeExcelListener; |
| | |
| | | import java.net.URLEncoder; |
| | | import java.util.*; |
| | | |
| | | import static jdk.nashorn.api.scripting.ScriptUtils.convert; |
| | | |
| | | @RestController |
| | | public class NodeController extends BaseController { |
| | | |
| | |
| | | private NodeService nodeService; |
| | | @Autowired |
| | | private TreeUtils treeUtils; |
| | | @Autowired |
| | | private ManLocDetlMapper manLocDetlMapper; |
| | | |
| | | @RequestMapping(value = "/node/{id}/auth") |
| | | @ManagerAuth |
| | |
| | | |
| | | @RequestMapping(value = "/node/list/auth") |
| | | @ManagerAuth |
| | | public R list(@RequestParam(defaultValue = "1")Integer curr, |
| | | @RequestParam(defaultValue = "10")Integer limit, |
| | | @RequestParam(required = false)String orderByField, |
| | | @RequestParam(required = false)String orderByType, |
| | | @RequestParam Map<String, Object> param){ |
| | | public R list(@RequestParam(defaultValue = "1") Integer curr, |
| | | @RequestParam(defaultValue = "10") Integer limit, |
| | | @RequestParam(required = false) String orderByField, |
| | | @RequestParam(required = false) String orderByType, |
| | | @RequestParam Map<String, Object> param) { |
| | | EntityWrapper<Node> wrapper = new EntityWrapper<>(); |
| | | excludeTrash(param); |
| | | convert(param, wrapper); |
| | | hostEq(wrapper); |
| | | if (!Cools.isEmpty(orderByField)){wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType));} |
| | | if (!Cools.isEmpty(orderByField)) { |
| | | wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType)); |
| | | } |
| | | return R.ok(nodeService.selectPage(new Page<>(curr, limit), wrapper)); |
| | | } |
| | | |
| | | @RequestMapping(value = "/node/list/tree/auth") |
| | | @ManagerAuth |
| | | public R listTree(@RequestParam(defaultValue = "1")Integer curr, |
| | | @RequestParam(defaultValue = "10")Integer limit, |
| | | @RequestParam(required = false)String orderByField, |
| | | @RequestParam(required = false)String orderByType, |
| | | @RequestParam Map<String, Object> param){ |
| | | public R listTree(@RequestParam(defaultValue = "1") Integer curr, |
| | | @RequestParam(defaultValue = "10") Integer limit, |
| | | @RequestParam(required = false) String orderByField, |
| | | @RequestParam(required = false) String orderByType, |
| | | @RequestParam Map<String, Object> param) { |
| | | EntityWrapper<Node> wrapper = new EntityWrapper<>(); |
| | | excludeTrash(param); |
| | | convert(param, wrapper); |
| | | hostEq(wrapper); |
| | | if (!Cools.isEmpty(orderByField)){wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType));} |
| | | if (!Cools.isEmpty(orderByField)) { |
| | | wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType)); |
| | | } |
| | | return R.parse("0-操作成功").add(nodeService.selectList(wrapper)); |
| | | } |
| | | |
| | | @RequestMapping(value = "/node/tree/auth") |
| | | @ManagerAuth |
| | | public R tree(@RequestParam(defaultValue = "1")Integer curr, |
| | | @RequestParam(defaultValue = "10")Integer limit, |
| | | @RequestParam(required = false)String orderByField, |
| | | @RequestParam(required = false)String orderByType, |
| | | @RequestParam Map<String, Object> param){ |
| | | public R tree(@RequestParam(defaultValue = "1") Integer curr, |
| | | @RequestParam(defaultValue = "10") Integer limit, |
| | | @RequestParam(required = false) String orderByField, |
| | | @RequestParam(required = false) String orderByType, |
| | | @RequestParam Map<String, Object> param) { |
| | | EntityWrapper<Node> wrapper = new EntityWrapper<>(); |
| | | excludeTrash(param); |
| | | convert(param, wrapper); |
| | | hostEq(wrapper); |
| | | if (!Cools.isEmpty(orderByField)){wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType));} |
| | | if (!Cools.isEmpty(orderByField)) { |
| | | wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType)); |
| | | } |
| | | return R.parse("0-操作成功").add(nodeService.selectList(wrapper)); |
| | | } |
| | | |
| | | private void convert(Map<String, Object> map, EntityWrapper wrapper){ |
| | | for (Map.Entry<String, Object> entry : map.entrySet()){ |
| | | private void convert(Map<String, Object> map, EntityWrapper wrapper) { |
| | | for (Map.Entry<String, Object> entry : map.entrySet()) { |
| | | String val = String.valueOf(entry.getValue()); |
| | | if (val.contains(RANGE_TIME_LINK)){ |
| | | if (val.contains(RANGE_TIME_LINK)) { |
| | | String[] dates = val.split(RANGE_TIME_LINK); |
| | | wrapper.ge(entry.getKey(), DateUtils.convert(dates[0])); |
| | | wrapper.le(entry.getKey(), DateUtils.convert(dates[1])); |
| | |
| | | if (node.getType() != 1) { |
| | | Node parentNode = nodeService.selectById(node.getParentId()); |
| | | if (parentNode == null || parentNode.getStatus() == 0) { |
| | | return R.error(node.getType()==2?"所属仓库不存在":"所属库区不存在"); |
| | | return R.error(node.getType() == 2 ? "所属仓库不存在" : "所属库区不存在"); |
| | | } |
| | | node.setParentName(parentNode.getName()); |
| | | node.setLevel(parentNode.getLevel() + 1); |
| | |
| | | } |
| | | |
| | | |
| | | |
| | | @RequestMapping(value = "/node/update/auth") |
| | | @ManagerAuth |
| | | public R update(Node node){ |
| | | public R update(Node node) { |
| | | Node node1 = nodeService.selectByUuid(node.getName()); |
| | | if (!Cools.isEmpty(node1)) { |
| | | throw new CoolException("该编号/名称已存在"); |
| | | } |
| | | if (Cools.isEmpty(node) || null==node.getId()){ |
| | | if (Cools.isEmpty(node) || null == node.getId()) { |
| | | return R.error(); |
| | | } |
| | | if (node.getType() != 1) { |
| | | Node parentNode = nodeService.selectById(node.getParentId()); |
| | | if (parentNode == null || parentNode.getStatus() == 0) { |
| | | return R.error(node.getType()==2?"所属仓库不存在":"所属库区不存在"); |
| | | return R.error(node.getType() == 2 ? "所属仓库不存在" : "所属库区不存在"); |
| | | } |
| | | node.setParentName(parentNode.getName()); |
| | | node.setLevel(parentNode.getLevel() + 1); |
| | |
| | | node.setNamePath(nodeUtils.pathName.toString()); |
| | | node.setUuid(node.getName()); |
| | | |
| | | manLocDetlMapper.updateLocNo0(node.getId(),node.getName()); |
| | | node.setUpdateBy(getUserId()); |
| | | node.setUpdateTime(new Date()); |
| | | nodeService.updateById(node); |
| | |
| | | |
| | | @RequestMapping(value = "/node/delete/auth") |
| | | @ManagerAuth |
| | | public R delete(@RequestParam String param){ |
| | | public R delete(@RequestParam String param) { |
| | | List<Node> list = JSONArray.parseArray(param, Node.class); |
| | | if (Cools.isEmpty(list)){ |
| | | if (Cools.isEmpty(list)) { |
| | | return R.error(); |
| | | } |
| | | for (Node entity : list){ |
| | | for (Node entity : list) { |
| | | nodeService.delete(new EntityWrapper<>(entity)); |
| | | } |
| | | return R.ok(); |
| | |
| | | |
| | | @RequestMapping(value = "/node/delete0/auth") |
| | | @ManagerAuth |
| | | public R delete(@RequestParam(value="ids[]") Long[] ids){ |
| | | for (Long id : ids){ |
| | | public R delete(@RequestParam(value = "ids[]") Long[] ids) { |
| | | for (Long id : ids) { |
| | | nodeService.deleteById(id); |
| | | } |
| | | return R.ok(); |
| | |
| | | |
| | | @RequestMapping(value = "/node/export/auth") |
| | | @ManagerAuth |
| | | public R export(@RequestBody JSONObject param){ |
| | | public R export(@RequestBody JSONObject param) { |
| | | EntityWrapper<Node> wrapper = new EntityWrapper<>(); |
| | | List<String> fields = JSONObject.parseArray(param.getJSONArray("fields").toJSONString(), String.class); |
| | | Map<String, Object> map = excludeTrash(param.getJSONObject("node")); |
| | |
| | | hostEq(wrapper); |
| | | Page<Node> page = nodeService.selectPage(new Page<>(0, 10), wrapper); |
| | | List<Map<String, Object>> result = new ArrayList<>(); |
| | | for (Node node : page.getRecords()){ |
| | | for (Node node : page.getRecords()) { |
| | | Map<String, Object> map = new HashMap<>(); |
| | | map.put("id", node.getId()); |
| | | map.put("value", node.getUuid() + "(" +node.getName()+ ")"); |
| | | map.put("value", node.getUuid() + "(" + node.getName() + ")"); |
| | | result.add(map); |
| | | } |
| | | return R.ok(result); |
| | |
| | | @ManagerAuth |
| | | public R query(@RequestBody JSONObject param) { |
| | | Wrapper<Node> wrapper = new EntityWrapper<Node>().eq(humpToLine(String.valueOf(param.get("key"))), param.get("val")); |
| | | if (null != nodeService.selectOne(wrapper)){ |
| | | if (null != nodeService.selectOne(wrapper)) { |
| | | return R.parse(BaseRes.REPEAT).add(getComment(Node.class, String.valueOf(param.get("key")))); |
| | | } |
| | | return R.ok(); |
| | |
| | | public R nodeExcelImport(MultipartFile file) throws IOException { |
| | | NodeExcelListener listener = new NodeExcelListener(getUserId(), getHostId()); |
| | | EasyExcel.read(file.getInputStream(), NodeExcel.class, listener).sheet().doRead(); |
| | | return R.ok("成功同步"+listener.getTotal()+"个货位"); |
| | | return R.ok("成功同步" + listener.getTotal() + "个货位"); |
| | | } |
| | | |
| | | /*************************************** 入库出相关 ***********************************************/ |
| | | |
| | | @RequestMapping("/work/stock/pakin") |
| | | @ManagerAuth(memo = "入库") |
| | | public R stockPakin(@RequestBody PakinParam number) { |
| | | return nodeService.stockPakin(number, getUserId(), getHostId()); |
| | | } |
| | | |
| | | @RequestMapping("/work/stock/pakout") |
| | | @ManagerAuth(memo = "出库") |
| | | public R initPakout(@RequestBody List<InitPakoutParam> params) { |
| | | return nodeService.initPakout(params, getUserId(), getHostId()); |
| | | } |
| | | |
| | | @PostMapping(value = "/work/empty/stock") |
| | | public R getGroupEmptyStock(@RequestParam(required = false) String sourceLocNo) { |
| | | List<Node> allEmptys = nodeService.selectList(new EntityWrapper<Node>() |
| | | .eq("type","3")); |
| | | .eq("type", "3")); |
| | | return R.ok().add(allEmptys); |
| | | } |
| | | @RequestMapping("/work/move/start") |
| | | @ManagerAuth(memo = "库位移转") |
| | | public R locMoveStart(@RequestParam String sourceLocNo, |
| | | @RequestParam String targetLocNo) { |
| | | nodeService.locMove(sourceLocNo, targetLocNo, getUserId()); |
| | | return R.ok("移库启动成功"); |
| | | } |
| | | |
| | | |
| | | |
| | | @RequestMapping(value = "/node/select/{id}/auth") |
| | | @ManagerAuth |
| | | public R getById(@PathVariable("id") String id) { |
| | | Node node = nodeService.selectOne(new EntityWrapper<Node>() |
| | | .eq("uuid",id)); |
| | | .eq("uuid", id)); |
| | | return R.ok(node); |
| | | } |
| | | |
| | |
| | | } |
| | | |
| | | @RequestMapping(value = "/node/all/get/loc") |
| | | public R getarea(){ |
| | | public R getarea() { |
| | | EntityWrapper<Node> nodeEntityWrapper = new EntityWrapper<>(); |
| | | nodeEntityWrapper.eq("type",2); |
| | | nodeEntityWrapper.eq("type", 2); |
| | | List<Node> list = nodeService.selectList(nodeEntityWrapper); |
| | | List<KeyValueVo> keyValueVoList = new ArrayList<>(); |
| | | for (Node node : list){ |
| | | for (Node node : list) { |
| | | KeyValueVo vo = new KeyValueVo(); |
| | | vo.setName(node.getName()); |
| | | vo.setValue(node.getId()); |
| | |
| | | Integer value = param.getInteger("value"); |
| | | Integer num = param.getInteger("startRow"); |
| | | EntityWrapper<Node> nodeEntityWrapper = new EntityWrapper<>(); |
| | | nodeEntityWrapper.eq("id",value); |
| | | nodeEntityWrapper.eq("name",area); |
| | | nodeEntityWrapper.eq("id", value); |
| | | nodeEntityWrapper.eq("name", area); |
| | | Node node = nodeService.selectOne(nodeEntityWrapper); |
| | | String[] string = node.getNamePath().split(","); |
| | | for (int i = 1; i <= num; i++) { |
| | | String locNo =area + String.format("%04d", i); |
| | | String locNo = area + String.format("%04d", i); |
| | | String uuid = String.valueOf(System.currentTimeMillis()); |
| | | Date now = new Date(); |
| | | Date now = new Date(); |
| | | Node node1 = new Node(); |
| | | node1.setUuid(uuid); |
| | | node1.setName(locNo); |
| | | node1.setParentId(node.getId()); |
| | | node1.setParentName(node.getName()); |
| | | node1.setType(3); |
| | | node1.setPath(node.getPath()+","+node.getId()); |
| | | node1.setNamePath(node.getNamePath()+","+node.getName()); |
| | | node1.setPath(node.getPath() + "," + node.getId()); |
| | | node1.setNamePath(node.getNamePath() + "," + node.getName()); |
| | | node1.setLevel(3); |
| | | node1.setStatus(1); |
| | | node1.setCreateBy(getUserId()); |
| | | node1.setCreateTime(now); |
| | | node1.setUpdateBy(getUserId()); |
| | | node1.setUpdateTime(now); |
| | | if (!nodeService.insert(node1)){ |
| | | if (!nodeService.insert(node1)) { |
| | | return R.error("数据插入失败"); |
| | | } |
| | | } |
| | |
| | | } |
| | | } else { |
| | | if (!Cools.isEmpty(param.getMsgType()) && param.getMsgType().equalsIgnoreCase("task_complete")) { |
| | | if (wrkMast.getStaNo()==1031){ |
| | | if (wrkMast.getStaNo() == 1031) { |
| | | wrkMast.setWrkSts(106L); |
| | | }else { |
| | | } else { |
| | | wrkMast.setWrkSts(14L); |
| | | } |
| | | } |
| | |
| | | import com.core.exception.CoolException; |
| | | import com.zy.asrs.entity.*; |
| | | import com.zy.asrs.entity.param.OrderDomainParam; |
| | | |
| | | import com.zy.asrs.entity.result.WrkTraceVo; |
| | | import com.zy.asrs.service.*; |
| | | import com.zy.common.model.DetlDto; |
| | | import com.zy.common.web.BaseController; |
| | | import io.swagger.models.auth.In; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.print.Doc; |
| | | import java.util.*; |
| | | |
| | | @RestController |
| | |
| | | |
| | | @RequestMapping(value = "/order/search/pda/auth") |
| | | @ManagerAuth |
| | | public R pdaOrderSearch(@RequestParam(required = false)String condition){ |
| | | public R pdaOrderSearch(@RequestParam(required = false) String condition) { |
| | | EntityWrapper<Order> wrapper = new EntityWrapper<>(); |
| | | if (!Cools.isEmpty(condition)) { |
| | | // wrapper.like("matnr", condition).or().like("maktx", condition); |
| | |
| | | |
| | | @RequestMapping(value = "/order/list/pda/page/auth") |
| | | @ManagerAuth |
| | | public R pdaPageList(@RequestParam(required = true)Long tagId, |
| | | @RequestParam(defaultValue = "1")Integer curr, |
| | | @RequestParam(defaultValue = "10")Integer limit){ |
| | | public R pdaPageList(@RequestParam(required = true) Long tagId, |
| | | @RequestParam(defaultValue = "1") Integer curr, |
| | | @RequestParam(defaultValue = "10") Integer limit) { |
| | | List<DocType> docTypes = docTypeService.selectList(new EntityWrapper<DocType>().eq("pakin", 1)); |
| | | ArrayList<Integer> arrayList = new ArrayList<>(); |
| | | docTypes.forEach(docType -> { |
| | |
| | | EntityWrapper<Order> wrapper = new EntityWrapper<>(); |
| | | // wrapper.eq("tag_id", tagId); |
| | | wrapper.in("doc_type", arrayList); |
| | | wrapper.in("settle",1,2); |
| | | wrapper.in("settle", 1, 2); |
| | | wrapper.orderBy("create_time", false); |
| | | Page<Order> orderPage = orderService.selectPage(new Page<>(curr, limit), wrapper); |
| | | return R.ok().add(orderPage); |
| | |
| | | |
| | | @RequestMapping(value = "/order/list/pda/page/out/auth") |
| | | @ManagerAuth |
| | | public R pdaPageListOut(@RequestParam(required = true)Long tagId, |
| | | @RequestParam(defaultValue = "1")Integer curr, |
| | | @RequestParam(defaultValue = "10")Integer limit){ |
| | | public R pdaPageListOut(@RequestParam(required = true) Long tagId, |
| | | @RequestParam(defaultValue = "1") Integer curr, |
| | | @RequestParam(defaultValue = "10") Integer limit) { |
| | | List<DocType> docTypes = docTypeService.selectList(new EntityWrapper<DocType>().eq("pakout", 1)); |
| | | ArrayList<Integer> arrayList = new ArrayList<>(); |
| | | docTypes.forEach(docType -> { |
| | |
| | | EntityWrapper<Order> wrapper = new EntityWrapper<>(); |
| | | // wrapper.eq("tag_id", tagId); |
| | | wrapper.in("doc_type", arrayList); |
| | | wrapper.in("settle",1,2); |
| | | wrapper.in("settle", 1, 2); |
| | | wrapper.orderBy("create_time", false); |
| | | Page<Order> orderPage = orderService.selectPage(new Page<>(curr, limit), wrapper); |
| | | return R.ok().add(orderPage); |
| | |
| | | |
| | | @RequestMapping(value = "/order/nav/list/auth") |
| | | @ManagerAuth |
| | | public R navList(@RequestParam(required = false) String orderNo){ |
| | | public R navList(@RequestParam(required = false) String orderNo) { |
| | | EntityWrapper<Order> wrapper = new EntityWrapper<>(); |
| | | if (!Cools.isEmpty(orderNo)) { |
| | | wrapper.like("order_no", orderNo); |
| | |
| | | |
| | | @RequestMapping(value = "/order/head/page/auth") |
| | | @ManagerAuth |
| | | public R head(@RequestParam(defaultValue = "1")Integer curr, |
| | | @RequestParam(defaultValue = "10")Integer limit, |
| | | @RequestParam(required = false)String orderByField, |
| | | @RequestParam(required = false)String orderByType, |
| | | @RequestParam Map<String, Object> param){ |
| | | public R head(@RequestParam(defaultValue = "1") Integer curr, |
| | | @RequestParam(defaultValue = "10") Integer limit, |
| | | @RequestParam(required = false) String orderByField, |
| | | @RequestParam(required = false) String orderByType, |
| | | @RequestParam Map<String, Object> param) { |
| | | EntityWrapper<Order> wrapper = new EntityWrapper<>(); |
| | | excludeTrash(param); |
| | | convert(param, wrapper); |
| | | if (!Cools.isEmpty(orderByField)){wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType));} else { |
| | | if (!Cools.isEmpty(orderByField)) { |
| | | wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType)); |
| | | } else { |
| | | wrapper.orderBy("settle").orderBy("create_time", false); |
| | | } |
| | | wrapper.eq("status", 1); |
| | |
| | | |
| | | @RequestMapping(value = "/order/detl/all/auth") |
| | | @ManagerAuth |
| | | public R head(@RequestParam Long orderId){ |
| | | public R head(@RequestParam Long orderId) { |
| | | return R.ok().add(orderDetlService.selectList(new EntityWrapper<OrderDetl>().eq("order_id", orderId))); |
| | | } |
| | | |
| | | @RequestMapping(value = "/order/form/add/auth") |
| | | @ManagerAuth(memo = "手动添加订单") |
| | | @Transactional |
| | | public R formAdd(@RequestBody OrderDomainParam param){ |
| | | if(Cools.isEmpty(param.getOrderNo())){ |
| | | public R formAdd(@RequestBody OrderDomainParam param) { |
| | | if (Cools.isEmpty(param.getOrderNo())) { |
| | | String prefix = ""; |
| | | DocType docType = docTypeService.selectById(param.getDocType()); |
| | | if(!Cools.isEmpty(docType)){ |
| | | if (!Cools.isEmpty(docType)) { |
| | | prefix = docType.getPakin() == 1 ? "RK" : "CK"; |
| | | } |
| | | param.setOrderNo(prefix + snowflakeIdWorker.nextId()); |
| | |
| | | @RequestMapping(value = "/order/form/modify/auth") |
| | | @ManagerAuth(memo = "手动修改订单") |
| | | @Transactional |
| | | public R formModify(@RequestBody OrderDomainParam param){ |
| | | public R formModify(@RequestBody OrderDomainParam param) { |
| | | Order order = orderService.selectById(param.getOrderId()); |
| | | if (order == null || order.getStatus() == 0) { |
| | | return R.error("订单不存在"); |
| | |
| | | endQty = endQty + orderDetl.getQty(); |
| | | double issued = Optional.of(orderDetl.getAnfme() - orderDetl.getWorkQty()).orElse(0.0D); |
| | | if (issued > 0.0) { |
| | | List<LocDetl> locDetls = locDetlService.queryStock(orderDetl.getMatnr(), orderDetl.getBatch(), orderDetl.getOrigin(), null,null,null,null); |
| | | List<LocDetl> locDetls = locDetlService.queryStock(orderDetl.getMatnr(), orderDetl.getBatch(), orderDetl.getOrigin(), null, null, null, null); |
| | | for (LocDetl locDetl : locDetls) { |
| | | if (issued > 0) { |
| | | issued = issued - locDetl.getAnfme(); |
| | |
| | | WrkMast wrkMast = wrkMastService.selectOne(new EntityWrapper<WrkMast>().eq("wrk_no", wrkDetl.getWrkNo()).eq("io_time", wrkDetl.getIoTime())); |
| | | if (wrkMast == null) { |
| | | WrkMastLog wrkMastLog = wrkMastLogService.selectOne(new EntityWrapper<WrkMastLog>().eq("wrk_no", wrkDetl.getWrkNo()).eq("io_time", wrkDetl.getIoTime())); |
| | | if (wrkMastLog.getIoType()==103){ |
| | | wrkMastLog = wrkMastLogService.selectOne(new EntityWrapper<WrkMastLog>().eq("wrk_no", wrkDetl.getWrkNo()).eq("io_time", wrkDetl.getIoTime()).eq("io_type",53)); |
| | | if (wrkMastLog.getIoType() == 103) { |
| | | wrkMastLog = wrkMastLogService.selectOne(new EntityWrapper<WrkMastLog>().eq("wrk_no", wrkDetl.getWrkNo()).eq("io_time", wrkDetl.getIoTime()).eq("io_type", 53)); |
| | | } |
| | | if (wrkMastLog != null) { |
| | | wrkMast = new WrkMast(); |
| | |
| | | .add("list", wrkTraceVos) |
| | | .add("orderNo", order.getOrderNo()) |
| | | .add("totalQty", totalQty) |
| | | .add("wrkQty", wrkQty+endQty) |
| | | .add("wrkQty", wrkQty + endQty) |
| | | .add("lackQty", lackQty) |
| | | .add("endQty",endQty) |
| | | .add("endQty", endQty) |
| | | ); |
| | | } |
| | | |
| | |
| | | |
| | | @RequestMapping(value = "/order/list/auth") |
| | | @ManagerAuth |
| | | public R list(@RequestParam(defaultValue = "1")Integer curr, |
| | | @RequestParam(defaultValue = "10")Integer limit, |
| | | @RequestParam(required = false)String orderByField, |
| | | @RequestParam(required = false)String orderByType, |
| | | @RequestParam Map<String, Object> param){ |
| | | public R list(@RequestParam(defaultValue = "1") Integer curr, |
| | | @RequestParam(defaultValue = "10") Integer limit, |
| | | @RequestParam(required = false) String orderByField, |
| | | @RequestParam(required = false) String orderByType, |
| | | @RequestParam Map<String, Object> param) { |
| | | EntityWrapper<Order> wrapper = new EntityWrapper<>(); |
| | | excludeTrash(param); |
| | | convert(param, wrapper); |
| | | if (!Cools.isEmpty(orderByField)){wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType));} |
| | | if (!Cools.isEmpty(orderByField)) { |
| | | wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType)); |
| | | } |
| | | return R.ok(orderService.selectPage(new Page<>(curr, limit), wrapper)); |
| | | } |
| | | |
| | | private <T> void convert(Map<String, Object> map, EntityWrapper<T> wrapper){ |
| | | for (Map.Entry<String, Object> entry : map.entrySet()){ |
| | | private <T> void convert(Map<String, Object> map, EntityWrapper<T> wrapper) { |
| | | for (Map.Entry<String, Object> entry : map.entrySet()) { |
| | | String val = String.valueOf(entry.getValue()); |
| | | if (val.contains(RANGE_TIME_LINK)){ |
| | | if (val.contains(RANGE_TIME_LINK)) { |
| | | String[] dates = val.split(RANGE_TIME_LINK); |
| | | wrapper.ge(entry.getKey(), DateUtils.convert(dates[0])); |
| | | wrapper.le(entry.getKey(), DateUtils.convert(dates[1])); |
| | |
| | | |
| | | @RequestMapping(value = "/order/update/auth") |
| | | @ManagerAuth |
| | | public R update(Order order){ |
| | | if (Cools.isEmpty(order) || null == order.getId()){ |
| | | public R update(Order order) { |
| | | if (Cools.isEmpty(order) || null == order.getId()) { |
| | | return R.error(); |
| | | } |
| | | |
| | | //订单完结前,判断是否存在作业中数据,存在则不能完结 |
| | | if(order.getSettle() == 4){ |
| | | int wrkCount = wrkDetlService.selectCount(new EntityWrapper<WrkDetl>().eq("order_no",order.getOrderNo())); |
| | | int pakinCount = waitPakinService.selectCount(new EntityWrapper<WaitPakin>().eq("order_no",order.getOrderNo())); |
| | | if (order.getSettle() == 4) { |
| | | int wrkCount = wrkDetlService.selectCount(new EntityWrapper<WrkDetl>().eq("order_no", order.getOrderNo())); |
| | | int pakinCount = waitPakinService.selectCount(new EntityWrapper<WaitPakin>().eq("order_no", order.getOrderNo())); |
| | | if (wrkCount > 0 || pakinCount > 0) { |
| | | throw new CoolException("存在作业中数据,不能完结。请检查入库通知档和工作档"); |
| | | } |
| | |
| | | @RequestMapping(value = "/order/delete/auth") |
| | | @ManagerAuth(memo = "手动删除订单") |
| | | @Transactional |
| | | public R delete(@RequestParam Long orderId){ |
| | | public R delete(@RequestParam Long orderId) { |
| | | orderService.remove(orderId); |
| | | // Order order = orderService.selectById(orderId); |
| | | // if (order != null) { |
| | |
| | | |
| | | @RequestMapping(value = "/order/export/auth") |
| | | @ManagerAuth |
| | | public R export(@RequestBody JSONObject param){ |
| | | public R export(@RequestBody JSONObject param) { |
| | | EntityWrapper<Order> wrapper = new EntityWrapper<>(); |
| | | List<String> fields = JSONObject.parseArray(param.getJSONArray("fields").toJSONString(), String.class); |
| | | Map<String, Object> map = excludeTrash(param.getJSONObject("order")); |
| | |
| | | wrapper.like("id", condition); |
| | | Page<Order> page = orderService.selectPage(new Page<>(0, 10), wrapper); |
| | | List<Map<String, Object>> result = new ArrayList<>(); |
| | | for (Order order : page.getRecords()){ |
| | | for (Order order : page.getRecords()) { |
| | | Map<String, Object> map = new HashMap<>(); |
| | | map.put("id", order.getId()); |
| | | map.put("value", order.getOrderNo()); |
| | |
| | | @ManagerAuth |
| | | public R query(@RequestBody JSONObject param) { |
| | | Wrapper<Order> wrapper = new EntityWrapper<Order>().eq(humpToLine(String.valueOf(param.get("key"))), param.get("val")); |
| | | if (null != orderService.selectOne(wrapper)){ |
| | | if (null != orderService.selectOne(wrapper)) { |
| | | return R.parse(BaseRes.REPEAT).add(getComment(Order.class, String.valueOf(param.get("key")))); |
| | | } |
| | | return R.ok(); |
| | |
| | | |
| | | @RequestMapping(value = "/orderDetl/search/pda/auth") |
| | | @ManagerAuth |
| | | public R pdaOrderDetlSearch(@RequestParam(required = false)String condition,@RequestParam(required = false) String order){ |
| | | public R pdaOrderDetlSearch(@RequestParam(required = false) String condition, @RequestParam(required = false) String order) { |
| | | EntityWrapper<OrderDetl> wrapper = new EntityWrapper<>(); |
| | | if (!Cools.isEmpty(condition)) { |
| | | // wrapper.like("matnr", condition).or().like("maktx", condition); |
| | |
| | | } |
| | | |
| | | @PostMapping("/orderDetl/list/pda/auth") |
| | | public R getPdaOrderDetl(@RequestBody Map<String,Object> map) { |
| | | public R getPdaOrderDetl(@RequestBody Map<String, Object> map) { |
| | | EntityWrapper<OrderDetl> wrapper = new EntityWrapper<>(); |
| | | wrapper.eq("order_no", map.get("orderNo")); |
| | | return R.ok(orderDetlService.selectList(wrapper)); |
| | |
| | | |
| | | @RequestMapping(value = "/orderDetl/list/auth") |
| | | @ManagerAuth |
| | | public R list(@RequestParam(defaultValue = "1")Integer curr, |
| | | @RequestParam(defaultValue = "10")Integer limit, |
| | | @RequestParam(required = false)String orderByField, |
| | | @RequestParam(required = false)String orderByType, |
| | | @RequestParam Map<String, Object> param){ |
| | | public R list(@RequestParam(defaultValue = "1") Integer curr, |
| | | @RequestParam(defaultValue = "10") Integer limit, |
| | | @RequestParam(required = false) String orderByField, |
| | | @RequestParam(required = false) String orderByType, |
| | | @RequestParam Map<String, Object> param) { |
| | | EntityWrapper<OrderDetl> wrapper = new EntityWrapper<>(); |
| | | excludeTrash(param); |
| | | convert(param, wrapper); |
| | | if (!Cools.isEmpty(orderByField)){wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType));} else { |
| | | if (!Cools.isEmpty(orderByField)) { |
| | | wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType)); |
| | | } else { |
| | | wrapper.orderBy("create_time", false); |
| | | } |
| | | wrapper.eq("status", 1); |
| | |
| | | |
| | | @RequestMapping(value = "/orderDetl/pakout/list/auth") |
| | | @ManagerAuth |
| | | public R pakoutList(@RequestParam(defaultValue = "1")Integer curr, |
| | | @RequestParam(defaultValue = "10")Integer limit, |
| | | @RequestParam Map<String, Object> param){ |
| | | public R pakoutList(@RequestParam(defaultValue = "1") Integer curr, |
| | | @RequestParam(defaultValue = "10") Integer limit, |
| | | @RequestParam Map<String, Object> param) { |
| | | return R.ok(orderDetlService.getPakoutPage(toPage(curr, limit, param, OrderDetl.class))); |
| | | } |
| | | |
| | | private <T> void convert(Map<String, Object> map, EntityWrapper<T> wrapper){ |
| | | for (Map.Entry<String, Object> entry : map.entrySet()){ |
| | | private <T> void convert(Map<String, Object> map, EntityWrapper<T> wrapper) { |
| | | for (Map.Entry<String, Object> entry : map.entrySet()) { |
| | | String val = String.valueOf(entry.getValue()); |
| | | if (val.contains(RANGE_TIME_LINK)){ |
| | | if (val.contains(RANGE_TIME_LINK)) { |
| | | String[] dates = val.split(RANGE_TIME_LINK); |
| | | wrapper.ge(entry.getKey(), DateUtils.convert(dates[0])); |
| | | wrapper.le(entry.getKey(), DateUtils.convert(dates[1])); |
| | |
| | | return R.ok(); |
| | | } |
| | | |
| | | @RequestMapping(value = "/orderDetl/update/auth") |
| | | @ManagerAuth |
| | | public R update(OrderDetl orderDetl){ |
| | | if (Cools.isEmpty(orderDetl) || null==orderDetl.getId()){ |
| | | @RequestMapping(value = "/orderDetl/update/auth") |
| | | @ManagerAuth |
| | | public R update(OrderDetl orderDetl) { |
| | | if (Cools.isEmpty(orderDetl) || null == orderDetl.getId()) { |
| | | return R.error(); |
| | | } |
| | | orderDetlService.updateById(orderDetl); |
| | |
| | | |
| | | @RequestMapping(value = "/orderDetl/delete/auth") |
| | | @ManagerAuth |
| | | public R delete(@RequestParam(value="ids[]") Long[] ids){ |
| | | for (Long id : ids){ |
| | | public R delete(@RequestParam(value = "ids[]") Long[] ids) { |
| | | for (Long id : ids) { |
| | | orderDetlService.deleteById(id); |
| | | } |
| | | return R.ok(); |
| | |
| | | |
| | | @RequestMapping(value = "/orderDetl/export/auth") |
| | | @ManagerAuth |
| | | public R export(@RequestBody JSONObject param){ |
| | | public R export(@RequestBody JSONObject param) { |
| | | EntityWrapper<OrderDetl> wrapper = new EntityWrapper<>(); |
| | | List<String> fields = JSONObject.parseArray(param.getJSONArray("fields").toJSONString(), String.class); |
| | | Map<String, Object> map = excludeTrash(param.getJSONObject("orderDetl")); |
| | |
| | | wrapper.like("id", condition); |
| | | Page<OrderDetl> page = orderDetlService.selectPage(new Page<>(0, 10), wrapper); |
| | | List<Map<String, Object>> result = new ArrayList<>(); |
| | | for (OrderDetl orderDetl : page.getRecords()){ |
| | | for (OrderDetl orderDetl : page.getRecords()) { |
| | | Map<String, Object> map = new HashMap<>(); |
| | | map.put("id", orderDetl.getId()); |
| | | map.put("value", orderDetl.getId()); |
| | |
| | | @ManagerAuth |
| | | public R query(@RequestBody JSONObject param) { |
| | | Wrapper<OrderDetl> wrapper = new EntityWrapper<OrderDetl>().eq(humpToLine(String.valueOf(param.get("key"))), param.get("val")); |
| | | if (null != orderDetlService.selectOne(wrapper)){ |
| | | if (null != orderDetlService.selectOne(wrapper)) { |
| | | return R.parse(BaseRes.REPEAT).add(getComment(OrderDetl.class, String.valueOf(param.get("key")))); |
| | | } |
| | | return R.ok(); |
| | |
| | | |
| | | @RequestMapping(value = "/orderSettle/list/auth") |
| | | @ManagerAuth |
| | | public R list(@RequestParam(defaultValue = "1")Integer curr, |
| | | @RequestParam(defaultValue = "10")Integer limit, |
| | | @RequestParam(required = false)String orderByField, |
| | | @RequestParam(required = false)String orderByType, |
| | | @RequestParam Map<String, Object> param){ |
| | | public R list(@RequestParam(defaultValue = "1") Integer curr, |
| | | @RequestParam(defaultValue = "10") Integer limit, |
| | | @RequestParam(required = false) String orderByField, |
| | | @RequestParam(required = false) String orderByType, |
| | | @RequestParam Map<String, Object> param) { |
| | | EntityWrapper<OrderSettle> wrapper = new EntityWrapper<>(); |
| | | excludeTrash(param); |
| | | convert(param, wrapper); |
| | | if (!Cools.isEmpty(orderByField)){wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType));} |
| | | if (!Cools.isEmpty(orderByField)) { |
| | | wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType)); |
| | | } |
| | | return R.ok(orderSettleService.selectPage(new Page<>(curr, limit), wrapper)); |
| | | } |
| | | |
| | | private <T> void convert(Map<String, Object> map, EntityWrapper<T> wrapper){ |
| | | for (Map.Entry<String, Object> entry : map.entrySet()){ |
| | | private <T> void convert(Map<String, Object> map, EntityWrapper<T> wrapper) { |
| | | for (Map.Entry<String, Object> entry : map.entrySet()) { |
| | | String val = String.valueOf(entry.getValue()); |
| | | if (val.contains(RANGE_TIME_LINK)){ |
| | | if (val.contains(RANGE_TIME_LINK)) { |
| | | String[] dates = val.split(RANGE_TIME_LINK); |
| | | wrapper.ge(entry.getKey(), DateUtils.convert(dates[0])); |
| | | wrapper.le(entry.getKey(), DateUtils.convert(dates[1])); |
| | |
| | | return R.ok(); |
| | | } |
| | | |
| | | @RequestMapping(value = "/orderSettle/update/auth") |
| | | @ManagerAuth |
| | | public R update(OrderSettle orderSettle){ |
| | | if (Cools.isEmpty(orderSettle) || null==orderSettle.getOrderSettle()){ |
| | | @RequestMapping(value = "/orderSettle/update/auth") |
| | | @ManagerAuth |
| | | public R update(OrderSettle orderSettle) { |
| | | if (Cools.isEmpty(orderSettle) || null == orderSettle.getOrderSettle()) { |
| | | return R.error(); |
| | | } |
| | | orderSettle.setUpdateBy(getUserId()); |
| | |
| | | |
| | | @RequestMapping(value = "/orderSettle/delete/auth") |
| | | @ManagerAuth |
| | | public R delete(@RequestParam(value="ids[]") Long[] ids){ |
| | | for (Long id : ids){ |
| | | public R delete(@RequestParam(value = "ids[]") Long[] ids) { |
| | | for (Long id : ids) { |
| | | orderSettleService.deleteById(id); |
| | | } |
| | | return R.ok(); |
| | |
| | | |
| | | @RequestMapping(value = "/orderSettle/export/auth") |
| | | @ManagerAuth |
| | | public R export(@RequestBody JSONObject param){ |
| | | public R export(@RequestBody JSONObject param) { |
| | | EntityWrapper<OrderSettle> wrapper = new EntityWrapper<>(); |
| | | List<String> fields = JSONObject.parseArray(param.getJSONArray("fields").toJSONString(), String.class); |
| | | Map<String, Object> map = excludeTrash(param.getJSONObject("orderSettle")); |
| | |
| | | wrapper.like("settle_name", condition); |
| | | Page<OrderSettle> page = orderSettleService.selectPage(new Page<>(0, 10), wrapper); |
| | | List<Map<String, Object>> result = new ArrayList<>(); |
| | | for (OrderSettle orderSettle : page.getRecords()){ |
| | | for (OrderSettle orderSettle : page.getRecords()) { |
| | | Map<String, Object> map = new HashMap<>(); |
| | | map.put("id", orderSettle.getOrderSettle()); |
| | | map.put("value", orderSettle.getSettleName()); |
| | |
| | | @ManagerAuth |
| | | public R query(@RequestBody JSONObject param) { |
| | | Wrapper<OrderSettle> wrapper = new EntityWrapper<OrderSettle>().eq(humpToLine(String.valueOf(param.get("key"))), param.get("val")); |
| | | if (null != orderSettleService.selectOne(wrapper)){ |
| | | if (null != orderSettleService.selectOne(wrapper)) { |
| | | return R.parse(BaseRes.REPEAT).add(getComment(OrderSettle.class, String.valueOf(param.get("key")))); |
| | | } |
| | | return R.ok(); |
| | |
| | | import com.zy.common.model.ExistDto; |
| | | import com.zy.common.model.LocDto; |
| | | import com.zy.common.model.TaskDto; |
| | | import com.zy.common.utils.OutStockInterceptUtil; |
| | | import com.zy.common.utils.RoleUtils; |
| | | import com.zy.common.web.BaseController; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | |
| | | return R.ok().add(result); |
| | | } |
| | | |
| | | /** 处理订单出库货位分配 |
| | | /** |
| | | * 处理订单出库货位分配 |
| | | * |
| | | * @param jsonObject 请求参数(包含订单明细ID列表和出库数量) |
| | | */ |
| | | @PostMapping("/out/pakout/OrderOutGetLoc.number/auth") |
| | |
| | | |
| | | /** |
| | | * 处理单个订单明细的货位分配 |
| | | * @param orderDetl 订单明细 |
| | | * |
| | | * @param orderDetl 订单明细 |
| | | * @param requiredAmount 需求出库量 |
| | | * @param processedLocs 已处理的货位集合(用于去重) |
| | | * @param processedLocs 已处理的货位集合(用于去重) |
| | | * @param processedStock 已处理的库存记录集合(用于去重) |
| | | */ |
| | | private List<LocDto> processOrderDetl(OrderDetl orderDetl, Double requiredAmount, |
| | | Set<String> processedLocs, Set<ExistDto> processedStock) { |
| | | Set<String> processedLocs, Set<ExistDto> processedStock) { |
| | | List<LocDto> result = new ArrayList<>(); |
| | | double remaining = Optional.ofNullable(orderDetl.getAnfme() - orderDetl.getWorkQty()).orElse(0.0D); |
| | | |
| | |
| | | throw new CoolException("出库数量必须大于0"); |
| | | } |
| | | if (requiredAmount > remaining) { |
| | | throw new CoolException("订单"+orderDetl.getOrderNo()+"请求数量超过可出库数量,剩余可出:" + remaining); |
| | | throw new CoolException("订单" + orderDetl.getOrderNo() + "请求数量超过可出库数量,剩余可出:" + remaining); |
| | | } |
| | | // 当指定数量时,使用指定数量覆盖剩余量 |
| | | remaining = Math.min(requiredAmount, remaining); |
| | |
| | | |
| | | // 获取可用库存记录 |
| | | List<LocDetl> stocks = locDetlService.queryStock( |
| | | orderDetl.getMatnr(), orderDetl.getBatch(), orderDetl.getSuppCode(), |
| | | processedLocs, orderDetl.getSupp(), |
| | | orderDetl.getTemp1(), orderDetl.getTemp2() |
| | | orderDetl.getMatnr(), orderDetl.getBatch(), orderDetl.getSuppCode(), |
| | | processedLocs, orderDetl.getSupp(), |
| | | orderDetl.getTemp1(), orderDetl.getTemp2() |
| | | ); |
| | | |
| | | // 遍历处理每个库存记录 |
| | |
| | | if (remaining <= 0) break; |
| | | |
| | | LocMast locMast = locMastService.selectOne( |
| | | new EntityWrapper<LocMast>().eq("loc_no", stock.getLocNo())); |
| | | new EntityWrapper<LocMast>().eq("loc_no", stock.getLocNo())); |
| | | |
| | | // 非7号堆垛机处理逻辑 |
| | | if (locMast.getCrnNo() != 7) { |
| | |
| | | return result; |
| | | } |
| | | |
| | | /** 创建缺量DTO */ |
| | | /** |
| | | * 创建缺量DTO |
| | | */ |
| | | private LocDto createShortageDto(OrderDetl orderDetl, double qty) { |
| | | LocDto dto = new LocDto(null, orderDetl.getMatnr(), |
| | | orderDetl.getMaktx(), orderDetl.getBatch(), |
| | | orderDetl.getOrderNo(), qty); |
| | | orderDetl.getMaktx(), orderDetl.getBatch(), |
| | | orderDetl.getOrderNo(), qty); |
| | | dto.setLack(true); |
| | | return dto; |
| | | } |
| | | |
| | | /** 处理普通货位 */ |
| | | /** |
| | | * 处理普通货位 |
| | | */ |
| | | private void processNormalLocation(LocDetl stock, OrderDetl orderDetl, double remaining, |
| | | Set<ExistDto> processedStock, List<LocDto> result) { |
| | | Set<ExistDto> processedStock, List<LocDto> result) { |
| | | ExistDto exist = new ExistDto() |
| | | .setLocNo(stock.getLocNo()) |
| | | .setMatnr(stock.getMatnr()) |
| | | .setBatch(stock.getBatch()); |
| | | .setLocNo(stock.getLocNo()) |
| | | .setMatnr(stock.getMatnr()) |
| | | .setBatch(stock.getBatch()); |
| | | |
| | | if (processedStock.add(exist)) { |
| | | double allocateQty = Math.min(remaining, stock.getAnfme()); |
| | |
| | | } |
| | | } |
| | | |
| | | /** 处理7号堆垛机货位 */ |
| | | /** |
| | | * 处理7号堆垛机货位 |
| | | */ |
| | | private void processCrn7Location(LocMast baseLoc, LocDetl stock, OrderDetl orderDetl, |
| | | double remaining, Set<ExistDto> processedStock, |
| | | List<LocDto> result) { |
| | | double remaining, Set<ExistDto> processedStock, |
| | | List<LocDto> result) { |
| | | // 构建查询条件 |
| | | EntityWrapper<LocMast> wrapper = (EntityWrapper<LocMast>) new EntityWrapper<LocMast>() |
| | | .eq("gro1", baseLoc.getGro1()) |
| | | .eq("crn_no", 7) |
| | | .eq("loc_type1", baseLoc.getLocType1()) |
| | | .orderBy("bay1", (baseLoc.getBay1() == 6 || baseLoc.getBay1() == 5)); |
| | | .eq("gro1", baseLoc.getGro1()) |
| | | .eq("crn_no", 7) |
| | | .eq("loc_type1", baseLoc.getLocType1()) |
| | | .orderBy("bay1", (baseLoc.getBay1() == 6 || baseLoc.getBay1() == 5)); |
| | | |
| | | // 获取同组货位并处理 |
| | | locMastService.selectList(wrapper).stream() |
| | | .filter(loc -> "F".equals(loc.getLocSts())) |
| | | .forEach(loc -> processCrn7SubLocation(loc, stock, orderDetl, remaining, processedStock, result)); |
| | | .filter(loc -> "F".equals(loc.getLocSts())) |
| | | .forEach(loc -> processCrn7SubLocation(loc, stock, orderDetl, remaining, processedStock, result)); |
| | | } |
| | | |
| | | /** 处理7号堆垛机子货位 */ |
| | | /** |
| | | * 处理7号堆垛机子货位 |
| | | */ |
| | | private void processCrn7SubLocation(LocMast loc, LocDetl stock, OrderDetl orderDetl, |
| | | double remaining, Set<ExistDto> processedStock, |
| | | List<LocDto> result) { |
| | | double remaining, Set<ExistDto> processedStock, |
| | | List<LocDto> result) { |
| | | LocDetl subStock = locDetlService.selectOne( |
| | | new EntityWrapper<LocDetl>() |
| | | .eq("loc_No", loc.getLocNo()) |
| | | .eq("matnr", stock.getMatnr()) |
| | | .eq("batch", stock.getBatch())); |
| | | new EntityWrapper<LocDetl>() |
| | | .eq("loc_No", loc.getLocNo()) |
| | | .eq("matnr", stock.getMatnr()) |
| | | .eq("batch", stock.getBatch())); |
| | | |
| | | if (!Cools.isEmpty(subStock)) { |
| | | ExistDto exist = new ExistDto() |
| | | .setLocNo(subStock.getLocNo()) |
| | | .setMatnr(subStock.getMatnr()) |
| | | .setBatch(subStock.getBatch()); |
| | | .setLocNo(subStock.getLocNo()) |
| | | .setMatnr(subStock.getMatnr()) |
| | | .setBatch(subStock.getBatch()); |
| | | |
| | | if (processedStock.add(exist) && remaining > 0) { |
| | | double allocateQty = Math.min(remaining, subStock.getAnfme()); |
| | |
| | | } |
| | | } |
| | | |
| | | /** 构建货位DTO通用方法 */ |
| | | /** |
| | | * 构建货位DTO通用方法 |
| | | */ |
| | | private LocDto buildLocDto(LocDetl stock, OrderDetl orderDetl, double qty) { |
| | | LocDto dto = new LocDto( |
| | | stock.getLocNo(), stock.getMatnr(), stock.getMaktx(), |
| | | stock.getBatch(), orderDetl.getOrderNo(), qty |
| | | stock.getLocNo(), stock.getMatnr(), stock.getMaktx(), |
| | | stock.getBatch(), orderDetl.getOrderNo(), qty |
| | | ); |
| | | |
| | | // 获取工作站并转换 |
| | | List<Integer> staNos = staDescService.queryOutStaNosByLocNo( |
| | | stock.getLocNo(), qty >= stock.getAnfme() ? 101 : 103); |
| | | stock.getLocNo(), qty >= stock.getAnfme() ? 101 : 103); |
| | | |
| | | List<LocDto.staListDto> staList = staNos.stream() |
| | | .map(staNo -> new LocDto.staListDto() |
| | | .setStaNo(staNo) |
| | | .setStaName(Utils.getStaName(staNo))) |
| | | .collect(Collectors.toList()); |
| | | .map(staNo -> new LocDto.staListDto() |
| | | .setStaNo(staNo) |
| | | .setStaName(Utils.getStaName(staNo))) |
| | | .collect(Collectors.toList()); |
| | | |
| | | dto.setStaNos(staList); |
| | | return dto; |
| | |
| | | // } |
| | | |
| | | |
| | | /** 四向库订单出库 **/ |
| | | /** |
| | | * 四向库订单出库 |
| | | **/ |
| | | @PostMapping("/out/pakout/previewCustomQuantity/auth/sxk") |
| | | @ManagerAuth |
| | | public R pakoutPreviewCustomQuantitySXK(@RequestBody JSONObject jsonObject) { |
| | |
| | | } |
| | | issued = amount; |
| | | } |
| | | if (issued <= 0.0D) { continue; } |
| | | if (issued <= 0.0D) { |
| | | continue; |
| | | } |
| | | List<LocDetl> locDetls = new ArrayList<>(); |
| | | locDetls = locDetlService.queryStockFour(orderDetl.getMatnr(), orderDetl.getBatch(), null, exist,orderDetl.getSupp(),orderDetl.getTemp1(),orderDetl.getTemp2()); |
| | | locDetls = locDetlService.queryStockFour(orderDetl.getMatnr(), orderDetl.getBatch(), null, exist, orderDetl.getSupp(), orderDetl.getTemp1(), orderDetl.getTemp2()); |
| | | for (LocDetl locDetl : locDetls) { |
| | | LocMast locMast = locMastService.selectOne(new EntityWrapper<LocMast>().eq("loc_no", locDetl.getLocNo())); |
| | | if (locMast.getLocSts().equals("F")){ |
| | | if (locMast.getLocSts().equals("F")) { |
| | | LocDetl locDetl1 = locDetlService.selectOne(new EntityWrapper<LocDetl>() |
| | | .eq("loc_No", locMast.getLocNo()) |
| | | .eq("matnr", locDetl.getMatnr()).eq("batch", locDetl.getBatch())); |
| | |
| | | existDto.setLocNo(locDetl1.getLocNo()); |
| | | existDto.setMatnr(locDetl1.getMatnr()); |
| | | existDto.setBatch(locDetl1.getBatch()); |
| | | if (existDtos.add(existDto)){ |
| | | if (existDtos.add(existDto)) { |
| | | if (issued > 0) { |
| | | LocDto locDto = new LocDto(locDetl1.getLocNo(), locDetl1.getMatnr(), locDetl1.getMaktx(), locDetl1.getBatch(), orderDetl.getOrderNo(), |
| | | issued >= locDetl1.getAnfme() ? locDetl1.getAnfme() : issued); |
| | |
| | | locDtos.add(locDto); |
| | | // 剩余待出数量递减 |
| | | issued = issued - locDetl.getAnfme(); |
| | | }else { |
| | | } else { |
| | | break; |
| | | } |
| | | } |
| | |
| | | |
| | | for (OrderDetl orderDetl : orderDetls) { |
| | | double issued = Optional.of(orderDetl.getAnfme() - orderDetl.getWorkQty()).orElse(0.0D); |
| | | if (issued <= 0.0D) { continue; } |
| | | if (issued <= 0.0D) { |
| | | continue; |
| | | } |
| | | List<LocDetl> locDetls = new ArrayList<>(); |
| | | locDetls = locDetlService.queryStockFour(orderDetl.getMatnr(), orderDetl.getBatch(), null, exist,orderDetl.getSupp(),orderDetl.getTemp1(),orderDetl.getTemp2()); |
| | | locDetls = locDetlService.queryStockFour(orderDetl.getMatnr(), orderDetl.getBatch(), null, exist, orderDetl.getSupp(), orderDetl.getTemp1(), orderDetl.getTemp2()); |
| | | for (LocDetl locDetl : locDetls) { |
| | | LocMast locMast = locMastService.selectOne(new EntityWrapper<LocMast>().eq("loc_no", locDetl.getLocNo())); |
| | | if (locMast.getLocSts().equals("F")){ |
| | | if (locMast.getLocSts().equals("F")) { |
| | | LocDetl locDetl1 = locDetlService.selectOne(new EntityWrapper<LocDetl>() |
| | | .eq("loc_No", locMast.getLocNo()) |
| | | .eq("matnr", locDetl.getMatnr()).eq("batch", locDetl.getBatch())); |
| | |
| | | existDto.setLocNo(locDetl1.getLocNo()); |
| | | existDto.setMatnr(locDetl1.getMatnr()); |
| | | existDto.setBatch(locDetl1.getBatch()); |
| | | if (existDtos.add(existDto)){ |
| | | if (existDtos.add(existDto)) { |
| | | if (issued > 0) { |
| | | LocDto locDto = new LocDto(locDetl1.getLocNo(), locDetl1.getMatnr(), locDetl1.getMaktx(), locDetl1.getBatch(), orderDetl.getOrderNo(), |
| | | issued >= locDetl1.getAnfme() ? locDetl1.getAnfme() : issued); |
| | |
| | | locDtos.add(locDto); |
| | | // 剩余待出数量递减 |
| | | issued = issued - locDetl.getAnfme(); |
| | | }else { |
| | | } else { |
| | | break; |
| | | } |
| | | } |
| | |
| | | return R.ok().add(locDtos); |
| | | } |
| | | |
| | | /** ctu订单出库 **/ |
| | | /** |
| | | * ctu订单出库 |
| | | **/ |
| | | @PostMapping("/out/pakout/previewCustomQuantity/auth/ctu") |
| | | @ManagerAuth |
| | | public R pakoutPreviewCustomQuantityCTU(@RequestBody JSONObject jsonObject) { |
| | |
| | | } |
| | | issued = amount; |
| | | } |
| | | if (issued <= 0.0D) { continue; } |
| | | if (issued <= 0.0D) { |
| | | continue; |
| | | } |
| | | List<LocDetl> locDetls = new ArrayList<>(); |
| | | locDetls = locDetlService.queryStockMinAnfme(orderDetl.getMatnr(), orderDetl.getBatch(), null, exist,orderDetl.getSupp(),orderDetl.getTemp1(),orderDetl.getTemp2()); |
| | | locDetls = locDetlService.queryStockMinAnfme(orderDetl.getMatnr(), orderDetl.getBatch(), null, exist, orderDetl.getSupp(), orderDetl.getTemp1(), orderDetl.getTemp2()); |
| | | for (LocDetl locDetl : locDetls) { |
| | | if (issued > 0) { |
| | | ExistDto existDto = new ExistDto(); |
| | |
| | | // 剩余待出数量递减 |
| | | issued = issued - locDetl.getAnfme(); |
| | | } |
| | | }else { |
| | | } else { |
| | | break; |
| | | } |
| | | } |
| | |
| | | |
| | | for (OrderDetl orderDetl : orderDetls) { |
| | | double issued = Optional.of(orderDetl.getAnfme() - orderDetl.getWorkQty()).orElse(0.0D); |
| | | if (issued <= 0.0D) { continue; } |
| | | if (issued <= 0.0D) { |
| | | continue; |
| | | } |
| | | List<LocDetl> locDetls = new ArrayList<>(); |
| | | locDetls = locDetlService.queryStockMinAnfme(orderDetl.getMatnr(), orderDetl.getBatch(), null, exist,orderDetl.getSupp(),orderDetl.getTemp1(),orderDetl.getTemp2()); |
| | | locDetls = locDetlService.queryStockMinAnfme(orderDetl.getMatnr(), orderDetl.getBatch(), null, exist, orderDetl.getSupp(), orderDetl.getTemp1(), orderDetl.getTemp2()); |
| | | for (LocDetl locDetl : locDetls) { |
| | | if (issued > 0) { |
| | | ExistDto existDto = new ExistDto(); |
| | |
| | | // 剩余待出数量递减 |
| | | issued = issued - locDetl.getAnfme(); |
| | | } |
| | | }else { |
| | | } else { |
| | | break; |
| | | } |
| | | } |
| | |
| | | return R.ok().add(locDtos); |
| | | } |
| | | |
| | | /** crn订单出库 **/ |
| | | /** |
| | | * crn订单出库 |
| | | **/ |
| | | @PostMapping("/out/pakout/previewCustomQuantity/auth/crn") |
| | | @ManagerAuth |
| | | public R pakoutPreviewCustomQuantityCRN(@RequestBody JSONObject jsonObject) { |
| | |
| | | } |
| | | issued = amount; |
| | | } |
| | | if (issued <= 0.0D) { continue; } |
| | | if (issued <= 0.0D) { |
| | | continue; |
| | | } |
| | | List<LocDetl> locDetls = new ArrayList<>(); |
| | | locDetls = locDetlService.queryStockCrn(orderDetl.getMatnr(), orderDetl.getBatch(), null, exist,orderDetl.getSupp(),orderDetl.getTemp1(),orderDetl.getTemp2()); |
| | | locDetls = locDetlService.queryStockCrn(orderDetl.getMatnr(), orderDetl.getBatch(), null, exist, orderDetl.getSupp(), orderDetl.getTemp1(), orderDetl.getTemp2()); |
| | | for (LocDetl locDetl : locDetls) { |
| | | if (issued > 0) { |
| | | ExistDto existDto = new ExistDto(); |
| | |
| | | // 剩余待出数量递减 |
| | | issued = issued - locDetl.getAnfme(); |
| | | } |
| | | }else { |
| | | } else { |
| | | break; |
| | | } |
| | | } |
| | |
| | | |
| | | for (OrderDetl orderDetl : orderDetls) { |
| | | double issued = Optional.of(orderDetl.getAnfme() - orderDetl.getWorkQty()).orElse(0.0D); |
| | | if (issued <= 0.0D) { continue; } |
| | | if (issued <= 0.0D) { |
| | | continue; |
| | | } |
| | | List<LocDetl> locDetls = new ArrayList<>(); |
| | | locDetls = locDetlService.queryStockCrn(orderDetl.getMatnr(), orderDetl.getBatch(), null, exist,orderDetl.getSupp(),orderDetl.getTemp1(),orderDetl.getTemp2()); |
| | | locDetls = locDetlService.queryStockCrn(orderDetl.getMatnr(), orderDetl.getBatch(), null, exist, orderDetl.getSupp(), orderDetl.getTemp1(), orderDetl.getTemp2()); |
| | | for (LocDetl locDetl : locDetls) { |
| | | if (issued > 0) { |
| | | ExistDto existDto = new ExistDto(); |
| | |
| | | // 剩余待出数量递减 |
| | | issued = issued - locDetl.getAnfme(); |
| | | } |
| | | }else { |
| | | } else { |
| | | break; |
| | | } |
| | | } |
| | |
| | | } |
| | | return R.ok().add(locDtos); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | @PostMapping("/out/pakout/auth") |
| | |
| | | List<TaskDto> taskDtos = new ArrayList<>(); |
| | | // 根据 (库位 & 出库站) 分组; 理想状态:一组为一次出库任务 |
| | | for (LocDto locDto : locDtos) { |
| | | if (locDto.isLack()) { continue; } |
| | | if (locDto.isLack()) { |
| | | continue; |
| | | } |
| | | TaskDto taskDto = new TaskDto(locDto.getLocNo(), locDto.getStaNo(), locDto); |
| | | if (TaskDto.has(taskDtos, taskDto)) { |
| | | TaskDto dto = TaskDto.find(taskDtos, taskDto); |
| | |
| | | List<TaskDto> taskDtos = new ArrayList<>(); |
| | | // 根据 (库位 & 出库站) 分组; 理想状态:一组为一次出库任务 |
| | | for (LocDto locDto : locDtos) { |
| | | if (locDto.isLack()) { continue; } |
| | | if (locDto.isLack()) { |
| | | continue; |
| | | } |
| | | TaskDto taskDto = new TaskDto(locDto.getLocNo(), locDto.getStaNo(), locDto); |
| | | if (TaskDto.has(taskDtos, taskDto)) { |
| | | TaskDto dto = TaskDto.find(taskDtos, taskDto); |
| | |
| | | |
| | | @RequestMapping(value = "/pack/list/auth") |
| | | @ManagerAuth |
| | | public R list(@RequestParam(defaultValue = "1")Integer curr, |
| | | @RequestParam(defaultValue = "10")Integer limit, |
| | | @RequestParam(required = false)String orderByField, |
| | | @RequestParam(required = false)String orderByType, |
| | | @RequestParam Map<String, Object> param){ |
| | | public R list(@RequestParam(defaultValue = "1") Integer curr, |
| | | @RequestParam(defaultValue = "10") Integer limit, |
| | | @RequestParam(required = false) String orderByField, |
| | | @RequestParam(required = false) String orderByType, |
| | | @RequestParam Map<String, Object> param) { |
| | | EntityWrapper<Pack> wrapper = new EntityWrapper<>(); |
| | | excludeTrash(param); |
| | | convert(param, wrapper); |
| | | if (!Cools.isEmpty(orderByField)){wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType));} else { |
| | | if (!Cools.isEmpty(orderByField)) { |
| | | wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType)); |
| | | } else { |
| | | wrapper.orderBy("settle").orderBy("create_time", false); |
| | | } |
| | | return R.ok(packService.selectPage(new Page<>(curr, limit), wrapper)); |
| | | } |
| | | |
| | | private <T> void convert(Map<String, Object> map, EntityWrapper<T> wrapper){ |
| | | for (Map.Entry<String, Object> entry : map.entrySet()){ |
| | | private <T> void convert(Map<String, Object> map, EntityWrapper<T> wrapper) { |
| | | for (Map.Entry<String, Object> entry : map.entrySet()) { |
| | | String val = String.valueOf(entry.getValue()); |
| | | if (val.contains(RANGE_TIME_LINK)){ |
| | | if (val.contains(RANGE_TIME_LINK)) { |
| | | String[] dates = val.split(RANGE_TIME_LINK); |
| | | wrapper.ge(entry.getKey(), DateUtils.convert(dates[0])); |
| | | wrapper.le(entry.getKey(), DateUtils.convert(dates[1])); |
| | |
| | | return R.ok(); |
| | | } |
| | | |
| | | @RequestMapping(value = "/pack/update/auth") |
| | | @ManagerAuth |
| | | public R update(Pack pack){ |
| | | if (Cools.isEmpty(pack) || null==pack.getId()){ |
| | | @RequestMapping(value = "/pack/update/auth") |
| | | @ManagerAuth |
| | | public R update(Pack pack) { |
| | | if (Cools.isEmpty(pack) || null == pack.getId()) { |
| | | return R.error(); |
| | | } |
| | | pack.setUpdateBy(getUserId()); |
| | |
| | | |
| | | @RequestMapping(value = "/pack/delete/auth") |
| | | @ManagerAuth |
| | | public R delete(@RequestParam(value="ids[]") Long[] ids){ |
| | | for (Long id : ids){ |
| | | public R delete(@RequestParam(value = "ids[]") Long[] ids) { |
| | | for (Long id : ids) { |
| | | packService.deleteById(id); |
| | | } |
| | | return R.ok(); |
| | |
| | | |
| | | @RequestMapping(value = "/pack/export/auth") |
| | | @ManagerAuth |
| | | public R export(@RequestBody JSONObject param){ |
| | | public R export(@RequestBody JSONObject param) { |
| | | EntityWrapper<Pack> wrapper = new EntityWrapper<>(); |
| | | List<String> fields = JSONObject.parseArray(param.getJSONArray("fields").toJSONString(), String.class); |
| | | Map<String, Object> map = excludeTrash(param.getJSONObject("pack")); |
| | |
| | | wrapper.like("id", condition); |
| | | Page<Pack> page = packService.selectPage(new Page<>(0, 10), wrapper); |
| | | List<Map<String, Object>> result = new ArrayList<>(); |
| | | for (Pack pack : page.getRecords()){ |
| | | for (Pack pack : page.getRecords()) { |
| | | Map<String, Object> map = new HashMap<>(); |
| | | map.put("id", pack.getId()); |
| | | map.put("value", pack.getId()); |
| | |
| | | @ManagerAuth |
| | | public R query(@RequestBody JSONObject param) { |
| | | Wrapper<Pack> wrapper = new EntityWrapper<Pack>().eq(humpToLine(String.valueOf(param.get("key"))), param.get("val")); |
| | | if (null != packService.selectOne(wrapper)){ |
| | | if (null != packService.selectOne(wrapper)) { |
| | | return R.parse(BaseRes.REPEAT).add(getComment(Pack.class, String.valueOf(param.get("key")))); |
| | | } |
| | | return R.ok(); |
| | |
| | | |
| | | /** |
| | | * 日志统计控制器层 |
| | | * |
| | | * @author admin |
| | | * @date 2018年11月23日 |
| | | */ |
| | |
| | | @RequestMapping("/report") |
| | | public class ReportQueryController extends BaseController { |
| | | |
| | | @Autowired |
| | | private LocDetlService locDetlService; |
| | | @Autowired |
| | | private ReportQueryMapper reportQueryMapper; |
| | | @Autowired |
| | | private LocDetlService locDetlService; |
| | | @Autowired |
| | | private ReportQueryMapper reportQueryMapper; |
| | | |
| | | //------------------库位使用统计-------------------------------------- |
| | | @RequestMapping("/viewStockUseList.action") |
| | | public R queryViewStockUseListByPages(@RequestParam(defaultValue = "1")Integer curr, |
| | | @RequestParam(defaultValue = "10")Integer limit, |
| | | @RequestParam Map<String, Object> param){ |
| | | ViewStockUseBean bean = new ViewStockUseBean(); |
| | | bean.setPageSize(limit); |
| | | bean.setPageNumber(curr); |
| | | List<ViewStockUseBean> list= reportQueryMapper.queryViewStockUseList(bean); |
| | | int count = reportQueryMapper.getViewStockUseCount(bean); |
| | | Page<ViewStockUseBean> page = new Page<>(); |
| | | page.setRecords(list); |
| | | page.setTotal(count); |
| | | return R.ok(page); |
| | | } |
| | | //------------------库位使用统计-------------------------------------- |
| | | @RequestMapping("/viewStockUseList.action") |
| | | public R queryViewStockUseListByPages(@RequestParam(defaultValue = "1") Integer curr, |
| | | @RequestParam(defaultValue = "10") Integer limit, |
| | | @RequestParam Map<String, Object> param) { |
| | | ViewStockUseBean bean = new ViewStockUseBean(); |
| | | bean.setPageSize(limit); |
| | | bean.setPageNumber(curr); |
| | | List<ViewStockUseBean> list = reportQueryMapper.queryViewStockUseList(bean); |
| | | int count = reportQueryMapper.getViewStockUseCount(bean); |
| | | Page<ViewStockUseBean> page = new Page<>(); |
| | | page.setRecords(list); |
| | | page.setTotal(count); |
| | | return R.ok(page); |
| | | } |
| | | |
| | | // 导出 |
| | | @RequestMapping(value = "/viewStockUseExport.action") |
| | | @ManagerAuth(memo = "库位使用统计导出") |
| | | public R viewStockUseExport(@RequestBody JSONObject param){ |
| | | List<String> fields = JSONObject.parseArray(param.getJSONArray("fields").toJSONString(), String.class); |
| | | List<ViewStockUseBean> list = reportQueryMapper.getViewStockUseAll(new ViewStockUseBean()); |
| | | return R.ok(exportSupport(list, fields)); |
| | | } |
| | | // 导出 |
| | | @RequestMapping(value = "/viewStockUseExport.action") |
| | | @ManagerAuth(memo = "库位使用统计导出") |
| | | public R viewStockUseExport(@RequestBody JSONObject param) { |
| | | List<String> fields = JSONObject.parseArray(param.getJSONArray("fields").toJSONString(), String.class); |
| | | List<ViewStockUseBean> list = reportQueryMapper.getViewStockUseAll(new ViewStockUseBean()); |
| | | return R.ok(exportSupport(list, fields)); |
| | | } |
| | | |
| | | //------------------库存滞留统计-------------------------------------- |
| | | @RequestMapping("/viewStayTimeList.action") |
| | | public Map<String,Object> queryViewStayTimeListByPages(@RequestParam(defaultValue = "1")Integer curr, |
| | | @RequestParam(defaultValue = "10")Integer limit, |
| | | @RequestParam Map<String, Object> param){ |
| | | ViewStayTimeBean bean = new ViewStayTimeBean(); |
| | | bean.setPageSize(limit); |
| | | bean.setPageNumber(curr); |
| | | String locNo = String.valueOf(param.get("loc_no")); |
| | | if (!Cools.isEmpty(locNo) && !locNo.equals("null")) { |
| | | bean.setLoc_no(locNo); |
| | | } |
| | | List<ViewStayTimeBean> list = reportQueryMapper.queryViewStayTimeList(bean); |
| | | int count = reportQueryMapper.getViewStayTimeCount(bean); |
| | | Page<ViewStayTimeBean> page = new Page<>(); |
| | | page.setRecords(list); |
| | | page.setTotal(count); |
| | | return R.ok(page); |
| | | } |
| | | //------------------库存滞留统计-------------------------------------- |
| | | @RequestMapping("/viewStayTimeList.action") |
| | | public Map<String, Object> queryViewStayTimeListByPages(@RequestParam(defaultValue = "1") Integer curr, |
| | | @RequestParam(defaultValue = "10") Integer limit, |
| | | @RequestParam Map<String, Object> param) { |
| | | ViewStayTimeBean bean = new ViewStayTimeBean(); |
| | | bean.setPageSize(limit); |
| | | bean.setPageNumber(curr); |
| | | String locNo = String.valueOf(param.get("loc_no")); |
| | | if (!Cools.isEmpty(locNo) && !locNo.equals("null")) { |
| | | bean.setLoc_no(locNo); |
| | | } |
| | | List<ViewStayTimeBean> list = reportQueryMapper.queryViewStayTimeList(bean); |
| | | int count = reportQueryMapper.getViewStayTimeCount(bean); |
| | | Page<ViewStayTimeBean> page = new Page<>(); |
| | | page.setRecords(list); |
| | | page.setTotal(count); |
| | | return R.ok(page); |
| | | } |
| | | |
| | | // 导出 |
| | | @RequestMapping(value = "/viewStayTimeExport.action") |
| | | @ManagerAuth(memo = "库存滞留统计导出") |
| | | public R viewStayTimeExport(@RequestBody JSONObject param){ |
| | | List<String> fields = JSONObject.parseArray(param.getJSONArray("fields").toJSONString(), String.class); |
| | | List<ViewStayTimeBean> list = reportQueryMapper.getViewStayTimeAll(new ViewStayTimeBean()); |
| | | return R.ok(exportSupport(list, fields)); |
| | | } |
| | | // 导出 |
| | | @RequestMapping(value = "/viewStayTimeExport.action") |
| | | @ManagerAuth(memo = "库存滞留统计导出") |
| | | public R viewStayTimeExport(@RequestBody JSONObject param) { |
| | | List<String> fields = JSONObject.parseArray(param.getJSONArray("fields").toJSONString(), String.class); |
| | | List<ViewStayTimeBean> list = reportQueryMapper.getViewStayTimeAll(new ViewStayTimeBean()); |
| | | return R.ok(exportSupport(list, fields)); |
| | | } |
| | | |
| | | //-----------------库存MAP图-------------------------------------- |
| | | @RequestMapping("/viewLocMapList/rows.action") |
| | | public R queryViewLocMapRows(){ |
| | | return R.ok().add(reportQueryMapper.getViewLocRowTotal()); |
| | | } |
| | | //-----------------库存MAP图-------------------------------------- |
| | | @RequestMapping("/viewLocMapList/rows.action") |
| | | public R queryViewLocMapRows() { |
| | | return R.ok().add(reportQueryMapper.getViewLocRowTotal()); |
| | | } |
| | | |
| | | @RequestMapping("/viewLocMapList.action") |
| | | public R queryViewLocMapListByPages(@RequestParam(defaultValue = "1")Integer row){ |
| | | // 获取排级数据 |
| | | // 表格标题:列 ===>> 升序 |
| | | List<String> bays = reportQueryMapper.getViewLocBayCount(row); |
| | | // !表格第一列放层级数 |
| | | bays.add(0, ""); |
| | | // 表格行:层 ====>> 倒序 |
| | | List<String> levs = reportQueryMapper.getViewLocLevCount(row); |
| | | List<Map<String, Object>> body = new ArrayList<>(); |
| | | for (String lev : levs){ |
| | | // 获取层级数据 |
| | | List<ViewLocMapDto> dtos = reportQueryMapper.getViewLocBays(row, Integer.parseInt(lev)); |
| | | // !表格第一列放层级数 |
| | | dtos.add(0, new ViewLocMapDto(null ,null, lev)); |
| | | Map<String, Object> map = new HashMap<>(); |
| | | map.put("loc", dtos); |
| | | body.add(map); |
| | | } |
| | | Map<String, Object> result = new HashMap<>(); |
| | | result.put("title", bays); |
| | | result.put("body", body); |
| | | return R.ok(result); |
| | | } |
| | | @RequestMapping("/viewLocMapList.action") |
| | | public R queryViewLocMapListByPages(@RequestParam(defaultValue = "1") Integer row) { |
| | | // 获取排级数据 |
| | | // 表格标题:列 ===>> 升序 |
| | | List<String> bays = reportQueryMapper.getViewLocBayCount(row); |
| | | // !表格第一列放层级数 |
| | | bays.add(0, ""); |
| | | // 表格行:层 ====>> 倒序 |
| | | List<String> levs = reportQueryMapper.getViewLocLevCount(row); |
| | | List<Map<String, Object>> body = new ArrayList<>(); |
| | | for (String lev : levs) { |
| | | // 获取层级数据 |
| | | List<ViewLocMapDto> dtos = reportQueryMapper.getViewLocBays(row, Integer.parseInt(lev)); |
| | | // !表格第一列放层级数 |
| | | dtos.add(0, new ViewLocMapDto(null, null, lev)); |
| | | Map<String, Object> map = new HashMap<>(); |
| | | map.put("loc", dtos); |
| | | body.add(map); |
| | | } |
| | | Map<String, Object> result = new HashMap<>(); |
| | | result.put("title", bays); |
| | | result.put("body", body); |
| | | return R.ok(result); |
| | | } |
| | | |
| | | |
| | | //------------------站点日入出库次数统计-------------------------------------- |
| | | @RequestMapping("/viewInOutList.action") |
| | | public Map<String,Object> viewInOutList(@RequestParam(defaultValue = "1")Integer curr, |
| | | @RequestParam(defaultValue = "10")Integer limit, |
| | | @RequestParam Map<String, Object> param){ |
| | | ViewInOutBean bean = new ViewInOutBean(); |
| | | bean.setPageSize(limit); |
| | | bean.setPageNumber(curr); |
| | | if (!Cools.isEmpty(param.get("modi_time"))) { |
| | | String[] dates = param.get("modi_time").toString().split(RANGE_TIME_LINK); |
| | | bean.setBegin_date(dates[0]); |
| | | bean.setEnd_date(dates[1]); |
| | | } |
| | | int count = 0; |
| | | List<ViewInOutBean> list = new ArrayList<>(); |
| | | if (param.get("type") == null || param.get("type").equals(1)) { |
| | | list = reportQueryMapper.queryViewInOutListDay(bean); |
| | | count = reportQueryMapper.getViewInOutCountDay(bean); |
| | | }else if ( param.get("type").equals("2")) { |
| | | list = reportQueryMapper.queryViewInOutListMonth(bean); |
| | | count = reportQueryMapper.getViewInOutCountMonth(bean); |
| | | } else if (param.get("type").equals("3")) { |
| | | list = reportQueryMapper.queryViewInOutListYear(bean); |
| | | count = reportQueryMapper.getViewInOutCountYear(bean); |
| | | }else { |
| | | list = reportQueryMapper.queryViewInOutListDay(bean); |
| | | count = reportQueryMapper.getViewInOutCountDay(bean); |
| | | } |
| | | //------------------站点日入出库次数统计-------------------------------------- |
| | | @RequestMapping("/viewInOutList.action") |
| | | public Map<String, Object> viewInOutList(@RequestParam(defaultValue = "1") Integer curr, |
| | | @RequestParam(defaultValue = "10") Integer limit, |
| | | @RequestParam Map<String, Object> param) { |
| | | ViewInOutBean bean = new ViewInOutBean(); |
| | | bean.setPageSize(limit); |
| | | bean.setPageNumber(curr); |
| | | if (!Cools.isEmpty(param.get("modi_time"))) { |
| | | String[] dates = param.get("modi_time").toString().split(RANGE_TIME_LINK); |
| | | bean.setBegin_date(dates[0]); |
| | | bean.setEnd_date(dates[1]); |
| | | } |
| | | int count = 0; |
| | | List<ViewInOutBean> list = new ArrayList<>(); |
| | | if (param.get("type") == null || param.get("type").equals(1)) { |
| | | list = reportQueryMapper.queryViewInOutListDay(bean); |
| | | count = reportQueryMapper.getViewInOutCountDay(bean); |
| | | } else if (param.get("type").equals("2")) { |
| | | list = reportQueryMapper.queryViewInOutListMonth(bean); |
| | | count = reportQueryMapper.getViewInOutCountMonth(bean); |
| | | } else if (param.get("type").equals("3")) { |
| | | list = reportQueryMapper.queryViewInOutListYear(bean); |
| | | count = reportQueryMapper.getViewInOutCountYear(bean); |
| | | } else { |
| | | list = reportQueryMapper.queryViewInOutListDay(bean); |
| | | count = reportQueryMapper.getViewInOutCountDay(bean); |
| | | } |
| | | // List<ViewInOutBean> list = reportQueryMapper.queryViewInOutList(bean); |
| | | Page<ViewInOutBean> page = new Page<>(); |
| | | page.setRecords(list); |
| | | page.setTotal(count); |
| | | return R.ok(page); |
| | | } |
| | | Page<ViewInOutBean> page = new Page<>(); |
| | | page.setRecords(list); |
| | | page.setTotal(count); |
| | | return R.ok(page); |
| | | } |
| | | |
| | | @RequestMapping("/viewInOutList/count") |
| | | public R getAllCount() { |
| | | ViewInOutBean bean = new ViewInOutBean(); |
| | | bean.setPageSize(99999); |
| | | bean.setPageNumber(1); |
| | | List<ViewInOutBean> list = new ArrayList<>(); |
| | | Map<String, Double> map = new HashMap<>(); |
| | | Double in = 0.0; |
| | | Double out = 0.0; |
| | | list = reportQueryMapper.queryViewInOutListDay(bean); |
| | | for (ViewInOutBean bean1 : list) { |
| | | in += bean1.getSto_qty().doubleValue(); |
| | | out += bean1.getRet_qty().doubleValue(); |
| | | } |
| | | map.put("in", in); |
| | | map.put("out", out); |
| | | return R.ok(map); |
| | | } |
| | | @RequestMapping("/viewInOutList/count") |
| | | public R getAllCount() { |
| | | ViewInOutBean bean = new ViewInOutBean(); |
| | | bean.setPageSize(99999); |
| | | bean.setPageNumber(1); |
| | | List<ViewInOutBean> list = new ArrayList<>(); |
| | | Map<String, Double> map = new HashMap<>(); |
| | | Double in = 0.0; |
| | | Double out = 0.0; |
| | | list = reportQueryMapper.queryViewInOutListDay(bean); |
| | | for (ViewInOutBean bean1 : list) { |
| | | in += bean1.getSto_qty().doubleValue(); |
| | | out += bean1.getRet_qty().doubleValue(); |
| | | } |
| | | map.put("in", in); |
| | | map.put("out", out); |
| | | return R.ok(map); |
| | | } |
| | | |
| | | /** |
| | | * 获取库存总数 |
| | | * @return |
| | | */ |
| | | @RequestMapping("/viewInOutList/date/count") |
| | | public R getCount(@RequestBody Map<String, String> param){ |
| | | ViewInOutBean bean = new ViewInOutBean(); |
| | | bean.setPageSize(99999); |
| | | bean.setPageNumber(1); |
| | | if (!Cools.isEmpty(param.get("modi_time"))) { |
| | | String[] dates = param.get("modi_time").toString().split(RANGE_TIME_LINK); |
| | | bean.setBegin_date(dates[0]); |
| | | bean.setEnd_date(dates[1]); |
| | | } |
| | | Map<String, Double> map = new HashMap<>(); |
| | | Double in = 0.0; |
| | | Double out = 0.0; |
| | | List<ViewInOutBean> list = new ArrayList<>(); |
| | | if (param.get("type") == null || param.get("type").equals(1)) { |
| | | list = reportQueryMapper.queryViewInOutListDay(bean); |
| | | }else if ( param.get("type").equals("2")) { |
| | | list = reportQueryMapper.queryViewInOutListMonth(bean); |
| | | } else if (param.get("type").equals("3")) { |
| | | list = reportQueryMapper.queryViewInOutListYear(bean); |
| | | }else { |
| | | list = reportQueryMapper.queryViewInOutListDay(bean); |
| | | /** |
| | | * 获取库存总数 |
| | | * |
| | | * @return |
| | | */ |
| | | @RequestMapping("/viewInOutList/date/count") |
| | | public R getCount(@RequestBody Map<String, String> param) { |
| | | ViewInOutBean bean = new ViewInOutBean(); |
| | | bean.setPageSize(99999); |
| | | bean.setPageNumber(1); |
| | | if (!Cools.isEmpty(param.get("modi_time"))) { |
| | | String[] dates = param.get("modi_time").toString().split(RANGE_TIME_LINK); |
| | | bean.setBegin_date(dates[0]); |
| | | bean.setEnd_date(dates[1]); |
| | | } |
| | | Map<String, Double> map = new HashMap<>(); |
| | | Double in = 0.0; |
| | | Double out = 0.0; |
| | | List<ViewInOutBean> list = new ArrayList<>(); |
| | | if (param.get("type") == null || param.get("type").equals(1)) { |
| | | list = reportQueryMapper.queryViewInOutListDay(bean); |
| | | } else if (param.get("type").equals("2")) { |
| | | list = reportQueryMapper.queryViewInOutListMonth(bean); |
| | | } else if (param.get("type").equals("3")) { |
| | | list = reportQueryMapper.queryViewInOutListYear(bean); |
| | | } else { |
| | | list = reportQueryMapper.queryViewInOutListDay(bean); |
| | | |
| | | } |
| | | for (ViewInOutBean bean1 : list) { |
| | | in += bean1.getSto_qty().doubleValue(); |
| | | out += bean1.getRet_qty().doubleValue(); |
| | | } |
| | | map.put("in", in); |
| | | map.put("out", out); |
| | | return R.ok(map); |
| | | } |
| | | } |
| | | for (ViewInOutBean bean1 : list) { |
| | | in += bean1.getSto_qty().doubleValue(); |
| | | out += bean1.getRet_qty().doubleValue(); |
| | | } |
| | | map.put("in", in); |
| | | map.put("out", out); |
| | | return R.ok(map); |
| | | } |
| | | |
| | | //excel导出 |
| | | @RequestMapping("/viewInOutExport.action") |
| | | @ManagerAuth(memo = "站点日入出库次数统计导出") |
| | | public R viewInOutExport(@RequestBody JSONObject param){ |
| | | List<String> fields = JSONObject.parseArray(param.getJSONArray("fields").toJSONString(), String.class); |
| | | List<ViewInOutBean> list = reportQueryMapper.getViewInOutAll(new ViewInOutBean()); |
| | | return R.ok(exportSupport(list, fields)); |
| | | } |
| | | //excel导出 |
| | | @RequestMapping("/viewInOutExport.action") |
| | | @ManagerAuth(memo = "站点日入出库次数统计导出") |
| | | public R viewInOutExport(@RequestBody JSONObject param) { |
| | | List<String> fields = JSONObject.parseArray(param.getJSONArray("fields").toJSONString(), String.class); |
| | | List<ViewInOutBean> list = reportQueryMapper.getViewInOutAll(new ViewInOutBean()); |
| | | return R.ok(exportSupport(list, fields)); |
| | | } |
| | | |
| | | //------------------日入库明细统计-------------------------------------- |
| | | @RequestMapping("/viewWorkInList.action") |
| | | public Map<String,Object> viewWorkInList(ViewWorkInBean bean){ |
| | | List<ViewWorkInBean> list = reportQueryMapper.queryViewWorkInList(bean); |
| | | int count = reportQueryMapper.getViewWorkInCount(bean); |
| | | Page<ViewWorkInBean> page = new Page<>(); |
| | | page.setRecords(list); |
| | | page.setTotal(count); |
| | | return R.ok(page); |
| | | } |
| | | //------------------日入库明细统计-------------------------------------- |
| | | @RequestMapping("/viewWorkInList.action") |
| | | public Map<String, Object> viewWorkInList(ViewWorkInBean bean) { |
| | | List<ViewWorkInBean> list = reportQueryMapper.queryViewWorkInList(bean); |
| | | int count = reportQueryMapper.getViewWorkInCount(bean); |
| | | Page<ViewWorkInBean> page = new Page<>(); |
| | | page.setRecords(list); |
| | | page.setTotal(count); |
| | | return R.ok(page); |
| | | } |
| | | |
| | | /** |
| | | * 日入库汇总查询 |
| | | * @return |
| | | */ |
| | | @RequestMapping("/viewWorkCountInList.action") |
| | | public R viewWorkCountInList(@RequestParam(defaultValue = "1")Integer curr, |
| | | @RequestParam(defaultValue = "10")Integer limit, |
| | | @RequestParam Map<String, Object> param){ |
| | | String startTime = "1970.1.2"; |
| | | String endTime = "2099.1.2"; |
| | | if (!Cools.isEmpty(param.get("query_date"))) { |
| | | String queryDate = (String) param.get("query_date"); |
| | | String[] split = queryDate.split(" - "); |
| | | startTime= split[0].split(" ")[0].replace("-","."); |
| | | endTime = split[1].split(" ")[0].replace("-","."); |
| | | } |
| | | List<ViewWorkCountInView> allCountIn = reportQueryMapper.selectWorkCountIn(Integer.valueOf((String) param.get("pageNumber")), Integer.valueOf((String) param.get("pageSize")), (String) param.get("matnr"), startTime,endTime); |
| | | Integer total = reportQueryMapper.selectWorkCountInTotal((String) param.get("matnr"), startTime,endTime); |
| | | Page<ViewWorkCountInView> page = new Page<>(); |
| | | page.setRecords(allCountIn); |
| | | page.setTotal(total); |
| | | Integer sum = reportQueryMapper.selectWorkCountInSum((String) param.get("matnr"), startTime,endTime); |
| | | HashMap<String, Object> result = new HashMap<>(); |
| | | result.put("page",page); |
| | | result.put("sum",sum); |
| | | return R.ok(result); |
| | | } |
| | | /** |
| | | * 日入库汇总查询 |
| | | * |
| | | * @return |
| | | */ |
| | | @RequestMapping("/viewWorkCountInList.action") |
| | | public R viewWorkCountInList(@RequestParam(defaultValue = "1") Integer curr, |
| | | @RequestParam(defaultValue = "10") Integer limit, |
| | | @RequestParam Map<String, Object> param) { |
| | | String startTime = "1970.1.2"; |
| | | String endTime = "2099.1.2"; |
| | | if (!Cools.isEmpty(param.get("query_date"))) { |
| | | String queryDate = (String) param.get("query_date"); |
| | | String[] split = queryDate.split(" - "); |
| | | startTime = split[0].split(" ")[0].replace("-", "."); |
| | | endTime = split[1].split(" ")[0].replace("-", "."); |
| | | } |
| | | List<ViewWorkCountInView> allCountIn = reportQueryMapper.selectWorkCountIn(Integer.valueOf((String) param.get("pageNumber")), Integer.valueOf((String) param.get("pageSize")), (String) param.get("matnr"), startTime, endTime); |
| | | Integer total = reportQueryMapper.selectWorkCountInTotal((String) param.get("matnr"), startTime, endTime); |
| | | Page<ViewWorkCountInView> page = new Page<>(); |
| | | page.setRecords(allCountIn); |
| | | page.setTotal(total); |
| | | Integer sum = reportQueryMapper.selectWorkCountInSum((String) param.get("matnr"), startTime, endTime); |
| | | HashMap<String, Object> result = new HashMap<>(); |
| | | result.put("page", page); |
| | | result.put("sum", sum); |
| | | return R.ok(result); |
| | | } |
| | | |
| | | /** |
| | | * 日出库汇总 |
| | | */ |
| | | @RequestMapping("/viewWorkCountOutList.action") |
| | | public R viewWorkCountOutList(@RequestParam(defaultValue = "1")Integer curr, |
| | | @RequestParam(defaultValue = "10")Integer limit, |
| | | @RequestParam Map<String, Object> param){ |
| | | String startTime = "1970.1.2"; |
| | | String endTime = "2099.1.2"; |
| | | if (!Cools.isEmpty(param.get("query_date"))) { |
| | | String queryDate = (String) param.get("query_date"); |
| | | String[] split = queryDate.split(" - "); |
| | | startTime= split[0].split(" ")[0].replace("-","."); |
| | | endTime = split[1].split(" ")[0].replace("-","."); |
| | | } |
| | | List<ViewWorkCountInView> allCountIn = reportQueryMapper.selectWorkCountOut(Integer.valueOf((String) param.get("pageNumber")), Integer.valueOf((String) param.get("pageSize")), (String) param.get("matnr"), startTime,endTime); |
| | | Integer total = reportQueryMapper.selectWorkCountOutTotal((String) param.get("matnr"), startTime,endTime); |
| | | Page<ViewWorkCountInView> page = new Page<>(); |
| | | page.setRecords(allCountIn); |
| | | page.setTotal(total); |
| | | Integer sum = reportQueryMapper.selectWorkCountOutSum((String) param.get("matnr"), startTime,endTime); |
| | | HashMap<String, Object> result = new HashMap<>(); |
| | | result.put("page",page); |
| | | result.put("sum",sum); |
| | | return R.ok(result); |
| | | } |
| | | /** |
| | | * 日出库汇总 |
| | | */ |
| | | @RequestMapping("/viewWorkCountOutList.action") |
| | | public R viewWorkCountOutList(@RequestParam(defaultValue = "1") Integer curr, |
| | | @RequestParam(defaultValue = "10") Integer limit, |
| | | @RequestParam Map<String, Object> param) { |
| | | String startTime = "1970.1.2"; |
| | | String endTime = "2099.1.2"; |
| | | if (!Cools.isEmpty(param.get("query_date"))) { |
| | | String queryDate = (String) param.get("query_date"); |
| | | String[] split = queryDate.split(" - "); |
| | | startTime = split[0].split(" ")[0].replace("-", "."); |
| | | endTime = split[1].split(" ")[0].replace("-", "."); |
| | | } |
| | | List<ViewWorkCountInView> allCountIn = reportQueryMapper.selectWorkCountOut(Integer.valueOf((String) param.get("pageNumber")), Integer.valueOf((String) param.get("pageSize")), (String) param.get("matnr"), startTime, endTime); |
| | | Integer total = reportQueryMapper.selectWorkCountOutTotal((String) param.get("matnr"), startTime, endTime); |
| | | Page<ViewWorkCountInView> page = new Page<>(); |
| | | page.setRecords(allCountIn); |
| | | page.setTotal(total); |
| | | Integer sum = reportQueryMapper.selectWorkCountOutSum((String) param.get("matnr"), startTime, endTime); |
| | | HashMap<String, Object> result = new HashMap<>(); |
| | | result.put("page", page); |
| | | result.put("sum", sum); |
| | | return R.ok(result); |
| | | } |
| | | |
| | | //excel导出 |
| | | @RequestMapping("/viewWorkInExport.action") |
| | | @ManagerAuth(memo = "日入库明细统计导出") |
| | | public R viewWorkInExport(@RequestBody JSONObject param){ |
| | | List<String> fields = JSONObject.parseArray(param.getJSONArray("fields").toJSONString(), String.class); |
| | | @SuppressWarnings("unchecked") |
| | | ViewWorkInBean bean = Cools.conver((Map<? extends String, ?>) param.get("exportData"), ViewWorkInBean.class); |
| | | bean.setQuery_date(bean.getQuery_date()); |
| | | List<ViewWorkInBean> list = reportQueryMapper.getViewWorkInAll(bean); |
| | | return R.ok(exportSupport(list, fields)); |
| | | } |
| | | //excel导出 |
| | | @RequestMapping("/viewWorkInExport.action") |
| | | @ManagerAuth(memo = "日入库明细统计导出") |
| | | public R viewWorkInExport(@RequestBody JSONObject param) { |
| | | List<String> fields = JSONObject.parseArray(param.getJSONArray("fields").toJSONString(), String.class); |
| | | @SuppressWarnings("unchecked") |
| | | ViewWorkInBean bean = Cools.conver((Map<? extends String, ?>) param.get("exportData"), ViewWorkInBean.class); |
| | | bean.setQuery_date(bean.getQuery_date()); |
| | | List<ViewWorkInBean> list = reportQueryMapper.getViewWorkInAll(bean); |
| | | return R.ok(exportSupport(list, fields)); |
| | | } |
| | | |
| | | //------------------日出库明细统计-------------------------------------- |
| | | @RequestMapping("/viewWorkOutList.action") |
| | | public R viewWorkOutList(ViewWorkInBean bean){ |
| | | List<ViewWorkInBean> list = reportQueryMapper.queryViewWorkOutList(bean); |
| | | int count = reportQueryMapper.getViewWorkOutCount(bean); |
| | | Page<ViewWorkInBean> page = new Page<>(); |
| | | page.setRecords(list); |
| | | page.setTotal(count); |
| | | return R.ok(page); |
| | | } |
| | | //------------------日出库明细统计-------------------------------------- |
| | | @RequestMapping("/viewWorkOutList.action") |
| | | public R viewWorkOutList(ViewWorkInBean bean) { |
| | | List<ViewWorkInBean> list = reportQueryMapper.queryViewWorkOutList(bean); |
| | | int count = reportQueryMapper.getViewWorkOutCount(bean); |
| | | Page<ViewWorkInBean> page = new Page<>(); |
| | | page.setRecords(list); |
| | | page.setTotal(count); |
| | | return R.ok(page); |
| | | } |
| | | |
| | | //excel导出 |
| | | @RequestMapping("/viewWorkOutExport.action") |
| | | @ManagerAuth(memo = "日出库明细统计导出") |
| | | public R viewWorkOutExport(@RequestBody JSONObject param){ |
| | | List<String> fields = JSONObject.parseArray(param.getJSONArray("fields").toJSONString(), String.class); |
| | | @SuppressWarnings("unchecked") |
| | | ViewWorkInBean bean = Cools.conver((Map<? extends String, ?>) param.get("exportData"), ViewWorkInBean.class); |
| | | bean.setQuery_date(bean.getQuery_date()); |
| | | List<ViewWorkInBean> list = reportQueryMapper.getViewWorkOutAll(bean); |
| | | return R.ok(exportSupport(list, fields)); |
| | | } |
| | | //excel导出 |
| | | @RequestMapping("/viewWorkOutExport.action") |
| | | @ManagerAuth(memo = "日出库明细统计导出") |
| | | public R viewWorkOutExport(@RequestBody JSONObject param) { |
| | | List<String> fields = JSONObject.parseArray(param.getJSONArray("fields").toJSONString(), String.class); |
| | | @SuppressWarnings("unchecked") |
| | | ViewWorkInBean bean = Cools.conver((Map<? extends String, ?>) param.get("exportData"), ViewWorkInBean.class); |
| | | bean.setQuery_date(bean.getQuery_date()); |
| | | List<ViewWorkInBean> list = reportQueryMapper.getViewWorkOutAll(bean); |
| | | return R.ok(exportSupport(list, fields)); |
| | | } |
| | | |
| | | private <T> void convert(Map<String, Object> map, EntityWrapper<T> wrapper){ |
| | | for (Map.Entry<String, Object> entry : map.entrySet()){ |
| | | String val = String.valueOf(entry.getValue()); |
| | | if (val.contains(RANGE_TIME_LINK)){ |
| | | String[] dates = val.split(RANGE_TIME_LINK); |
| | | wrapper.ge(entry.getKey(), DateUtils.convert(dates[0])); |
| | | wrapper.le(entry.getKey(), DateUtils.convert(dates[1])); |
| | | } else { |
| | | wrapper.like(entry.getKey(), val); |
| | | } |
| | | } |
| | | } |
| | | private <T> void convert(Map<String, Object> map, EntityWrapper<T> wrapper) { |
| | | for (Map.Entry<String, Object> entry : map.entrySet()) { |
| | | String val = String.valueOf(entry.getValue()); |
| | | if (val.contains(RANGE_TIME_LINK)) { |
| | | String[] dates = val.split(RANGE_TIME_LINK); |
| | | wrapper.ge(entry.getKey(), DateUtils.convert(dates[0])); |
| | | wrapper.le(entry.getKey(), DateUtils.convert(dates[1])); |
| | | } else { |
| | | wrapper.like(entry.getKey(), val); |
| | | } |
| | | } |
| | | } |
| | | |
| | | } |
| | |
| | | import com.baomidou.mybatisplus.mapper.EntityWrapper; |
| | | import com.baomidou.mybatisplus.mapper.Wrapper; |
| | | import com.baomidou.mybatisplus.plugins.Page; |
| | | import com.zy.asrs.entity.RowLastno; |
| | | import com.zy.asrs.service.RowLastnoService; |
| | | import com.zy.common.web.BaseController; |
| | | import com.core.annotations.ManagerAuth; |
| | | import com.core.common.BaseRes; |
| | | import com.core.common.Cools; |
| | | import com.core.common.DateUtils; |
| | | import com.core.common.R; |
| | | import com.zy.asrs.entity.RowLastno; |
| | | import com.zy.asrs.service.RowLastnoService; |
| | | import com.zy.common.web.BaseController; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | |
| | | |
| | | @RequestMapping(value = "/rowLastno/list/auth") |
| | | @ManagerAuth |
| | | public R list(@RequestParam(defaultValue = "1")Integer curr, |
| | | @RequestParam(defaultValue = "10")Integer limit, |
| | | @RequestParam(required = false)String orderByField, |
| | | @RequestParam(required = false)String orderByType, |
| | | @RequestParam Map<String, Object> param){ |
| | | public R list(@RequestParam(defaultValue = "1") Integer curr, |
| | | @RequestParam(defaultValue = "10") Integer limit, |
| | | @RequestParam(required = false) String orderByField, |
| | | @RequestParam(required = false) String orderByType, |
| | | @RequestParam Map<String, Object> param) { |
| | | excludeTrash(param); |
| | | EntityWrapper<RowLastno> wrapper = new EntityWrapper<>(); |
| | | convert(param, wrapper); |
| | | if (!Cools.isEmpty(orderByField)){wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType));} |
| | | if (!Cools.isEmpty(orderByField)) { |
| | | wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType)); |
| | | } |
| | | return R.ok(rowLastnoService.selectPage(new Page<>(curr, limit), wrapper)); |
| | | } |
| | | |
| | | private <T> void convert(Map<String, Object> map, EntityWrapper<T> wrapper){ |
| | | for (Map.Entry<String, Object> entry : map.entrySet()){ |
| | | private <T> void convert(Map<String, Object> map, EntityWrapper<T> wrapper) { |
| | | for (Map.Entry<String, Object> entry : map.entrySet()) { |
| | | String val = String.valueOf(entry.getValue()); |
| | | if (val.contains(RANGE_TIME_LINK)){ |
| | | if (val.contains(RANGE_TIME_LINK)) { |
| | | String[] dates = val.split(RANGE_TIME_LINK); |
| | | wrapper.ge(entry.getKey(), DateUtils.convert(dates[0])); |
| | | wrapper.le(entry.getKey(), DateUtils.convert(dates[1])); |
| | |
| | | return R.ok(); |
| | | } |
| | | |
| | | @RequestMapping(value = "/rowLastno/update/auth") |
| | | @ManagerAuth |
| | | public R update(RowLastno rowLastno){ |
| | | if (Cools.isEmpty(rowLastno) || null==rowLastno.getWhsType()){ |
| | | @RequestMapping(value = "/rowLastno/update/auth") |
| | | @ManagerAuth |
| | | public R update(RowLastno rowLastno) { |
| | | if (Cools.isEmpty(rowLastno) || null == rowLastno.getWhsType()) { |
| | | return R.error(); |
| | | } |
| | | rowLastno.setModiUser(getUserId()); |
| | |
| | | |
| | | @RequestMapping(value = "/rowLastno/delete/auth") |
| | | @ManagerAuth |
| | | public R delete(@RequestParam String param){ |
| | | public R delete(@RequestParam String param) { |
| | | List<RowLastno> list = JSONArray.parseArray(param, RowLastno.class); |
| | | if (Cools.isEmpty(list)){ |
| | | if (Cools.isEmpty(list)) { |
| | | return R.error(); |
| | | } |
| | | for (RowLastno entity : list){ |
| | | for (RowLastno entity : list) { |
| | | rowLastnoService.delete(new EntityWrapper<>(entity)); |
| | | } |
| | | return R.ok(); |
| | |
| | | |
| | | @RequestMapping(value = "/rowLastno/export/auth") |
| | | @ManagerAuth |
| | | public R export(@RequestBody JSONObject param){ |
| | | public R export(@RequestBody JSONObject param) { |
| | | List<String> fields = JSONObject.parseArray(param.getJSONArray("fields").toJSONString(), String.class); |
| | | EntityWrapper<RowLastno> wrapper = new EntityWrapper<>(); |
| | | Map<String, Object> map = excludeTrash(param.getJSONObject("rowLastno")); |
| | |
| | | wrapper.like("whs_type", condition); |
| | | Page<RowLastno> page = rowLastnoService.selectPage(new Page<>(0, 10), wrapper); |
| | | List<Map<String, Object>> result = new ArrayList<>(); |
| | | for (RowLastno rowLastno : page.getRecords()){ |
| | | for (RowLastno rowLastno : page.getRecords()) { |
| | | Map<String, Object> map = new HashMap<>(); |
| | | map.put("id", rowLastno.getWhsType()); |
| | | map.put("value", rowLastno.getWhsType()); |
| | |
| | | @ManagerAuth |
| | | public R query(@RequestBody JSONObject param) { |
| | | Wrapper<RowLastno> wrapper = new EntityWrapper<RowLastno>().eq(humpToLine(String.valueOf(param.get("key"))), param.get("val")); |
| | | if (null != rowLastnoService.selectOne(wrapper)){ |
| | | if (null != rowLastnoService.selectOne(wrapper)) { |
| | | return R.parse(BaseRes.REPEAT).add(getComment(RowLastno.class, String.valueOf(param.get("key")))); |
| | | } |
| | | return R.ok(); |
| | |
| | | package com.zy.asrs.controller; |
| | | |
| | | import com.alibaba.fastjson.JSONArray; |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.baomidou.mybatisplus.mapper.EntityWrapper; |
| | | import com.baomidou.mybatisplus.mapper.Wrapper; |
| | | import com.baomidou.mybatisplus.plugins.Page; |
| | | import com.core.common.DateUtils; |
| | | import com.zy.asrs.entity.RowLastnoType; |
| | | import com.zy.asrs.service.RowLastnoTypeService; |
| | | import com.core.annotations.ManagerAuth; |
| | | import com.core.common.BaseRes; |
| | | import com.core.common.Cools; |
| | | import com.core.common.DateUtils; |
| | | import com.core.common.R; |
| | | import com.zy.asrs.entity.RowLastnoType; |
| | | import com.zy.asrs.service.RowLastnoTypeService; |
| | | import com.zy.common.web.BaseController; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.*; |
| | | import java.util.ArrayList; |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | @RestController |
| | | public class RowLastnoTypeController extends BaseController { |
| | |
| | | |
| | | @RequestMapping(value = "/rowLastnoType/list/auth") |
| | | @ManagerAuth |
| | | public R list(@RequestParam(defaultValue = "1")Integer curr, |
| | | @RequestParam(defaultValue = "10")Integer limit, |
| | | @RequestParam(required = false)String orderByField, |
| | | @RequestParam(required = false)String orderByType, |
| | | @RequestParam(required = false)String condition, |
| | | @RequestParam Map<String, Object> param){ |
| | | public R list(@RequestParam(defaultValue = "1") Integer curr, |
| | | @RequestParam(defaultValue = "10") Integer limit, |
| | | @RequestParam(required = false) String orderByField, |
| | | @RequestParam(required = false) String orderByType, |
| | | @RequestParam(required = false) String condition, |
| | | @RequestParam Map<String, Object> param) { |
| | | EntityWrapper<RowLastnoType> wrapper = new EntityWrapper<>(); |
| | | excludeTrash(param); |
| | | convert(param, wrapper); |
| | | allLike(RowLastnoType.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)); |
| | | } |
| | | return R.ok(rowLastnoTypeService.selectPage(new Page<>(curr, limit), wrapper)); |
| | | } |
| | | |
| | | private <T> void convert(Map<String, Object> map, EntityWrapper<T> wrapper){ |
| | | for (Map.Entry<String, Object> entry : map.entrySet()){ |
| | | private <T> void convert(Map<String, Object> map, EntityWrapper<T> wrapper) { |
| | | for (Map.Entry<String, Object> entry : map.entrySet()) { |
| | | String val = String.valueOf(entry.getValue()); |
| | | if (val.contains(RANGE_TIME_LINK)){ |
| | | if (val.contains(RANGE_TIME_LINK)) { |
| | | String[] dates = val.split(RANGE_TIME_LINK); |
| | | wrapper.ge(entry.getKey(), DateUtils.convert(dates[0])); |
| | | wrapper.le(entry.getKey(), DateUtils.convert(dates[1])); |
| | |
| | | return R.ok(); |
| | | } |
| | | |
| | | @RequestMapping(value = "/rowLastnoType/update/auth") |
| | | @ManagerAuth |
| | | public R update(RowLastnoType rowLastnoType){ |
| | | if (Cools.isEmpty(rowLastnoType) || null==rowLastnoType.getId()){ |
| | | @RequestMapping(value = "/rowLastnoType/update/auth") |
| | | @ManagerAuth |
| | | public R update(RowLastnoType rowLastnoType) { |
| | | if (Cools.isEmpty(rowLastnoType) || null == rowLastnoType.getId()) { |
| | | return R.error(); |
| | | } |
| | | rowLastnoTypeService.updateById(rowLastnoType); |
| | |
| | | |
| | | @RequestMapping(value = "/rowLastnoType/delete/auth") |
| | | @ManagerAuth |
| | | public R delete(@RequestParam(value="ids[]") Long[] ids){ |
| | | for (Long id : ids){ |
| | | public R delete(@RequestParam(value = "ids[]") Long[] ids) { |
| | | for (Long id : ids) { |
| | | rowLastnoTypeService.deleteById(id); |
| | | } |
| | | return R.ok(); |
| | |
| | | |
| | | @RequestMapping(value = "/rowLastnoType/export/auth") |
| | | @ManagerAuth |
| | | public R export(@RequestBody JSONObject param){ |
| | | public R export(@RequestBody JSONObject param) { |
| | | EntityWrapper<RowLastnoType> wrapper = new EntityWrapper<>(); |
| | | List<String> fields = JSONObject.parseArray(param.getJSONArray("fields").toJSONString(), String.class); |
| | | Map<String, Object> map = excludeTrash(param.getJSONObject("rowLastnoType")); |
| | |
| | | wrapper.like("id", condition); |
| | | Page<RowLastnoType> page = rowLastnoTypeService.selectPage(new Page<>(0, 10), wrapper); |
| | | List<Map<String, Object>> result = new ArrayList<>(); |
| | | for (RowLastnoType rowLastnoType : page.getRecords()){ |
| | | for (RowLastnoType rowLastnoType : page.getRecords()) { |
| | | Map<String, Object> map = new HashMap<>(); |
| | | map.put("id", rowLastnoType.getId()); |
| | | map.put("value", rowLastnoType.getId()); |
| | |
| | | @ManagerAuth |
| | | public R query(@RequestBody JSONObject param) { |
| | | Wrapper<RowLastnoType> wrapper = new EntityWrapper<RowLastnoType>().eq(humpToLine(String.valueOf(param.get("key"))), param.get("val")); |
| | | if (null != rowLastnoTypeService.selectOne(wrapper)){ |
| | | if (null != rowLastnoTypeService.selectOne(wrapper)) { |
| | | return R.parse(BaseRes.REPEAT).add(getComment(RowLastnoType.class, String.valueOf(param.get("key")))); |
| | | } |
| | | return R.ok(); |
| | |
| | | import com.baomidou.mybatisplus.mapper.EntityWrapper; |
| | | import com.baomidou.mybatisplus.mapper.Wrapper; |
| | | import com.baomidou.mybatisplus.plugins.Page; |
| | | import com.zy.asrs.entity.StaDesc; |
| | | import com.zy.asrs.entity.param.StaDescInitParam; |
| | | import com.zy.asrs.mapper.StaDescMapper; |
| | | import com.zy.asrs.service.StaDescService; |
| | | import com.zy.common.web.BaseController; |
| | | import com.core.annotations.ManagerAuth; |
| | | import com.core.common.BaseRes; |
| | | import com.core.common.Cools; |
| | | import com.core.common.DateUtils; |
| | | import com.core.common.R; |
| | | import com.zy.asrs.entity.StaDesc; |
| | | import com.zy.asrs.entity.param.StaDescInitParam; |
| | | import com.zy.asrs.mapper.StaDescMapper; |
| | | import com.zy.asrs.service.StaDescService; |
| | | import com.zy.common.web.BaseController; |
| | | import org.apache.ibatis.session.ExecutorType; |
| | | import org.apache.ibatis.session.SqlSession; |
| | | import org.apache.ibatis.session.SqlSessionFactory; |
| | |
| | | @ManagerAuth(memo = "初始化站点路径") |
| | | public R init(StaDescInitParam param) { |
| | | SqlSession sqlSession = null; |
| | | try{ |
| | | if (param.getTypeDesc()==1){ |
| | | try { |
| | | if (param.getTypeDesc() == 1) { |
| | | staDescService.delete(new EntityWrapper<>()); |
| | | } |
| | | String[] startStaList = param.getStartStaList().split(";"); |
| | | String[] endStaList = param.getEndStaList().split(";"); |
| | | List<StaDesc> staDescList = new ArrayList<>(); |
| | | sqlSession = sqlSessionFactory.openSession(ExecutorType.BATCH,false); |
| | | sqlSession = sqlSessionFactory.openSession(ExecutorType.BATCH, false); |
| | | StaDescMapper sqlSessionMapper = sqlSession.getMapper(StaDescMapper.class); |
| | | for (String startSta : startStaList){ |
| | | for (String endSta : endStaList){ |
| | | for (Integer type:param.getType()){ |
| | | for (String startSta : startStaList) { |
| | | for (String endSta : endStaList) { |
| | | for (Integer type : param.getType()) { |
| | | int sameRes = staDescService.selectCount(new EntityWrapper<StaDesc>() |
| | | .eq("type_no", type) |
| | | .eq("stn_no", Integer.parseInt(startSta)) |
| | |
| | | sqlSession.clearCache(); |
| | | |
| | | // staDescService.insertBatch(staDescList); |
| | | }catch (Exception e){ |
| | | } catch (Exception e) { |
| | | return R.error(e.getMessage()); |
| | | }finally { |
| | | } finally { |
| | | sqlSession.close(); |
| | | } |
| | | |
| | |
| | | |
| | | @RequestMapping(value = "/staDesc/list/auth") |
| | | @ManagerAuth |
| | | public R list(@RequestParam(defaultValue = "1")Integer curr, |
| | | @RequestParam(defaultValue = "10")Integer limit, |
| | | @RequestParam(required = false)String orderByField, |
| | | @RequestParam(required = false)String orderByType, |
| | | @RequestParam Map<String, Object> param){ |
| | | public R list(@RequestParam(defaultValue = "1") Integer curr, |
| | | @RequestParam(defaultValue = "10") Integer limit, |
| | | @RequestParam(required = false) String orderByField, |
| | | @RequestParam(required = false) String orderByType, |
| | | @RequestParam Map<String, Object> param) { |
| | | excludeTrash(param); |
| | | EntityWrapper<StaDesc> wrapper = new EntityWrapper<>(); |
| | | convert(param, wrapper); |
| | | if (!Cools.isEmpty(orderByField)){wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType));} |
| | | if (!Cools.isEmpty(orderByField)) { |
| | | wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType)); |
| | | } |
| | | return R.ok(staDescService.selectPage(new Page<>(curr, limit), wrapper)); |
| | | } |
| | | |
| | | private <T> void convert(Map<String, Object> map, EntityWrapper<T> wrapper){ |
| | | for (Map.Entry<String, Object> entry : map.entrySet()){ |
| | | private <T> void convert(Map<String, Object> map, EntityWrapper<T> wrapper) { |
| | | for (Map.Entry<String, Object> entry : map.entrySet()) { |
| | | String val = String.valueOf(entry.getValue()); |
| | | if (val.contains(RANGE_TIME_LINK)){ |
| | | if (val.contains(RANGE_TIME_LINK)) { |
| | | String[] dates = val.split(RANGE_TIME_LINK); |
| | | wrapper.ge(entry.getKey(), DateUtils.convert(dates[0])); |
| | | wrapper.le(entry.getKey(), DateUtils.convert(dates[1])); |
| | |
| | | return R.ok(); |
| | | } |
| | | |
| | | @RequestMapping(value = "/staDesc/update/auth") |
| | | @ManagerAuth(memo = "站点路径修改") |
| | | public R update(StaDesc staDesc){ |
| | | if (Cools.isEmpty(staDesc) || null==staDesc.getTypeId()){ |
| | | @RequestMapping(value = "/staDesc/update/auth") |
| | | @ManagerAuth(memo = "站点路径修改") |
| | | public R update(StaDesc staDesc) { |
| | | if (Cools.isEmpty(staDesc) || null == staDesc.getTypeId()) { |
| | | return R.error(); |
| | | } |
| | | staDesc.setModiUser(getUserId()); |
| | |
| | | |
| | | @RequestMapping(value = "/staDesc/delete/auth") |
| | | @ManagerAuth(memo = "站点路径删除") |
| | | public R delete(@RequestParam String param){ |
| | | public R delete(@RequestParam String param) { |
| | | List<StaDesc> list = JSONArray.parseArray(param, StaDesc.class); |
| | | if (Cools.isEmpty(list)){ |
| | | if (Cools.isEmpty(list)) { |
| | | return R.error(); |
| | | } |
| | | for (StaDesc entity : list){ |
| | | for (StaDesc entity : list) { |
| | | staDescService.delete(new EntityWrapper<>(entity)); |
| | | } |
| | | return R.ok(); |
| | |
| | | |
| | | @RequestMapping(value = "/staDesc/export/auth") |
| | | @ManagerAuth(memo = "站点路径导出") |
| | | public R export(@RequestBody JSONObject param){ |
| | | public R export(@RequestBody JSONObject param) { |
| | | List<String> fields = JSONObject.parseArray(param.getJSONArray("fields").toJSONString(), String.class); |
| | | EntityWrapper<StaDesc> wrapper = new EntityWrapper<>(); |
| | | Map<String, Object> map = excludeTrash(param.getJSONObject("staDesc")); |
| | |
| | | wrapper.like("crn_no", condition); |
| | | Page<StaDesc> page = staDescService.selectPage(new Page<>(0, 10), wrapper); |
| | | List<Map<String, Object>> result = new ArrayList<>(); |
| | | for (StaDesc staDesc : page.getRecords()){ |
| | | for (StaDesc staDesc : page.getRecords()) { |
| | | Map<String, Object> map = new HashMap<>(); |
| | | map.put("id", staDesc.getCrnNo()); |
| | | map.put("value", staDesc.getCrnNo()); |
| | |
| | | @ManagerAuth |
| | | public R query(@RequestBody JSONObject param) { |
| | | Wrapper<StaDesc> wrapper = new EntityWrapper<StaDesc>().eq(humpToLine(String.valueOf(param.get("key"))), param.get("val")); |
| | | if (null != staDescService.selectOne(wrapper)){ |
| | | if (null != staDescService.selectOne(wrapper)) { |
| | | return R.parse(BaseRes.REPEAT).add(getComment(StaDesc.class, String.valueOf(param.get("key")))); |
| | | } |
| | | return R.ok(); |
| | |
| | | import com.baomidou.mybatisplus.mapper.EntityWrapper; |
| | | import com.baomidou.mybatisplus.mapper.Wrapper; |
| | | import com.baomidou.mybatisplus.plugins.Page; |
| | | import com.zy.asrs.entity.StkPlcm; |
| | | import com.zy.asrs.service.StkPlcmService; |
| | | import com.zy.common.web.BaseController; |
| | | import com.core.annotations.ManagerAuth; |
| | | import com.core.common.BaseRes; |
| | | import com.core.common.Cools; |
| | | import com.core.common.DateUtils; |
| | | import com.core.common.R; |
| | | import com.zy.asrs.entity.StkPlcm; |
| | | import com.zy.asrs.service.StkPlcmService; |
| | | import com.zy.common.web.BaseController; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | |
| | | |
| | | @RequestMapping(value = "/stkPlcm/list/auth") |
| | | @ManagerAuth |
| | | public R list(@RequestParam(defaultValue = "1")Integer curr, |
| | | @RequestParam(defaultValue = "10")Integer limit, |
| | | @RequestParam(required = false)String orderByField, |
| | | @RequestParam(required = false)String orderByType, |
| | | @RequestParam Map<String, Object> param){ |
| | | public R list(@RequestParam(defaultValue = "1") Integer curr, |
| | | @RequestParam(defaultValue = "10") Integer limit, |
| | | @RequestParam(required = false) String orderByField, |
| | | @RequestParam(required = false) String orderByType, |
| | | @RequestParam Map<String, Object> param) { |
| | | excludeTrash(param); |
| | | EntityWrapper<StkPlcm> wrapper = new EntityWrapper<>(); |
| | | convert(param, wrapper); |
| | | if (!Cools.isEmpty(orderByField)){wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType));} |
| | | if (!Cools.isEmpty(orderByField)) { |
| | | wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType)); |
| | | } |
| | | return R.ok(stkPlcmService.selectPage(new Page<>(curr, limit), wrapper)); |
| | | } |
| | | |
| | | private <T> void convert(Map<String, Object> map, EntityWrapper<T> wrapper){ |
| | | for (Map.Entry<String, Object> entry : map.entrySet()){ |
| | | private <T> void convert(Map<String, Object> map, EntityWrapper<T> wrapper) { |
| | | for (Map.Entry<String, Object> entry : map.entrySet()) { |
| | | String val = String.valueOf(entry.getValue()); |
| | | if (val.contains(RANGE_TIME_LINK)){ |
| | | if (val.contains(RANGE_TIME_LINK)) { |
| | | String[] dates = val.split(RANGE_TIME_LINK); |
| | | wrapper.ge(entry.getKey(), DateUtils.convert(dates[0])); |
| | | wrapper.le(entry.getKey(), DateUtils.convert(dates[1])); |
| | |
| | | |
| | | @RequestMapping(value = "/stkPlcm/delete/auth") |
| | | @ManagerAuth(memo = "堆垛机异常日志删除") |
| | | public R delete(@RequestParam String param){ |
| | | public R delete(@RequestParam String param) { |
| | | List<StkPlcm> list = JSONArray.parseArray(param, StkPlcm.class); |
| | | if (Cools.isEmpty(list)){ |
| | | if (Cools.isEmpty(list)) { |
| | | return R.error(); |
| | | } |
| | | for (StkPlcm entity : list){ |
| | | for (StkPlcm entity : list) { |
| | | stkPlcmService.delete(new EntityWrapper<>(entity)); |
| | | } |
| | | return R.ok(); |
| | |
| | | |
| | | @RequestMapping(value = "/stkPlcm/export/auth") |
| | | @ManagerAuth(memo = "堆垛机异常日志导出") |
| | | public R export(@RequestBody JSONObject param){ |
| | | public R export(@RequestBody JSONObject param) { |
| | | List<String> fields = JSONObject.parseArray(param.getJSONArray("fields").toJSONString(), String.class); |
| | | EntityWrapper<StkPlcm> wrapper = new EntityWrapper<>(); |
| | | Map<String, Object> map = excludeTrash(param.getJSONObject("stkPlcm")); |
| | |
| | | @ManagerAuth |
| | | public R query(@RequestBody JSONObject param) { |
| | | Wrapper<StkPlcm> wrapper = new EntityWrapper<StkPlcm>().eq(humpToLine(String.valueOf(param.get("key"))), param.get("val")); |
| | | if (null != stkPlcmService.selectOne(wrapper)){ |
| | | if (null != stkPlcmService.selectOne(wrapper)) { |
| | | return R.parse(BaseRes.REPEAT).add(getComment(StkPlcm.class, String.valueOf(param.get("key")))); |
| | | } |
| | | return R.ok(); |
| | |
| | | |
| | | @RequestMapping(value = "/tag/list/pda/auth") |
| | | @ManagerAuth |
| | | public R pdaList(@RequestParam(defaultValue = "1")Integer curr, |
| | | @RequestParam(defaultValue = "10")Integer limit, |
| | | @RequestParam(required = false)Long parentId){ |
| | | public R pdaList(@RequestParam(defaultValue = "1") Integer curr, |
| | | @RequestParam(defaultValue = "10") Integer limit, |
| | | @RequestParam(required = false) Long parentId) { |
| | | EntityWrapper<Tag> wrapper = new EntityWrapper<>(); |
| | | if(!Cools.isEmpty(parentId)) { |
| | | if (!Cools.isEmpty(parentId)) { |
| | | wrapper.eq("parent_id", parentId == null ? getOriginTag().getId() : parentId); |
| | | } |
| | | wrapper.orderBy("sort"); |
| | |
| | | |
| | | @RequestMapping(value = "/tag/list/auth") |
| | | @ManagerAuth |
| | | public R list(@RequestParam(defaultValue = "1")Integer curr, |
| | | @RequestParam(defaultValue = "10")Integer limit, |
| | | @RequestParam(required = false)String orderByField, |
| | | @RequestParam(required = false)String orderByType, |
| | | @RequestParam Map<String, Object> param){ |
| | | public R list(@RequestParam(defaultValue = "1") Integer curr, |
| | | @RequestParam(defaultValue = "10") Integer limit, |
| | | @RequestParam(required = false) String orderByField, |
| | | @RequestParam(required = false) String orderByType, |
| | | @RequestParam Map<String, Object> param) { |
| | | EntityWrapper<Tag> wrapper = new EntityWrapper<>(); |
| | | excludeTrash(param); |
| | | convert(param, wrapper); |
| | | if (!Cools.isEmpty(orderByField)){wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType));} |
| | | if (!Cools.isEmpty(orderByField)) { |
| | | wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType)); |
| | | } |
| | | return R.parse("0-操作成功").add(tagService.selectList(wrapper)); |
| | | } |
| | | |
| | | private void convert(Map<String, Object> map, EntityWrapper wrapper){ |
| | | for (Map.Entry<String, Object> entry : map.entrySet()){ |
| | | private void convert(Map<String, Object> map, EntityWrapper wrapper) { |
| | | for (Map.Entry<String, Object> entry : map.entrySet()) { |
| | | String val = String.valueOf(entry.getValue()); |
| | | if (val.contains(RANGE_TIME_LINK)){ |
| | | if (val.contains(RANGE_TIME_LINK)) { |
| | | String[] dates = val.split(RANGE_TIME_LINK); |
| | | wrapper.ge(entry.getKey(), DateUtils.convert(dates[0])); |
| | | wrapper.le(entry.getKey(), DateUtils.convert(dates[1])); |
| | |
| | | return R.ok(); |
| | | } |
| | | |
| | | @RequestMapping(value = "/tag/update/auth") |
| | | @ManagerAuth |
| | | public R update(Tag tag){ |
| | | if (Cools.isEmpty(tag) || null==tag.getId()){ |
| | | @RequestMapping(value = "/tag/update/auth") |
| | | @ManagerAuth |
| | | public R update(Tag tag) { |
| | | if (Cools.isEmpty(tag) || null == tag.getId()) { |
| | | return R.error(); |
| | | } |
| | | if (tag.getParentId() != null && tag.getParentId() > 0) { |
| | |
| | | |
| | | @RequestMapping(value = "/tag/delete/auth") |
| | | @ManagerAuth |
| | | public R delete(@RequestParam(value="ids[]") Long[] ids){ |
| | | for (Long id : ids){ |
| | | public R delete(@RequestParam(value = "ids[]") Long[] ids) { |
| | | for (Long id : ids) { |
| | | tagService.deleteById(id); |
| | | } |
| | | return R.ok(); |
| | |
| | | |
| | | @RequestMapping(value = "/tag/export/auth") |
| | | @ManagerAuth |
| | | public R export(@RequestBody JSONObject param){ |
| | | public R export(@RequestBody JSONObject param) { |
| | | EntityWrapper<Tag> wrapper = new EntityWrapper<>(); |
| | | List<String> fields = JSONObject.parseArray(param.getJSONArray("fields").toJSONString(), String.class); |
| | | Map<String, Object> map = excludeTrash(param.getJSONObject("tag")); |
| | |
| | | wrapper.like("uuid", condition).or().like("name", condition); |
| | | Page<Tag> page = tagService.selectPage(new Page<>(0, 10), wrapper); |
| | | List<Map<String, Object>> result = new ArrayList<>(); |
| | | for (Tag tag : page.getRecords()){ |
| | | for (Tag tag : page.getRecords()) { |
| | | Map<String, Object> map = new HashMap<>(); |
| | | map.put("id", tag.getId()); |
| | | map.put("value", tag.getName()); |
| | |
| | | @ManagerAuth |
| | | public R query(@RequestBody JSONObject param) { |
| | | Wrapper<Tag> wrapper = new EntityWrapper<Tag>().eq(humpToLine(String.valueOf(param.get("key"))), param.get("val")); |
| | | if (null != tagService.selectOne(wrapper)){ |
| | | if (null != tagService.selectOne(wrapper)) { |
| | | return R.parse(BaseRes.REPEAT).add(getComment(Tag.class, String.valueOf(param.get("key")))); |
| | | } |
| | | return R.ok(); |
| | |
| | | |
| | | @RequestMapping(value = "/trayCode/list/auth") |
| | | @ManagerAuth |
| | | public R list(@RequestParam(defaultValue = "1")Integer curr, |
| | | @RequestParam(defaultValue = "10")Integer limit, |
| | | @RequestParam(required = false)String orderByField, |
| | | @RequestParam(required = false)String orderByType, |
| | | @RequestParam Map<String, Object> param){ |
| | | public R list(@RequestParam(defaultValue = "1") Integer curr, |
| | | @RequestParam(defaultValue = "10") Integer limit, |
| | | @RequestParam(required = false) String orderByField, |
| | | @RequestParam(required = false) String orderByType, |
| | | @RequestParam Map<String, Object> param) { |
| | | EntityWrapper<TrayCode> wrapper = new EntityWrapper<>(); |
| | | excludeTrash(param); |
| | | convert(param, wrapper); |
| | | if (!Cools.isEmpty(orderByField)){wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType));} |
| | | else { |
| | | if (!Cools.isEmpty(orderByField)) { |
| | | wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType)); |
| | | } else { |
| | | // wrapper.orderBy("id", false); |
| | | } |
| | | return R.ok(trayCodeService.selectPage(new Page<>(curr, limit), wrapper)); |
| | | } |
| | | |
| | | private void convert(Map<String, Object> map, EntityWrapper wrapper){ |
| | | for (Map.Entry<String, Object> entry : map.entrySet()){ |
| | | private void convert(Map<String, Object> map, EntityWrapper wrapper) { |
| | | for (Map.Entry<String, Object> entry : map.entrySet()) { |
| | | String val = String.valueOf(entry.getValue()); |
| | | if (val.contains(RANGE_TIME_LINK)){ |
| | | if (val.contains(RANGE_TIME_LINK)) { |
| | | String[] dates = val.split(RANGE_TIME_LINK); |
| | | wrapper.ge(entry.getKey(), DateUtils.convert(dates[0])); |
| | | wrapper.le(entry.getKey(), DateUtils.convert(dates[1])); |
| | |
| | | return R.ok(); |
| | | } |
| | | |
| | | @RequestMapping(value = "/trayCode/update/auth") |
| | | @ManagerAuth |
| | | public R update(TrayCode trayCode){ |
| | | if (Cools.isEmpty(trayCode) || null==trayCode.getId()){ |
| | | @RequestMapping(value = "/trayCode/update/auth") |
| | | @ManagerAuth |
| | | public R update(TrayCode trayCode) { |
| | | if (Cools.isEmpty(trayCode) || null == trayCode.getId()) { |
| | | return R.error(); |
| | | } |
| | | trayCodeService.updateById(trayCode); |
| | |
| | | |
| | | @RequestMapping(value = "/trayCode/delete/auth") |
| | | @ManagerAuth |
| | | public R delete(@RequestParam String param){ |
| | | public R delete(@RequestParam String param) { |
| | | List<TrayCode> list = JSONArray.parseArray(param, TrayCode.class); |
| | | if (Cools.isEmpty(list)){ |
| | | if (Cools.isEmpty(list)) { |
| | | return R.error(); |
| | | } |
| | | for (TrayCode entity : list){ |
| | | for (TrayCode entity : list) { |
| | | trayCodeService.delete(new EntityWrapper<>(entity)); |
| | | } |
| | | return R.ok(); |
| | |
| | | |
| | | @RequestMapping(value = "/trayCode/export/auth") |
| | | @ManagerAuth |
| | | public R export(@RequestBody JSONObject param){ |
| | | public R export(@RequestBody JSONObject param) { |
| | | EntityWrapper<TrayCode> wrapper = new EntityWrapper<>(); |
| | | List<String> fields = JSONObject.parseArray(param.getJSONArray("fields").toJSONString(), String.class); |
| | | Map<String, Object> map = excludeTrash(param.getJSONObject("trayCode")); |
| | |
| | | wrapper.like("id", condition); |
| | | Page<TrayCode> page = trayCodeService.selectPage(new Page<>(0, 10), wrapper); |
| | | List<Map<String, Object>> result = new ArrayList<>(); |
| | | for (TrayCode trayCode : page.getRecords()){ |
| | | for (TrayCode trayCode : page.getRecords()) { |
| | | Map<String, Object> map = new HashMap<>(); |
| | | map.put("id", trayCode.getId()); |
| | | map.put("value", trayCode.getId()); |
| | |
| | | @ManagerAuth |
| | | public R query(@RequestBody JSONObject param) { |
| | | Wrapper<TrayCode> wrapper = new EntityWrapper<TrayCode>().eq(humpToLine(String.valueOf(param.get("key"))), param.get("val")); |
| | | if (null != trayCodeService.selectOne(wrapper)){ |
| | | if (null != trayCodeService.selectOne(wrapper)) { |
| | | return R.parse(BaseRes.REPEAT).add(getComment(TrayCode.class, String.valueOf(param.get("key")))); |
| | | } |
| | | return R.ok(); |
| | |
| | | @ManagerAuth |
| | | public R trayCodeLatest() { |
| | | List<TrayCode> latest = trayCodeService.selectList(new EntityWrapper<TrayCode>().orderBy("id", false)); |
| | | return R.ok().add(latest.isEmpty()?"10000001": Integer.parseInt(latest.get(0).getTrayNo())+1); |
| | | return R.ok().add(latest.isEmpty() ? "10000001" : Integer.parseInt(latest.get(0).getTrayNo()) + 1); |
| | | } |
| | | |
| | | @RequestMapping(value = "/trayCode/print/preview") |
| | |
| | | return R.error("数量必须大于零"); |
| | | } |
| | | List<Map<String, Object>> res = new ArrayList<>(); |
| | | for (int i = 0; i<count; i++) { |
| | | res.add(Cools.add("item", String.valueOf(Integer.parseInt(startNo)+i))); |
| | | for (int i = 0; i < count; i++) { |
| | | res.add(Cools.add("item", String.valueOf(Integer.parseInt(startNo) + i))); |
| | | } |
| | | return R.ok().add(res); |
| | | } |
| | |
| | | @RequestMapping(value = "/trayCode/print/auth") |
| | | @ManagerAuth(memo = "托盘码打印") |
| | | public R print(@RequestParam String startNo, |
| | | @RequestParam Integer count, |
| | | @RequestParam Integer type){ |
| | | @RequestParam Integer count, |
| | | @RequestParam Integer type) { |
| | | if (count <= 0) { |
| | | return R.error("数量必须大于零"); |
| | | } |
| | | for (int i = 0; i<count; i++) { |
| | | for (int i = 0; i < count; i++) { |
| | | TrayCode trayCode = new TrayCode( |
| | | String.valueOf(Integer.parseInt(startNo)+i), // 序列号[非空] |
| | | i==0?"Y":"N", // 起始 |
| | | i==count-1?"Y":"N", // 终止 |
| | | String.valueOf(Integer.parseInt(startNo) + i), // 序列号[非空] |
| | | i == 0 ? "Y" : "N", // 起始 |
| | | i == count - 1 ? "Y" : "N", // 终止 |
| | | null, // 备注 |
| | | new Date(), // 修改时间 |
| | | getUserId(), // 修改人员 |
| | |
| | | import com.core.common.DateUtils; |
| | | import com.core.common.R; |
| | | import com.zy.asrs.entity.WaitPakin; |
| | | import com.zy.asrs.entity.WrkDetl; |
| | | import com.zy.asrs.entity.WrkMast; |
| | | import com.zy.asrs.service.OrderDetlService; |
| | | import com.zy.asrs.service.WaitPakinService; |
| | |
| | | |
| | | @RequestMapping(value = "/waitPakin/list/auth") |
| | | @ManagerAuth |
| | | public R list(@RequestParam(defaultValue = "1")Integer curr, |
| | | @RequestParam(defaultValue = "10")Integer limit, |
| | | @RequestParam(required = false)String orderByField, |
| | | @RequestParam(required = false)String orderByType, |
| | | @RequestParam Map<String, Object> param){ |
| | | public R list(@RequestParam(defaultValue = "1") Integer curr, |
| | | @RequestParam(defaultValue = "10") Integer limit, |
| | | @RequestParam(required = false) String orderByField, |
| | | @RequestParam(required = false) String orderByType, |
| | | @RequestParam Map<String, Object> param) { |
| | | excludeTrash(param); |
| | | EntityWrapper<WaitPakin> wrapper = new EntityWrapper<>(); |
| | | convert(param, wrapper); |
| | | if (!Cools.isEmpty(orderByField)){wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType));} |
| | | else { |
| | | if (!Cools.isEmpty(orderByField)) { |
| | | wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType)); |
| | | } else { |
| | | wrapper.orderBy("modi_time", false); |
| | | } |
| | | return R.ok(waitPakinService.selectPage(new Page<>(curr, limit), wrapper)); |
| | | } |
| | | |
| | | private void convert(Map<String, Object> map, EntityWrapper wrapper){ |
| | | for (Map.Entry<String, Object> entry : map.entrySet()){ |
| | | private void convert(Map<String, Object> map, EntityWrapper wrapper) { |
| | | for (Map.Entry<String, Object> entry : map.entrySet()) { |
| | | String val = String.valueOf(entry.getValue()); |
| | | if (val.contains(RANGE_TIME_LINK)){ |
| | | if (val.contains(RANGE_TIME_LINK)) { |
| | | String[] dates = val.split(RANGE_TIME_LINK); |
| | | wrapper.ge(entry.getKey(), DateUtils.convert(dates[0])); |
| | | wrapper.le(entry.getKey(), DateUtils.convert(dates[1])); |
| | |
| | | return R.ok(); |
| | | } |
| | | |
| | | @RequestMapping(value = "/waitPakin/update/auth") |
| | | @ManagerAuth |
| | | public R update(WaitPakin waitPakin){ |
| | | if (Cools.isEmpty(waitPakin)){ |
| | | @RequestMapping(value = "/waitPakin/update/auth") |
| | | @ManagerAuth |
| | | public R update(WaitPakin waitPakin) { |
| | | if (Cools.isEmpty(waitPakin)) { |
| | | return R.error(); |
| | | } |
| | | waitPakinService.updateById(waitPakin); |
| | |
| | | @RequestMapping(value = "/waitPakin/delete/auth") |
| | | @ManagerAuth |
| | | @Transactional |
| | | public R delete(@RequestParam String param){ |
| | | public R delete(@RequestParam String param) { |
| | | List<WaitPakin> list = JSONArray.parseArray(param, WaitPakin.class); |
| | | if (Cools.isEmpty(list)){ |
| | | if (Cools.isEmpty(list)) { |
| | | return R.error("数据为空"); |
| | | } |
| | | for (WaitPakin entity : list){ |
| | | for (WaitPakin entity : list) { |
| | | List<WrkMast> wrkMasts = wrkMastService.selectList(new EntityWrapper<WrkMast>().eq("barcode", entity.getZpallet())); |
| | | if(!Cools.isEmpty(wrkMasts) || wrkMasts.size() > 0){ |
| | | if (!Cools.isEmpty(wrkMasts) || wrkMasts.size() > 0) { |
| | | return R.error("条码已生成入库工作档,禁止删除"); |
| | | } |
| | | waitPakinService.delete(new EntityWrapper<>(entity)); |
| | |
| | | |
| | | @RequestMapping(value = "/waitPakin/export/auth") |
| | | @ManagerAuth |
| | | public R export(@RequestBody JSONObject param){ |
| | | public R export(@RequestBody JSONObject param) { |
| | | List<String> fields = JSONObject.parseArray(param.getJSONArray("fields").toJSONString(), String.class); |
| | | EntityWrapper<WaitPakin> wrapper = new EntityWrapper<>(); |
| | | Map<String, Object> map = excludeTrash(param.getJSONObject("waitPakin")); |
| | |
| | | wrapper.like("id", condition); |
| | | Page<WaitPakin> page = waitPakinService.selectPage(new Page<>(0, 10), wrapper); |
| | | List<Map<String, Object>> result = new ArrayList<>(); |
| | | for (WaitPakin waitPakin : page.getRecords()){ |
| | | for (WaitPakin waitPakin : page.getRecords()) { |
| | | Map<String, Object> map = new HashMap<>(); |
| | | map.put("id", waitPakin.getZpallet()); |
| | | map.put("value", waitPakin.getZpallet()); |
| | |
| | | @ManagerAuth |
| | | public R query(@RequestBody JSONObject param) { |
| | | Wrapper<WaitPakin> wrapper = new EntityWrapper<WaitPakin>().eq(humpToLine(String.valueOf(param.get("key"))), param.get("val")); |
| | | if (null != waitPakinService.selectOne(wrapper)){ |
| | | if (null != waitPakinService.selectOne(wrapper)) { |
| | | return R.parse(BaseRes.REPEAT).add(getComment(WaitPakin.class, String.valueOf(param.get("key")))); |
| | | } |
| | | return R.ok(); |
| | |
| | | |
| | | @RequestMapping(value = "/waitPakinLog/list/auth") |
| | | @ManagerAuth |
| | | public R list(@RequestParam(defaultValue = "1")Integer curr, |
| | | @RequestParam(defaultValue = "10")Integer limit, |
| | | @RequestParam(required = false)String orderByField, |
| | | @RequestParam(required = false)String orderByType, |
| | | @RequestParam Map<String, Object> param){ |
| | | public R list(@RequestParam(defaultValue = "1") Integer curr, |
| | | @RequestParam(defaultValue = "10") Integer limit, |
| | | @RequestParam(required = false) String orderByField, |
| | | @RequestParam(required = false) String orderByType, |
| | | @RequestParam Map<String, Object> param) { |
| | | EntityWrapper<WaitPakinLog> wrapper = new EntityWrapper<>(); |
| | | excludeTrash(param); |
| | | convert(param, wrapper); |
| | | if (!Cools.isEmpty(orderByField)){wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType));} |
| | | else { |
| | | if (!Cools.isEmpty(orderByField)) { |
| | | wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType)); |
| | | } else { |
| | | wrapper.orderBy("modi_time", false); |
| | | } |
| | | return R.ok(waitPakinLogService.selectPage(new Page<>(curr, limit), wrapper)); |
| | | } |
| | | |
| | | private void convert(Map<String, Object> map, EntityWrapper wrapper){ |
| | | for (Map.Entry<String, Object> entry : map.entrySet()){ |
| | | private void convert(Map<String, Object> map, EntityWrapper wrapper) { |
| | | for (Map.Entry<String, Object> entry : map.entrySet()) { |
| | | String val = String.valueOf(entry.getValue()); |
| | | if (val.contains(RANGE_TIME_LINK)){ |
| | | if (val.contains(RANGE_TIME_LINK)) { |
| | | String[] dates = val.split(RANGE_TIME_LINK); |
| | | wrapper.ge(entry.getKey(), DateUtils.convert(dates[0])); |
| | | wrapper.le(entry.getKey(), DateUtils.convert(dates[1])); |
| | |
| | | return R.ok(); |
| | | } |
| | | |
| | | @RequestMapping(value = "/waitPakinLog/update/auth") |
| | | @ManagerAuth |
| | | public R update(WaitPakinLog waitPakinLog){ |
| | | if (Cools.isEmpty(waitPakinLog)){ |
| | | @RequestMapping(value = "/waitPakinLog/update/auth") |
| | | @ManagerAuth |
| | | public R update(WaitPakinLog waitPakinLog) { |
| | | if (Cools.isEmpty(waitPakinLog)) { |
| | | return R.error(); |
| | | } |
| | | waitPakinLogService.updateById(waitPakinLog); |
| | |
| | | |
| | | @RequestMapping(value = "/waitPakinLog/delete/auth") |
| | | @ManagerAuth |
| | | public R delete(@RequestParam String param){ |
| | | public R delete(@RequestParam String param) { |
| | | List<WaitPakinLog> list = JSONArray.parseArray(param, WaitPakinLog.class); |
| | | if (Cools.isEmpty(list)){ |
| | | if (Cools.isEmpty(list)) { |
| | | return R.error(); |
| | | } |
| | | for (WaitPakinLog entity : list){ |
| | | for (WaitPakinLog entity : list) { |
| | | waitPakinLogService.delete(new EntityWrapper<>(entity)); |
| | | } |
| | | return R.ok(); |
| | |
| | | |
| | | @RequestMapping(value = "/waitPakinLog/export/auth") |
| | | @ManagerAuth |
| | | public R export(@RequestBody JSONObject param){ |
| | | public R export(@RequestBody JSONObject param) { |
| | | EntityWrapper<WaitPakinLog> wrapper = new EntityWrapper<>(); |
| | | List<String> fields = JSONObject.parseArray(param.getJSONArray("fields").toJSONString(), String.class); |
| | | Map<String, Object> map = excludeTrash(param.getJSONObject("waitPakinLog")); |
| | |
| | | wrapper.like("id", condition); |
| | | Page<WaitPakinLog> page = waitPakinLogService.selectPage(new Page<>(0, 10), wrapper); |
| | | List<Map<String, Object>> result = new ArrayList<>(); |
| | | for (WaitPakinLog waitPakinLog : page.getRecords()){ |
| | | for (WaitPakinLog waitPakinLog : page.getRecords()) { |
| | | Map<String, Object> map = new HashMap<>(); |
| | | map.put("id", waitPakinLog.getZpallet()); |
| | | map.put("value", waitPakinLog.getZpallet()); |
| | |
| | | @ManagerAuth |
| | | public R query(@RequestBody JSONObject param) { |
| | | Wrapper<WaitPakinLog> wrapper = new EntityWrapper<WaitPakinLog>().eq(humpToLine(String.valueOf(param.get("key"))), param.get("val")); |
| | | if (null != waitPakinLogService.selectOne(wrapper)){ |
| | | if (null != waitPakinLogService.selectOne(wrapper)) { |
| | | return R.parse(BaseRes.REPEAT).add(getComment(WaitPakinLog.class, String.valueOf(param.get("key")))); |
| | | } |
| | | return R.ok(); |
| | |
| | | |
| | | @RequestMapping(value = "/wrkDetl/list/auth") |
| | | @ManagerAuth |
| | | public R list(@RequestParam(defaultValue = "1")Integer curr, |
| | | @RequestParam(defaultValue = "10")Integer limit, |
| | | @RequestParam(required = false)String orderByField, |
| | | @RequestParam(required = false)String orderByType, |
| | | @RequestParam(required = false)String condition, |
| | | @RequestParam Map<String, Object> param){ |
| | | public R list(@RequestParam(defaultValue = "1") Integer curr, |
| | | @RequestParam(defaultValue = "10") Integer limit, |
| | | @RequestParam(required = false) String orderByField, |
| | | @RequestParam(required = false) String orderByType, |
| | | @RequestParam(required = false) String condition, |
| | | @RequestParam Map<String, Object> param) { |
| | | excludeTrash(param); |
| | | EntityWrapper<WrkDetl> wrapper = new EntityWrapper<>(); |
| | | convert(param, wrapper); |
| | | allLike(WrkDetl.class, param.keySet(), wrapper, condition); |
| | | if (!Cools.isEmpty(orderByField)){ |
| | | if (!Cools.isEmpty(orderByField)) { |
| | | wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType)); |
| | | } else { |
| | | wrapper.orderBy("appe_time", false); |
| | | } |
| | | // 不同继承角色显示不同库信息 |
| | | RoleUtils.addRoleWrapperByBarcode(getUserId(),wrapper); |
| | | RoleUtils.addRoleWrapperByBarcode(getUserId(), wrapper); |
| | | return R.ok(wrkDetlService.selectPage(new Page<>(curr, limit), wrapper)); |
| | | } |
| | | |
| | | private <T> void convert(Map<String, Object> map, EntityWrapper<T> wrapper){ |
| | | for (Map.Entry<String, Object> entry : map.entrySet()){ |
| | | private <T> void convert(Map<String, Object> map, EntityWrapper<T> wrapper) { |
| | | for (Map.Entry<String, Object> entry : map.entrySet()) { |
| | | String val = String.valueOf(entry.getValue()); |
| | | if (val.contains(RANGE_TIME_LINK)){ |
| | | if (val.contains(RANGE_TIME_LINK)) { |
| | | String[] dates = val.split(RANGE_TIME_LINK); |
| | | wrapper.ge(entry.getKey(), DateUtils.convert(dates[0])); |
| | | wrapper.le(entry.getKey(), DateUtils.convert(dates[1])); |
| | |
| | | |
| | | @RequestMapping(value = "/wrkDetl/delete/auth") |
| | | @ManagerAuth(memo = "工作档明细删除") |
| | | public R delete(@RequestParam String param){ |
| | | public R delete(@RequestParam String param) { |
| | | List<WrkDetl> list = JSONArray.parseArray(param, WrkDetl.class); |
| | | if (Cools.isEmpty(list)){ |
| | | if (Cools.isEmpty(list)) { |
| | | return R.error(); |
| | | } |
| | | for (WrkDetl entity : list){ |
| | | for (WrkDetl entity : list) { |
| | | wrkDetlService.delete(new EntityWrapper<>(entity)); |
| | | } |
| | | return R.ok(); |
| | |
| | | |
| | | @RequestMapping(value = "/wrkDetl/export/auth") |
| | | @ManagerAuth(memo = "工作档明细导出") |
| | | public R export(@RequestBody JSONObject param){ |
| | | public R export(@RequestBody JSONObject param) { |
| | | List<String> fields = JSONObject.parseArray(param.getJSONArray("fields").toJSONString(), String.class); |
| | | EntityWrapper<WrkDetl> wrapper = new EntityWrapper<>(); |
| | | Map<String, Object> map = excludeTrash(param.getJSONObject("wrkDetl")); |
| | |
| | | wrapper.like("id", condition); |
| | | Page<WrkDetl> page = wrkDetlService.selectPage(new Page<>(0, 10), wrapper); |
| | | List<Map<String, Object>> result = new ArrayList<>(); |
| | | for (WrkDetl wrkDetl : page.getRecords()){ |
| | | for (WrkDetl wrkDetl : page.getRecords()) { |
| | | Map<String, Object> map = new HashMap<>(); |
| | | map.put("id", wrkDetl.getWrkNo()); |
| | | map.put("value", wrkDetl.getWrkNo()); |
| | |
| | | @ManagerAuth |
| | | public R query(@RequestBody JSONObject param) { |
| | | Wrapper<WrkDetl> wrapper = new EntityWrapper<WrkDetl>().eq(humpToLine(String.valueOf(param.get("key"))), param.get("val")); |
| | | if (null != wrkDetlService.selectOne(wrapper)){ |
| | | if (null != wrkDetlService.selectOne(wrapper)) { |
| | | return R.parse(BaseRes.REPEAT).add(getComment(WrkDetl.class, String.valueOf(param.get("key")))); |
| | | } |
| | | return R.ok(); |
| | |
| | | EntityWrapper<WrkDetlLog> wrapper = new EntityWrapper<>(); |
| | | convert(param, wrapper); |
| | | allLike(WrkDetlLog.class, param.keySet(), wrapper, condition); |
| | | if (!Cools.isEmpty(orderByField)){ |
| | | if (!Cools.isEmpty(orderByField)) { |
| | | wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType)); |
| | | } else { |
| | | wrapper.orderBy("appe_time", false); |
| | | } |
| | | // 不同继承角色显示不同库信息 |
| | | RoleUtils.addRoleWrapperByBarcode(getUserId(),wrapper); |
| | | RoleUtils.addRoleWrapperByBarcode(getUserId(), wrapper); |
| | | return R.ok(wrkDetlLogService.selectPage(new Page<>(curr, limit), wrapper)); |
| | | // Integer wrkNo = null; |
| | | // String orderNo = null; |
| | |
| | | import com.baomidou.mybatisplus.mapper.EntityWrapper; |
| | | import com.baomidou.mybatisplus.mapper.Wrapper; |
| | | import com.baomidou.mybatisplus.plugins.Page; |
| | | import com.zy.asrs.entity.WrkLastno; |
| | | import com.zy.asrs.service.WrkLastnoService; |
| | | import com.zy.common.web.BaseController; |
| | | import com.core.annotations.ManagerAuth; |
| | | import com.core.common.BaseRes; |
| | | import com.core.common.Cools; |
| | | import com.core.common.DateUtils; |
| | | import com.core.common.R; |
| | | import com.zy.asrs.entity.WrkLastno; |
| | | import com.zy.asrs.service.WrkLastnoService; |
| | | import com.zy.common.web.BaseController; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | |
| | | |
| | | @RequestMapping(value = "/wrkLastno/list/auth") |
| | | @ManagerAuth |
| | | public R list(@RequestParam(defaultValue = "1")Integer curr, |
| | | @RequestParam(defaultValue = "10")Integer limit, |
| | | @RequestParam(required = false)String orderByField, |
| | | @RequestParam(required = false)String orderByType, |
| | | @RequestParam Map<String, Object> param){ |
| | | public R list(@RequestParam(defaultValue = "1") Integer curr, |
| | | @RequestParam(defaultValue = "10") Integer limit, |
| | | @RequestParam(required = false) String orderByField, |
| | | @RequestParam(required = false) String orderByType, |
| | | @RequestParam Map<String, Object> param) { |
| | | excludeTrash(param); |
| | | EntityWrapper<WrkLastno> wrapper = new EntityWrapper<>(); |
| | | convert(param, wrapper); |
| | | if (!Cools.isEmpty(orderByField)){wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType));} |
| | | if (!Cools.isEmpty(orderByField)) { |
| | | wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType)); |
| | | } |
| | | return R.ok(wrkLastnoService.selectPage(new Page<>(curr, limit), wrapper)); |
| | | } |
| | | |
| | | private <T> void convert(Map<String, Object> map, EntityWrapper<T> wrapper){ |
| | | for (Map.Entry<String, Object> entry : map.entrySet()){ |
| | | private <T> void convert(Map<String, Object> map, EntityWrapper<T> wrapper) { |
| | | for (Map.Entry<String, Object> entry : map.entrySet()) { |
| | | String val = String.valueOf(entry.getValue()); |
| | | if (val.contains(RANGE_TIME_LINK)){ |
| | | if (val.contains(RANGE_TIME_LINK)) { |
| | | String[] dates = val.split(RANGE_TIME_LINK); |
| | | wrapper.ge(entry.getKey(), DateUtils.convert(dates[0])); |
| | | wrapper.le(entry.getKey(), DateUtils.convert(dates[1])); |
| | |
| | | return R.ok(); |
| | | } |
| | | |
| | | @RequestMapping(value = "/wrkLastno/update/auth") |
| | | @ManagerAuth(memo = "工作序号修改") |
| | | public R update(WrkLastno wrkLastno){ |
| | | if (Cools.isEmpty(wrkLastno) || null==wrkLastno.getWrkMk()){ |
| | | @RequestMapping(value = "/wrkLastno/update/auth") |
| | | @ManagerAuth(memo = "工作序号修改") |
| | | public R update(WrkLastno wrkLastno) { |
| | | if (Cools.isEmpty(wrkLastno) || null == wrkLastno.getWrkMk()) { |
| | | return R.error(); |
| | | } |
| | | wrkLastno.setModiUser(getUserId()); |
| | |
| | | |
| | | @RequestMapping(value = "/wrkLastno/delete/auth") |
| | | @ManagerAuth(memo = "工作序号删除") |
| | | public R delete(@RequestParam String param){ |
| | | public R delete(@RequestParam String param) { |
| | | List<WrkLastno> list = JSONArray.parseArray(param, WrkLastno.class); |
| | | if (Cools.isEmpty(list)){ |
| | | if (Cools.isEmpty(list)) { |
| | | return R.error(); |
| | | } |
| | | for (WrkLastno entity : list){ |
| | | for (WrkLastno entity : list) { |
| | | wrkLastnoService.delete(new EntityWrapper<>(entity)); |
| | | } |
| | | return R.ok(); |
| | |
| | | |
| | | @RequestMapping(value = "/wrkLastno/export/auth") |
| | | @ManagerAuth(memo = "工作序号导出") |
| | | public R export(@RequestBody JSONObject param){ |
| | | public R export(@RequestBody JSONObject param) { |
| | | List<String> fields = JSONObject.parseArray(param.getJSONArray("fields").toJSONString(), String.class); |
| | | EntityWrapper<WrkLastno> wrapper = new EntityWrapper<>(); |
| | | Map<String, Object> map = excludeTrash(param.getJSONObject("wrkLastno")); |
| | |
| | | wrapper.like("wrk_mk", condition); |
| | | Page<WrkLastno> page = wrkLastnoService.selectPage(new Page<>(0, 10), wrapper); |
| | | List<Map<String, Object>> result = new ArrayList<>(); |
| | | for (WrkLastno wrkLastno : page.getRecords()){ |
| | | for (WrkLastno wrkLastno : page.getRecords()) { |
| | | Map<String, Object> map = new HashMap<>(); |
| | | map.put("id", wrkLastno.getWrkMk()); |
| | | map.put("value", wrkLastno.getWrkMk()); |
| | |
| | | @ManagerAuth |
| | | public R query(@RequestBody JSONObject param) { |
| | | Wrapper<WrkLastno> wrapper = new EntityWrapper<WrkLastno>().eq(humpToLine(String.valueOf(param.get("key"))), param.get("val")); |
| | | if (null != wrkLastnoService.selectOne(wrapper)){ |
| | | if (null != wrkLastnoService.selectOne(wrapper)) { |
| | | return R.parse(BaseRes.REPEAT).add(getComment(WrkLastno.class, String.valueOf(param.get("key")))); |
| | | } |
| | | return R.ok(); |
| | |
| | | |
| | | @RequestMapping(value = "/wrkMast/list/auth") |
| | | @ManagerAuth |
| | | public R list(@RequestParam(defaultValue = "1")Integer curr, |
| | | @RequestParam(defaultValue = "10")Integer limit, |
| | | @RequestParam(required = false)String orderByField, |
| | | @RequestParam(required = false)String orderByType, |
| | | @RequestParam(required = false)String condition, |
| | | @RequestParam Map<String, Object> param){ |
| | | public R list(@RequestParam(defaultValue = "1") Integer curr, |
| | | @RequestParam(defaultValue = "10") Integer limit, |
| | | @RequestParam(required = false) String orderByField, |
| | | @RequestParam(required = false) String orderByType, |
| | | @RequestParam(required = false) String condition, |
| | | @RequestParam Map<String, Object> param) { |
| | | excludeTrash(param); |
| | | EntityWrapper<WrkMast> wrapper = new EntityWrapper<>(); |
| | | convert(param, wrapper); |
| | | allLike(WrkMast.class, param.keySet(), wrapper, condition); |
| | | if (!Cools.isEmpty(orderByField)){ |
| | | if (orderByField.endsWith("$")){ |
| | | orderByField = orderByField.substring(0, orderByField.length()-1); |
| | | if (!Cools.isEmpty(orderByField)) { |
| | | if (orderByField.endsWith("$")) { |
| | | orderByField = orderByField.substring(0, orderByField.length() - 1); |
| | | } |
| | | wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType)); |
| | | }else { |
| | | } else { |
| | | wrapper.orderBy("io_time", false); |
| | | } |
| | | // 不同继承角色显示不同库信息 |
| | | RoleUtils.addRoleWrapperByCrn(getUserId(),wrapper); |
| | | RoleUtils.addRoleWrapperByCrn(getUserId(), wrapper); |
| | | return R.ok(wrkMastService.selectPage(new Page<>(curr, limit), wrapper)); |
| | | } |
| | | |
| | | private <T> void convert(Map<String, Object> map, EntityWrapper<T> wrapper){ |
| | | for (Map.Entry<String, Object> entry : map.entrySet()){ |
| | | private <T> void convert(Map<String, Object> map, EntityWrapper<T> wrapper) { |
| | | for (Map.Entry<String, Object> entry : map.entrySet()) { |
| | | String val = String.valueOf(entry.getValue()); |
| | | if (val.contains(RANGE_TIME_LINK)){ |
| | | if (val.contains(RANGE_TIME_LINK)) { |
| | | String[] dates = val.split(RANGE_TIME_LINK); |
| | | wrapper.ge(entry.getKey(), DateUtils.convert(dates[0])); |
| | | wrapper.le(entry.getKey(), DateUtils.convert(dates[1])); |
| | |
| | | return R.ok(); |
| | | } |
| | | |
| | | @RequestMapping(value = "/wrkMast/update/auth") |
| | | @ManagerAuth(memo = "工作档修改") |
| | | public R update(WrkMast wrkMast){ |
| | | if (Cools.isEmpty(wrkMast) || null==wrkMast.getWrkNo()){ |
| | | @RequestMapping(value = "/wrkMast/update/auth") |
| | | @ManagerAuth(memo = "工作档修改") |
| | | public R update(WrkMast wrkMast) { |
| | | if (Cools.isEmpty(wrkMast) || null == wrkMast.getWrkNo()) { |
| | | return R.error(); |
| | | } |
| | | wrkMast.setModiUser(getUserId()); |
| | |
| | | |
| | | @RequestMapping(value = "/wrkMast/delete/auth") |
| | | @ManagerAuth(memo = "工作档删除") |
| | | public R delete(@RequestParam String param){ |
| | | public R delete(@RequestParam String param) { |
| | | List<WrkMast> list = JSONArray.parseArray(param, WrkMast.class); |
| | | if (Cools.isEmpty(list)){ |
| | | if (Cools.isEmpty(list)) { |
| | | return R.error(); |
| | | } |
| | | for (WrkMast entity : list){ |
| | | for (WrkMast entity : list) { |
| | | wrkMastService.delete(new EntityWrapper<>(entity)); |
| | | } |
| | | return R.ok(); |
| | |
| | | |
| | | @RequestMapping(value = "/wrkMast/export/auth") |
| | | @ManagerAuth(memo = "工作档导出") |
| | | public R export(@RequestBody JSONObject param){ |
| | | public R export(@RequestBody JSONObject param) { |
| | | List<String> fields = JSONObject.parseArray(param.getJSONArray("fields").toJSONString(), String.class); |
| | | EntityWrapper<WrkMast> wrapper = new EntityWrapper<>(); |
| | | Map<String, Object> map = excludeTrash(param.getJSONObject("wrkMast")); |
| | |
| | | wrapper.like("wrk_no", condition); |
| | | Page<WrkMast> page = wrkMastService.selectPage(new Page<>(0, 10), wrapper); |
| | | List<Map<String, Object>> result = new ArrayList<>(); |
| | | for (WrkMast wrkMast : page.getRecords()){ |
| | | for (WrkMast wrkMast : page.getRecords()) { |
| | | Map<String, Object> map = new HashMap<>(); |
| | | map.put("id", wrkMast.getWrkNo()); |
| | | map.put("value", wrkMast.getWrkNo()); |
| | |
| | | @ManagerAuth |
| | | public R query(@RequestBody JSONObject param) { |
| | | Wrapper<WrkMast> wrapper = new EntityWrapper<WrkMast>().eq(humpToLine(String.valueOf(param.get("key"))), param.get("val")); |
| | | if (null != wrkMastService.selectOne(wrapper)){ |
| | | if (null != wrkMastService.selectOne(wrapper)) { |
| | | return R.parse(BaseRes.REPEAT).add(getComment(WrkMast.class, String.valueOf(param.get("key")))); |
| | | } |
| | | return R.ok(); |
| | |
| | | if (list.isEmpty()) { |
| | | return R.error("请至少选择一行数据"); |
| | | } |
| | | for (WrkMast entity : list){ |
| | | entity.setIoPri(entity.getIoPri() + 1); |
| | | for (WrkMast entity : list) { |
| | | entity.setIoPri(entity.getIoPri() + 1); |
| | | } |
| | | wrkMastService.updateBatchById(list); |
| | | return R.ok(); |
| | |
| | | if (list.isEmpty()) { |
| | | return R.error("请至少选择一行数据"); |
| | | } |
| | | for (WrkMast entity : list){ |
| | | for (WrkMast entity : list) { |
| | | entity.setIoPri(entity.getIoPri() - 1); |
| | | } |
| | | wrkMastService.updateBatchById(list); |
| | |
| | | |
| | | @RequestMapping(value = "/wrkMastLog/list/auth") |
| | | @ManagerAuth |
| | | public R list(@RequestParam(defaultValue = "1")Integer curr, |
| | | @RequestParam(defaultValue = "10")Integer limit, |
| | | @RequestParam(required = false)String orderByField, |
| | | @RequestParam(required = false)String orderByType, |
| | | @RequestParam(required = false)String condition, |
| | | @RequestParam Map<String, Object> param){ |
| | | public R list(@RequestParam(defaultValue = "1") Integer curr, |
| | | @RequestParam(defaultValue = "10") Integer limit, |
| | | @RequestParam(required = false) String orderByField, |
| | | @RequestParam(required = false) String orderByType, |
| | | @RequestParam(required = false) String condition, |
| | | @RequestParam Map<String, Object> param) { |
| | | excludeTrash(param); |
| | | EntityWrapper<WrkMastLog> wrapper = new EntityWrapper<>(); |
| | | convert(param, wrapper); |
| | | allLike(WrkMastLog.class, param.keySet(), wrapper, condition); |
| | | if (!Cools.isEmpty(orderByField)){ |
| | | if (orderByField.endsWith("$")){ |
| | | orderByField = orderByField.substring(0, orderByField.length()-1); |
| | | if (!Cools.isEmpty(orderByField)) { |
| | | if (orderByField.endsWith("$")) { |
| | | orderByField = orderByField.substring(0, orderByField.length() - 1); |
| | | } |
| | | wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType)); |
| | | }else { |
| | | } else { |
| | | wrapper.orderBy("modi_time", false); |
| | | } |
| | | // 不同继承角色显示不同库信息 |
| | | RoleUtils.addRoleWrapperByCrn(getUserId(),wrapper); |
| | | RoleUtils.addRoleWrapperByCrn(getUserId(), wrapper); |
| | | return R.ok(wrkMastLogService.selectPage(new Page<>(curr, limit), wrapper)); |
| | | } |
| | | |
| | | private <T> void convert(Map<String, Object> map, EntityWrapper<T> wrapper){ |
| | | for (Map.Entry<String, Object> entry : map.entrySet()){ |
| | | private <T> void convert(Map<String, Object> map, EntityWrapper<T> wrapper) { |
| | | for (Map.Entry<String, Object> entry : map.entrySet()) { |
| | | String val = String.valueOf(entry.getValue()); |
| | | if (val.contains(RANGE_TIME_LINK)){ |
| | | if (val.contains(RANGE_TIME_LINK)) { |
| | | String[] dates = val.split(RANGE_TIME_LINK); |
| | | wrapper.ge(entry.getKey(), DateUtils.convert(dates[0])); |
| | | wrapper.le(entry.getKey(), DateUtils.convert(dates[1])); |
| | |
| | | return R.ok(); |
| | | } |
| | | |
| | | @RequestMapping(value = "/wrkMastLog/update/auth") |
| | | @ManagerAuth(memo = "工作历史档修改") |
| | | public R update(WrkMastLog wrkMastLog){ |
| | | if (Cools.isEmpty(wrkMastLog) || null==wrkMastLog.getId()){ |
| | | @RequestMapping(value = "/wrkMastLog/update/auth") |
| | | @ManagerAuth(memo = "工作历史档修改") |
| | | public R update(WrkMastLog wrkMastLog) { |
| | | if (Cools.isEmpty(wrkMastLog) || null == wrkMastLog.getId()) { |
| | | return R.error(); |
| | | } |
| | | wrkMastLogService.updateById(wrkMastLog); |
| | |
| | | |
| | | @RequestMapping(value = "/wrkMastLog/delete/auth") |
| | | @ManagerAuth(memo = "工作历史档删除") |
| | | public R delete(@RequestParam String param){ |
| | | public R delete(@RequestParam String param) { |
| | | List<WrkMastLog> list = JSONArray.parseArray(param, WrkMastLog.class); |
| | | if (Cools.isEmpty(list)){ |
| | | if (Cools.isEmpty(list)) { |
| | | return R.error(); |
| | | } |
| | | for (WrkMastLog entity : list){ |
| | | for (WrkMastLog entity : list) { |
| | | wrkMastLogService.delete(new EntityWrapper<>(entity)); |
| | | } |
| | | return R.ok(); |
| | |
| | | |
| | | @RequestMapping(value = "/wrkMastLog/export/auth") |
| | | @ManagerAuth(memo = "工作历史档导出") |
| | | public R export(@RequestBody JSONObject param){ |
| | | public R export(@RequestBody JSONObject param) { |
| | | List<String> fields = JSONObject.parseArray(param.getJSONArray("fields").toJSONString(), String.class); |
| | | EntityWrapper<WrkMastLog> wrapper = new EntityWrapper<>(); |
| | | Map<String, Object> map = excludeTrash(param.getJSONObject("wrkMastLog")); |
| | |
| | | wrapper.like("id", condition); |
| | | Page<WrkMastLog> page = wrkMastLogService.selectPage(new Page<>(0, 10), wrapper); |
| | | List<Map<String, Object>> result = new ArrayList<>(); |
| | | for (WrkMastLog wrkMastLog : page.getRecords()){ |
| | | for (WrkMastLog wrkMastLog : page.getRecords()) { |
| | | Map<String, Object> map = new HashMap<>(); |
| | | map.put("id", wrkMastLog.getId()); |
| | | map.put("value", wrkMastLog.getId()); |
| | |
| | | @ManagerAuth |
| | | public R query(@RequestBody JSONObject param) { |
| | | Wrapper<WrkMastLog> wrapper = new EntityWrapper<WrkMastLog>().eq(humpToLine(String.valueOf(param.get("key"))), param.get("val")); |
| | | if (null != wrkMastLogService.selectOne(wrapper)){ |
| | | if (null != wrkMastLogService.selectOne(wrapper)) { |
| | | return R.parse(BaseRes.REPEAT).add(getComment(WrkMastLog.class, String.valueOf(param.get("key")))); |
| | | } |
| | | return R.ok(); |
| | |
| | | /** |
| | | * 序号 |
| | | */ |
| | | @ApiModelProperty(value= "序号") |
| | | @ApiModelProperty(value = "序号") |
| | | @TableId(value = "adj_id", type = IdType.AUTO) |
| | | @TableField("adj_id") |
| | | private Long adjId; |
| | |
| | | /** |
| | | * 库位号 |
| | | */ |
| | | @ApiModelProperty(value= "库位号") |
| | | @ApiModelProperty(value = "库位号") |
| | | @TableField("loc_no") |
| | | private String locNo; |
| | | |
| | | /** |
| | | * 商品编号 |
| | | */ |
| | | @ApiModelProperty(value= "变更商品编号") |
| | | @ApiModelProperty(value = "变更商品编号") |
| | | private String matnr; |
| | | |
| | | /** |
| | | * 商品编号 |
| | | */ |
| | | @ApiModelProperty(value= "商品编号") |
| | | @ApiModelProperty(value = "商品编号") |
| | | @TableField("matnr_old") |
| | | private String matnrOld; |
| | | |
| | | /** |
| | | * 批号 |
| | | */ |
| | | @ApiModelProperty(value= "批号") |
| | | @ApiModelProperty(value = "批号") |
| | | private String batch; |
| | | |
| | | /** |
| | | * 原箱数 |
| | | */ |
| | | @ApiModelProperty(value= "原箱数") |
| | | @ApiModelProperty(value = "原箱数") |
| | | @TableField("ori_ctns") |
| | | private Double oriCtns; |
| | | |
| | | /** |
| | | * 原数量 |
| | | */ |
| | | @ApiModelProperty(value= "原数量") |
| | | @ApiModelProperty(value = "原数量") |
| | | @TableField("ori_qty") |
| | | private Double oriQty; |
| | | |
| | | /** |
| | | * 原重量 |
| | | */ |
| | | @ApiModelProperty(value= "原重量") |
| | | @ApiModelProperty(value = "原重量") |
| | | @TableField("ori_wt") |
| | | private Double oriWt; |
| | | |
| | | /** |
| | | * 变更箱数 |
| | | */ |
| | | @ApiModelProperty(value= "变更箱数") |
| | | @ApiModelProperty(value = "变更箱数") |
| | | @TableField("adj_ctns") |
| | | private Double adjCtns; |
| | | |
| | | /** |
| | | * 变更数量 |
| | | */ |
| | | @ApiModelProperty(value= "变更数量") |
| | | @ApiModelProperty(value = "变更数量") |
| | | @TableField("adj_qty") |
| | | private Double adjQty; |
| | | |
| | | /** |
| | | * 变更重量 |
| | | */ |
| | | @ApiModelProperty(value= "变更重量") |
| | | @ApiModelProperty(value = "变更重量") |
| | | @TableField("adj_wt") |
| | | private Double adjWt; |
| | | |
| | | /** |
| | | * 备注 |
| | | */ |
| | | @ApiModelProperty(value= "备注") |
| | | @ApiModelProperty(value = "备注") |
| | | private String memo; |
| | | |
| | | /** |
| | | * 修改人员 |
| | | */ |
| | | @ApiModelProperty(value= "修改人员") |
| | | @ApiModelProperty(value = "修改人员") |
| | | @TableField("modi_user") |
| | | private Long modiUser; |
| | | |
| | | /** |
| | | * 修改时间 |
| | | */ |
| | | @ApiModelProperty(value= "修改时间") |
| | | @ApiModelProperty(value = "修改时间") |
| | | @TableField("modi_time") |
| | | private Date modiTime; |
| | | |
| | | /** |
| | | * 创建者 |
| | | */ |
| | | @ApiModelProperty(value= "创建者") |
| | | @ApiModelProperty(value = "创建者") |
| | | @TableField("appe_user") |
| | | private Long appeUser; |
| | | |
| | | /** |
| | | * 添加时间 |
| | | */ |
| | | @ApiModelProperty(value= "添加时间") |
| | | @ApiModelProperty(value = "添加时间") |
| | | @TableField("appe_time") |
| | | private Date appeTime; |
| | | |
| | | public AdjDetl() {} |
| | | public AdjDetl() { |
| | | } |
| | | |
| | | public AdjDetl(String locNo, String matnr, String batch, Double oriCtns, Double oriQty, Double oriWt, Double adjCtns, Double adjQty, Double adjWt, String memo, Long modiUser, Date modiTime, Long appeUser, Date appeTime) { |
| | | this.locNo = locNo; |
| | |
| | | // ); |
| | | |
| | | |
| | | public String getLocNo$(){ |
| | | public String getLocNo$() { |
| | | LocMastService service = SpringUtils.getBean(LocMastService.class); |
| | | LocMast locMast = service.selectById(this.locNo); |
| | | if (!Cools.isEmpty(locMast)){ |
| | | if (!Cools.isEmpty(locMast)) { |
| | | return String.valueOf(locMast.getLocNo()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | |
| | | public String getModiUser$(){ |
| | | public String getModiUser$() { |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.modiUser); |
| | | if (!Cools.isEmpty(user)){ |
| | | if (!Cools.isEmpty(user)) { |
| | | return String.valueOf(user.getUsername()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public String getModiTime$(){ |
| | | if (Cools.isEmpty(this.modiTime)){ |
| | | public String getModiTime$() { |
| | | if (Cools.isEmpty(this.modiTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.modiTime); |
| | | } |
| | | |
| | | public String getAppeTime$(){ |
| | | if (Cools.isEmpty(this.appeTime)){ |
| | | public String getAppeTime$() { |
| | | if (Cools.isEmpty(this.appeTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.appeTime); |
| | |
| | | package com.zy.asrs.entity; |
| | | |
| | | import com.core.common.Cools;import com.baomidou.mybatisplus.annotations.TableId; |
| | | import com.baomidou.mybatisplus.enums.IdType; |
| | | import com.baomidou.mybatisplus.annotations.TableField; |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.Date; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.Date; |
| | | |
| | | import com.baomidou.mybatisplus.annotations.TableId; |
| | | import com.baomidou.mybatisplus.annotations.TableName; |
| | | import com.baomidou.mybatisplus.enums.IdType; |
| | | import com.core.common.Cools; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import com.baomidou.mybatisplus.annotations.TableName; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | |
| | | import java.io.Serializable; |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.Date; |
| | | |
| | | @Data |
| | | @TableName("man_api_log") |
| | |
| | | /** |
| | | * ID |
| | | */ |
| | | @ApiModelProperty(value= "ID") |
| | | @ApiModelProperty(value = "ID") |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Long id; |
| | | |
| | | /** |
| | | * 日志编号 |
| | | */ |
| | | @ApiModelProperty(value= "日志编号") |
| | | @ApiModelProperty(value = "日志编号") |
| | | private String uuid; |
| | | |
| | | /** |
| | | * 名称空间 |
| | | */ |
| | | @ApiModelProperty(value= "名称空间") |
| | | @ApiModelProperty(value = "名称空间") |
| | | private String namespace; |
| | | |
| | | /** |
| | | * 接口地址 |
| | | */ |
| | | @ApiModelProperty(value= "接口地址") |
| | | @ApiModelProperty(value = "接口地址") |
| | | private String url; |
| | | |
| | | /** |
| | | * 平台密钥 |
| | | */ |
| | | @ApiModelProperty(value= "平台密钥") |
| | | @ApiModelProperty(value = "平台密钥") |
| | | private String appkey; |
| | | |
| | | /** |
| | | * 时间戳 |
| | | */ |
| | | @ApiModelProperty(value= "时间戳") |
| | | @ApiModelProperty(value = "时间戳") |
| | | private String timestamp; |
| | | |
| | | /** |
| | | * 客户端IP |
| | | */ |
| | | @ApiModelProperty(value= "客户端IP") |
| | | @ApiModelProperty(value = "客户端IP") |
| | | @TableField("client_ip") |
| | | private String clientIp; |
| | | |
| | | /** |
| | | * 请求内容 |
| | | */ |
| | | @ApiModelProperty(value= "请求内容") |
| | | @ApiModelProperty(value = "请求内容") |
| | | private String request; |
| | | |
| | | /** |
| | | * 响应内容 |
| | | */ |
| | | @ApiModelProperty(value= "响应内容") |
| | | @ApiModelProperty(value = "响应内容") |
| | | private String response; |
| | | |
| | | /** |
| | | * 异常内容 |
| | | */ |
| | | @ApiModelProperty(value= "异常内容") |
| | | @ApiModelProperty(value = "异常内容") |
| | | private String err; |
| | | |
| | | /** |
| | | * 结果 1: 成功 0: 失败 |
| | | * 结果 1: 成功 0: 失败 |
| | | */ |
| | | @ApiModelProperty(value= "结果 1: 成功 0: 失败 ") |
| | | @ApiModelProperty(value = "结果 1: 成功 0: 失败 ") |
| | | private Integer result; |
| | | |
| | | /** |
| | | * 状态 1: 正常 0: 禁用 |
| | | * 状态 1: 正常 0: 禁用 |
| | | */ |
| | | @ApiModelProperty(value= "状态 1: 正常 0: 禁用 ") |
| | | @ApiModelProperty(value = "状态 1: 正常 0: 禁用 ") |
| | | private Integer status; |
| | | |
| | | /** |
| | | * 添加时间 |
| | | */ |
| | | @ApiModelProperty(value= "添加时间") |
| | | @ApiModelProperty(value = "添加时间") |
| | | @TableField("create_time") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date createTime; |
| | | |
| | | /** |
| | | * 修改时间 |
| | | */ |
| | | @ApiModelProperty(value= "修改时间") |
| | | @ApiModelProperty(value = "修改时间") |
| | | @TableField("update_time") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date updateTime; |
| | | |
| | | /** |
| | | * 备注 |
| | | */ |
| | | @ApiModelProperty(value= "备注") |
| | | @ApiModelProperty(value = "备注") |
| | | private String memo; |
| | | |
| | | public ApiLog() {} |
| | | public ApiLog() { |
| | | } |
| | | |
| | | public ApiLog(String uuid,String namespace,String url,String appkey,String timestamp,String clientIp,String request,String response,String err,Integer result,Integer status,Date createTime,Date updateTime,String memo) { |
| | | public ApiLog(String uuid, String namespace, String url, String appkey, String timestamp, String clientIp, String request, String response, String err, Integer result, Integer status, Date createTime, Date updateTime, String memo) { |
| | | this.uuid = uuid; |
| | | this.namespace = namespace; |
| | | this.url = url; |
| | |
| | | // null // 备注 |
| | | // ); |
| | | |
| | | public String getResult$(){ |
| | | if (null == this.result){ return null; } |
| | | switch (this.result){ |
| | | public String getResult$() { |
| | | if (null == this.result) { |
| | | return null; |
| | | } |
| | | switch (this.result) { |
| | | case 1: |
| | | return "成功"; |
| | | case 0: |
| | |
| | | } |
| | | } |
| | | |
| | | public String getStatus$(){ |
| | | if (null == this.status){ return null; } |
| | | switch (this.status){ |
| | | public String getStatus$() { |
| | | if (null == this.status) { |
| | | return null; |
| | | } |
| | | switch (this.status) { |
| | | case 1: |
| | | return "正常"; |
| | | case 0: |
| | |
| | | } |
| | | } |
| | | |
| | | public String getCreateTime$(){ |
| | | if (Cools.isEmpty(this.createTime)){ |
| | | public String getCreateTime$() { |
| | | if (Cools.isEmpty(this.createTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.createTime); |
| | | } |
| | | |
| | | public String getUpdateTime$(){ |
| | | if (Cools.isEmpty(this.updateTime)){ |
| | | public String getUpdateTime$() { |
| | | if (Cools.isEmpty(this.updateTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.updateTime); |
| | |
| | | package com.zy.asrs.entity; |
| | | |
| | | import com.core.common.Cools;import com.baomidou.mybatisplus.annotations.TableId; |
| | | import com.baomidou.mybatisplus.enums.IdType; |
| | | import com.baomidou.mybatisplus.annotations.TableField; |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.Date; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.Date; |
| | | |
| | | import com.baomidou.mybatisplus.annotations.TableId; |
| | | import com.baomidou.mybatisplus.annotations.TableName; |
| | | import com.baomidou.mybatisplus.enums.IdType; |
| | | import com.core.common.Cools; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import com.baomidou.mybatisplus.annotations.TableName; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | |
| | | import java.io.Serializable; |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.Date; |
| | | |
| | | @Data |
| | | @TableName("man_auto_move") |
| | |
| | | /** |
| | | * 编号 |
| | | */ |
| | | @ApiModelProperty(value= "编号") |
| | | @ApiModelProperty(value = "编号") |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Long id; |
| | | |
| | | /** |
| | | * 状态 1: 正常 0: 禁用 |
| | | * 状态 1: 正常 0: 禁用 |
| | | */ |
| | | @ApiModelProperty(value= "状态 1: 正常 0: 禁用 ") |
| | | @ApiModelProperty(value = "状态 1: 正常 0: 禁用 ") |
| | | private Short status; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("line_number") |
| | | private Integer lineNumber; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("loc_no") |
| | | private String locNo; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("row_priority") |
| | | private Integer rowPriority; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("order_no") |
| | | private String orderNo; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("create_time") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date createTime; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("update_time") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date updateTime; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | private Integer uuid; |
| | | |
| | | public AutoMove() {} |
| | | public AutoMove() { |
| | | } |
| | | |
| | | public AutoMove(Short status,Integer lineNumber,String locNo,Integer rowPriority,String orderNo,Date createTime,Date updateTime,Integer uuid) { |
| | | public AutoMove(Short status, Integer lineNumber, String locNo, Integer rowPriority, String orderNo, Date createTime, Date updateTime, Integer uuid) { |
| | | this.status = status; |
| | | this.lineNumber = lineNumber; |
| | | this.locNo = locNo; |
| | |
| | | // null // |
| | | // ); |
| | | |
| | | public String getStatus$(){ |
| | | if (null == this.status){ return null; } |
| | | switch (this.status){ |
| | | public String getStatus$() { |
| | | if (null == this.status) { |
| | | return null; |
| | | } |
| | | switch (this.status) { |
| | | case 1: |
| | | return "正常"; |
| | | case 0: |
| | |
| | | } |
| | | } |
| | | |
| | | public String getCreateTime$(){ |
| | | if (Cools.isEmpty(this.createTime)){ |
| | | public String getCreateTime$() { |
| | | if (Cools.isEmpty(this.createTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.createTime); |
| | | } |
| | | |
| | | public String getUpdateTime$(){ |
| | | if (Cools.isEmpty(this.updateTime)){ |
| | | public String getUpdateTime$() { |
| | | if (Cools.isEmpty(this.updateTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.updateTime); |
| | |
| | | |
| | | /** |
| | | * 曲线图表json键 |
| | | * @author admin |
| | | * |
| | | * @author admin |
| | | */ |
| | | public class AxisBean { |
| | | private String name; |
| | | private Integer[] data; |
| | | public String getName() { |
| | | return name; |
| | | } |
| | | public void setName(String name) { |
| | | this.name = name; |
| | | } |
| | | public Integer[] getData() { |
| | | return data; |
| | | } |
| | | public void setData(Integer[] data) { |
| | | this.data = data; |
| | | } |
| | | |
| | | private String name; |
| | | private Integer[] data; |
| | | |
| | | public String getName() { |
| | | return name; |
| | | } |
| | | |
| | | public void setName(String name) { |
| | | this.name = name; |
| | | } |
| | | |
| | | public Integer[] getData() { |
| | | return data; |
| | | } |
| | | |
| | | public void setData(Integer[] data) { |
| | | this.data = data; |
| | | } |
| | | |
| | | } |
| | |
| | | import com.baomidou.mybatisplus.annotations.TableId; |
| | | import com.baomidou.mybatisplus.annotations.TableName; |
| | | import com.baomidou.mybatisplus.enums.IdType; |
| | | import com.zy.system.entity.User; |
| | | import com.zy.system.service.UserService; |
| | | import com.core.common.Cools; |
| | | import com.core.common.SpringUtils; |
| | | import com.zy.system.entity.User; |
| | | import com.zy.system.service.UserService; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | |
| | | import java.io.Serializable; |
| | |
| | | /** |
| | | * 异常代号 |
| | | */ |
| | | @ApiModelProperty(value= "异常代号") |
| | | @ApiModelProperty(value = "异常代号") |
| | | @TableId(value = "error_code", type = IdType.INPUT) |
| | | @TableField("error_code") |
| | | private Long errorCode; |
| | |
| | | /** |
| | | * 异常描述 |
| | | */ |
| | | @ApiModelProperty(value= "异常描述") |
| | | @ApiModelProperty(value = "异常描述") |
| | | @TableField("err_name") |
| | | private String errName; |
| | | |
| | | /** |
| | | * 修改人员 |
| | | */ |
| | | @ApiModelProperty(value= "修改人员") |
| | | @ApiModelProperty(value = "修改人员") |
| | | @TableField("modi_user") |
| | | private Long modiUser; |
| | | |
| | | /** |
| | | * 修改时间 |
| | | */ |
| | | @ApiModelProperty(value= "修改时间") |
| | | @ApiModelProperty(value = "修改时间") |
| | | @TableField("modi_time") |
| | | private Date modiTime; |
| | | |
| | | /** |
| | | * 创建者 |
| | | */ |
| | | @ApiModelProperty(value= "创建者") |
| | | @ApiModelProperty(value = "创建者") |
| | | @TableField("appe_user") |
| | | private Long appeUser; |
| | | |
| | | /** |
| | | * 添加时间 |
| | | */ |
| | | @ApiModelProperty(value= "添加时间") |
| | | @ApiModelProperty(value = "添加时间") |
| | | @TableField("appe_time") |
| | | private Date appeTime; |
| | | |
| | | public BasCrnError() {} |
| | | public BasCrnError() { |
| | | } |
| | | |
| | | public BasCrnError(String errName,Long modiUser,Date modiTime,Long appeUser,Date appeTime) { |
| | | public BasCrnError(String errName, Long modiUser, Date modiTime, Long appeUser, Date appeTime) { |
| | | this.errName = errName; |
| | | this.modiUser = modiUser; |
| | | this.modiTime = modiTime; |
| | |
| | | return modiUser; |
| | | } |
| | | |
| | | public String getModiUser$(){ |
| | | public String getModiUser$() { |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.modiUser); |
| | | if (!Cools.isEmpty(user)){ |
| | | if (!Cools.isEmpty(user)) { |
| | | return String.valueOf(user.getUsername()); |
| | | } |
| | | return null; |
| | |
| | | return modiTime; |
| | | } |
| | | |
| | | public String getModiTime$(){ |
| | | if (Cools.isEmpty(this.modiTime)){ |
| | | public String getModiTime$() { |
| | | if (Cools.isEmpty(this.modiTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.modiTime); |
| | |
| | | return appeUser; |
| | | } |
| | | |
| | | public String getAppeUser$(){ |
| | | public String getAppeUser$() { |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.appeUser); |
| | | if (!Cools.isEmpty(user)){ |
| | | if (!Cools.isEmpty(user)) { |
| | | return String.valueOf(user.getUsername()); |
| | | } |
| | | return null; |
| | |
| | | return appeTime; |
| | | } |
| | | |
| | | public String getAppeTime$(){ |
| | | if (Cools.isEmpty(this.appeTime)){ |
| | | public String getAppeTime$() { |
| | | if (Cools.isEmpty(this.appeTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.appeTime); |
| | |
| | | /** |
| | | * ID |
| | | */ |
| | | @ApiModelProperty(value= "ID") |
| | | @ApiModelProperty(value = "ID") |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Long id; |
| | | |
| | | /** |
| | | * 任务号 |
| | | */ |
| | | @ApiModelProperty(value= "任务号") |
| | | @ApiModelProperty(value = "任务号") |
| | | @TableField("wrk_no") |
| | | private Integer wrkNo; |
| | | |
| | | /** |
| | | * 堆垛机 |
| | | */ |
| | | @ApiModelProperty(value= "堆垛机") |
| | | @ApiModelProperty(value = "堆垛机") |
| | | @TableField("crn_no") |
| | | private Integer crnNo; |
| | | |
| | | /** |
| | | * 下发时间 |
| | | */ |
| | | @ApiModelProperty(value= "下发时间") |
| | | @ApiModelProperty(value = "下发时间") |
| | | @TableField("send_time") |
| | | private Date sendTime; |
| | | |
| | | /** |
| | | * 模式 |
| | | */ |
| | | @ApiModelProperty(value= "模式") |
| | | @ApiModelProperty(value = "模式") |
| | | private String mode; |
| | | |
| | | /** |
| | | * 源排 |
| | | */ |
| | | @ApiModelProperty(value= "源排") |
| | | @ApiModelProperty(value = "源排") |
| | | @TableField("source_row") |
| | | private Integer sourceRow; |
| | | |
| | | /** |
| | | * 源列 |
| | | */ |
| | | @ApiModelProperty(value= "源列") |
| | | @ApiModelProperty(value = "源列") |
| | | @TableField("source_bay") |
| | | private Integer sourceBay; |
| | | |
| | | /** |
| | | * 源层 |
| | | */ |
| | | @ApiModelProperty(value= "源层") |
| | | @ApiModelProperty(value = "源层") |
| | | @TableField("source_lev") |
| | | private Integer sourceLev; |
| | | |
| | | /** |
| | | * 源站 |
| | | */ |
| | | @ApiModelProperty(value= "源站") |
| | | @ApiModelProperty(value = "源站") |
| | | @TableField("source_sta") |
| | | private Integer sourceSta; |
| | | |
| | | /** |
| | | * 目标排 |
| | | */ |
| | | @ApiModelProperty(value= "目标排") |
| | | @ApiModelProperty(value = "目标排") |
| | | @TableField("pos_row") |
| | | private Integer posRow; |
| | | |
| | | /** |
| | | * 目标列 |
| | | */ |
| | | @ApiModelProperty(value= "目标列") |
| | | @ApiModelProperty(value = "目标列") |
| | | @TableField("pos_bay") |
| | | private Integer posBay; |
| | | |
| | | /** |
| | | * 目标层 |
| | | */ |
| | | @ApiModelProperty(value= "目标层") |
| | | @ApiModelProperty(value = "目标层") |
| | | @TableField("pos_lev") |
| | | private Integer posLev; |
| | | |
| | | /** |
| | | * 目标站 |
| | | */ |
| | | @ApiModelProperty(value= "目标站") |
| | | @ApiModelProperty(value = "目标站") |
| | | @TableField("pos_sta") |
| | | private Integer posSta; |
| | | |
| | | /** |
| | | * 响应结果 1: 正常 0: 失败 |
| | | * 响应结果 1: 正常 0: 失败 |
| | | */ |
| | | @ApiModelProperty(value= "响应结果 1: 正常 0: 失败 ") |
| | | @ApiModelProperty(value = "响应结果 1: 正常 0: 失败 ") |
| | | private Integer response; |
| | | |
| | | /** |
| | | * 修改时间 |
| | | */ |
| | | @ApiModelProperty(value= "修改时间") |
| | | @ApiModelProperty(value = "修改时间") |
| | | @TableField("update_time") |
| | | private Date updateTime; |
| | | |
| | | /** |
| | | * 修改人员 |
| | | */ |
| | | @ApiModelProperty(value= "修改人员") |
| | | @ApiModelProperty(value = "修改人员") |
| | | @TableField("update_by") |
| | | private Long updateBy; |
| | | |
| | | public BasCrnOpt() {} |
| | | public BasCrnOpt() { |
| | | } |
| | | |
| | | public BasCrnOpt(Integer wrkNo,Integer crnNo,Date sendTime,String mode,Integer sourceRow,Integer sourceBay,Integer sourceLev,Integer sourceSta,Integer posRow,Integer posBay,Integer posLev,Integer posSta,Integer response,Date updateTime,Long updateBy) { |
| | | public BasCrnOpt(Integer wrkNo, Integer crnNo, Date sendTime, String mode, Integer sourceRow, Integer sourceBay, Integer sourceLev, Integer sourceSta, Integer posRow, Integer posBay, Integer posLev, Integer posSta, Integer response, Date updateTime, Long updateBy) { |
| | | this.wrkNo = wrkNo; |
| | | this.crnNo = crnNo; |
| | | this.sendTime = sendTime; |
| | |
| | | return sendTime; |
| | | } |
| | | |
| | | public String getSendTime$(){ |
| | | if (Cools.isEmpty(this.sendTime)){ |
| | | public String getSendTime$() { |
| | | if (Cools.isEmpty(this.sendTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.sendTime); |
| | |
| | | return response; |
| | | } |
| | | |
| | | public String getResponse$(){ |
| | | if (null == this.response){ return null; } |
| | | switch (this.response){ |
| | | public String getResponse$() { |
| | | if (null == this.response) { |
| | | return null; |
| | | } |
| | | switch (this.response) { |
| | | case 1: |
| | | return "正常"; |
| | | case 0: |
| | |
| | | return updateTime; |
| | | } |
| | | |
| | | public String getUpdateTime$(){ |
| | | if (Cools.isEmpty(this.updateTime)){ |
| | | public String getUpdateTime$() { |
| | | if (Cools.isEmpty(this.updateTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.updateTime); |
| | |
| | | return updateBy; |
| | | } |
| | | |
| | | public String getUpdateBy$(){ |
| | | public String getUpdateBy$() { |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.updateBy); |
| | | if (!Cools.isEmpty(user)){ |
| | | if (!Cools.isEmpty(user)) { |
| | | return String.valueOf(user.getUsername()); |
| | | } |
| | | return null; |
| | |
| | | import com.baomidou.mybatisplus.annotations.TableId; |
| | | import com.baomidou.mybatisplus.annotations.TableName; |
| | | import com.baomidou.mybatisplus.enums.IdType; |
| | | import com.zy.system.entity.User; |
| | | import com.zy.system.service.UserService; |
| | | import com.core.common.Cools; |
| | | import com.core.common.SpringUtils; |
| | | import com.zy.system.entity.User; |
| | | import com.zy.system.service.UserService; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | |
| | | import java.io.Serializable; |
| | |
| | | /** |
| | | * 工作代号 |
| | | */ |
| | | @ApiModelProperty(value= "状态代号") |
| | | @ApiModelProperty(value = "状态代号") |
| | | @TableId(value = "sts_no", type = IdType.INPUT) |
| | | @TableField("sts_no") |
| | | private String stsNo; |
| | |
| | | /** |
| | | * 状态描述 |
| | | */ |
| | | @ApiModelProperty(value= "状态描述") |
| | | @ApiModelProperty(value = "状态描述") |
| | | @TableField("sts_desc") |
| | | private String stsDesc; |
| | | |
| | | /** |
| | | * 修改人员 |
| | | */ |
| | | @ApiModelProperty(value= "修改人员") |
| | | @ApiModelProperty(value = "修改人员") |
| | | @TableField("modi_user") |
| | | private Long modiUser; |
| | | |
| | | /** |
| | | * 修改时间 |
| | | */ |
| | | @ApiModelProperty(value= "修改时间") |
| | | @ApiModelProperty(value = "修改时间") |
| | | @TableField("modi_time") |
| | | private Date modiTime; |
| | | |
| | | /** |
| | | * 创建者 |
| | | */ |
| | | @ApiModelProperty(value= "创建者") |
| | | @ApiModelProperty(value = "创建者") |
| | | @TableField("appe_user") |
| | | private Long appeUser; |
| | | |
| | | /** |
| | | * 添加时间 |
| | | */ |
| | | @ApiModelProperty(value= "添加时间") |
| | | @ApiModelProperty(value = "添加时间") |
| | | @TableField("appe_time") |
| | | private Date appeTime; |
| | | |
| | | public BasCrnStatus() {} |
| | | public BasCrnStatus() { |
| | | } |
| | | |
| | | public BasCrnStatus(String stsDesc,Long modiUser,Date modiTime,Long appeUser,Date appeTime) { |
| | | public BasCrnStatus(String stsDesc, Long modiUser, Date modiTime, Long appeUser, Date appeTime) { |
| | | this.stsDesc = stsDesc; |
| | | this.modiUser = modiUser; |
| | | this.modiTime = modiTime; |
| | |
| | | return modiUser; |
| | | } |
| | | |
| | | public String getModiUser$(){ |
| | | public String getModiUser$() { |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.modiUser); |
| | | if (!Cools.isEmpty(user)){ |
| | | if (!Cools.isEmpty(user)) { |
| | | return String.valueOf(user.getUsername()); |
| | | } |
| | | return null; |
| | |
| | | return modiTime; |
| | | } |
| | | |
| | | public String getModiTime$(){ |
| | | if (Cools.isEmpty(this.modiTime)){ |
| | | public String getModiTime$() { |
| | | if (Cools.isEmpty(this.modiTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.modiTime); |
| | |
| | | return appeUser; |
| | | } |
| | | |
| | | public String getAppeUser$(){ |
| | | public String getAppeUser$() { |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.appeUser); |
| | | if (!Cools.isEmpty(user)){ |
| | | if (!Cools.isEmpty(user)) { |
| | | return String.valueOf(user.getUsername()); |
| | | } |
| | | return null; |
| | |
| | | return appeTime; |
| | | } |
| | | |
| | | public String getAppeTime$(){ |
| | | if (Cools.isEmpty(this.appeTime)){ |
| | | public String getAppeTime$() { |
| | | if (Cools.isEmpty(this.appeTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.appeTime); |
| | |
| | | import com.baomidou.mybatisplus.annotations.TableId; |
| | | import com.baomidou.mybatisplus.annotations.TableName; |
| | | import com.baomidou.mybatisplus.enums.IdType; |
| | | import com.core.common.Cools; |
| | | import com.core.common.SpringUtils; |
| | | import com.zy.asrs.service.BasCrnErrorService; |
| | | import com.zy.asrs.service.BasCrnStatusService; |
| | | import com.zy.asrs.service.BasDevpService; |
| | | import com.zy.asrs.service.LocMastService; |
| | | import com.zy.system.entity.User; |
| | | import com.zy.system.service.UserService; |
| | | import com.core.common.Cools; |
| | | import com.core.common.SpringUtils; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | |
| | | import java.io.Serializable; |
| | |
| | | /** |
| | | * 编号 |
| | | */ |
| | | @ApiModelProperty(value= "编号") |
| | | @ApiModelProperty(value = "编号") |
| | | @TableId(value = "crn_no", type = IdType.INPUT) |
| | | @TableField("crn_no") |
| | | private Integer crnNo; |
| | |
| | | /** |
| | | * 可入 |
| | | */ |
| | | @ApiModelProperty(value= "可入") |
| | | @ApiModelProperty(value = "可入") |
| | | @TableField("in_enable") |
| | | private String inEnable; |
| | | |
| | | /** |
| | | * 可出 |
| | | */ |
| | | @ApiModelProperty(value= "可出") |
| | | @ApiModelProperty(value = "可出") |
| | | @TableField("out_enable") |
| | | private String outEnable; |
| | | |
| | | /** |
| | | * 状态 |
| | | */ |
| | | @ApiModelProperty(value= "状态") |
| | | @ApiModelProperty(value = "状态") |
| | | @TableField("crn_sts") |
| | | private Integer crnSts; |
| | | |
| | | /** |
| | | * 工作号 |
| | | */ |
| | | @ApiModelProperty(value= "工作号") |
| | | @ApiModelProperty(value = "工作号") |
| | | @TableField("wrk_no") |
| | | private Integer wrkNo; |
| | | |
| | | /** |
| | | * 回原点 |
| | | */ |
| | | @ApiModelProperty(value= "回原点") |
| | | @ApiModelProperty(value = "回原点") |
| | | private Integer origin; |
| | | |
| | | /** |
| | | * 异常码 |
| | | */ |
| | | @ApiModelProperty(value= "异常码") |
| | | @ApiModelProperty(value = "异常码") |
| | | @TableField("crn_err") |
| | | private Long crnErr; |
| | | |
| | | /** |
| | | * 源库位 |
| | | */ |
| | | @ApiModelProperty(value= "源库位") |
| | | @ApiModelProperty(value = "源库位") |
| | | @TableField("frm_locno") |
| | | private String frmLocno; |
| | | |
| | | /** |
| | | * 源站 |
| | | */ |
| | | @ApiModelProperty(value= "源站") |
| | | @ApiModelProperty(value = "源站") |
| | | @TableField("frm_sta") |
| | | private Integer frmSta; |
| | | |
| | | /** |
| | | * 目标站 |
| | | */ |
| | | @ApiModelProperty(value= "目标站") |
| | | @ApiModelProperty(value = "目标站") |
| | | @TableField("to_sta") |
| | | private Integer toSta; |
| | | |
| | | /** |
| | | * 目标库位 |
| | | */ |
| | | @ApiModelProperty(value= "目标库位") |
| | | @ApiModelProperty(value = "目标库位") |
| | | @TableField("to_locno") |
| | | private String toLocno; |
| | | |
| | | /** |
| | | * 创建者 |
| | | */ |
| | | @ApiModelProperty(value= "创建者") |
| | | @ApiModelProperty(value = "创建者") |
| | | @TableField("appe_user") |
| | | private Long appeUser; |
| | | |
| | | /** |
| | | * 创建时间 |
| | | */ |
| | | @ApiModelProperty(value= "创建时间") |
| | | @ApiModelProperty(value = "创建时间") |
| | | @TableField("appe_time") |
| | | private Date appeTime; |
| | | |
| | | /** |
| | | * 修改人员 |
| | | */ |
| | | @ApiModelProperty(value= "修改人员") |
| | | @ApiModelProperty(value = "修改人员") |
| | | @TableField("modi_user") |
| | | private Long modiUser; |
| | | |
| | | /** |
| | | * 修改时间 |
| | | */ |
| | | @ApiModelProperty(value= "修改时间") |
| | | @ApiModelProperty(value = "修改时间") |
| | | @TableField("modi_time") |
| | | private Date modiTime; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("hp_mk") |
| | | private String hpMk; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("retrieve_mk") |
| | | private String retrieveMk; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("ctl_hp") |
| | | private String ctlHp; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("ctl_rest") |
| | | private String ctlRest; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("emp_in") |
| | | private String empIn; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("tank_qty") |
| | | private Integer tankQty; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("tank_qty1") |
| | | private Integer tankQty1; |
| | | |
| | | public BasCrnp() {} |
| | | public BasCrnp() { |
| | | } |
| | | |
| | | public BasCrnp(String inEnable,String outEnable,Integer crnSts,Integer wrkNo,Long crnErr,String frmLocno,Integer frmSta,Integer toSta,String toLocno,Long appeUser,Date appeTime,Long modiUser,Date modiTime,String hpMk,String retrieveMk,String ctlHp,String ctlRest,String empIn,Integer tankQty,Integer tankQty1) { |
| | | public BasCrnp(String inEnable, String outEnable, Integer crnSts, Integer wrkNo, Long crnErr, String frmLocno, Integer frmSta, Integer toSta, String toLocno, Long appeUser, Date appeTime, Long modiUser, Date modiTime, String hpMk, String retrieveMk, String ctlHp, String ctlRest, String empIn, Integer tankQty, Integer tankQty1) { |
| | | this.inEnable = inEnable; |
| | | this.outEnable = outEnable; |
| | | this.crnSts = crnSts; |
| | |
| | | return crnSts; |
| | | } |
| | | |
| | | public String getCrnSts$(){ |
| | | public String getCrnSts$() { |
| | | BasCrnStatusService service = SpringUtils.getBean(BasCrnStatusService.class); |
| | | BasCrnStatus basCrnStatus = service.selectById(this.crnSts); |
| | | if (!Cools.isEmpty(basCrnStatus)){ |
| | | if (!Cools.isEmpty(basCrnStatus)) { |
| | | return String.valueOf(basCrnStatus.getStsDesc()); |
| | | } |
| | | return null; |
| | |
| | | return crnErr; |
| | | } |
| | | |
| | | public String getCrnErr$(){ |
| | | public String getCrnErr$() { |
| | | BasCrnErrorService service = SpringUtils.getBean(BasCrnErrorService.class); |
| | | BasCrnError basCrnError = service.selectById(this.crnErr); |
| | | if (!Cools.isEmpty(basCrnError)){ |
| | | if (!Cools.isEmpty(basCrnError)) { |
| | | return String.valueOf(basCrnError.getErrName()); |
| | | } |
| | | return null; |
| | |
| | | return frmLocno; |
| | | } |
| | | |
| | | public String getFrmLocno$(){ |
| | | public String getFrmLocno$() { |
| | | LocMastService service = SpringUtils.getBean(LocMastService.class); |
| | | LocMast locMast = service.selectById(this.frmLocno); |
| | | if (!Cools.isEmpty(locMast)){ |
| | | if (!Cools.isEmpty(locMast)) { |
| | | return String.valueOf(locMast.getLocNo()); |
| | | } |
| | | return null; |
| | |
| | | return frmSta; |
| | | } |
| | | |
| | | public String getFrmSta$(){ |
| | | public String getFrmSta$() { |
| | | BasDevpService service = SpringUtils.getBean(BasDevpService.class); |
| | | BasDevp basDevp = service.selectById(this.frmSta); |
| | | if (!Cools.isEmpty(basDevp)){ |
| | | if (!Cools.isEmpty(basDevp)) { |
| | | return String.valueOf(basDevp.getDevNo()); |
| | | } |
| | | return null; |
| | |
| | | return toSta; |
| | | } |
| | | |
| | | public String getToSta$(){ |
| | | public String getToSta$() { |
| | | BasDevpService service = SpringUtils.getBean(BasDevpService.class); |
| | | BasDevp basDevp = service.selectById(this.toSta); |
| | | if (!Cools.isEmpty(basDevp)){ |
| | | if (!Cools.isEmpty(basDevp)) { |
| | | return String.valueOf(basDevp.getDevNo()); |
| | | } |
| | | return null; |
| | |
| | | return toLocno; |
| | | } |
| | | |
| | | public String getToLocno$(){ |
| | | public String getToLocno$() { |
| | | LocMastService service = SpringUtils.getBean(LocMastService.class); |
| | | LocMast locMast = service.selectById(this.toLocno); |
| | | if (!Cools.isEmpty(locMast)){ |
| | | if (!Cools.isEmpty(locMast)) { |
| | | return String.valueOf(locMast.getLocNo()); |
| | | } |
| | | return null; |
| | |
| | | return appeUser; |
| | | } |
| | | |
| | | public String getAppeUser$(){ |
| | | public String getAppeUser$() { |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.appeUser); |
| | | if (!Cools.isEmpty(user)){ |
| | | if (!Cools.isEmpty(user)) { |
| | | return String.valueOf(user.getUsername()); |
| | | } |
| | | return null; |
| | |
| | | return appeTime; |
| | | } |
| | | |
| | | public String getAppeTime$(){ |
| | | if (Cools.isEmpty(this.appeTime)){ |
| | | public String getAppeTime$() { |
| | | if (Cools.isEmpty(this.appeTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.appeTime); |
| | |
| | | return modiUser; |
| | | } |
| | | |
| | | public String getModiUser$(){ |
| | | public String getModiUser$() { |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.modiUser); |
| | | if (!Cools.isEmpty(user)){ |
| | | if (!Cools.isEmpty(user)) { |
| | | return String.valueOf(user.getUsername()); |
| | | } |
| | | return null; |
| | |
| | | return modiTime; |
| | | } |
| | | |
| | | public String getModiTime$(){ |
| | | if (Cools.isEmpty(this.modiTime)){ |
| | | public String getModiTime$() { |
| | | if (Cools.isEmpty(this.modiTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.modiTime); |
| | |
| | | import com.baomidou.mybatisplus.annotations.TableId; |
| | | import com.baomidou.mybatisplus.annotations.TableName; |
| | | import com.baomidou.mybatisplus.enums.IdType; |
| | | import com.zy.system.entity.User; |
| | | import com.zy.system.service.UserService; |
| | | import com.core.common.Cools; |
| | | import com.core.common.SpringUtils; |
| | | import com.zy.system.entity.User; |
| | | import com.zy.system.service.UserService; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | |
| | | /** |
| | | * 编号 |
| | | */ |
| | | @ApiModelProperty(value= "编号") |
| | | @ApiModelProperty(value = "编号") |
| | | @TableId(value = "dev_no", type = IdType.INPUT) |
| | | @TableField("dev_no") |
| | | private Integer devNo; |
| | |
| | | /** |
| | | * 设备描述 |
| | | */ |
| | | @ApiModelProperty(value= "设备描述") |
| | | @ApiModelProperty(value = "设备描述") |
| | | @TableField("dec_desc") |
| | | private String decDesc; |
| | | |
| | | /** |
| | | * 备注 |
| | | */ |
| | | @ApiModelProperty(value= "备注") |
| | | @ApiModelProperty(value = "备注") |
| | | @TableField("dev_mk") |
| | | private String devMk; |
| | | |
| | | /** |
| | | * 可入 |
| | | */ |
| | | @ApiModelProperty(value= "可入") |
| | | @ApiModelProperty(value = "可入") |
| | | @TableField("in_enable") |
| | | private String inEnable; |
| | | |
| | | /** |
| | | * 可出 |
| | | */ |
| | | @ApiModelProperty(value= "可出") |
| | | @ApiModelProperty(value = "可出") |
| | | @TableField("out_enable") |
| | | private String outEnable; |
| | | |
| | | /** |
| | | * 自动 |
| | | */ |
| | | @ApiModelProperty(value= "自动") |
| | | @ApiModelProperty(value = "自动") |
| | | private String autoing; |
| | | |
| | | /** |
| | | * 有物 |
| | | */ |
| | | @ApiModelProperty(value= "有物") |
| | | @ApiModelProperty(value = "有物") |
| | | private String loading; |
| | | |
| | | /** |
| | | * 能入 |
| | | */ |
| | | @ApiModelProperty(value= "能入") |
| | | @ApiModelProperty(value = "能入") |
| | | private String canining; |
| | | |
| | | /** |
| | | * 能出 |
| | | */ |
| | | @ApiModelProperty(value= "能出") |
| | | @ApiModelProperty(value = "能出") |
| | | private String canouting; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | private String fronting; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | private String rearing; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | private String uping; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | private String downing; |
| | | |
| | | /** |
| | | * 需求1 |
| | | */ |
| | | @ApiModelProperty(value= "需求1") |
| | | @ApiModelProperty(value = "需求1") |
| | | private String inreq1; |
| | | |
| | | /** |
| | | * 需求2 |
| | | */ |
| | | @ApiModelProperty(value= "需求2") |
| | | @ApiModelProperty(value = "需求2") |
| | | private String inreq2; |
| | | |
| | | /** |
| | | * 工作号 |
| | | */ |
| | | @ApiModelProperty(value= "工作号") |
| | | @ApiModelProperty(value = "工作号") |
| | | @TableField("wrk_no") |
| | | private Integer wrkNo; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("wrk_no1") |
| | | private Integer wrkNo1; |
| | | |
| | | /** |
| | | * 容器类型 |
| | | */ |
| | | @ApiModelProperty(value= "容器类型") |
| | | @ApiModelProperty(value = "容器类型") |
| | | @TableField("ctn_type") |
| | | private Integer ctnType; |
| | | |
| | | /** |
| | | * 条形码 |
| | | */ |
| | | @ApiModelProperty(value= "条形码") |
| | | @ApiModelProperty(value = "条形码") |
| | | private String barcode; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("in_qty") |
| | | private Integer inQty; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | private Integer row1; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("io_time") |
| | | private Date ioTime; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | private String area; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("in_ok") |
| | | private String inOk; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("out_ok") |
| | | private String outOk; |
| | | |
| | | @ApiModelProperty(value= "高低类型{0:未知,1:低库位,2:高库位}") |
| | | @ApiModelProperty(value = "高低类型{0:未知,1:低库位,2:高库位}") |
| | | @TableField("loc_type1") |
| | | private Short locType1; |
| | | |
| | | @ApiModelProperty(value= "宽窄类型{0:未知,1:窄库位,2:宽库位}") |
| | | @ApiModelProperty(value = "宽窄类型{0:未知,1:窄库位,2:宽库位}") |
| | | @TableField("loc_type2") |
| | | private Short locType2; |
| | | |
| | | @ApiModelProperty(value= "轻重类型{0:未知,1:轻库位,2:重库位}") |
| | | @ApiModelProperty(value = "轻重类型{0:未知,1:轻库位,2:重库位}") |
| | | @TableField("loc_type3") |
| | | private Short locType3; |
| | | |
| | | /** |
| | | * 修改人员 |
| | | */ |
| | | @ApiModelProperty(value= "修改人员") |
| | | @ApiModelProperty(value = "修改人员") |
| | | @TableField("modi_user") |
| | | private Long modiUser; |
| | | |
| | | /** |
| | | * 修改时间 |
| | | */ |
| | | @ApiModelProperty(value= "修改时间") |
| | | @ApiModelProperty(value = "修改时间") |
| | | @TableField("modi_time") |
| | | private Date modiTime; |
| | | |
| | | /** |
| | | * 创建者 |
| | | */ |
| | | @ApiModelProperty(value= "创建者") |
| | | @ApiModelProperty(value = "创建者") |
| | | @TableField("appe_user") |
| | | private Long appeUser; |
| | | |
| | | /** |
| | | * 添加时间 |
| | | */ |
| | | @ApiModelProperty(value= "添加时间") |
| | | @ApiModelProperty(value = "添加时间") |
| | | @TableField("appe_time") |
| | | private Date appeTime; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("std_qty") |
| | | private Double stdQty; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("min_wt") |
| | | private Double minWt; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("max_wt") |
| | | private Double maxWt; |
| | | |
| | | /** |
| | | * 重量 |
| | | */ |
| | | @ApiModelProperty(value= "重量") |
| | | @ApiModelProperty(value = "重量") |
| | | @TableField("gross_wt") |
| | | private Double grossWt; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("cart_pos") |
| | | private Integer cartPos; |
| | | |
| | | |
| | | public String getIoTime$(){ |
| | | if (Cools.isEmpty(this.ioTime)){ |
| | | public String getIoTime$() { |
| | | if (Cools.isEmpty(this.ioTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.ioTime); |
| | | } |
| | | |
| | | public String getLocType1$() { |
| | | if (null == this.locType1){ return null; } |
| | | switch (this.locType1){ |
| | | if (null == this.locType1) { |
| | | return null; |
| | | } |
| | | switch (this.locType1) { |
| | | case 0: |
| | | return "未知"; |
| | | case 1: |
| | |
| | | } |
| | | |
| | | public String getLocType2$() { |
| | | if (null == this.locType2){ return null; } |
| | | switch (this.locType2){ |
| | | if (null == this.locType2) { |
| | | return null; |
| | | } |
| | | switch (this.locType2) { |
| | | case 0: |
| | | return "未知"; |
| | | case 1: |
| | |
| | | } |
| | | |
| | | public String getLocType3$() { |
| | | if (null == this.locType3){ return null; } |
| | | switch (this.locType3){ |
| | | if (null == this.locType3) { |
| | | return null; |
| | | } |
| | | switch (this.locType3) { |
| | | case 0: |
| | | return "未知"; |
| | | case 1: |
| | |
| | | } |
| | | } |
| | | |
| | | public String getModiUser$(){ |
| | | public String getModiUser$() { |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.modiUser); |
| | | if (!Cools.isEmpty(user)){ |
| | | if (!Cools.isEmpty(user)) { |
| | | return String.valueOf(user.getUsername()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public String getModiTime$(){ |
| | | if (Cools.isEmpty(this.modiTime)){ |
| | | public String getModiTime$() { |
| | | if (Cools.isEmpty(this.modiTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.modiTime); |
| | | } |
| | | |
| | | public String getAppeUser$(){ |
| | | public String getAppeUser$() { |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.appeUser); |
| | | if (!Cools.isEmpty(user)){ |
| | | if (!Cools.isEmpty(user)) { |
| | | return String.valueOf(user.getUsername()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public String getAppeTime$(){ |
| | | if (Cools.isEmpty(this.appeTime)){ |
| | | public String getAppeTime$() { |
| | | if (Cools.isEmpty(this.appeTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.appeTime); |
| | |
| | | /** |
| | | * ID |
| | | */ |
| | | @ApiModelProperty(value= "ID") |
| | | @ApiModelProperty(value = "ID") |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Long id; |
| | | |
| | | /** |
| | | * 编号 |
| | | */ |
| | | @ApiModelProperty(value= "编号") |
| | | @ApiModelProperty(value = "编号") |
| | | private String uuid; |
| | | |
| | | /** |
| | | * 工作号 |
| | | */ |
| | | @ApiModelProperty(value= "工作号") |
| | | @ApiModelProperty(value = "工作号") |
| | | @TableField("wrk_no") |
| | | private Integer wrkNo; |
| | | |
| | | /** |
| | | * 发生时间 |
| | | */ |
| | | @ApiModelProperty(value= "发生时间") |
| | | @ApiModelProperty(value = "发生时间") |
| | | @TableField("start_time") |
| | | private Date startTime; |
| | | |
| | | /** |
| | | * 结束时间 |
| | | */ |
| | | @ApiModelProperty(value= "结束时间") |
| | | @ApiModelProperty(value = "结束时间") |
| | | @TableField("end_time") |
| | | private Date endTime; |
| | | |
| | | /** |
| | | * 工作状态 |
| | | */ |
| | | @ApiModelProperty(value= "工作状态") |
| | | @ApiModelProperty(value = "工作状态") |
| | | @TableField("wrk_sts") |
| | | private Long wrkSts; |
| | | |
| | | /** |
| | | * 入出库类型 |
| | | */ |
| | | @ApiModelProperty(value= "入出库类型") |
| | | @ApiModelProperty(value = "入出库类型") |
| | | @TableField("io_type") |
| | | private Integer ioType; |
| | | |
| | | /** |
| | | * 堆垛机 |
| | | */ |
| | | @ApiModelProperty(value= "堆垛机") |
| | | @ApiModelProperty(value = "堆垛机") |
| | | @TableField("crn_no") |
| | | private Integer crnNo; |
| | | |
| | | /** |
| | | * plc |
| | | */ |
| | | @ApiModelProperty(value= "plc") |
| | | @ApiModelProperty(value = "plc") |
| | | @TableField("plc_no") |
| | | private Integer plcNo; |
| | | |
| | | /** |
| | | * 目标库位 |
| | | */ |
| | | @ApiModelProperty(value= "目标库位") |
| | | @ApiModelProperty(value = "目标库位") |
| | | @TableField("loc_no") |
| | | private String locNo; |
| | | |
| | | /** |
| | | * 目标站 |
| | | */ |
| | | @ApiModelProperty(value= "目标站") |
| | | @ApiModelProperty(value = "目标站") |
| | | @TableField("sta_no") |
| | | private Integer staNo; |
| | | |
| | | /** |
| | | * 源站 |
| | | */ |
| | | @ApiModelProperty(value= "源站") |
| | | @ApiModelProperty(value = "源站") |
| | | @TableField("source_sta_no") |
| | | private Integer sourceStaNo; |
| | | |
| | | /** |
| | | * 源库位 |
| | | */ |
| | | @ApiModelProperty(value= "源库位") |
| | | @ApiModelProperty(value = "源库位") |
| | | @TableField("source_loc_no") |
| | | private String sourceLocNo; |
| | | |
| | | /** |
| | | * 条码 |
| | | */ |
| | | @ApiModelProperty(value= "条码") |
| | | @ApiModelProperty(value = "条码") |
| | | private String barcode; |
| | | |
| | | /** |
| | | * 异常码 |
| | | */ |
| | | @ApiModelProperty(value= "异常码") |
| | | @ApiModelProperty(value = "异常码") |
| | | @TableField("err_code") |
| | | private Integer errCode; |
| | | |
| | | /** |
| | | * 异常 |
| | | */ |
| | | @ApiModelProperty(value= "异常") |
| | | @ApiModelProperty(value = "异常") |
| | | private String error; |
| | | |
| | | /** |
| | | * 异常情况 1: 待处理 2: 已修复 |
| | | */ |
| | | @ApiModelProperty(value= "异常情况 1: 待处理 2: 已修复 ") |
| | | @ApiModelProperty(value = "异常情况 1: 待处理 2: 已修复 ") |
| | | private Integer status; |
| | | |
| | | /** |
| | | * 添加时间 |
| | | */ |
| | | @ApiModelProperty(value= "添加时间") |
| | | @ApiModelProperty(value = "添加时间") |
| | | @TableField("create_time") |
| | | private Date createTime; |
| | | |
| | | /** |
| | | * 添加人员 |
| | | */ |
| | | @ApiModelProperty(value= "添加人员") |
| | | @ApiModelProperty(value = "添加人员") |
| | | @TableField("create_by") |
| | | private Long createBy; |
| | | |
| | | /** |
| | | * 修改时间 |
| | | */ |
| | | @ApiModelProperty(value= "修改时间") |
| | | @ApiModelProperty(value = "修改时间") |
| | | @TableField("update_time") |
| | | private Date updateTime; |
| | | |
| | | /** |
| | | * 修改人员 |
| | | */ |
| | | @ApiModelProperty(value= "修改人员") |
| | | @ApiModelProperty(value = "修改人员") |
| | | @TableField("update_by") |
| | | private Long updateBy; |
| | | |
| | | /** |
| | | * 备注 |
| | | */ |
| | | @ApiModelProperty(value= "备注") |
| | | @ApiModelProperty(value = "备注") |
| | | private String memo; |
| | | |
| | | public BasErrLog() {} |
| | | public BasErrLog() { |
| | | } |
| | | |
| | | public BasErrLog(String uuid,Integer wrkNo,Date startTime,Date endTime,Long wrkSts,Integer ioType,Integer crnNo,Integer plcNo,String locNo,Integer staNo,Integer sourceStaNo,String sourceLocNo,String barcode,Integer errCode,String error,Integer status,Date createTime,Long createBy,Date updateTime,Long updateBy,String memo) { |
| | | public BasErrLog(String uuid, Integer wrkNo, Date startTime, Date endTime, Long wrkSts, Integer ioType, Integer crnNo, Integer plcNo, String locNo, Integer staNo, Integer sourceStaNo, String sourceLocNo, String barcode, Integer errCode, String error, Integer status, Date createTime, Long createBy, Date updateTime, Long updateBy, String memo) { |
| | | this.uuid = uuid; |
| | | this.wrkNo = wrkNo; |
| | | this.startTime = startTime; |
| | |
| | | return startTime; |
| | | } |
| | | |
| | | public String getStartTime$(){ |
| | | if (Cools.isEmpty(this.startTime)){ |
| | | public String getStartTime$() { |
| | | if (Cools.isEmpty(this.startTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.startTime); |
| | |
| | | return endTime; |
| | | } |
| | | |
| | | public String getEndTime$(){ |
| | | if (Cools.isEmpty(this.endTime)){ |
| | | public String getEndTime$() { |
| | | if (Cools.isEmpty(this.endTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.endTime); |
| | |
| | | return wrkSts; |
| | | } |
| | | |
| | | public String getWrkSts$(){ |
| | | public String getWrkSts$() { |
| | | BasWrkStatusService service = SpringUtils.getBean(BasWrkStatusService.class); |
| | | BasWrkStatus basWrkStatus = service.selectById(this.wrkSts); |
| | | if (!Cools.isEmpty(basWrkStatus)){ |
| | | if (!Cools.isEmpty(basWrkStatus)) { |
| | | return String.valueOf(basWrkStatus.getWrkDesc()); |
| | | } |
| | | return null; |
| | |
| | | return ioType; |
| | | } |
| | | |
| | | public String getIoType$(){ |
| | | public String getIoType$() { |
| | | BasWrkIotypeService service = SpringUtils.getBean(BasWrkIotypeService.class); |
| | | BasWrkIotype basWrkIotype = service.selectById(this.ioType); |
| | | if (!Cools.isEmpty(basWrkIotype)){ |
| | | if (!Cools.isEmpty(basWrkIotype)) { |
| | | return String.valueOf(basWrkIotype.getIoDesc()); |
| | | } |
| | | return null; |
| | |
| | | return status; |
| | | } |
| | | |
| | | public String getStatus$(){ |
| | | if (null == this.status){ return null; } |
| | | switch (this.status){ |
| | | public String getStatus$() { |
| | | if (null == this.status) { |
| | | return null; |
| | | } |
| | | switch (this.status) { |
| | | case 1: |
| | | return "待处理"; |
| | | case 2: |
| | |
| | | return createTime; |
| | | } |
| | | |
| | | public String getCreateTime$(){ |
| | | if (Cools.isEmpty(this.createTime)){ |
| | | public String getCreateTime$() { |
| | | if (Cools.isEmpty(this.createTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.createTime); |
| | |
| | | return createBy; |
| | | } |
| | | |
| | | public String getCreateBy$(){ |
| | | public String getCreateBy$() { |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.createBy); |
| | | if (!Cools.isEmpty(user)){ |
| | | if (!Cools.isEmpty(user)) { |
| | | return String.valueOf(user.getUsername()); |
| | | } |
| | | return null; |
| | |
| | | return updateTime; |
| | | } |
| | | |
| | | public String getUpdateTime$(){ |
| | | if (Cools.isEmpty(this.updateTime)){ |
| | | public String getUpdateTime$() { |
| | | if (Cools.isEmpty(this.updateTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.updateTime); |
| | |
| | | return updateBy; |
| | | } |
| | | |
| | | public String getUpdateBy$(){ |
| | | public String getUpdateBy$() { |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.updateBy); |
| | | if (!Cools.isEmpty(user)){ |
| | | if (!Cools.isEmpty(user)) { |
| | | return String.valueOf(user.getUsername()); |
| | | } |
| | | return null; |
| | |
| | | import com.baomidou.mybatisplus.annotations.TableId; |
| | | import com.baomidou.mybatisplus.annotations.TableName; |
| | | import com.baomidou.mybatisplus.enums.IdType; |
| | | import com.zy.system.entity.User; |
| | | import com.zy.system.service.UserService; |
| | | import com.core.common.Cools; |
| | | import com.core.common.SpringUtils; |
| | | import com.zy.system.entity.User; |
| | | import com.zy.system.service.UserService; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | |
| | | import java.io.Serializable; |
| | |
| | | /** |
| | | * 库位状态代号 |
| | | */ |
| | | @ApiModelProperty(value= "库位状态代号") |
| | | @ApiModelProperty(value = "库位状态代号") |
| | | @TableId(value = "loc_sts", type = IdType.INPUT) |
| | | @TableField("loc_sts") |
| | | private String locSts; |
| | |
| | | /** |
| | | * 库位状态描述 |
| | | */ |
| | | @ApiModelProperty(value= "库位状态描述") |
| | | @ApiModelProperty(value = "库位状态描述") |
| | | @TableField("loc_desc") |
| | | private String locDesc; |
| | | |
| | | /** |
| | | * 修改人员 |
| | | */ |
| | | @ApiModelProperty(value= "修改人员") |
| | | @ApiModelProperty(value = "修改人员") |
| | | @TableField("modi_user") |
| | | private Long modiUser; |
| | | |
| | | /** |
| | | * 修改时间 |
| | | */ |
| | | @ApiModelProperty(value= "修改时间") |
| | | @ApiModelProperty(value = "修改时间") |
| | | @TableField("modi_time") |
| | | private Date modiTime; |
| | | |
| | | /** |
| | | * 创建者 |
| | | */ |
| | | @ApiModelProperty(value= "创建者") |
| | | @ApiModelProperty(value = "创建者") |
| | | @TableField("appe_user") |
| | | private Long appeUser; |
| | | |
| | | /** |
| | | * 添加时间 |
| | | */ |
| | | @ApiModelProperty(value= "添加时间") |
| | | @ApiModelProperty(value = "添加时间") |
| | | @TableField("appe_time") |
| | | private Date appeTime; |
| | | |
| | | public BasLocSts() {} |
| | | public BasLocSts() { |
| | | } |
| | | |
| | | public BasLocSts(String locDesc,Long modiUser,Date modiTime,Long appeUser,Date appeTime) { |
| | | public BasLocSts(String locDesc, Long modiUser, Date modiTime, Long appeUser, Date appeTime) { |
| | | this.locDesc = locDesc; |
| | | this.modiUser = modiUser; |
| | | this.modiTime = modiTime; |
| | |
| | | return modiUser; |
| | | } |
| | | |
| | | public String getModiUser$(){ |
| | | public String getModiUser$() { |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.modiUser); |
| | | if (!Cools.isEmpty(user)){ |
| | | if (!Cools.isEmpty(user)) { |
| | | return String.valueOf(user.getUsername()); |
| | | } |
| | | return null; |
| | |
| | | return modiTime; |
| | | } |
| | | |
| | | public String getModiTime$(){ |
| | | if (Cools.isEmpty(this.modiTime)){ |
| | | public String getModiTime$() { |
| | | if (Cools.isEmpty(this.modiTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.modiTime); |
| | |
| | | return appeUser; |
| | | } |
| | | |
| | | public String getAppeUser$(){ |
| | | public String getAppeUser$() { |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.appeUser); |
| | | if (!Cools.isEmpty(user)){ |
| | | if (!Cools.isEmpty(user)) { |
| | | return String.valueOf(user.getUsername()); |
| | | } |
| | | return null; |
| | |
| | | return appeTime; |
| | | } |
| | | |
| | | public String getAppeTime$(){ |
| | | if (Cools.isEmpty(this.appeTime)){ |
| | | public String getAppeTime$() { |
| | | if (Cools.isEmpty(this.appeTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.appeTime); |
| | |
| | | /** |
| | | * 异常编号 |
| | | */ |
| | | @ApiModelProperty(value= "异常编号") |
| | | @ApiModelProperty(value = "异常编号") |
| | | @TableId(value = "error_code", type = IdType.INPUT) |
| | | @TableField("error_code") |
| | | private Integer errorCode; |
| | |
| | | /** |
| | | * 异常描述 |
| | | */ |
| | | @ApiModelProperty(value= "异常描述") |
| | | @ApiModelProperty(value = "异常描述") |
| | | @TableField("error_desc") |
| | | private String errorDesc; |
| | | |
| | | /** |
| | | * 修改时间 |
| | | */ |
| | | @ApiModelProperty(value= "修改时间") |
| | | @ApiModelProperty(value = "修改时间") |
| | | @TableField("modi_time") |
| | | private Date modiTime; |
| | | |
| | | /** |
| | | * 修改人员 |
| | | */ |
| | | @ApiModelProperty(value= "修改人员") |
| | | @ApiModelProperty(value = "修改人员") |
| | | @TableField("modi_user") |
| | | private Long modiUser; |
| | | |
| | | /** |
| | | * 添加时间 |
| | | */ |
| | | @ApiModelProperty(value= "添加时间") |
| | | @ApiModelProperty(value = "添加时间") |
| | | @TableField("appe_time") |
| | | private Date appeTime; |
| | | |
| | | /** |
| | | * 创建者 |
| | | */ |
| | | @ApiModelProperty(value= "创建者") |
| | | @ApiModelProperty(value = "创建者") |
| | | @TableField("appe_user") |
| | | private Long appeUser; |
| | | |
| | | public BasPlcerror() {} |
| | | public BasPlcerror() { |
| | | } |
| | | |
| | | public BasPlcerror(Integer errorCode,String errorDesc,Date modiTime,Long modiUser,Date appeTime,Long appeUser) { |
| | | public BasPlcerror(Integer errorCode, String errorDesc, Date modiTime, Long modiUser, Date appeTime, Long appeUser) { |
| | | this.errorDesc = errorDesc; |
| | | this.modiTime = modiTime; |
| | | this.modiUser = modiUser; |
| | |
| | | return modiTime; |
| | | } |
| | | |
| | | public String getModiTime$(){ |
| | | if (Cools.isEmpty(this.modiTime)){ |
| | | public String getModiTime$() { |
| | | if (Cools.isEmpty(this.modiTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.modiTime); |
| | |
| | | return modiUser; |
| | | } |
| | | |
| | | public String getModiUser$(){ |
| | | public String getModiUser$() { |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.modiUser); |
| | | if (!Cools.isEmpty(user)){ |
| | | if (!Cools.isEmpty(user)) { |
| | | return String.valueOf(user.getUsername()); |
| | | } |
| | | return null; |
| | |
| | | return appeTime; |
| | | } |
| | | |
| | | public String getAppeTime$(){ |
| | | if (Cools.isEmpty(this.appeTime)){ |
| | | public String getAppeTime$() { |
| | | if (Cools.isEmpty(this.appeTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.appeTime); |
| | |
| | | return appeUser; |
| | | } |
| | | |
| | | public String getAppeUser$(){ |
| | | public String getAppeUser$() { |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.appeUser); |
| | | if (!Cools.isEmpty(user)){ |
| | | if (!Cools.isEmpty(user)) { |
| | | return String.valueOf(user.getUsername()); |
| | | } |
| | | return null; |
| | |
| | | import com.baomidou.mybatisplus.annotations.TableId; |
| | | import com.baomidou.mybatisplus.annotations.TableName; |
| | | import com.baomidou.mybatisplus.enums.IdType; |
| | | import com.zy.system.entity.User; |
| | | import com.zy.system.service.UserService; |
| | | import com.core.common.Cools; |
| | | import com.core.common.SpringUtils; |
| | | import com.zy.system.entity.User; |
| | | import com.zy.system.service.UserService; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | |
| | | import java.io.Serializable; |
| | |
| | | /** |
| | | * 编号 |
| | | */ |
| | | @ApiModelProperty(value= "编号") |
| | | @ApiModelProperty(value = "编号") |
| | | |
| | | private Long id; |
| | | |
| | | /** |
| | | * 库位类型 |
| | | */ |
| | | @ApiModelProperty(value= "库位类型") |
| | | @ApiModelProperty(value = "库位类型") |
| | | @TableField("whs_desc") |
| | | private String whsDesc; |
| | | |
| | | /** |
| | | * 修改人员 |
| | | */ |
| | | @ApiModelProperty(value= "修改人员") |
| | | @ApiModelProperty(value = "修改人员") |
| | | @TableField("modi_user") |
| | | private Long modiUser; |
| | | |
| | | /** |
| | | * 修改时间 |
| | | */ |
| | | @ApiModelProperty(value= "修改时间") |
| | | @ApiModelProperty(value = "修改时间") |
| | | @TableField("modi_time") |
| | | private Date modiTime; |
| | | |
| | | /** |
| | | * 创建者 |
| | | */ |
| | | @ApiModelProperty(value= "创建者") |
| | | @ApiModelProperty(value = "创建者") |
| | | @TableField("appe_user") |
| | | private Long appeUser; |
| | | |
| | | /** |
| | | * 添加时间 |
| | | */ |
| | | @ApiModelProperty(value= "添加时间") |
| | | @ApiModelProperty(value = "添加时间") |
| | | @TableField("appe_time") |
| | | private Date appeTime; |
| | | |
| | | /** |
| | | * 标识 |
| | | */ |
| | | @ApiModelProperty(value= "标识") |
| | | @ApiModelProperty(value = "标识") |
| | | @TableId(value = "identifying", type = IdType.AUTO) |
| | | private String identifying; |
| | | |
| | | public BasWhs() {} |
| | | public BasWhs() { |
| | | } |
| | | |
| | | public BasWhs(String whsDesc,Long modiUser,Date modiTime,Long appeUser,Date appeTime) { |
| | | public BasWhs(String whsDesc, Long modiUser, Date modiTime, Long appeUser, Date appeTime) { |
| | | this.whsDesc = whsDesc; |
| | | this.modiUser = modiUser; |
| | | this.modiTime = modiTime; |
| | |
| | | return modiUser; |
| | | } |
| | | |
| | | public String getModiUser$(){ |
| | | public String getModiUser$() { |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.modiUser); |
| | | if (!Cools.isEmpty(user)){ |
| | | if (!Cools.isEmpty(user)) { |
| | | return String.valueOf(user.getUsername()); |
| | | } |
| | | return null; |
| | |
| | | return modiTime; |
| | | } |
| | | |
| | | public String getModiTime$(){ |
| | | if (Cools.isEmpty(this.modiTime)){ |
| | | public String getModiTime$() { |
| | | if (Cools.isEmpty(this.modiTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.modiTime); |
| | |
| | | return appeUser; |
| | | } |
| | | |
| | | public String getAppeUser$(){ |
| | | public String getAppeUser$() { |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.appeUser); |
| | | if (!Cools.isEmpty(user)){ |
| | | if (!Cools.isEmpty(user)) { |
| | | return String.valueOf(user.getUsername()); |
| | | } |
| | | return null; |
| | |
| | | return appeTime; |
| | | } |
| | | |
| | | public String getAppeTime$(){ |
| | | if (Cools.isEmpty(this.appeTime)){ |
| | | public String getAppeTime$() { |
| | | if (Cools.isEmpty(this.appeTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.appeTime); |
| | |
| | | import com.baomidou.mybatisplus.annotations.TableId; |
| | | import com.baomidou.mybatisplus.annotations.TableName; |
| | | import com.baomidou.mybatisplus.enums.IdType; |
| | | import com.zy.system.entity.User; |
| | | import com.zy.system.service.UserService; |
| | | import com.core.common.Cools; |
| | | import com.core.common.SpringUtils; |
| | | import com.zy.system.entity.User; |
| | | import com.zy.system.service.UserService; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | |
| | | import java.io.Serializable; |
| | |
| | | /** |
| | | * 入出类型代号 |
| | | */ |
| | | @ApiModelProperty(value= "入出类型代号") |
| | | @ApiModelProperty(value = "入出类型代号") |
| | | @TableId(value = "io_type", type = IdType.INPUT) |
| | | @TableField("io_type") |
| | | private Integer ioType; |
| | |
| | | /** |
| | | * 主要 |
| | | */ |
| | | @ApiModelProperty(value= "主要") |
| | | @ApiModelProperty(value = "主要") |
| | | @TableField("io_pri") |
| | | private String ioPri; |
| | | |
| | | /** |
| | | * 入出类型描述 |
| | | */ |
| | | @ApiModelProperty(value= "入出类型描述") |
| | | @ApiModelProperty(value = "入出类型描述") |
| | | @TableField("io_desc") |
| | | private String ioDesc; |
| | | |
| | | /** |
| | | * 修改人员 |
| | | */ |
| | | @ApiModelProperty(value= "修改人员") |
| | | @ApiModelProperty(value = "修改人员") |
| | | @TableField("modi_user") |
| | | private Long modiUser; |
| | | |
| | | /** |
| | | * 修改时间 |
| | | */ |
| | | @ApiModelProperty(value= "修改时间") |
| | | @ApiModelProperty(value = "修改时间") |
| | | @TableField("modi_time") |
| | | private Date modiTime; |
| | | |
| | | /** |
| | | * 创建者 |
| | | */ |
| | | @ApiModelProperty(value= "创建者") |
| | | @ApiModelProperty(value = "创建者") |
| | | @TableField("appe_user") |
| | | private Long appeUser; |
| | | |
| | | /** |
| | | * 添加时间 |
| | | */ |
| | | @ApiModelProperty(value= "添加时间") |
| | | @ApiModelProperty(value = "添加时间") |
| | | @TableField("appe_time") |
| | | private Date appeTime; |
| | | |
| | | public BasWrkIotype() {} |
| | | public BasWrkIotype() { |
| | | } |
| | | |
| | | public BasWrkIotype(String ioPri,String ioDesc,Long modiUser,Date modiTime,Long appeUser,Date appeTime) { |
| | | public BasWrkIotype(String ioPri, String ioDesc, Long modiUser, Date modiTime, Long appeUser, Date appeTime) { |
| | | this.ioPri = ioPri; |
| | | this.ioDesc = ioDesc; |
| | | this.modiUser = modiUser; |
| | |
| | | return modiUser; |
| | | } |
| | | |
| | | public String getModiUser$(){ |
| | | public String getModiUser$() { |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.modiUser); |
| | | if (!Cools.isEmpty(user)){ |
| | | if (!Cools.isEmpty(user)) { |
| | | return String.valueOf(user.getUsername()); |
| | | } |
| | | return null; |
| | |
| | | return modiTime; |
| | | } |
| | | |
| | | public String getModiTime$(){ |
| | | if (Cools.isEmpty(this.modiTime)){ |
| | | public String getModiTime$() { |
| | | if (Cools.isEmpty(this.modiTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.modiTime); |
| | |
| | | return appeUser; |
| | | } |
| | | |
| | | public String getAppeUser$(){ |
| | | public String getAppeUser$() { |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.appeUser); |
| | | if (!Cools.isEmpty(user)){ |
| | | if (!Cools.isEmpty(user)) { |
| | | return String.valueOf(user.getUsername()); |
| | | } |
| | | return null; |
| | |
| | | return appeTime; |
| | | } |
| | | |
| | | public String getAppeTime$(){ |
| | | if (Cools.isEmpty(this.appeTime)){ |
| | | public String getAppeTime$() { |
| | | if (Cools.isEmpty(this.appeTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.appeTime); |
| | |
| | | import com.baomidou.mybatisplus.annotations.TableId; |
| | | import com.baomidou.mybatisplus.annotations.TableName; |
| | | import com.baomidou.mybatisplus.enums.IdType; |
| | | import com.zy.system.entity.User; |
| | | import com.zy.system.service.UserService; |
| | | import com.core.common.Cools; |
| | | import com.core.common.SpringUtils; |
| | | import com.zy.system.entity.User; |
| | | import com.zy.system.service.UserService; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | |
| | | import java.io.Serializable; |
| | |
| | | /** |
| | | * 代号 |
| | | */ |
| | | @ApiModelProperty(value= "代号") |
| | | @ApiModelProperty(value = "代号") |
| | | @TableId(value = "wrk_sts", type = IdType.INPUT) |
| | | @TableField("wrk_sts") |
| | | private Long wrkSts; |
| | |
| | | /** |
| | | * 状态描述 |
| | | */ |
| | | @ApiModelProperty(value= "状态描述") |
| | | @ApiModelProperty(value = "状态描述") |
| | | @TableField("wrk_desc") |
| | | private String wrkDesc; |
| | | |
| | | /** |
| | | * 修改人员 |
| | | */ |
| | | @ApiModelProperty(value= "修改人员") |
| | | @ApiModelProperty(value = "修改人员") |
| | | @TableField("modi_user") |
| | | private Long modiUser; |
| | | |
| | | /** |
| | | * 修改时间 |
| | | */ |
| | | @ApiModelProperty(value= "修改时间") |
| | | @ApiModelProperty(value = "修改时间") |
| | | @TableField("modi_time") |
| | | private Date modiTime; |
| | | |
| | | /** |
| | | * 创建者 |
| | | */ |
| | | @ApiModelProperty(value= "创建者") |
| | | @ApiModelProperty(value = "创建者") |
| | | @TableField("appe_user") |
| | | private Long appeUser; |
| | | |
| | | /** |
| | | * 添加时间 |
| | | */ |
| | | @ApiModelProperty(value= "添加时间") |
| | | @ApiModelProperty(value = "添加时间") |
| | | @TableField("appe_time") |
| | | private Date appeTime; |
| | | |
| | | public BasWrkStatus() {} |
| | | public BasWrkStatus() { |
| | | } |
| | | |
| | | public BasWrkStatus(String wrkDesc,Long modiUser,Date modiTime,Long appeUser,Date appeTime) { |
| | | public BasWrkStatus(String wrkDesc, Long modiUser, Date modiTime, Long appeUser, Date appeTime) { |
| | | this.wrkDesc = wrkDesc; |
| | | this.modiUser = modiUser; |
| | | this.modiTime = modiTime; |
| | |
| | | return modiUser; |
| | | } |
| | | |
| | | public String getModiUser$(){ |
| | | public String getModiUser$() { |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.modiUser); |
| | | if (!Cools.isEmpty(user)){ |
| | | if (!Cools.isEmpty(user)) { |
| | | return String.valueOf(user.getUsername()); |
| | | } |
| | | return null; |
| | |
| | | return modiTime; |
| | | } |
| | | |
| | | public String getModiTime$(){ |
| | | if (Cools.isEmpty(this.modiTime)){ |
| | | public String getModiTime$() { |
| | | if (Cools.isEmpty(this.modiTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.modiTime); |
| | |
| | | return appeUser; |
| | | } |
| | | |
| | | public String getAppeUser$(){ |
| | | public String getAppeUser$() { |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.appeUser); |
| | | if (!Cools.isEmpty(user)){ |
| | | if (!Cools.isEmpty(user)) { |
| | | return String.valueOf(user.getUsername()); |
| | | } |
| | | return null; |
| | |
| | | return appeTime; |
| | | } |
| | | |
| | | public String getAppeTime$(){ |
| | | if (Cools.isEmpty(this.appeTime)){ |
| | | public String getAppeTime$() { |
| | | if (Cools.isEmpty(this.appeTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.appeTime); |
| | |
| | | package com.zy.asrs.entity; |
| | | |
| | | public class ChartBean { |
| | | private String name; |
| | | private double y; |
| | | public String getName() { |
| | | return name; |
| | | } |
| | | public void setName(String name) { |
| | | this.name = name; |
| | | } |
| | | public double getY() { |
| | | return y; |
| | | } |
| | | public void setY(double y) { |
| | | this.y = y; |
| | | } |
| | | |
| | | private String name; |
| | | private double y; |
| | | |
| | | public String getName() { |
| | | return name; |
| | | } |
| | | |
| | | public void setName(String name) { |
| | | this.name = name; |
| | | } |
| | | |
| | | public double getY() { |
| | | return y; |
| | | } |
| | | |
| | | public void setY(double y) { |
| | | this.y = y; |
| | | } |
| | | |
| | | } |
| | |
| | | /** |
| | | * ID |
| | | */ |
| | | @ApiModelProperty(value= "ID") |
| | | @ApiModelProperty(value = "ID") |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Long id; |
| | | |
| | | /** |
| | | * 单据编号 |
| | | */ |
| | | @ApiModelProperty(value= "单据编号") |
| | | @ApiModelProperty(value = "单据编号") |
| | | @TableField("doc_num") |
| | | private String docNum; |
| | | |
| | | /** |
| | | * 单据类型 |
| | | */ |
| | | @ApiModelProperty(value= "单据类型") |
| | | @ApiModelProperty(value = "单据类型") |
| | | @TableField("doc_id") |
| | | private Long docId; |
| | | |
| | | /** |
| | | * 单据名称 |
| | | */ |
| | | @ApiModelProperty(value= "单据名称") |
| | | @ApiModelProperty(value = "单据名称") |
| | | @TableField("doc_name") |
| | | private String docName; |
| | | |
| | | /** |
| | | * 商品编号 |
| | | */ |
| | | @ApiModelProperty(value= "商品编号") |
| | | @ApiModelProperty(value = "商品编号") |
| | | private String matnr; |
| | | |
| | | /** |
| | | * 上报数量 |
| | | */ |
| | | @ApiModelProperty(value= "上报数量") |
| | | @ApiModelProperty(value = "上报数量") |
| | | private Double qua; |
| | | |
| | | /** |
| | | * 结果 1: 成功 0: 失败 |
| | | * 结果 1: 成功 0: 失败 |
| | | */ |
| | | @ApiModelProperty(value= "结果 1: 成功 0: 失败 ") |
| | | @ApiModelProperty(value = "结果 1: 成功 0: 失败 ") |
| | | private Integer success; |
| | | |
| | | /** |
| | | * 上报时间 |
| | | */ |
| | | @ApiModelProperty(value= "上报时间") |
| | | @ApiModelProperty(value = "上报时间") |
| | | @TableField("send_time") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date sendTime; |
| | | |
| | | /** |
| | | * 备注 |
| | | */ |
| | | @ApiModelProperty(value= "备注") |
| | | @ApiModelProperty(value = "备注") |
| | | private String memo; |
| | | |
| | | public DocLog() {} |
| | | public DocLog() { |
| | | } |
| | | |
| | | public DocLog(String docNum, Long docId, String docName, String matnr, Double qua, Integer success, Date sendTime, String memo) { |
| | | this.docNum = docNum; |
| | |
| | | return success; |
| | | } |
| | | |
| | | public String getSuccess$(){ |
| | | if (null == this.success){ return null; } |
| | | switch (this.success){ |
| | | public String getSuccess$() { |
| | | if (null == this.success) { |
| | | return null; |
| | | } |
| | | switch (this.success) { |
| | | case 1: |
| | | return "成功"; |
| | | case 0: |
| | |
| | | return sendTime; |
| | | } |
| | | |
| | | public String getSendTime$(){ |
| | | if (Cools.isEmpty(this.sendTime)){ |
| | | public String getSendTime$() { |
| | | if (Cools.isEmpty(this.sendTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.sendTime); |
| | |
| | | /** |
| | | * 类型编号 |
| | | */ |
| | | @ApiModelProperty(value= "类型编号") |
| | | @ApiModelProperty(value = "类型编号") |
| | | @TableId(value = "doc_id", type = IdType.INPUT) |
| | | @TableField("doc_id") |
| | | private Long docId; |
| | |
| | | /** |
| | | * 类型名称 |
| | | */ |
| | | @ApiModelProperty(value= "类型名称") |
| | | @ApiModelProperty(value = "类型名称") |
| | | @TableField("doc_name") |
| | | private String docName; |
| | | |
| | | /** |
| | | * 入库 1: 入库 0: 非入库 |
| | | */ |
| | | @ApiModelProperty(value= "入库 1: 入库 0: 非入库 ") |
| | | @ApiModelProperty(value = "入库 1: 入库 0: 非入库 ") |
| | | private Integer pakin; |
| | | |
| | | /** |
| | | * 出库 1: 出库 0: 非出库 |
| | | */ |
| | | @ApiModelProperty(value= "出库 1: 出库 0: 非出库 ") |
| | | @ApiModelProperty(value = "出库 1: 出库 0: 非出库 ") |
| | | private Integer pakout; |
| | | |
| | | /** |
| | | * 状态 1: 正常 0: 禁用 |
| | | */ |
| | | @ApiModelProperty(value= "状态 1: 正常 0: 禁用 ") |
| | | @ApiModelProperty(value = "状态 1: 正常 0: 禁用 ") |
| | | private Integer status; |
| | | |
| | | /** |
| | | * 添加人员 |
| | | */ |
| | | @ApiModelProperty(value= "添加人员") |
| | | @ApiModelProperty(value = "添加人员") |
| | | @TableField("create_by") |
| | | private Long createBy; |
| | | |
| | | /** |
| | | * 添加时间 |
| | | */ |
| | | @ApiModelProperty(value= "添加时间") |
| | | @ApiModelProperty(value = "添加时间") |
| | | @TableField("create_time") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date createTime; |
| | | |
| | | /** |
| | | * 修改人员 |
| | | */ |
| | | @ApiModelProperty(value= "修改人员") |
| | | @ApiModelProperty(value = "修改人员") |
| | | @TableField("update_by") |
| | | private Long updateBy; |
| | | |
| | | /** |
| | | * 修改时间 |
| | | */ |
| | | @ApiModelProperty(value= "修改时间") |
| | | @ApiModelProperty(value = "修改时间") |
| | | @TableField("update_time") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date updateTime; |
| | | |
| | | /** |
| | | * 备注 |
| | | */ |
| | | @ApiModelProperty(value= "备注") |
| | | @ApiModelProperty(value = "备注") |
| | | private String memo; |
| | | |
| | | public String getPakin$() { |
| | | if (null == this.pakin){ return null; } |
| | | switch (this.pakin){ |
| | | if (null == this.pakin) { |
| | | return null; |
| | | } |
| | | switch (this.pakin) { |
| | | case 1: |
| | | return "入库"; |
| | | case 0: |
| | |
| | | } |
| | | |
| | | public String getPakout$() { |
| | | if (null == this.pakout){ return null; } |
| | | switch (this.pakout){ |
| | | if (null == this.pakout) { |
| | | return null; |
| | | } |
| | | switch (this.pakout) { |
| | | case 1: |
| | | return "出库"; |
| | | case 0: |
| | |
| | | } |
| | | } |
| | | |
| | | public String getStatus$(){ |
| | | if (null == this.status){ return null; } |
| | | switch (this.status){ |
| | | public String getStatus$() { |
| | | if (null == this.status) { |
| | | return null; |
| | | } |
| | | switch (this.status) { |
| | | case 1: |
| | | return "正常"; |
| | | case 0: |
| | |
| | | } |
| | | } |
| | | |
| | | public String getCreateBy$(){ |
| | | public String getCreateBy$() { |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.createBy); |
| | | if (!Cools.isEmpty(user)){ |
| | | if (!Cools.isEmpty(user)) { |
| | | return String.valueOf(user.getUsername()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public String getCreateTime$(){ |
| | | if (Cools.isEmpty(this.createTime)){ |
| | | public String getCreateTime$() { |
| | | if (Cools.isEmpty(this.createTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.createTime); |
| | | } |
| | | |
| | | public String getUpdateBy$(){ |
| | | public String getUpdateBy$() { |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.updateBy); |
| | | if (!Cools.isEmpty(user)){ |
| | | if (!Cools.isEmpty(user)) { |
| | | return String.valueOf(user.getUsername()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public String getUpdateTime$(){ |
| | | if (Cools.isEmpty(this.updateTime)){ |
| | | public String getUpdateTime$() { |
| | | if (Cools.isEmpty(this.updateTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.updateTime); |
| | | } |
| | | |
| | | public String getDocName$(){ |
| | | if (Cools.isEmpty(this.docName)){ |
| | | public String getDocName$() { |
| | | if (Cools.isEmpty(this.docName)) { |
| | | return ""; |
| | | }else { |
| | | switch (this.docName){ |
| | | } else { |
| | | switch (this.docName) { |
| | | case "采购销售(出库)": |
| | | case "采购销售(入库)": |
| | | return "TF_PSS"; |
| | |
| | | |
| | | /** |
| | | * 库位占用百分比 |
| | | * |
| | | * @author admin |
| | | * @date 2018年12月12日 |
| | | */ |
| | |
| | | private int oqty; |
| | | private int uqty; |
| | | private int xqty; |
| | | public int getFqty() { |
| | | return fqty; |
| | | } |
| | | public void setFqty(int fqty) { |
| | | this.fqty = fqty; |
| | | } |
| | | public int getOqty() { |
| | | return oqty; |
| | | } |
| | | public void setOqty(int oqty) { |
| | | this.oqty = oqty; |
| | | } |
| | | public int getUqty() { |
| | | return uqty; |
| | | } |
| | | public void setUqty(int uqty) { |
| | | this.uqty = uqty; |
| | | } |
| | | public int getXqty() { |
| | | return xqty; |
| | | } |
| | | public void setXqty(int xqty) { |
| | | this.xqty = xqty; |
| | | } |
| | | |
| | | public int getFqty() { |
| | | return fqty; |
| | | } |
| | | |
| | | public void setFqty(int fqty) { |
| | | this.fqty = fqty; |
| | | } |
| | | |
| | | public int getOqty() { |
| | | return oqty; |
| | | } |
| | | |
| | | public void setOqty(int oqty) { |
| | | this.oqty = oqty; |
| | | } |
| | | |
| | | public int getUqty() { |
| | | return uqty; |
| | | } |
| | | |
| | | public void setUqty(int uqty) { |
| | | this.uqty = uqty; |
| | | } |
| | | |
| | | public int getXqty() { |
| | | return xqty; |
| | | } |
| | | |
| | | public void setXqty(int xqty) { |
| | | this.xqty = xqty; |
| | | } |
| | | } |
| | |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @ApiModelProperty(value= "库位号") |
| | | @ApiModelProperty(value = "库位号") |
| | | @TableField("loc_no") |
| | | private String locNo; |
| | | |
| | | @ApiModelProperty(value= "托盘条码") |
| | | @ApiModelProperty(value = "托盘条码") |
| | | private String zpallet; |
| | | |
| | | @ApiModelProperty(value= "数量") |
| | | @ApiModelProperty(value = "数量") |
| | | @ExcelProperty("数量") |
| | | private Double anfme; |
| | | |
| | | @ApiModelProperty(value= "商品编号") |
| | | @ApiModelProperty(value = "商品编号") |
| | | @ExcelProperty("商品编号") |
| | | private String matnr; |
| | | |
| | | @ApiModelProperty(value= "商品名称") |
| | | @ApiModelProperty(value = "商品名称") |
| | | @ExcelProperty("商品名称") |
| | | private String maktx; |
| | | |
| | | @ApiModelProperty(value= "规格") |
| | | @ApiModelProperty(value = "规格") |
| | | @ExcelProperty("规格") |
| | | private String specs; |
| | | |
| | | @ApiModelProperty(value= "货品特征") |
| | | @ApiModelProperty(value = "货品特征") |
| | | @ExcelProperty("货品特征") |
| | | private String batch; |
| | | |
| | | @ApiModelProperty(value= "单据编号") |
| | | @ApiModelProperty(value = "单据编号") |
| | | @ExcelProperty("单据编号") |
| | | @TableField("order_no") |
| | | private String orderNo; |
| | | |
| | | @ApiModelProperty(value= "型号") |
| | | @ApiModelProperty(value = "型号") |
| | | private String model; |
| | | |
| | | @ApiModelProperty(value= "颜色") |
| | | @ApiModelProperty(value = "颜色") |
| | | private String color; |
| | | |
| | | @ApiModelProperty(value= "品牌") |
| | | @ApiModelProperty(value = "品牌") |
| | | private String brand; |
| | | |
| | | @ApiModelProperty(value= "单位") |
| | | @ApiModelProperty(value = "单位") |
| | | private String unit; |
| | | |
| | | @ApiModelProperty(value= "单价") |
| | | @ApiModelProperty(value = "单价") |
| | | private Double price; |
| | | |
| | | @ApiModelProperty(value= "sku") |
| | | @ApiModelProperty(value = "sku") |
| | | private String sku; |
| | | |
| | | @ApiModelProperty(value= "单位量") |
| | | @ApiModelProperty(value = "单位量") |
| | | private Double units; |
| | | |
| | | @ApiModelProperty(value= "条码") |
| | | @ApiModelProperty(value = "条码") |
| | | private String barcode; |
| | | |
| | | @ApiModelProperty(value= "产地") |
| | | @ApiModelProperty(value = "产地") |
| | | private String origin; |
| | | |
| | | @ApiModelProperty(value= "厂家") |
| | | @ApiModelProperty(value = "厂家") |
| | | private String manu; |
| | | |
| | | @ApiModelProperty(value= "生产日期") |
| | | @ApiModelProperty(value = "生产日期") |
| | | @TableField("manu_date") |
| | | private String manuDate; |
| | | |
| | | @ApiModelProperty(value= "品项数") |
| | | @ApiModelProperty(value = "品项数") |
| | | @TableField("item_num") |
| | | private String itemNum; |
| | | |
| | | @ApiModelProperty(value= "安全库存量") |
| | | @ApiModelProperty(value = "安全库存量") |
| | | @TableField("safe_qty") |
| | | private Double safeQty; |
| | | |
| | | @ApiModelProperty(value= "重量") |
| | | @ApiModelProperty(value = "重量") |
| | | private Double weight; |
| | | |
| | | @ApiModelProperty(value= "长度") |
| | | @ApiModelProperty(value = "长度") |
| | | private Double length; |
| | | |
| | | @ApiModelProperty(value= "体积") |
| | | @ApiModelProperty(value = "体积") |
| | | private Double volume; |
| | | |
| | | @ApiModelProperty(value= "三方编码") |
| | | @ApiModelProperty(value = "三方编码") |
| | | @TableField("three_code") |
| | | private String threeCode; |
| | | |
| | | @ApiModelProperty(value= "供应商") |
| | | @ApiModelProperty(value = "供应商") |
| | | private String supp; |
| | | |
| | | @ApiModelProperty(value= "供应商编码") |
| | | @ApiModelProperty(value = "供应商编码") |
| | | @TableField("supp_code") |
| | | private String suppCode; |
| | | |
| | | @ApiModelProperty(value= "是否批次 1: 是 0: 否 ") |
| | | @ApiModelProperty(value = "是否批次 1: 是 0: 否 ") |
| | | @TableField("be_batch") |
| | | private Integer beBatch; |
| | | |
| | | @ApiModelProperty(value= "保质期") |
| | | @ApiModelProperty(value = "保质期") |
| | | @TableField("dead_time") |
| | | private String deadTime; |
| | | |
| | | @ApiModelProperty(value= "预警天数") |
| | | @ApiModelProperty(value = "预警天数") |
| | | @TableField("dead_warn") |
| | | private Integer deadWarn; |
| | | |
| | | @ApiModelProperty(value= "制购 1: 制造 2: 采购 3: 外协 ") |
| | | @ApiModelProperty(value = "制购 1: 制造 2: 采购 3: 外协 ") |
| | | private Integer source; |
| | | |
| | | @ApiModelProperty(value= "要求检验 1: 是 0: 否 ") |
| | | @ApiModelProperty(value = "要求检验 1: 是 0: 否 ") |
| | | private Integer inspect; |
| | | |
| | | @ApiModelProperty(value= "危险品 1: 是 0: 否 ") |
| | | @ApiModelProperty(value = "危险品 1: 是 0: 否 ") |
| | | private Integer danger; |
| | | |
| | | @ApiModelProperty(value= "修改人员") |
| | | @ApiModelProperty(value = "修改人员") |
| | | @TableField("modi_user") |
| | | private Long modiUser; |
| | | |
| | | @ApiModelProperty(value= "修改时间") |
| | | @ApiModelProperty(value = "修改时间") |
| | | @TableField("modi_time") |
| | | private Date modiTime; |
| | | |
| | | @ApiModelProperty(value= "创建者") |
| | | @ApiModelProperty(value = "创建者") |
| | | @TableField("appe_user") |
| | | private Long appeUser; |
| | | |
| | | @ApiModelProperty(value= "添加时间") |
| | | @ApiModelProperty(value = "添加时间") |
| | | @TableField("appe_time") |
| | | private Date appeTime; |
| | | |
| | | @ApiModelProperty(value= "备注") |
| | | @ApiModelProperty(value = "备注") |
| | | private String memo; |
| | | |
| | | @ApiModelProperty(value= "预留1") |
| | | @ApiModelProperty(value = "预留1") |
| | | private String temp1; |
| | | @ApiModelProperty(value= "预留1") |
| | | @ApiModelProperty(value = "预留1") |
| | | private String temp2; |
| | | @ApiModelProperty(value= "预留1") |
| | | @ApiModelProperty(value = "预留1") |
| | | private String temp3; |
| | | @ApiModelProperty(value= "预留1") |
| | | @ApiModelProperty(value = "预留1") |
| | | private String temp4; |
| | | |
| | | public String getLocNo$(){ |
| | | public String getLocNo$() { |
| | | LocMastService service = SpringUtils.getBean(LocMastService.class); |
| | | LocMast locMast = service.selectById(this.locNo); |
| | | if (!Cools.isEmpty(locMast)){ |
| | | if (!Cools.isEmpty(locMast)) { |
| | | return String.valueOf(locMast.getLocNo()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public String getBeBatch$(){ |
| | | if (null == this.beBatch){ return null; } |
| | | switch (this.beBatch){ |
| | | public String getBeBatch$() { |
| | | if (null == this.beBatch) { |
| | | return null; |
| | | } |
| | | switch (this.beBatch) { |
| | | case 1: |
| | | return "是"; |
| | | case 0: |
| | |
| | | } |
| | | } |
| | | |
| | | public String getSource$(){ |
| | | if (null == this.source){ return null; } |
| | | switch (this.source){ |
| | | public String getSource$() { |
| | | if (null == this.source) { |
| | | return null; |
| | | } |
| | | switch (this.source) { |
| | | case 1: |
| | | return "制造"; |
| | | case 2: |
| | |
| | | } |
| | | } |
| | | |
| | | public String getInspect$(){ |
| | | if (null == this.inspect){ return null; } |
| | | switch (this.inspect){ |
| | | public String getInspect$() { |
| | | if (null == this.inspect) { |
| | | return null; |
| | | } |
| | | switch (this.inspect) { |
| | | case 1: |
| | | return "是"; |
| | | case 0: |
| | |
| | | } |
| | | } |
| | | |
| | | public String getDanger$(){ |
| | | if (null == this.danger){ return null; } |
| | | switch (this.danger){ |
| | | public String getDanger$() { |
| | | if (null == this.danger) { |
| | | return null; |
| | | } |
| | | switch (this.danger) { |
| | | case 1: |
| | | return "是"; |
| | | case 0: |
| | |
| | | } |
| | | } |
| | | |
| | | public String getModiUser$(){ |
| | | public String getModiUser$() { |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.modiUser); |
| | | if (!Cools.isEmpty(user)){ |
| | | if (!Cools.isEmpty(user)) { |
| | | return String.valueOf(user.getUsername()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public String getModiTime$(){ |
| | | if (Cools.isEmpty(this.modiTime)){ |
| | | public String getModiTime$() { |
| | | if (Cools.isEmpty(this.modiTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.modiTime); |
| | | } |
| | | |
| | | public String getAppeUser$(){ |
| | | public String getAppeUser$() { |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.appeUser); |
| | | if (!Cools.isEmpty(user)){ |
| | | if (!Cools.isEmpty(user)) { |
| | | return String.valueOf(user.getUsername()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public String getAppeTime$(){ |
| | | if (Cools.isEmpty(this.appeTime)){ |
| | | public String getAppeTime$() { |
| | | if (Cools.isEmpty(this.appeTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.appeTime); |
| | | } |
| | | |
| | | public long getStoreDate(){ |
| | | if (Cools.isEmpty(this.appeTime)){ |
| | | public long getStoreDate() { |
| | | if (Cools.isEmpty(this.appeTime)) { |
| | | this.appeTime = new Date(); |
| | | } |
| | | long timeNow = new Date().getTime(); |
| | | long timeCreate = this.appeTime.getTime(); |
| | | |
| | | |
| | | return (timeNow - timeCreate) /24/60/60/1000; |
| | | return (timeNow - timeCreate) / 24 / 60 / 60 / 1000; |
| | | } |
| | | |
| | | public void sync(Object source) { |
| | |
| | | import com.baomidou.mybatisplus.annotations.TableId; |
| | | import com.baomidou.mybatisplus.annotations.TableName; |
| | | import com.baomidou.mybatisplus.enums.IdType; |
| | | import com.core.common.Cools; |
| | | import com.core.common.SpringUtils; |
| | | import com.zy.asrs.service.BasLocStsService; |
| | | import com.zy.asrs.service.BasWhsService; |
| | | import com.zy.system.entity.User; |
| | | import com.zy.system.service.UserService; |
| | | import com.core.common.Cools; |
| | | import com.core.common.SpringUtils; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | |
| | | /** |
| | | * 库位号 |
| | | */ |
| | | @ApiModelProperty(value= "库位号") |
| | | @ApiModelProperty(value = "库位号") |
| | | @TableId(value = "loc_no", type = IdType.INPUT) |
| | | @TableField("loc_no") |
| | | private String locNo; |
| | |
| | | /** |
| | | * 库位类型 |
| | | */ |
| | | @ApiModelProperty(value= "库位类型") |
| | | @ApiModelProperty(value = "库位类型") |
| | | @TableField("whs_type") |
| | | private Long whsType; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("plt_type") |
| | | private Integer pltType; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("ctn_type") |
| | | private Integer ctnType; |
| | | |
| | | @ApiModelProperty(value= "库位状态") |
| | | @ApiModelProperty(value = "库位状态") |
| | | @TableField("loc_sts") |
| | | private String locSts; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("sheet_no") |
| | | private String sheetNo; |
| | | |
| | | /** |
| | | * 堆垛机号(asr_bas_crnp) |
| | | */ |
| | | @ApiModelProperty(value= "堆垛机号") |
| | | @ApiModelProperty(value = "堆垛机号") |
| | | @TableField("crn_no") |
| | | private Integer crnNo; |
| | | |
| | | /** |
| | | * 排 |
| | | */ |
| | | @ApiModelProperty(value= "排") |
| | | @ApiModelProperty(value = "排") |
| | | private Integer row1; |
| | | |
| | | /** |
| | | * 列 |
| | | */ |
| | | @ApiModelProperty(value= "列") |
| | | @ApiModelProperty(value = "列") |
| | | private Integer bay1; |
| | | |
| | | /** |
| | | * 层 |
| | | */ |
| | | @ApiModelProperty(value= "层") |
| | | @ApiModelProperty(value = "层") |
| | | private Integer lev1; |
| | | |
| | | /** |
| | | * 组 |
| | | */ |
| | | @ApiModelProperty(value= "组") |
| | | @ApiModelProperty(value = "组") |
| | | private Integer gro1; |
| | | |
| | | /** |
| | | * 满板 |
| | | */ |
| | | @ApiModelProperty(value= "满板") |
| | | @ApiModelProperty(value = "满板") |
| | | @TableField("full_plt") |
| | | private String fullPlt; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("loc_type") |
| | | private String locType; |
| | | |
| | | @ApiModelProperty(value= "高低类型{0:未知,1:低库位,2:高库位}") |
| | | @ApiModelProperty(value = "高低类型{0:未知,1:低库位,2:高库位}") |
| | | @TableField("loc_type1") |
| | | private Short locType1; |
| | | |
| | | @ApiModelProperty(value= "宽窄类型{0:未知,1:窄库位,2:宽库位}") |
| | | @ApiModelProperty(value = "宽窄类型{0:未知,1:窄库位,2:宽库位}") |
| | | @TableField("loc_type2") |
| | | private Short locType2; |
| | | |
| | | @ApiModelProperty(value= "轻重类型{0:未知,1:轻库位,2:重库位}") |
| | | @ApiModelProperty(value = "轻重类型{0:未知,1:轻库位,2:重库位}") |
| | | @TableField("loc_type3") |
| | | private Short locType3; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("out_enable") |
| | | private String outEnable; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("io_time") |
| | | private Date ioTime; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("first_time") |
| | | private Date firstTime; |
| | | |
| | | /** |
| | | * 修改人员 |
| | | */ |
| | | @ApiModelProperty(value= "修改人员") |
| | | @ApiModelProperty(value = "修改人员") |
| | | @TableField("modi_user") |
| | | private Long modiUser; |
| | | |
| | | /** |
| | | * 修改时间 |
| | | */ |
| | | @ApiModelProperty(value= "修改时间") |
| | | @ApiModelProperty(value = "修改时间") |
| | | @TableField("modi_time") |
| | | private Date modiTime; |
| | | |
| | | /** |
| | | * 创建者 |
| | | */ |
| | | @ApiModelProperty(value= "创建者") |
| | | @ApiModelProperty(value = "创建者") |
| | | @TableField("appe_user") |
| | | private Long appeUser; |
| | | |
| | | /** |
| | | * 添加时间 |
| | | */ |
| | | @ApiModelProperty(value= "添加时间") |
| | | @ApiModelProperty(value = "添加时间") |
| | | @TableField("appe_time") |
| | | private Date appeTime; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("error_time") |
| | | private Date errorTime; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("error_memo") |
| | | private String errorMemo; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("ctn_kind") |
| | | private Integer ctnKind; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("sc_weight") |
| | | private Double scWeight; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("inv_wh") |
| | | private String invWh; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | private String mk; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | private String barcode; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("Pdc_type") |
| | | private String PdcType; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("ctn_no") |
| | | private String ctnNo; |
| | | |
| | | |
| | | public String getWhsType$(){ |
| | | public String getWhsType$() { |
| | | BasWhsService service = SpringUtils.getBean(BasWhsService.class); |
| | | BasWhs basWhs = service.selectById(this.whsType); |
| | | if (!Cools.isEmpty(basWhs)){ |
| | | if (!Cools.isEmpty(basWhs)) { |
| | | return String.valueOf(basWhs.getWhsDesc()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public String getLocSts$(){ |
| | | public String getLocSts$() { |
| | | BasLocStsService service = SpringUtils.getBean(BasLocStsService.class); |
| | | BasLocSts basLocSts = service.selectById(this.locSts); |
| | | if (!Cools.isEmpty(basLocSts)){ |
| | | if (!Cools.isEmpty(basLocSts)) { |
| | | return String.valueOf(basLocSts.getLocDesc()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public String getIoTime$(){ |
| | | if (Cools.isEmpty(this.ioTime)){ |
| | | public String getIoTime$() { |
| | | if (Cools.isEmpty(this.ioTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.ioTime); |
| | | } |
| | | |
| | | public String getFirstTime$(){ |
| | | if (Cools.isEmpty(this.firstTime)){ |
| | | public String getFirstTime$() { |
| | | if (Cools.isEmpty(this.firstTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.firstTime); |
| | | } |
| | | |
| | | public String getLocType1$() { |
| | | if (null == this.locType1){ return null; } |
| | | switch (this.locType1){ |
| | | if (null == this.locType1) { |
| | | return null; |
| | | } |
| | | switch (this.locType1) { |
| | | case 0: |
| | | return "未知"; |
| | | case 1: |
| | |
| | | } |
| | | |
| | | public String getLocType2$() { |
| | | if (null == this.locType2){ return null; } |
| | | switch (this.locType2){ |
| | | if (null == this.locType2) { |
| | | return null; |
| | | } |
| | | switch (this.locType2) { |
| | | case 0: |
| | | return "未知"; |
| | | case 1: |
| | |
| | | } |
| | | |
| | | public String getLocType3$() { |
| | | if (null == this.locType3){ return null; } |
| | | switch (this.locType3){ |
| | | if (null == this.locType3) { |
| | | return null; |
| | | } |
| | | switch (this.locType3) { |
| | | case 0: |
| | | return "未知"; |
| | | case 1: |
| | |
| | | } |
| | | } |
| | | |
| | | public String getModiUser$(){ |
| | | public String getModiUser$() { |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.modiUser); |
| | | if (!Cools.isEmpty(user)){ |
| | | if (!Cools.isEmpty(user)) { |
| | | return String.valueOf(user.getUsername()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public String getModiTime$(){ |
| | | if (Cools.isEmpty(this.modiTime)){ |
| | | public String getModiTime$() { |
| | | if (Cools.isEmpty(this.modiTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.modiTime); |
| | | } |
| | | |
| | | public String getAppeUser$(){ |
| | | public String getAppeUser$() { |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.appeUser); |
| | | if (!Cools.isEmpty(user)){ |
| | | if (!Cools.isEmpty(user)) { |
| | | return String.valueOf(user.getUsername()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public String getAppeTime$(){ |
| | | if (Cools.isEmpty(this.appeTime)){ |
| | | public String getAppeTime$() { |
| | | if (Cools.isEmpty(this.appeTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.appeTime); |
| | | } |
| | | |
| | | public String getErrorTime$(){ |
| | | if (Cools.isEmpty(this.errorTime)){ |
| | | public String getErrorTime$() { |
| | | if (Cools.isEmpty(this.errorTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.errorTime); |
| | |
| | | /** |
| | | * ID |
| | | */ |
| | | @ApiModelProperty(value= "ID") |
| | | @ApiModelProperty(value = "ID") |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Long id; |
| | | |
| | | /** |
| | | * 编号 |
| | | */ |
| | | @ApiModelProperty(value= "编号") |
| | | @ApiModelProperty(value = "编号") |
| | | private String uuid; |
| | | |
| | | /** |
| | | * 所属归类 |
| | | */ |
| | | @ApiModelProperty(value= "所属归类") |
| | | @ApiModelProperty(value = "所属归类") |
| | | @TableField("tag_id") |
| | | private Long tagId; |
| | | |
| | | /** |
| | | * 商品编号 |
| | | */ |
| | | @ApiModelProperty(value= "物料编码") |
| | | @ApiModelProperty(value = "物料编码") |
| | | @ExcelProperty(value = "物料编码") |
| | | private String matnr; |
| | | |
| | |
| | | /** |
| | | * 商品名称 |
| | | */ |
| | | @ApiModelProperty(value= "商品名称") |
| | | @ApiModelProperty(value = "商品名称") |
| | | @ExcelProperty(value = "物料名称") |
| | | private String maktx; |
| | | |
| | | /** |
| | | * 别名 |
| | | */ |
| | | @ApiModelProperty(value= "别名") |
| | | @ApiModelProperty(value = "别名") |
| | | @ExcelProperty(value = "别名") |
| | | private String name; |
| | | |
| | | /** |
| | | * 规格 |
| | | */ |
| | | @ApiModelProperty(value= "规格") |
| | | @ApiModelProperty(value = "规格") |
| | | @ExcelProperty(value = "规格") |
| | | private String specs; |
| | | |
| | | /** |
| | | * 型号 |
| | | */ |
| | | @ApiModelProperty(value= "型号") |
| | | @ApiModelProperty(value = "型号") |
| | | @ExcelProperty(value = "型号") |
| | | private String model; |
| | | |
| | | /** |
| | | * 颜色 |
| | | */ |
| | | @ApiModelProperty(value= "颜色") |
| | | @ApiModelProperty(value = "颜色") |
| | | @ExcelProperty(value = "颜色") |
| | | private String color; |
| | | |
| | | /** |
| | | * 品牌 |
| | | */ |
| | | @ApiModelProperty(value= "品牌") |
| | | @ApiModelProperty(value = "品牌") |
| | | @ExcelProperty(value = "品牌") |
| | | private String brand; |
| | | |
| | | /** |
| | | * 单位 |
| | | */ |
| | | @ApiModelProperty(value= "单位") |
| | | @ApiModelProperty(value = "单位") |
| | | @ExcelProperty(value = "单位") |
| | | private String unit; |
| | | |
| | | /** |
| | | * 单价 |
| | | */ |
| | | @ApiModelProperty(value= "单价") |
| | | @ApiModelProperty(value = "单价") |
| | | @ExcelProperty(value = "单价") |
| | | private Double price; |
| | | |
| | | /** |
| | | * sku |
| | | */ |
| | | @ApiModelProperty(value= "sku") |
| | | @ApiModelProperty(value = "sku") |
| | | @ExcelProperty(value = "sku") |
| | | private String sku; |
| | | |
| | | /** |
| | | * 单位量 |
| | | */ |
| | | @ApiModelProperty(value= "单位量") |
| | | @ApiModelProperty(value = "单位量") |
| | | @ExcelProperty(value = "单位量") |
| | | private Double units; |
| | | |
| | | /** |
| | | * 条码 |
| | | */ |
| | | @ApiModelProperty(value= "条码") |
| | | @ApiModelProperty(value = "条码") |
| | | @ExcelProperty(value = "条码") |
| | | private String barcode; |
| | | |
| | | /** |
| | | * 产地 |
| | | */ |
| | | @ApiModelProperty(value= "产地") |
| | | @ApiModelProperty(value = "产地") |
| | | @ExcelProperty(value = "产地") |
| | | private String origin; |
| | | |
| | | /** |
| | | * 厂家 |
| | | */ |
| | | @ApiModelProperty(value= "厂家") |
| | | @ApiModelProperty(value = "厂家") |
| | | @ExcelProperty(value = "厂家") |
| | | private String manu; |
| | | |
| | | /** |
| | | * 生产日期 |
| | | */ |
| | | @ApiModelProperty(value= "生产日期") |
| | | @ApiModelProperty(value = "生产日期") |
| | | @ExcelProperty(value = "生产日期") |
| | | @TableField("manu_date") |
| | | private String manuDate; |
| | |
| | | /** |
| | | * 品项数 |
| | | */ |
| | | @ApiModelProperty(value= "品项数") |
| | | @ApiModelProperty(value = "品项数") |
| | | @ExcelProperty(value = "品项数") |
| | | @TableField("item_num") |
| | | private String itemNum; |
| | |
| | | /** |
| | | * 安全库存量 |
| | | */ |
| | | @ApiModelProperty(value= "安全库存量") |
| | | @ApiModelProperty(value = "安全库存量") |
| | | @ExcelProperty(value = "安全库存量") |
| | | @TableField("safe_qty") |
| | | private Double safeQty; |
| | |
| | | /** |
| | | * 重量 |
| | | */ |
| | | @ApiModelProperty(value= "重量") |
| | | @ApiModelProperty(value = "重量") |
| | | @ExcelProperty(value = "重量") |
| | | private Double weight; |
| | | |
| | | /** |
| | | * 长度 |
| | | */ |
| | | @ApiModelProperty(value= "长度") |
| | | @ApiModelProperty(value = "长度") |
| | | @ExcelProperty(value = "长度") |
| | | private Double length; |
| | | |
| | | /** |
| | | * 体积 |
| | | */ |
| | | @ApiModelProperty(value= "体积") |
| | | @ApiModelProperty(value = "体积") |
| | | @ExcelProperty(value = "体积") |
| | | private Double volume; |
| | | |
| | | /** |
| | | * 三方编码 |
| | | */ |
| | | @ApiModelProperty(value= "三方编码") |
| | | @ApiModelProperty(value = "三方编码") |
| | | @ExcelProperty(value = "三方编码") |
| | | @TableField("three_code") |
| | | private String threeCode; |
| | |
| | | /** |
| | | * 供应商 |
| | | */ |
| | | @ApiModelProperty(value= "供应商") |
| | | @ApiModelProperty(value = "供应商") |
| | | @ExcelProperty(value = "供应商") |
| | | private String supp; |
| | | |
| | | /** |
| | | * 供应商编码 |
| | | */ |
| | | @ApiModelProperty(value= "供应商编码") |
| | | @ApiModelProperty(value = "供应商编码") |
| | | @ExcelProperty(value = "供应商编码") |
| | | @TableField("supp_code") |
| | | private String suppCode; |
| | |
| | | /** |
| | | * 是否批次 1: 是 0: 否 |
| | | */ |
| | | @ApiModelProperty(value= "是否批次 1: 是 0: 否 ") |
| | | @ApiModelProperty(value = "是否批次 1: 是 0: 否 ") |
| | | @TableField("be_batch") |
| | | private Integer beBatch; |
| | | |
| | | /** |
| | | * 保质期 |
| | | */ |
| | | @ApiModelProperty(value= "保质期") |
| | | @ApiModelProperty(value = "保质期") |
| | | @TableField("dead_time") |
| | | @ExcelProperty(value = "保质期") |
| | | private String deadTime; |
| | |
| | | /** |
| | | * 预警天数 |
| | | */ |
| | | @ApiModelProperty(value= "预警天数") |
| | | @ApiModelProperty(value = "预警天数") |
| | | @TableField("dead_warn") |
| | | @ExcelProperty(value = "预警天数") |
| | | private Integer deadWarn; |
| | |
| | | /** |
| | | * 制购 1: 制造 2: 采购 3: 外协 |
| | | */ |
| | | @ApiModelProperty(value= "制购 1: 制造 2: 采购 3: 外协 ") |
| | | @ApiModelProperty(value = "制购 1: 制造 2: 采购 3: 外协 ") |
| | | private Integer source; |
| | | |
| | | /** |
| | | * 要求检验 1: 是 0: 否 |
| | | */ |
| | | @ApiModelProperty(value= "要求检验 1: 是 0: 否 ") |
| | | @ApiModelProperty(value = "要求检验 1: 是 0: 否 ") |
| | | private Integer inspect; |
| | | |
| | | /** |
| | | * 危险品 1: 是 0: 否 |
| | | */ |
| | | @ApiModelProperty(value= "危险品 1: 是 0: 否 ") |
| | | @ApiModelProperty(value = "危险品 1: 是 0: 否 ") |
| | | private Integer danger; |
| | | |
| | | /** |
| | | * 状态 1: 正常 0: 禁用 |
| | | */ |
| | | @ApiModelProperty(value= "状态 1: 正常 0: 禁用 ") |
| | | @ApiModelProperty(value = "状态 1: 正常 0: 禁用 ") |
| | | private Integer status; |
| | | |
| | | /** |
| | | * 添加人员 |
| | | */ |
| | | @ApiModelProperty(value= "添加人员") |
| | | @ApiModelProperty(value = "添加人员") |
| | | @TableField("create_by") |
| | | private Long createBy; |
| | | |
| | | /** |
| | | * 添加时间 |
| | | */ |
| | | @ApiModelProperty(value= "添加时间") |
| | | @ApiModelProperty(value = "添加时间") |
| | | @TableField("create_time") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date createTime; |
| | | |
| | | /** |
| | | * 修改人员 |
| | | */ |
| | | @ApiModelProperty(value= "修改人员") |
| | | @ApiModelProperty(value = "修改人员") |
| | | @TableField("update_by") |
| | | private Long updateBy; |
| | | |
| | | /** |
| | | * 修改时间 |
| | | */ |
| | | @ApiModelProperty(value= "修改时间") |
| | | @ApiModelProperty(value = "修改时间") |
| | | @TableField("update_time") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date updateTime; |
| | | |
| | | /** |
| | | * 备注 |
| | | */ |
| | | @ApiModelProperty(value= "备注") |
| | | @ApiModelProperty(value = "备注") |
| | | @ExcelProperty(value = "备注") |
| | | private String memo; |
| | | |
| | |
| | | @TableField("store_max_date") |
| | | private Integer storeMaxDate; |
| | | |
| | | public Mat() {} |
| | | public Mat() { |
| | | } |
| | | |
| | | public Mat(String uuid,Long tagId,String matnr,String maktx,String name,String specs,String model,String color,String brand,String unit,Double price,String sku,Double units,String barcode,String origin,String manu,String manuDate,String itemNum,Double safeQty,Double weight,Double length,Double volume,String threeCode,String supp,String suppCode,Integer beBatch,String deadTime,Integer deadWarn,Integer source,Integer inspect,Integer danger,Integer status,Long createBy,Date createTime,Long updateBy,Date updateTime,String memo) { |
| | | public Mat(String uuid, Long tagId, String matnr, String maktx, String name, String specs, String model, String color, String brand, String unit, Double price, String sku, Double units, String barcode, String origin, String manu, String manuDate, String itemNum, Double safeQty, Double weight, Double length, Double volume, String threeCode, String supp, String suppCode, Integer beBatch, String deadTime, Integer deadWarn, Integer source, Integer inspect, Integer danger, Integer status, Long createBy, Date createTime, Long updateBy, Date updateTime, String memo) { |
| | | this.uuid = uuid; |
| | | this.tagId = tagId; |
| | | this.matnr = matnr; |
| | |
| | | // null // 备注 |
| | | // ); |
| | | |
| | | public String getTagId$(){ |
| | | public String getTagId$() { |
| | | TagService service = SpringUtils.getBean(TagService.class); |
| | | Tag tag = service.selectById(this.tagId); |
| | | if (!Cools.isEmpty(tag)){ |
| | | if (!Cools.isEmpty(tag)) { |
| | | return String.valueOf(tag.getName()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public String getBeBatch$(){ |
| | | if (null == this.beBatch){ return null; } |
| | | switch (this.beBatch){ |
| | | public String getBeBatch$() { |
| | | if (null == this.beBatch) { |
| | | return null; |
| | | } |
| | | switch (this.beBatch) { |
| | | case 1: |
| | | return "是"; |
| | | case 0: |
| | |
| | | } |
| | | } |
| | | |
| | | public String getSource$(){ |
| | | if (null == this.source){ return null; } |
| | | switch (this.source){ |
| | | public String getSource$() { |
| | | if (null == this.source) { |
| | | return null; |
| | | } |
| | | switch (this.source) { |
| | | case 1: |
| | | return "制造"; |
| | | case 2: |
| | |
| | | } |
| | | } |
| | | |
| | | public String getInspect$(){ |
| | | if (null == this.inspect){ return null; } |
| | | switch (this.inspect){ |
| | | public String getInspect$() { |
| | | if (null == this.inspect) { |
| | | return null; |
| | | } |
| | | switch (this.inspect) { |
| | | case 1: |
| | | return "是"; |
| | | case 0: |
| | |
| | | } |
| | | } |
| | | |
| | | public String getDanger$(){ |
| | | if (null == this.danger){ return null; } |
| | | switch (this.danger){ |
| | | public String getDanger$() { |
| | | if (null == this.danger) { |
| | | return null; |
| | | } |
| | | switch (this.danger) { |
| | | case 1: |
| | | return "是"; |
| | | case 0: |
| | |
| | | } |
| | | } |
| | | |
| | | public String getStatus$(){ |
| | | if (null == this.status){ return null; } |
| | | switch (this.status){ |
| | | public String getStatus$() { |
| | | if (null == this.status) { |
| | | return null; |
| | | } |
| | | switch (this.status) { |
| | | case 1: |
| | | return "正常"; |
| | | case 0: |
| | |
| | | } |
| | | } |
| | | |
| | | public String getCreateBy$(){ |
| | | public String getCreateBy$() { |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.createBy); |
| | | if (!Cools.isEmpty(user)){ |
| | | if (!Cools.isEmpty(user)) { |
| | | return String.valueOf(user.getUsername()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public String getCreateTime$(){ |
| | | if (Cools.isEmpty(this.createTime)){ |
| | | public String getCreateTime$() { |
| | | if (Cools.isEmpty(this.createTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.createTime); |
| | | } |
| | | |
| | | public String getUpdateBy$(){ |
| | | public String getUpdateBy$() { |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.updateBy); |
| | | if (!Cools.isEmpty(user)){ |
| | | if (!Cools.isEmpty(user)) { |
| | | return String.valueOf(user.getUsername()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public String getUpdateTime$(){ |
| | | if (Cools.isEmpty(this.updateTime)){ |
| | | public String getUpdateTime$() { |
| | | if (Cools.isEmpty(this.updateTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.updateTime); |
| | |
| | | /** |
| | | * ID |
| | | */ |
| | | @ApiModelProperty(value= "ID") |
| | | @ApiModelProperty(value = "ID") |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Long id; |
| | | |
| | | /** |
| | | * 所属项目 |
| | | */ |
| | | @ApiModelProperty(value= "所属项目") |
| | | @ApiModelProperty(value = "所属项目") |
| | | @TableField("host_id") |
| | | private Long hostId; |
| | | |
| | | /** |
| | | * 编号 |
| | | */ |
| | | @ApiModelProperty(value= "编号") |
| | | @ApiModelProperty(value = "编号") |
| | | private String uuid; |
| | | |
| | | /** |
| | | * 名称 |
| | | */ |
| | | @ApiModelProperty(value= "名称") |
| | | @ApiModelProperty(value = "名称") |
| | | private String name; |
| | | |
| | | /** |
| | | * 父级 |
| | | */ |
| | | @ApiModelProperty(value= "父级") |
| | | @ApiModelProperty(value = "父级") |
| | | @TableField("parent_id") |
| | | private Long parentId; |
| | | |
| | | /** |
| | | * 父级名称 |
| | | */ |
| | | @ApiModelProperty(value= "父级名称") |
| | | @ApiModelProperty(value = "父级名称") |
| | | @TableField("parent_name") |
| | | private String parentName; |
| | | |
| | | /** |
| | | * 类型 1: 仓库 2: 库区 3: 货位 |
| | | */ |
| | | @ApiModelProperty(value= "类型 1: 仓库 2: 库区 3: 货位 ") |
| | | @ApiModelProperty(value = "类型 1: 仓库 2: 库区 3: 货位 ") |
| | | private Integer type; |
| | | |
| | | /** |
| | | * 关联路径 |
| | | */ |
| | | @ApiModelProperty(value= "关联路径") |
| | | @ApiModelProperty(value = "关联路径") |
| | | private String path; |
| | | |
| | | /** |
| | | * 关联路径名 |
| | | */ |
| | | @ApiModelProperty(value= "关联路径名") |
| | | @ApiModelProperty(value = "关联路径名") |
| | | @TableField("name_path") |
| | | private String namePath; |
| | | |
| | | /** |
| | | * 等级 |
| | | */ |
| | | @ApiModelProperty(value= "等级") |
| | | @ApiModelProperty(value = "等级") |
| | | private Integer level; |
| | | |
| | | /** |
| | | * 负责人 |
| | | */ |
| | | @ApiModelProperty(value= "负责人") |
| | | @ApiModelProperty(value = "负责人") |
| | | private String leading; |
| | | |
| | | /** |
| | | * 排序 |
| | | */ |
| | | @ApiModelProperty(value= "排序") |
| | | @ApiModelProperty(value = "排序") |
| | | private Integer sort; |
| | | |
| | | /** |
| | | * 条码 |
| | | */ |
| | | @ApiModelProperty(value= "条码") |
| | | @ApiModelProperty(value = "条码") |
| | | private String barcode; |
| | | |
| | | /** |
| | | * 推荐位 |
| | | */ |
| | | @ApiModelProperty(value= "推荐位") |
| | | @ApiModelProperty(value = "推荐位") |
| | | private Integer major; |
| | | |
| | | /** |
| | | * 状态 1: 正常 0: 禁用 |
| | | */ |
| | | @ApiModelProperty(value= "状态 1: 正常 0: 禁用 ") |
| | | @ApiModelProperty(value = "状态 1: 正常 0: 禁用 ") |
| | | private Integer status; |
| | | |
| | | /** |
| | | * 添加时间 |
| | | */ |
| | | @ApiModelProperty(value= "添加时间") |
| | | @ApiModelProperty(value = "添加时间") |
| | | @TableField("create_time") |
| | | private Date createTime; |
| | | |
| | | /** |
| | | * 添加人员 |
| | | */ |
| | | @ApiModelProperty(value= "添加人员") |
| | | @ApiModelProperty(value = "添加人员") |
| | | @TableField("create_by") |
| | | private Long createBy; |
| | | |
| | | /** |
| | | * 修改时间 |
| | | */ |
| | | @ApiModelProperty(value= "修改时间") |
| | | @ApiModelProperty(value = "修改时间") |
| | | @TableField("update_time") |
| | | private Date updateTime; |
| | | |
| | | /** |
| | | * 修改人员 |
| | | */ |
| | | @ApiModelProperty(value= "修改人员") |
| | | @ApiModelProperty(value = "修改人员") |
| | | @TableField("update_by") |
| | | private Long updateBy; |
| | | |
| | | /** |
| | | * 备注 |
| | | */ |
| | | @ApiModelProperty(value= "备注") |
| | | @ApiModelProperty(value = "备注") |
| | | private String memo; |
| | | |
| | | public Node() {} |
| | | public Node() { |
| | | } |
| | | |
| | | public Node(Long hostId, String uuid,String name,Long parentId,String parentName,Integer type,String path,String namePath,Integer level,String leading,Integer sort,String barcode,Integer major,Integer status,Date createTime,Long createBy,Date updateTime,Long updateBy,String memo) { |
| | | public Node(Long hostId, String uuid, String name, Long parentId, String parentName, Integer type, String path, String namePath, Integer level, String leading, Integer sort, String barcode, Integer major, Integer status, Date createTime, Long createBy, Date updateTime, Long updateBy, String memo) { |
| | | this.hostId = hostId; |
| | | this.uuid = uuid; |
| | | this.name = name; |
| | |
| | | this.hostId = hostId; |
| | | } |
| | | |
| | | public String getHostId$(){ |
| | | public String getHostId$() { |
| | | HostService service = SpringUtils.getBean(HostService.class); |
| | | Host host = service.selectById(this.hostId); |
| | | if (!Cools.isEmpty(host)){ |
| | | if (!Cools.isEmpty(host)) { |
| | | return String.valueOf(host.getName()); |
| | | } |
| | | return null; |
| | |
| | | return type; |
| | | } |
| | | |
| | | public String getType$(){ |
| | | if (null == this.type){ return null; } |
| | | switch (this.type){ |
| | | public String getType$() { |
| | | if (null == this.type) { |
| | | return null; |
| | | } |
| | | switch (this.type) { |
| | | case 1: |
| | | return "仓库"; |
| | | case 2: |
| | |
| | | return status; |
| | | } |
| | | |
| | | public String getStatus$(){ |
| | | if (null == this.status){ return null; } |
| | | switch (this.status){ |
| | | public String getStatus$() { |
| | | if (null == this.status) { |
| | | return null; |
| | | } |
| | | switch (this.status) { |
| | | case 1: |
| | | return "正常"; |
| | | case 0: |
| | |
| | | return createTime; |
| | | } |
| | | |
| | | public String getCreateTime$(){ |
| | | if (Cools.isEmpty(this.createTime)){ |
| | | public String getCreateTime$() { |
| | | if (Cools.isEmpty(this.createTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.createTime); |
| | |
| | | return createBy; |
| | | } |
| | | |
| | | public String getCreateBy$(){ |
| | | public String getCreateBy$() { |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.createBy); |
| | | if (!Cools.isEmpty(user)){ |
| | | if (!Cools.isEmpty(user)) { |
| | | return String.valueOf(user.getUsername()); |
| | | } |
| | | return null; |
| | |
| | | return updateTime; |
| | | } |
| | | |
| | | public String getUpdateTime$(){ |
| | | if (Cools.isEmpty(this.updateTime)){ |
| | | public String getUpdateTime$() { |
| | | if (Cools.isEmpty(this.updateTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.updateTime); |
| | |
| | | return updateBy; |
| | | } |
| | | |
| | | public String getUpdateBy$(){ |
| | | public String getUpdateBy$() { |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.updateBy); |
| | | if (!Cools.isEmpty(user)){ |
| | | if (!Cools.isEmpty(user)) { |
| | | return String.valueOf(user.getUsername()); |
| | | } |
| | | return null; |
| | |
| | | /** |
| | | * ID |
| | | */ |
| | | @ApiModelProperty(value= "ID") |
| | | @ApiModelProperty(value = "ID") |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Long id; |
| | | |
| | | /** |
| | | * 编号 |
| | | */ |
| | | @ApiModelProperty(value= "编号") |
| | | @ApiModelProperty(value = "编号") |
| | | private String uuid; |
| | | |
| | | /** |
| | | * 订单编号 |
| | | */ |
| | | @ApiModelProperty(value= "订单编号") |
| | | @ApiModelProperty(value = "订单编号") |
| | | @TableField("order_no") |
| | | private String orderNo; |
| | | |
| | | /** |
| | | * 单据日期 |
| | | */ |
| | | @ApiModelProperty(value= "单据日期") |
| | | @ApiModelProperty(value = "单据日期") |
| | | @TableField("order_time") |
| | | private String orderTime; |
| | | |
| | | /** |
| | | * 单据类型 |
| | | */ |
| | | @ApiModelProperty(value= "单据类型") |
| | | @ApiModelProperty(value = "单据类型") |
| | | @TableField("doc_type") |
| | | private Long docType; |
| | | |
| | | /** |
| | | * 项目编号 |
| | | */ |
| | | @ApiModelProperty(value= "项目编号") |
| | | @ApiModelProperty(value = "项目编号") |
| | | @TableField("item_id") |
| | | private Long itemId; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("item_name") |
| | | private String itemName; |
| | | |
| | | /** |
| | | * 调拨项目编号 |
| | | */ |
| | | @ApiModelProperty(value= "调拨项目编号") |
| | | @ApiModelProperty(value = "调拨项目编号") |
| | | @TableField("allot_item_id") |
| | | private Long allotItemId; |
| | | |
| | | /** |
| | | * 初始票据号 |
| | | */ |
| | | @ApiModelProperty(value= "初始票据号") |
| | | @ApiModelProperty(value = "初始票据号") |
| | | @TableField("def_number") |
| | | private String defNumber; |
| | | |
| | | /** |
| | | * 票据号 |
| | | */ |
| | | @ApiModelProperty(value= "票据号") |
| | | @ApiModelProperty(value = "票据号") |
| | | private String number; |
| | | |
| | | /** |
| | | * 客户编号 |
| | | */ |
| | | @ApiModelProperty(value= "客户编号") |
| | | @ApiModelProperty(value = "客户编号") |
| | | private Long cstmr; |
| | | |
| | | /** |
| | | * 客户 |
| | | */ |
| | | @ApiModelProperty(value= "客户") |
| | | @ApiModelProperty(value = "客户") |
| | | @TableField("cstmr_name") |
| | | private String cstmrName; |
| | | |
| | | /** |
| | | * 联系方式 |
| | | */ |
| | | @ApiModelProperty(value= "联系方式") |
| | | @ApiModelProperty(value = "联系方式") |
| | | private String tel; |
| | | |
| | | /** |
| | | * 操作人员 |
| | | */ |
| | | @ApiModelProperty(value= "操作人员") |
| | | @ApiModelProperty(value = "操作人员") |
| | | @TableField("oper_memb") |
| | | private String operMemb; |
| | | |
| | | /** |
| | | * 合计金额 |
| | | */ |
| | | @ApiModelProperty(value= "合计金额") |
| | | @ApiModelProperty(value = "合计金额") |
| | | @TableField("total_fee") |
| | | private Double totalFee; |
| | | |
| | | /** |
| | | * 优惠率 |
| | | */ |
| | | @ApiModelProperty(value= "优惠率") |
| | | @ApiModelProperty(value = "优惠率") |
| | | private Double discount; |
| | | |
| | | /** |
| | | * 优惠金额 |
| | | */ |
| | | @ApiModelProperty(value= "优惠金额") |
| | | @ApiModelProperty(value = "优惠金额") |
| | | @TableField("discount_fee") |
| | | private Double discountFee; |
| | | |
| | | /** |
| | | * 销售或采购费用合计 |
| | | */ |
| | | @ApiModelProperty(value= "销售或采购费用合计") |
| | | @ApiModelProperty(value = "销售或采购费用合计") |
| | | @TableField("other_fee") |
| | | private Double otherFee; |
| | | |
| | | /** |
| | | * 实付金额 |
| | | */ |
| | | @ApiModelProperty(value= "实付金额") |
| | | @ApiModelProperty(value = "实付金额") |
| | | @TableField("act_fee") |
| | | private Double actFee; |
| | | |
| | | /** |
| | | * 付款类型 1: 现金 2: 记账 |
| | | */ |
| | | @ApiModelProperty(value= "付款类型 1: 现金 2: 记账 ") |
| | | @ApiModelProperty(value = "付款类型 1: 现金 2: 记账 ") |
| | | @TableField("pay_type") |
| | | private Integer payType; |
| | | |
| | | /** |
| | | * 业务员 |
| | | */ |
| | | @ApiModelProperty(value= "业务员") |
| | | @ApiModelProperty(value = "业务员") |
| | | private String salesman; |
| | | |
| | | /** |
| | | * 结算天数 |
| | | */ |
| | | @ApiModelProperty(value= "结算天数") |
| | | @ApiModelProperty(value = "结算天数") |
| | | @TableField("account_day") |
| | | private Integer accountDay; |
| | | |
| | | /** |
| | | * 邮费支付类型 1: 在线支付 2: 货到付款 |
| | | */ |
| | | @ApiModelProperty(value= "邮费支付类型 1: 在线支付 2: 货到付款 ") |
| | | @ApiModelProperty(value = "邮费支付类型 1: 在线支付 2: 货到付款 ") |
| | | @TableField("post_fee_type") |
| | | private Integer postFeeType; |
| | | |
| | | /** |
| | | * 邮费 |
| | | */ |
| | | @ApiModelProperty(value= "邮费") |
| | | @ApiModelProperty(value = "邮费") |
| | | @TableField("post_fee") |
| | | private Double postFee; |
| | | |
| | | /** |
| | | * 付款时间 |
| | | */ |
| | | @ApiModelProperty(value= "付款时间") |
| | | @ApiModelProperty(value = "付款时间") |
| | | @TableField("pay_time") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date payTime; |
| | | |
| | | /** |
| | | * 发货时间 |
| | | */ |
| | | @ApiModelProperty(value= "发货时间") |
| | | @ApiModelProperty(value = "发货时间") |
| | | @TableField("send_time") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date sendTime; |
| | | |
| | | /** |
| | | * 物流名称 |
| | | */ |
| | | @ApiModelProperty(value= "物流名称") |
| | | @ApiModelProperty(value = "物流名称") |
| | | @TableField("ship_name") |
| | | private String shipName; |
| | | |
| | | /** |
| | | * 物流单号 |
| | | */ |
| | | @ApiModelProperty(value= "物流单号") |
| | | @ApiModelProperty(value = "物流单号") |
| | | @TableField("ship_code") |
| | | private String shipCode; |
| | | |
| | | /** |
| | | * 订单状态 |
| | | */ |
| | | @ApiModelProperty(value= "订单状态") |
| | | @ApiModelProperty(value = "订单状态") |
| | | private Long settle; |
| | | |
| | | /** |
| | | * 状态 1: 正常 0: 禁用 |
| | | */ |
| | | @ApiModelProperty(value= "状态 1: 正常 0: 禁用 ") |
| | | @ApiModelProperty(value = "状态 1: 正常 0: 禁用 ") |
| | | private Integer status; |
| | | |
| | | /** |
| | | * 添加人员 |
| | | */ |
| | | @ApiModelProperty(value= "添加人员") |
| | | @ApiModelProperty(value = "添加人员") |
| | | @TableField("create_by") |
| | | private Long createBy; |
| | | |
| | | /** |
| | | * 添加时间 |
| | | */ |
| | | @ApiModelProperty(value= "添加时间") |
| | | @ApiModelProperty(value = "添加时间") |
| | | @TableField("create_time") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date createTime; |
| | | |
| | | /** |
| | | * 修改人员 |
| | | */ |
| | | @ApiModelProperty(value= "修改人员") |
| | | @ApiModelProperty(value = "修改人员") |
| | | @TableField("update_by") |
| | | private Long updateBy; |
| | | |
| | | /** |
| | | * 修改时间 |
| | | */ |
| | | @ApiModelProperty(value= "修改时间") |
| | | @ApiModelProperty(value = "修改时间") |
| | | @TableField("update_time") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date updateTime; |
| | | |
| | | /** |
| | | * 备注 |
| | | */ |
| | | @ApiModelProperty(value= "备注") |
| | | @ApiModelProperty(value = "备注") |
| | | private String memo; |
| | | |
| | | /** |
| | | * 状态 1: 进行中 0: 初始 2:已完成 |
| | | */ |
| | | @ApiModelProperty(value= "状态 2:已完成 1: 进行中 0: 初始 ") |
| | | @ApiModelProperty(value = "状态 2:已完成 1: 进行中 0: 初始 ") |
| | | @TableField("move_status") |
| | | private Integer moveStatus; |
| | | |
| | | public Order() {} |
| | | public Order() { |
| | | } |
| | | |
| | | public Order(String uuid,String orderNo,String orderTime,Long docType,Long itemId,String itemName,Long allotItemId,String defNumber,String number,Long cstmr,String cstmrName,String tel,String operMemb,Double totalFee,Double discount,Double discountFee,Double otherFee,Double actFee,Integer payType,String salesman,Integer accountDay,Integer postFeeType,Double postFee,Date payTime,Date sendTime,String shipName,String shipCode,Long settle,Integer status,Long createBy,Date createTime,Long updateBy,Date updateTime,String memo) { |
| | | public Order(String uuid, String orderNo, String orderTime, Long docType, Long itemId, String itemName, Long allotItemId, String defNumber, String number, Long cstmr, String cstmrName, String tel, String operMemb, Double totalFee, Double discount, Double discountFee, Double otherFee, Double actFee, Integer payType, String salesman, Integer accountDay, Integer postFeeType, Double postFee, Date payTime, Date sendTime, String shipName, String shipCode, Long settle, Integer status, Long createBy, Date createTime, Long updateBy, Date updateTime, String memo) { |
| | | this.uuid = uuid; |
| | | this.orderNo = orderNo; |
| | | this.orderTime = orderTime; |
| | |
| | | // null // 备注 |
| | | // ); |
| | | |
| | | public String getDocType$(){ |
| | | public String getDocType$() { |
| | | DocTypeService service = SpringUtils.getBean(DocTypeService.class); |
| | | DocType docType = service.selectById(this.docType); |
| | | if (!Cools.isEmpty(docType)){ |
| | | if (!Cools.isEmpty(docType)) { |
| | | return String.valueOf(docType.getDocName()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public String getPayType$(){ |
| | | if (null == this.payType){ return null; } |
| | | switch (this.payType){ |
| | | public String getPayType$() { |
| | | if (null == this.payType) { |
| | | return null; |
| | | } |
| | | switch (this.payType) { |
| | | case 1: |
| | | return "现金"; |
| | | case 2: |
| | |
| | | } |
| | | } |
| | | |
| | | public String getPostFeeType$(){ |
| | | if (null == this.postFeeType){ return null; } |
| | | switch (this.postFeeType){ |
| | | public String getPostFeeType$() { |
| | | if (null == this.postFeeType) { |
| | | return null; |
| | | } |
| | | switch (this.postFeeType) { |
| | | case 1: |
| | | return "在线支付"; |
| | | case 2: |
| | |
| | | } |
| | | } |
| | | |
| | | public String getPayTime$(){ |
| | | if (Cools.isEmpty(this.payTime)){ |
| | | public String getPayTime$() { |
| | | if (Cools.isEmpty(this.payTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.payTime); |
| | | } |
| | | |
| | | public String getSendTime$(){ |
| | | if (Cools.isEmpty(this.sendTime)){ |
| | | public String getSendTime$() { |
| | | if (Cools.isEmpty(this.sendTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.sendTime); |
| | | } |
| | | |
| | | public String getSettle$(){ |
| | | public String getSettle$() { |
| | | OrderSettleService service = SpringUtils.getBean(OrderSettleService.class); |
| | | OrderSettle orderSettle = service.selectById(this.settle); |
| | | if (!Cools.isEmpty(orderSettle)){ |
| | | if (!Cools.isEmpty(orderSettle)) { |
| | | return String.valueOf(orderSettle.getSettleName()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public String getStatus$(){ |
| | | if (null == this.status){ return null; } |
| | | switch (this.status){ |
| | | public String getStatus$() { |
| | | if (null == this.status) { |
| | | return null; |
| | | } |
| | | switch (this.status) { |
| | | case 1: |
| | | return "正常"; |
| | | case 0: |
| | |
| | | } |
| | | } |
| | | |
| | | public String getMoveStatus$(){ |
| | | if (null == this.moveStatus){ return null; } |
| | | switch (this.moveStatus){ |
| | | public String getMoveStatus$() { |
| | | if (null == this.moveStatus) { |
| | | return null; |
| | | } |
| | | switch (this.moveStatus) { |
| | | case 2: |
| | | return "已备货"; |
| | | case 1: |
| | |
| | | } |
| | | } |
| | | |
| | | public String getCreateBy$(){ |
| | | public String getCreateBy$() { |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.createBy); |
| | | if (!Cools.isEmpty(user)){ |
| | | if (!Cools.isEmpty(user)) { |
| | | return String.valueOf(user.getUsername()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public String getCreateTime$(){ |
| | | if (Cools.isEmpty(this.createTime)){ |
| | | public String getCreateTime$() { |
| | | if (Cools.isEmpty(this.createTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.createTime); |
| | | } |
| | | |
| | | public String getUpdateBy$(){ |
| | | public String getUpdateBy$() { |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.updateBy); |
| | | if (!Cools.isEmpty(user)){ |
| | | if (!Cools.isEmpty(user)) { |
| | | return String.valueOf(user.getUsername()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public String getUpdateTime$(){ |
| | | if (Cools.isEmpty(this.updateTime)){ |
| | | public String getUpdateTime$() { |
| | | if (Cools.isEmpty(this.updateTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.updateTime); |
| | |
| | | /** |
| | | * ID |
| | | */ |
| | | @ApiModelProperty(value= "ID") |
| | | @ApiModelProperty(value = "ID") |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Long id; |
| | | |
| | | /** |
| | | * 订单内码 |
| | | */ |
| | | @ApiModelProperty(value= "订单内码") |
| | | @ApiModelProperty(value = "订单内码") |
| | | @TableField("order_id") |
| | | private Long orderId; |
| | | |
| | | /** |
| | | * 单据编号 |
| | | */ |
| | | @ApiModelProperty(value= "单据编号") |
| | | @ApiModelProperty(value = "单据编号") |
| | | @TableField("order_no") |
| | | private String orderNo; |
| | | |
| | |
| | | /** |
| | | * 数量 |
| | | */ |
| | | @ApiModelProperty(value= "数量") |
| | | @ApiModelProperty(value = "数量") |
| | | private Double anfme; |
| | | |
| | | /** |
| | | * 作业数量 |
| | | * |
| | | * 入库 : 组托完成,组托档、工作档、入库完成数量 |
| | | * 出库 : 工作档、出库完成数量 |
| | | * <p> |
| | | * 入库 : 组托完成,组托档、工作档、入库完成数量 |
| | | * 出库 : 工作档、出库完成数量 |
| | | */ |
| | | @ApiModelProperty(value= "作业数量") |
| | | @ApiModelProperty(value = "作业数量") |
| | | @TableField("work_qty") |
| | | private Double workQty; |
| | | |
| | | /** |
| | | * 完成数量 |
| | | * |
| | | * 入库 : qty 👆 |
| | | * 出库 : qty 👆 |
| | | * <p> |
| | | * 入库 : qty 👆 |
| | | * 出库 : qty 👆 |
| | | */ |
| | | @ApiModelProperty(value= "完成数量") |
| | | @ApiModelProperty(value = "完成数量") |
| | | private Double qty; |
| | | |
| | | /** |
| | | * 商品编码 |
| | | */ |
| | | @ApiModelProperty(value= "商品编码") |
| | | @ApiModelProperty(value = "商品编码") |
| | | private String matnr; |
| | | |
| | | /** |
| | | * 商品名称 |
| | | */ |
| | | @ApiModelProperty(value= "商品名称") |
| | | @ApiModelProperty(value = "商品名称") |
| | | private String maktx; |
| | | |
| | | /** |
| | | * 批号 |
| | | */ |
| | | @ApiModelProperty(value= "批号") |
| | | @ApiModelProperty(value = "批号") |
| | | private String batch; |
| | | |
| | | /** |
| | | * 规格 |
| | | */ |
| | | @ApiModelProperty(value= "规格") |
| | | @ApiModelProperty(value = "规格") |
| | | private String specs; |
| | | |
| | | /** |
| | | * 型号 |
| | | */ |
| | | @ApiModelProperty(value= "型号") |
| | | @ApiModelProperty(value = "型号") |
| | | private String model; |
| | | |
| | | /** |
| | | * 颜色 |
| | | */ |
| | | @ApiModelProperty(value= "颜色") |
| | | @ApiModelProperty(value = "颜色") |
| | | private String color; |
| | | |
| | | /** |
| | | * 品牌 |
| | | */ |
| | | @ApiModelProperty(value= "品牌") |
| | | @ApiModelProperty(value = "品牌") |
| | | private String brand; |
| | | |
| | | /** |
| | | * 单位 |
| | | */ |
| | | @ApiModelProperty(value= "单位") |
| | | @ApiModelProperty(value = "单位") |
| | | private String unit; |
| | | |
| | | /** |
| | | * 单价 |
| | | */ |
| | | @ApiModelProperty(value= "单价") |
| | | @ApiModelProperty(value = "单价") |
| | | private Double price; |
| | | |
| | | /** |
| | | * sku |
| | | */ |
| | | @ApiModelProperty(value= "sku") |
| | | @ApiModelProperty(value = "sku") |
| | | private String sku; |
| | | |
| | | /** |
| | | * 单位量 |
| | | */ |
| | | @ApiModelProperty(value= "单位量") |
| | | @ApiModelProperty(value = "单位量") |
| | | private Double units; |
| | | |
| | | /** |
| | | * 条码 |
| | | */ |
| | | @ApiModelProperty(value= "条码") |
| | | @ApiModelProperty(value = "条码") |
| | | private String barcode; |
| | | |
| | | /** |
| | | * 产地 |
| | | */ |
| | | @ApiModelProperty(value= "产地") |
| | | @ApiModelProperty(value = "产地") |
| | | private String origin; |
| | | |
| | | /** |
| | | * 厂家 |
| | | */ |
| | | @ApiModelProperty(value= "厂家") |
| | | @ApiModelProperty(value = "厂家") |
| | | private String manu; |
| | | |
| | | /** |
| | | * 生产日期 |
| | | */ |
| | | @ApiModelProperty(value= "生产日期") |
| | | @ApiModelProperty(value = "生产日期") |
| | | @TableField("manu_date") |
| | | private String manuDate; |
| | | |
| | | /** |
| | | * 品项数 |
| | | */ |
| | | @ApiModelProperty(value= "品项数") |
| | | @ApiModelProperty(value = "品项数") |
| | | @TableField("item_num") |
| | | private String itemNum; |
| | | |
| | | /** |
| | | * 安全库存量 |
| | | */ |
| | | @ApiModelProperty(value= "安全库存量") |
| | | @ApiModelProperty(value = "安全库存量") |
| | | @TableField("safe_qty") |
| | | private Double safeQty; |
| | | |
| | | /** |
| | | * 重量 |
| | | */ |
| | | @ApiModelProperty(value= "重量") |
| | | @ApiModelProperty(value = "重量") |
| | | private Double weight; |
| | | |
| | | /** |
| | | * 长度 |
| | | */ |
| | | @ApiModelProperty(value= "长度") |
| | | @ApiModelProperty(value = "长度") |
| | | private Double length; |
| | | |
| | | /** |
| | | * 体积 |
| | | */ |
| | | @ApiModelProperty(value= "体积") |
| | | @ApiModelProperty(value = "体积") |
| | | private Double volume; |
| | | |
| | | /** |
| | | * 三方编码 |
| | | */ |
| | | @ApiModelProperty(value= "三方编码") |
| | | @ApiModelProperty(value = "三方编码") |
| | | @TableField("three_code") |
| | | private String threeCode; |
| | | |
| | | /** |
| | | * 供应商 |
| | | */ |
| | | @ApiModelProperty(value= "供应商") |
| | | @ApiModelProperty(value = "供应商") |
| | | private String supp; |
| | | |
| | | /** |
| | | * 供应商编码 |
| | | */ |
| | | @ApiModelProperty(value= "供应商编码") |
| | | @ApiModelProperty(value = "供应商编码") |
| | | @TableField("supp_code") |
| | | private String suppCode; |
| | | |
| | | /** |
| | | * 是否批次 1: 是 0: 否 |
| | | */ |
| | | @ApiModelProperty(value= "是否批次 1: 是 0: 否 ") |
| | | @ApiModelProperty(value = "是否批次 1: 是 0: 否 ") |
| | | @TableField("be_batch") |
| | | private Integer beBatch; |
| | | |
| | | /** |
| | | * 保质期 |
| | | */ |
| | | @ApiModelProperty(value= "保质期") |
| | | @ApiModelProperty(value = "保质期") |
| | | @TableField("dead_time") |
| | | private String deadTime; |
| | | |
| | | /** |
| | | * 预警天数 |
| | | */ |
| | | @ApiModelProperty(value= "预警天数") |
| | | @ApiModelProperty(value = "预警天数") |
| | | @TableField("dead_warn") |
| | | private Integer deadWarn; |
| | | |
| | | /** |
| | | * 制购 1: 制造 2: 采购 3: 外协 、、宜科: 是否确认 1: 确认 2: 未确认 |
| | | */ |
| | | @ApiModelProperty(value= "制购 1: 制造 2: 采购 3: 外协 ") |
| | | @ApiModelProperty(value = "制购 1: 制造 2: 采购 3: 外协 ") |
| | | private Integer source; |
| | | |
| | | /** |
| | | * 要求检验 1: 是 0: 否 |
| | | */ |
| | | @ApiModelProperty(value= "要求检验 1: 是 0: 否 ") |
| | | @ApiModelProperty(value = "要求检验 1: 是 0: 否 ") |
| | | private Integer inspect; |
| | | |
| | | /** |
| | | * 危险品 1: 是 0: 否 |
| | | */ |
| | | @ApiModelProperty(value= "危险品 1: 是 0: 否 ") |
| | | @ApiModelProperty(value = "危险品 1: 是 0: 否 ") |
| | | private Integer danger; |
| | | |
| | | /** |
| | | * 状态 1: 正常 0: 禁用 |
| | | */ |
| | | @ApiModelProperty(value= "状态 1: 正常 0: 禁用 ") |
| | | @ApiModelProperty(value = "状态 1: 正常 0: 禁用 ") |
| | | private Integer status; |
| | | |
| | | /** |
| | | * 添加人员 |
| | | */ |
| | | @ApiModelProperty(value= "添加人员") |
| | | @ApiModelProperty(value = "添加人员") |
| | | @TableField("create_by") |
| | | private Long createBy; |
| | | |
| | | /** |
| | | * 添加时间 |
| | | */ |
| | | @ApiModelProperty(value= "添加时间") |
| | | @ApiModelProperty(value = "添加时间") |
| | | @TableField("create_time") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date createTime; |
| | | |
| | | /** |
| | | * 修改人员 |
| | | */ |
| | | @ApiModelProperty(value= "修改人员") |
| | | @ApiModelProperty(value = "修改人员") |
| | | @TableField("update_by") |
| | | private Long updateBy; |
| | | |
| | | /** |
| | | * 修改时间 |
| | | */ |
| | | @ApiModelProperty(value= "修改时间") |
| | | @ApiModelProperty(value = "修改时间") |
| | | @TableField("update_time") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date updateTime; |
| | | |
| | | /** |
| | | * 备注 |
| | | */ |
| | | @ApiModelProperty(value= "备注") |
| | | @ApiModelProperty(value = "备注") |
| | | private String memo; |
| | | |
| | | @ApiModelProperty(value= "预留1") |
| | | @ApiModelProperty(value = "预留1") |
| | | private String temp1; |
| | | @ApiModelProperty(value= "预留1") |
| | | @ApiModelProperty(value = "预留1") |
| | | private String temp2; |
| | | @ApiModelProperty(value= "预留1") |
| | | @ApiModelProperty(value = "预留1") |
| | | private String temp3; |
| | | @ApiModelProperty(value= "预留1") |
| | | @ApiModelProperty(value = "预留1") |
| | | private String temp4; |
| | | |
| | | public OrderDetl() {} |
| | | public OrderDetl() { |
| | | } |
| | | |
| | | public OrderDetl(Long orderId, String orderNo, Double anfme, Double qty, String matnr, String maktx, String batch, String specs, String model, String color, String brand, String unit, Double price, String sku, Double units, String barcode, String origin, String manu, String manuDate, String itemNum, Double safeQty, Double weight, Double length, Double volume, String threeCode, String supp, String suppCode, Integer beBatch, String deadTime, Integer deadWarn, Integer source, Integer inspect, Integer danger, Integer status, Long createBy, Date createTime, Long updateBy, Date updateTime, String memo) { |
| | | this.orderId = orderId; |
| | |
| | | this.memo = memo; |
| | | } |
| | | |
| | | public String getOrderId$(){ |
| | | public String getOrderId$() { |
| | | OrderService service = SpringUtils.getBean(OrderService.class); |
| | | Order order = service.selectById(this.orderId); |
| | | if (!Cools.isEmpty(order)){ |
| | | if (!Cools.isEmpty(order)) { |
| | | return String.valueOf(order.getId()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public String getBeBatch$(){ |
| | | if (null == this.beBatch){ return null; } |
| | | switch (this.beBatch){ |
| | | public String getBeBatch$() { |
| | | if (null == this.beBatch) { |
| | | return null; |
| | | } |
| | | switch (this.beBatch) { |
| | | case 1: |
| | | return "是"; |
| | | case 0: |
| | |
| | | } |
| | | } |
| | | |
| | | public String getSource$(){ |
| | | if (null == this.source){ return null; } |
| | | switch (this.source){ |
| | | public String getSource$() { |
| | | if (null == this.source) { |
| | | return null; |
| | | } |
| | | switch (this.source) { |
| | | case 1: |
| | | return "制造"; |
| | | case 2: |
| | |
| | | } |
| | | } |
| | | |
| | | public String getInspect$(){ |
| | | if (null == this.inspect){ return null; } |
| | | switch (this.inspect){ |
| | | public String getInspect$() { |
| | | if (null == this.inspect) { |
| | | return null; |
| | | } |
| | | switch (this.inspect) { |
| | | case 1: |
| | | return "合格"; |
| | | case 0: |
| | |
| | | } |
| | | } |
| | | |
| | | public String getDanger$(){ |
| | | if (null == this.danger){ return null; } |
| | | switch (this.danger){ |
| | | public String getDanger$() { |
| | | if (null == this.danger) { |
| | | return null; |
| | | } |
| | | switch (this.danger) { |
| | | case 1: |
| | | return "是"; |
| | | case 0: |
| | |
| | | } |
| | | } |
| | | |
| | | public String getStatus$(){ |
| | | if (null == this.status){ return null; } |
| | | switch (this.status){ |
| | | public String getStatus$() { |
| | | if (null == this.status) { |
| | | return null; |
| | | } |
| | | switch (this.status) { |
| | | case 1: |
| | | return "正常"; |
| | | case 0: |
| | |
| | | } |
| | | } |
| | | |
| | | public String getCreateBy$(){ |
| | | public String getCreateBy$() { |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.createBy); |
| | | if (!Cools.isEmpty(user)){ |
| | | if (!Cools.isEmpty(user)) { |
| | | return String.valueOf(user.getUsername()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public String getCreateTime$(){ |
| | | if (Cools.isEmpty(this.createTime)){ |
| | | public String getCreateTime$() { |
| | | if (Cools.isEmpty(this.createTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.createTime); |
| | | } |
| | | |
| | | public String getUpdateBy$(){ |
| | | public String getUpdateBy$() { |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.updateBy); |
| | | if (!Cools.isEmpty(user)){ |
| | | if (!Cools.isEmpty(user)) { |
| | | return String.valueOf(user.getUsername()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public String getUpdateTime$(){ |
| | | if (Cools.isEmpty(this.updateTime)){ |
| | | public String getUpdateTime$() { |
| | | if (Cools.isEmpty(this.updateTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.updateTime); |
| | |
| | | return null; |
| | | } |
| | | |
| | | public String getQty$(){ |
| | | if (getAnfme().equals(getQty())){ |
| | | public String getQty$() { |
| | | if (getAnfme().equals(getQty())) { |
| | | return "已完成"; |
| | | } |
| | | return "未完成"; |
| | |
| | | /** |
| | | * ID |
| | | */ |
| | | @ApiModelProperty(value= "ID") |
| | | @ApiModelProperty(value = "ID") |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Long id; |
| | | |
| | | /** |
| | | * 数量 |
| | | */ |
| | | @ApiModelProperty(value= "数量") |
| | | @ApiModelProperty(value = "数量") |
| | | private Double anfme; |
| | | |
| | | /** |
| | | * 托盘条码 |
| | | */ |
| | | @ApiModelProperty(value= "托盘条码") |
| | | @ApiModelProperty(value = "托盘条码") |
| | | private String zpallet; |
| | | |
| | | /** |
| | | * 物料 |
| | | */ |
| | | @ApiModelProperty(value= "商品编号") |
| | | @ApiModelProperty(value = "商品编号") |
| | | private String matnr; |
| | | |
| | | /** |
| | | * 物料描述 |
| | | */ |
| | | @ApiModelProperty(value= "商品名称") |
| | | @ApiModelProperty(value = "商品名称") |
| | | private String maktx; |
| | | |
| | | /** |
| | | * 批号 |
| | | */ |
| | | @ApiModelProperty(value= "批号") |
| | | @ApiModelProperty(value = "批号") |
| | | private String batch; |
| | | |
| | | /** |
| | | * 单据编号 |
| | | */ |
| | | @ApiModelProperty(value= "单据编号") |
| | | @ApiModelProperty(value = "单据编号") |
| | | @TableField("order_no") |
| | | private String orderNo; |
| | | |
| | | /** |
| | | * 规格 |
| | | */ |
| | | @ApiModelProperty(value= "规格") |
| | | @ApiModelProperty(value = "规格") |
| | | private String specs; |
| | | |
| | | /** |
| | | * 型号 |
| | | */ |
| | | @ApiModelProperty(value= "型号") |
| | | @ApiModelProperty(value = "型号") |
| | | private String model; |
| | | |
| | | /** |
| | | * 颜色 |
| | | */ |
| | | @ApiModelProperty(value= "颜色") |
| | | @ApiModelProperty(value = "颜色") |
| | | private String color; |
| | | |
| | | /** |
| | | * 品牌 |
| | | */ |
| | | @ApiModelProperty(value= "品牌") |
| | | @ApiModelProperty(value = "品牌") |
| | | private String brand; |
| | | |
| | | /** |
| | | * 单位 |
| | | */ |
| | | @ApiModelProperty(value= "单位") |
| | | @ApiModelProperty(value = "单位") |
| | | private String unit; |
| | | |
| | | /** |
| | | * 单价 |
| | | */ |
| | | @ApiModelProperty(value= "单价") |
| | | @ApiModelProperty(value = "单价") |
| | | private Double price; |
| | | |
| | | /** |
| | | * sku |
| | | */ |
| | | @ApiModelProperty(value= "sku") |
| | | @ApiModelProperty(value = "sku") |
| | | private String sku; |
| | | |
| | | /** |
| | | * 单位量 |
| | | */ |
| | | @ApiModelProperty(value= "单位量") |
| | | @ApiModelProperty(value = "单位量") |
| | | private Double units; |
| | | |
| | | /** |
| | | * 条码 |
| | | */ |
| | | @ApiModelProperty(value= "条码") |
| | | @ApiModelProperty(value = "条码") |
| | | private String barcode; |
| | | |
| | | /** |
| | | * 产地 |
| | | */ |
| | | @ApiModelProperty(value= "产地") |
| | | @ApiModelProperty(value = "产地") |
| | | private String origin; |
| | | |
| | | /** |
| | | * 厂家 |
| | | */ |
| | | @ApiModelProperty(value= "厂家") |
| | | @ApiModelProperty(value = "厂家") |
| | | private String manu; |
| | | |
| | | /** |
| | | * 生产日期 |
| | | */ |
| | | @ApiModelProperty(value= "生产日期") |
| | | @ApiModelProperty(value = "生产日期") |
| | | @TableField("manu_date") |
| | | private String manuDate; |
| | | |
| | | /** |
| | | * 品项数 |
| | | */ |
| | | @ApiModelProperty(value= "品项数") |
| | | @ApiModelProperty(value = "品项数") |
| | | @TableField("item_num") |
| | | private String itemNum; |
| | | |
| | | /** |
| | | * 安全库存量 |
| | | */ |
| | | @ApiModelProperty(value= "安全库存量") |
| | | @ApiModelProperty(value = "安全库存量") |
| | | @TableField("safe_qty") |
| | | private Double safeQty; |
| | | |
| | | /** |
| | | * 重量 |
| | | */ |
| | | @ApiModelProperty(value= "重量") |
| | | @ApiModelProperty(value = "重量") |
| | | private Double weight; |
| | | |
| | | /** |
| | | * 长度 |
| | | */ |
| | | @ApiModelProperty(value= "长度") |
| | | @ApiModelProperty(value = "长度") |
| | | private Double length; |
| | | |
| | | /** |
| | | * 体积 |
| | | */ |
| | | @ApiModelProperty(value= "体积") |
| | | @ApiModelProperty(value = "体积") |
| | | private Double volume; |
| | | |
| | | /** |
| | | * 三方编码 |
| | | */ |
| | | @ApiModelProperty(value= "三方编码") |
| | | @ApiModelProperty(value = "三方编码") |
| | | @TableField("three_code") |
| | | private String threeCode; |
| | | |
| | | /** |
| | | * 供应商 |
| | | */ |
| | | @ApiModelProperty(value= "供应商") |
| | | @ApiModelProperty(value = "供应商") |
| | | private String supp; |
| | | |
| | | /** |
| | | * 供应商编码 |
| | | */ |
| | | @ApiModelProperty(value= "供应商编码") |
| | | @ApiModelProperty(value = "供应商编码") |
| | | @TableField("supp_code") |
| | | private String suppCode; |
| | | |
| | | /** |
| | | * 是否批次 1: 是 0: 否 |
| | | */ |
| | | @ApiModelProperty(value= "是否批次 1: 是 0: 否 ") |
| | | @ApiModelProperty(value = "是否批次 1: 是 0: 否 ") |
| | | @TableField("be_batch") |
| | | private Integer beBatch; |
| | | |
| | | /** |
| | | * 保质期 |
| | | */ |
| | | @ApiModelProperty(value= "保质期") |
| | | @ApiModelProperty(value = "保质期") |
| | | @TableField("dead_time") |
| | | private String deadTime; |
| | | |
| | | /** |
| | | * 预警天数 |
| | | */ |
| | | @ApiModelProperty(value= "预警天数") |
| | | @ApiModelProperty(value = "预警天数") |
| | | @TableField("dead_warn") |
| | | private Integer deadWarn; |
| | | |
| | | /** |
| | | * 制购 1: 制造 2: 采购 3: 外协 |
| | | */ |
| | | @ApiModelProperty(value= "制购 1: 制造 2: 采购 3: 外协 ") |
| | | @ApiModelProperty(value = "制购 1: 制造 2: 采购 3: 外协 ") |
| | | private Integer source; |
| | | |
| | | /** |
| | | * 要求检验 1: 是 0: 否 |
| | | */ |
| | | @ApiModelProperty(value= "要求检验 1: 是 0: 否 ") |
| | | @ApiModelProperty(value = "要求检验 1: 是 0: 否 ") |
| | | private Integer inspect; |
| | | |
| | | /** |
| | | * 危险品 1: 是 0: 否 |
| | | */ |
| | | @ApiModelProperty(value= "危险品 1: 是 0: 否 ") |
| | | @ApiModelProperty(value = "危险品 1: 是 0: 否 ") |
| | | private Integer danger; |
| | | |
| | | /** |
| | | * 修改人员 |
| | | */ |
| | | @ApiModelProperty(value= "修改人员") |
| | | @ApiModelProperty(value = "修改人员") |
| | | @TableField("modi_user") |
| | | private Long modiUser; |
| | | |
| | | /** |
| | | * 修改时间 |
| | | */ |
| | | @ApiModelProperty(value= "修改时间") |
| | | @ApiModelProperty(value = "修改时间") |
| | | @TableField("modi_time") |
| | | private Date modiTime; |
| | | |
| | | /** |
| | | * 创建者 |
| | | */ |
| | | @ApiModelProperty(value= "创建者") |
| | | @ApiModelProperty(value = "创建者") |
| | | @TableField("appe_user") |
| | | private Long appeUser; |
| | | |
| | | /** |
| | | * 添加时间 |
| | | */ |
| | | @ApiModelProperty(value= "添加时间") |
| | | @ApiModelProperty(value = "添加时间") |
| | | @TableField("appe_time") |
| | | private Date appeTime; |
| | | |
| | | /** |
| | | * 备注 |
| | | */ |
| | | @ApiModelProperty(value= "备注") |
| | | @ApiModelProperty(value = "备注") |
| | | private String memo; |
| | | |
| | | @ApiModelProperty(value= "预留1") |
| | | @ApiModelProperty(value = "预留1") |
| | | private String temp1; |
| | | @ApiModelProperty(value= "预留1") |
| | | @ApiModelProperty(value = "预留1") |
| | | private String temp2; |
| | | @ApiModelProperty(value= "预留1") |
| | | @ApiModelProperty(value = "预留1") |
| | | private String temp3; |
| | | @ApiModelProperty(value= "预留1") |
| | | @ApiModelProperty(value = "预留1") |
| | | private String temp4; |
| | | |
| | | |
| | | public String getBeBatch$(){ |
| | | if (null == this.beBatch){ return null; } |
| | | switch (this.beBatch){ |
| | | public String getBeBatch$() { |
| | | if (null == this.beBatch) { |
| | | return null; |
| | | } |
| | | switch (this.beBatch) { |
| | | case 1: |
| | | return "是"; |
| | | case 0: |
| | |
| | | } |
| | | } |
| | | |
| | | public String getSource$(){ |
| | | if (null == this.source){ return null; } |
| | | switch (this.source){ |
| | | public String getSource$() { |
| | | if (null == this.source) { |
| | | return null; |
| | | } |
| | | switch (this.source) { |
| | | case 1: |
| | | return "制造"; |
| | | case 2: |
| | |
| | | } |
| | | } |
| | | |
| | | public String getInspect$(){ |
| | | if (null == this.inspect){ return null; } |
| | | switch (this.inspect){ |
| | | public String getInspect$() { |
| | | if (null == this.inspect) { |
| | | return null; |
| | | } |
| | | switch (this.inspect) { |
| | | case 1: |
| | | return "是"; |
| | | case 0: |
| | |
| | | } |
| | | } |
| | | |
| | | public String getDanger$(){ |
| | | if (null == this.danger){ return null; } |
| | | switch (this.danger){ |
| | | public String getDanger$() { |
| | | if (null == this.danger) { |
| | | return null; |
| | | } |
| | | switch (this.danger) { |
| | | case 1: |
| | | return "是"; |
| | | case 0: |
| | |
| | | } |
| | | } |
| | | |
| | | public String getModiUser$(){ |
| | | public String getModiUser$() { |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.modiUser); |
| | | if (!Cools.isEmpty(user)){ |
| | | if (!Cools.isEmpty(user)) { |
| | | return String.valueOf(user.getUsername()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public String getModiTime$(){ |
| | | if (Cools.isEmpty(this.modiTime)){ |
| | | public String getModiTime$() { |
| | | if (Cools.isEmpty(this.modiTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.modiTime); |
| | | } |
| | | |
| | | public String getAppeUser$(){ |
| | | public String getAppeUser$() { |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.appeUser); |
| | | if (!Cools.isEmpty(user)){ |
| | | if (!Cools.isEmpty(user)) { |
| | | return String.valueOf(user.getUsername()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public String getAppeTime$(){ |
| | | if (Cools.isEmpty(this.appeTime)){ |
| | | public String getAppeTime$() { |
| | | if (Cools.isEmpty(this.appeTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.appeTime); |
| | |
| | | /** |
| | | * ID |
| | | */ |
| | | @ApiModelProperty(value= "ID") |
| | | @ApiModelProperty(value = "ID") |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Long id; |
| | | |
| | | /** |
| | | * 数量 |
| | | */ |
| | | @ApiModelProperty(value= "数量") |
| | | @ApiModelProperty(value = "数量") |
| | | private Double anfme; |
| | | |
| | | /** |
| | | * 托盘条码 |
| | | */ |
| | | @ApiModelProperty(value= "托盘条码") |
| | | @ApiModelProperty(value = "托盘条码") |
| | | private String zpallet; |
| | | |
| | | /** |
| | | * 物料 |
| | | */ |
| | | @ApiModelProperty(value= "商品编号") |
| | | @ApiModelProperty(value = "商品编号") |
| | | private String matnr; |
| | | |
| | | /** |
| | | * 物料描述 |
| | | */ |
| | | @ApiModelProperty(value= "商品名称") |
| | | @ApiModelProperty(value = "商品名称") |
| | | private String maktx; |
| | | |
| | | /** |
| | | * 批号 |
| | | */ |
| | | @ApiModelProperty(value= "批号") |
| | | @ApiModelProperty(value = "批号") |
| | | private String batch; |
| | | |
| | | /** |
| | | * 单据编号 |
| | | */ |
| | | @ApiModelProperty(value= "单据编号") |
| | | @ApiModelProperty(value = "单据编号") |
| | | @TableField("order_no") |
| | | private String orderNo; |
| | | |
| | | /** |
| | | * 规格 |
| | | */ |
| | | @ApiModelProperty(value= "规格") |
| | | @ApiModelProperty(value = "规格") |
| | | private String specs; |
| | | |
| | | /** |
| | | * 型号 |
| | | */ |
| | | @ApiModelProperty(value= "型号") |
| | | @ApiModelProperty(value = "型号") |
| | | private String model; |
| | | |
| | | /** |
| | | * 颜色 |
| | | */ |
| | | @ApiModelProperty(value= "颜色") |
| | | @ApiModelProperty(value = "颜色") |
| | | private String color; |
| | | |
| | | /** |
| | | * 品牌 |
| | | */ |
| | | @ApiModelProperty(value= "品牌") |
| | | @ApiModelProperty(value = "品牌") |
| | | private String brand; |
| | | |
| | | /** |
| | | * 单位 |
| | | */ |
| | | @ApiModelProperty(value= "单位") |
| | | @ApiModelProperty(value = "单位") |
| | | private String unit; |
| | | |
| | | /** |
| | | * 单价 |
| | | */ |
| | | @ApiModelProperty(value= "单价") |
| | | @ApiModelProperty(value = "单价") |
| | | private Double price; |
| | | |
| | | /** |
| | | * sku |
| | | */ |
| | | @ApiModelProperty(value= "sku") |
| | | @ApiModelProperty(value = "sku") |
| | | private String sku; |
| | | |
| | | /** |
| | | * 单位量 |
| | | */ |
| | | @ApiModelProperty(value= "单位量") |
| | | @ApiModelProperty(value = "单位量") |
| | | private Double units; |
| | | |
| | | /** |
| | | * 条码 |
| | | */ |
| | | @ApiModelProperty(value= "条码") |
| | | @ApiModelProperty(value = "条码") |
| | | private String barcode; |
| | | |
| | | /** |
| | | * 产地 |
| | | */ |
| | | @ApiModelProperty(value= "产地") |
| | | @ApiModelProperty(value = "产地") |
| | | private String origin; |
| | | |
| | | /** |
| | | * 厂家 |
| | | */ |
| | | @ApiModelProperty(value= "厂家") |
| | | @ApiModelProperty(value = "厂家") |
| | | private String manu; |
| | | |
| | | /** |
| | | * 生产日期 |
| | | */ |
| | | @ApiModelProperty(value= "生产日期") |
| | | @ApiModelProperty(value = "生产日期") |
| | | @TableField("manu_date") |
| | | private String manuDate; |
| | | |
| | | /** |
| | | * 品项数 |
| | | */ |
| | | @ApiModelProperty(value= "品项数") |
| | | @ApiModelProperty(value = "品项数") |
| | | @TableField("item_num") |
| | | private String itemNum; |
| | | |
| | | /** |
| | | * 安全库存量 |
| | | */ |
| | | @ApiModelProperty(value= "安全库存量") |
| | | @ApiModelProperty(value = "安全库存量") |
| | | @TableField("safe_qty") |
| | | private Double safeQty; |
| | | |
| | | /** |
| | | * 重量 |
| | | */ |
| | | @ApiModelProperty(value= "重量") |
| | | @ApiModelProperty(value = "重量") |
| | | private Double weight; |
| | | |
| | | /** |
| | | * 长度 |
| | | */ |
| | | @ApiModelProperty(value= "长度") |
| | | @ApiModelProperty(value = "长度") |
| | | private Double length; |
| | | |
| | | /** |
| | | * 体积 |
| | | */ |
| | | @ApiModelProperty(value= "体积") |
| | | @ApiModelProperty(value = "体积") |
| | | private Double volume; |
| | | |
| | | /** |
| | | * 三方编码 |
| | | */ |
| | | @ApiModelProperty(value= "三方编码") |
| | | @ApiModelProperty(value = "三方编码") |
| | | @TableField("three_code") |
| | | private String threeCode; |
| | | |
| | | /** |
| | | * 供应商 |
| | | */ |
| | | @ApiModelProperty(value= "供应商") |
| | | @ApiModelProperty(value = "供应商") |
| | | private String supp; |
| | | |
| | | /** |
| | | * 供应商编码 |
| | | */ |
| | | @ApiModelProperty(value= "供应商编码") |
| | | @ApiModelProperty(value = "供应商编码") |
| | | @TableField("supp_code") |
| | | private String suppCode; |
| | | |
| | | /** |
| | | * 是否批次 1: 是 0: 否 |
| | | */ |
| | | @ApiModelProperty(value= "是否批次 1: 是 0: 否 ") |
| | | @ApiModelProperty(value = "是否批次 1: 是 0: 否 ") |
| | | @TableField("be_batch") |
| | | private Integer beBatch; |
| | | |
| | | /** |
| | | * 保质期 |
| | | */ |
| | | @ApiModelProperty(value= "保质期") |
| | | @ApiModelProperty(value = "保质期") |
| | | @TableField("dead_time") |
| | | private String deadTime; |
| | | |
| | | /** |
| | | * 预警天数 |
| | | */ |
| | | @ApiModelProperty(value= "预警天数") |
| | | @ApiModelProperty(value = "预警天数") |
| | | @TableField("dead_warn") |
| | | private Integer deadWarn; |
| | | |
| | | /** |
| | | * 制购 1: 制造 2: 采购 3: 外协 |
| | | */ |
| | | @ApiModelProperty(value= "制购 1: 制造 2: 采购 3: 外协 ") |
| | | @ApiModelProperty(value = "制购 1: 制造 2: 采购 3: 外协 ") |
| | | private Integer source; |
| | | |
| | | /** |
| | | * 要求检验 1: 是 0: 否 |
| | | */ |
| | | @ApiModelProperty(value= "要求检验 1: 是 0: 否 ") |
| | | @ApiModelProperty(value = "要求检验 1: 是 0: 否 ") |
| | | private Integer inspect; |
| | | |
| | | /** |
| | | * 危险品 1: 是 0: 否 |
| | | */ |
| | | @ApiModelProperty(value= "危险品 1: 是 0: 否 ") |
| | | @ApiModelProperty(value = "危险品 1: 是 0: 否 ") |
| | | private Integer danger; |
| | | |
| | | /** |
| | | * 修改人员 |
| | | */ |
| | | @ApiModelProperty(value= "修改人员") |
| | | @ApiModelProperty(value = "修改人员") |
| | | @TableField("modi_user") |
| | | private Long modiUser; |
| | | |
| | | /** |
| | | * 修改时间 |
| | | */ |
| | | @ApiModelProperty(value= "修改时间") |
| | | @ApiModelProperty(value = "修改时间") |
| | | @TableField("modi_time") |
| | | private Date modiTime; |
| | | |
| | | /** |
| | | * 创建者 |
| | | */ |
| | | @ApiModelProperty(value= "创建者") |
| | | @ApiModelProperty(value = "创建者") |
| | | @TableField("appe_user") |
| | | private Long appeUser; |
| | | |
| | | /** |
| | | * 添加时间 |
| | | */ |
| | | @ApiModelProperty(value= "添加时间") |
| | | @ApiModelProperty(value = "添加时间") |
| | | @TableField("appe_time") |
| | | private Date appeTime; |
| | | |
| | | /** |
| | | * 备注 |
| | | */ |
| | | @ApiModelProperty(value= "备注") |
| | | @ApiModelProperty(value = "备注") |
| | | private String memo; |
| | | |
| | | @ApiModelProperty(value= "预留1") |
| | | @ApiModelProperty(value = "预留1") |
| | | private String temp1; |
| | | @ApiModelProperty(value= "预留1") |
| | | @ApiModelProperty(value = "预留1") |
| | | private String temp2; |
| | | @ApiModelProperty(value= "预留1") |
| | | @ApiModelProperty(value = "预留1") |
| | | private String temp3; |
| | | @ApiModelProperty(value= "预留1") |
| | | @ApiModelProperty(value = "预留1") |
| | | private String temp4; |
| | | |
| | | |
| | | public String getBeBatch$(){ |
| | | if (null == this.beBatch){ return null; } |
| | | switch (this.beBatch){ |
| | | public String getBeBatch$() { |
| | | if (null == this.beBatch) { |
| | | return null; |
| | | } |
| | | switch (this.beBatch) { |
| | | case 1: |
| | | return "是"; |
| | | case 0: |
| | |
| | | } |
| | | } |
| | | |
| | | public String getSource$(){ |
| | | if (null == this.source){ return null; } |
| | | switch (this.source){ |
| | | public String getSource$() { |
| | | if (null == this.source) { |
| | | return null; |
| | | } |
| | | switch (this.source) { |
| | | case 1: |
| | | return "制造"; |
| | | case 2: |
| | |
| | | } |
| | | } |
| | | |
| | | public String getInspect$(){ |
| | | if (null == this.inspect){ return null; } |
| | | switch (this.inspect){ |
| | | public String getInspect$() { |
| | | if (null == this.inspect) { |
| | | return null; |
| | | } |
| | | switch (this.inspect) { |
| | | case 1: |
| | | return "是"; |
| | | case 0: |
| | |
| | | } |
| | | } |
| | | |
| | | public String getDanger$(){ |
| | | if (null == this.danger){ return null; } |
| | | switch (this.danger){ |
| | | public String getDanger$() { |
| | | if (null == this.danger) { |
| | | return null; |
| | | } |
| | | switch (this.danger) { |
| | | case 1: |
| | | return "是"; |
| | | case 0: |
| | |
| | | } |
| | | } |
| | | |
| | | public String getModiUser$(){ |
| | | public String getModiUser$() { |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.modiUser); |
| | | if (!Cools.isEmpty(user)){ |
| | | if (!Cools.isEmpty(user)) { |
| | | return String.valueOf(user.getUsername()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public String getModiTime$(){ |
| | | if (Cools.isEmpty(this.modiTime)){ |
| | | public String getModiTime$() { |
| | | if (Cools.isEmpty(this.modiTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.modiTime); |
| | | } |
| | | |
| | | public String getAppeUser$(){ |
| | | public String getAppeUser$() { |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.appeUser); |
| | | if (!Cools.isEmpty(user)){ |
| | | if (!Cools.isEmpty(user)) { |
| | | return String.valueOf(user.getUsername()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public String getAppeTime$(){ |
| | | if (Cools.isEmpty(this.appeTime)){ |
| | | public String getAppeTime$() { |
| | | if (Cools.isEmpty(this.appeTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.appeTime); |
| | |
| | | /** |
| | | * 订单状态 |
| | | */ |
| | | @ApiModelProperty(value= "订单状态") |
| | | @ApiModelProperty(value = "订单状态") |
| | | @TableId(value = "order_settle", type = IdType.INPUT) |
| | | @TableField("order_settle") |
| | | private Long orderSettle; |
| | |
| | | /** |
| | | * 状态描述 |
| | | */ |
| | | @ApiModelProperty(value= "状态描述") |
| | | @ApiModelProperty(value = "状态描述") |
| | | @TableField("settle_name") |
| | | private String settleName; |
| | | |
| | | /** |
| | | * 添加人员 |
| | | */ |
| | | @ApiModelProperty(value= "添加人员") |
| | | @ApiModelProperty(value = "添加人员") |
| | | @TableField("create_by") |
| | | private Long createBy; |
| | | |
| | | /** |
| | | * 添加时间 |
| | | */ |
| | | @ApiModelProperty(value= "添加时间") |
| | | @ApiModelProperty(value = "添加时间") |
| | | @TableField("create_time") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date createTime; |
| | | |
| | | /** |
| | | * 修改人员 |
| | | */ |
| | | @ApiModelProperty(value= "修改人员") |
| | | @ApiModelProperty(value = "修改人员") |
| | | @TableField("update_by") |
| | | private Long updateBy; |
| | | |
| | | /** |
| | | * 修改时间 |
| | | */ |
| | | @ApiModelProperty(value= "修改时间") |
| | | @ApiModelProperty(value = "修改时间") |
| | | @TableField("update_time") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date updateTime; |
| | | |
| | | /** |
| | | * 备注 |
| | | */ |
| | | @ApiModelProperty(value= "备注") |
| | | @ApiModelProperty(value = "备注") |
| | | private String memo; |
| | | |
| | | public OrderSettle() {} |
| | | public OrderSettle() { |
| | | } |
| | | |
| | | public OrderSettle(Long orderSettle,String settleName,Long createBy,Date createTime,Long updateBy,Date updateTime,String memo) { |
| | | public OrderSettle(Long orderSettle, String settleName, Long createBy, Date createTime, Long updateBy, Date updateTime, String memo) { |
| | | this.orderSettle = orderSettle; |
| | | this.settleName = settleName; |
| | | this.createBy = createBy; |
| | |
| | | // null // 备注 |
| | | // ); |
| | | |
| | | public String getCreateBy$(){ |
| | | public String getCreateBy$() { |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.createBy); |
| | | if (!Cools.isEmpty(user)){ |
| | | if (!Cools.isEmpty(user)) { |
| | | return String.valueOf(user.getUsername()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public String getCreateTime$(){ |
| | | if (Cools.isEmpty(this.createTime)){ |
| | | public String getCreateTime$() { |
| | | if (Cools.isEmpty(this.createTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.createTime); |
| | | } |
| | | |
| | | public String getUpdateBy$(){ |
| | | public String getUpdateBy$() { |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.updateBy); |
| | | if (!Cools.isEmpty(user)){ |
| | | if (!Cools.isEmpty(user)) { |
| | | return String.valueOf(user.getUsername()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public String getUpdateTime$(){ |
| | | if (Cools.isEmpty(this.updateTime)){ |
| | | public String getUpdateTime$() { |
| | | if (Cools.isEmpty(this.updateTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.updateTime); |
| | |
| | | package com.zy.asrs.entity; |
| | | |
| | | import com.core.common.Cools;import com.baomidou.mybatisplus.annotations.TableId; |
| | | import com.baomidou.mybatisplus.annotations.TableField; |
| | | import com.baomidou.mybatisplus.annotations.TableId; |
| | | import com.baomidou.mybatisplus.annotations.TableName; |
| | | import com.baomidou.mybatisplus.enums.IdType; |
| | | import com.core.common.Cools; |
| | | import com.core.common.SpringUtils; |
| | | import com.zy.asrs.service.OrderSettleService; |
| | | import com.zy.asrs.entity.OrderSettle; |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.Date; |
| | | import com.baomidou.mybatisplus.annotations.TableField; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import com.core.common.SpringUtils; |
| | | import com.zy.system.service.UserService; |
| | | import com.zy.system.entity.User; |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.Date; |
| | | import com.core.common.SpringUtils; |
| | | import com.zy.system.service.UserService; |
| | | import com.zy.system.entity.User; |
| | | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import com.baomidou.mybatisplus.annotations.TableName; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | |
| | | import java.io.Serializable; |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.Date; |
| | | |
| | | @Data |
| | | @TableName("man_pack") |
| | |
| | | /** |
| | | * ID |
| | | */ |
| | | @ApiModelProperty(value= "ID") |
| | | @ApiModelProperty(value = "ID") |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Long id; |
| | | |
| | | /** |
| | | * 条码 |
| | | */ |
| | | @ApiModelProperty(value= "条码") |
| | | @ApiModelProperty(value = "条码") |
| | | private String barcode; |
| | | |
| | | /** |
| | | * 商品编号 |
| | | */ |
| | | @ApiModelProperty(value= "商品编号") |
| | | @ApiModelProperty(value = "商品编号") |
| | | private String matnr; |
| | | |
| | | /** |
| | | * 批号 |
| | | */ |
| | | @ApiModelProperty(value= "批号") |
| | | @ApiModelProperty(value = "批号") |
| | | private String batch; |
| | | |
| | | /** |
| | | * 订单状态 |
| | | */ |
| | | @ApiModelProperty(value= "订单状态") |
| | | @ApiModelProperty(value = "订单状态") |
| | | private Long settle; |
| | | |
| | | /** |
| | | * 状态 1: 正常 0: 禁用 |
| | | */ |
| | | @ApiModelProperty(value= "状态 1: 正常 0: 禁用 ") |
| | | @ApiModelProperty(value = "状态 1: 正常 0: 禁用 ") |
| | | private Integer status; |
| | | |
| | | /** |
| | | * 添加时间 |
| | | */ |
| | | @ApiModelProperty(value= "添加时间") |
| | | @ApiModelProperty(value = "添加时间") |
| | | @TableField("create_time") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date createTime; |
| | | |
| | | /** |
| | | * 添加人员 |
| | | */ |
| | | @ApiModelProperty(value= "添加人员") |
| | | @ApiModelProperty(value = "添加人员") |
| | | @TableField("create_by") |
| | | private Long createBy; |
| | | |
| | | /** |
| | | * 修改时间 |
| | | */ |
| | | @ApiModelProperty(value= "修改时间") |
| | | @ApiModelProperty(value = "修改时间") |
| | | @TableField("update_time") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date updateTime; |
| | | |
| | | /** |
| | | * 修改人员 |
| | | */ |
| | | @ApiModelProperty(value= "修改人员") |
| | | @ApiModelProperty(value = "修改人员") |
| | | @TableField("update_by") |
| | | private Long updateBy; |
| | | |
| | | /** |
| | | * 备注 |
| | | */ |
| | | @ApiModelProperty(value= "备注") |
| | | @ApiModelProperty(value = "备注") |
| | | private String memo; |
| | | |
| | | public Pack() {} |
| | | public Pack() { |
| | | } |
| | | |
| | | public Pack(String barcode,String matnr,String batch,Long settle,Integer status,Date createTime,Long createBy,Date updateTime,Long updateBy,String memo) { |
| | | public Pack(String barcode, String matnr, String batch, Long settle, Integer status, Date createTime, Long createBy, Date updateTime, Long updateBy, String memo) { |
| | | this.barcode = barcode; |
| | | this.matnr = matnr; |
| | | this.batch = batch; |
| | |
| | | // null // 备注 |
| | | // ); |
| | | |
| | | public String getSettle$(){ |
| | | public String getSettle$() { |
| | | OrderSettleService service = SpringUtils.getBean(OrderSettleService.class); |
| | | OrderSettle orderSettle = service.selectById(this.settle); |
| | | if (!Cools.isEmpty(orderSettle)){ |
| | | if (!Cools.isEmpty(orderSettle)) { |
| | | return String.valueOf(orderSettle.getSettleName()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public String getStatus$(){ |
| | | if (null == this.status){ return null; } |
| | | switch (this.status){ |
| | | public String getStatus$() { |
| | | if (null == this.status) { |
| | | return null; |
| | | } |
| | | switch (this.status) { |
| | | case 1: |
| | | return "正常"; |
| | | case 0: |
| | |
| | | } |
| | | } |
| | | |
| | | public String getCreateTime$(){ |
| | | if (Cools.isEmpty(this.createTime)){ |
| | | public String getCreateTime$() { |
| | | if (Cools.isEmpty(this.createTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.createTime); |
| | | } |
| | | |
| | | public String getCreateBy$(){ |
| | | public String getCreateBy$() { |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.createBy); |
| | | if (!Cools.isEmpty(user)){ |
| | | if (!Cools.isEmpty(user)) { |
| | | return String.valueOf(user.getNickname()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public String getUpdateTime$(){ |
| | | if (Cools.isEmpty(this.updateTime)){ |
| | | public String getUpdateTime$() { |
| | | if (Cools.isEmpty(this.updateTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.updateTime); |
| | | } |
| | | |
| | | public String getUpdateBy$(){ |
| | | public String getUpdateBy$() { |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.updateBy); |
| | | if (!Cools.isEmpty(user)){ |
| | | if (!Cools.isEmpty(user)) { |
| | | return String.valueOf(user.getNickname()); |
| | | } |
| | | return null; |
| | |
| | | private Long occQty = 0L; |
| | | private String occDes = "使用库位"; |
| | | |
| | | public void complete(){ |
| | | fullDes = fullDes.concat(Arith.multiplys(1, Arith.divides(3, fullQty, totalQty), 100)+"%"); |
| | | nullDes = nullDes.concat(Arith.multiplys(1,Arith.divides(3, nullQty, totalQty), 100)+"%"); |
| | | forbidDes = forbidDes.concat(Arith.multiplys(1,Arith.divides(4, forbidQty, totalQty), 100)+"%"); |
| | | occDes = occDes.concat(Arith.multiplys(1,Arith.divides(3, occQty, totalQty), 100)+"%"); |
| | | public void complete() { |
| | | fullDes = fullDes.concat(Arith.multiplys(1, Arith.divides(3, fullQty, totalQty), 100) + "%"); |
| | | nullDes = nullDes.concat(Arith.multiplys(1, Arith.divides(3, nullQty, totalQty), 100) + "%"); |
| | | forbidDes = forbidDes.concat(Arith.multiplys(1, Arith.divides(4, forbidQty, totalQty), 100) + "%"); |
| | | occDes = occDes.concat(Arith.multiplys(1, Arith.divides(3, occQty, totalQty), 100) + "%"); |
| | | } |
| | | |
| | | public Long getTotalQty() { |
| | |
| | | import com.baomidou.mybatisplus.annotations.TableName; |
| | | import com.baomidou.mybatisplus.enums.IdType; |
| | | import com.baomidou.mybatisplus.mapper.EntityWrapper; |
| | | import com.core.common.Cools; |
| | | import com.core.common.SpringUtils; |
| | | import com.zy.asrs.service.BasWhsService; |
| | | import com.zy.asrs.service.RowLastnoTypeService; |
| | | import com.zy.system.entity.User; |
| | | import com.zy.system.service.UserService; |
| | | import com.core.common.Cools; |
| | | import com.core.common.SpringUtils; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | |
| | | import java.io.Serializable; |
| | |
| | | /** |
| | | * 类别 |
| | | */ |
| | | @ApiModelProperty(value= "类别") |
| | | @ApiModelProperty(value = "类别") |
| | | @TableId(value = "whs_type", type = IdType.INPUT) |
| | | @TableField("whs_type") |
| | | private Integer whsType; |
| | |
| | | /** |
| | | * 当前工作号 |
| | | */ |
| | | @ApiModelProperty(value= "当前工作号") |
| | | @ApiModelProperty(value = "当前工作号") |
| | | @TableField("wrk_mk") |
| | | private String wrkMk; |
| | | |
| | | /** |
| | | * 当前排号 |
| | | */ |
| | | @ApiModelProperty(value= "当前排号") |
| | | @ApiModelProperty(value = "当前排号") |
| | | @TableField("current_row") |
| | | private Integer currentRow; |
| | | |
| | | /** |
| | | * 起始排号 |
| | | */ |
| | | @ApiModelProperty(value= "起始排号") |
| | | @ApiModelProperty(value = "起始排号") |
| | | @TableField("s_row") |
| | | private Integer sRow; |
| | | |
| | | /** |
| | | * 终止排号 |
| | | */ |
| | | @ApiModelProperty(value= "终止排号") |
| | | @ApiModelProperty(value = "终止排号") |
| | | @TableField("e_row") |
| | | private Integer eRow; |
| | | |
| | | /** |
| | | * 堆垛机数量 |
| | | */ |
| | | @ApiModelProperty(value= "堆垛机数量") |
| | | @ApiModelProperty(value = "堆垛机数量") |
| | | @TableField("crn_qty") |
| | | private Integer crnQty; |
| | | |
| | | /** |
| | | * 备注 |
| | | */ |
| | | @ApiModelProperty(value= "备注") |
| | | @ApiModelProperty(value = "备注") |
| | | private String memo; |
| | | |
| | | /** |
| | | * 修改人员 |
| | | */ |
| | | @ApiModelProperty(value= "修改人员") |
| | | @ApiModelProperty(value = "修改人员") |
| | | @TableField("modi_user") |
| | | private Long modiUser; |
| | | |
| | | /** |
| | | * 修改时间 |
| | | */ |
| | | @ApiModelProperty(value= "修改时间") |
| | | @ApiModelProperty(value = "修改时间") |
| | | @TableField("modi_time") |
| | | private Date modiTime; |
| | | |
| | | /** |
| | | * 创建者 |
| | | */ |
| | | @ApiModelProperty(value= "创建者") |
| | | @ApiModelProperty(value = "创建者") |
| | | @TableField("appe_user") |
| | | private Long appeUser; |
| | | |
| | | /** |
| | | * 添加时间 |
| | | */ |
| | | @ApiModelProperty(value= "添加时间") |
| | | @ApiModelProperty(value = "添加时间") |
| | | @TableField("appe_time") |
| | | private Date appeTime; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("limint_loc") |
| | | private Integer limintLoc; |
| | | |
| | | /** |
| | | * 起始堆垛机号 |
| | | */ |
| | | @ApiModelProperty(value= "起始堆垛机号") |
| | | @ApiModelProperty(value = "起始堆垛机号") |
| | | @TableField("s_crn_no") |
| | | private Integer sCrnNo; |
| | | |
| | | /** |
| | | * 终止堆垛机号 |
| | | */ |
| | | @ApiModelProperty(value= "终止堆垛机号") |
| | | @ApiModelProperty(value = "终止堆垛机号") |
| | | @TableField("e_crn_no") |
| | | private Integer eCrnNo; |
| | | |
| | | /** |
| | | * 标记类别(是否输送线互通) |
| | | */ |
| | | @ApiModelProperty(value= "标记类别") |
| | | @ApiModelProperty(value = "标记类别") |
| | | @TableField("sign_type") |
| | | private Integer signType; |
| | | |
| | | /** |
| | | * 是否启用其它标记类别 0:关闭 1:打开 |
| | | */ |
| | | @ApiModelProperty(value= "是否启用其它标记类别") |
| | | @ApiModelProperty(value = "是否启用其它标记类别") |
| | | @TableField("sign_type_other") |
| | | private Integer signTypeOther; |
| | | |
| | | /** |
| | | * 其它标记类别(是否输送线互通) |
| | | */ |
| | | @ApiModelProperty(value= "其它标记类别") |
| | | @ApiModelProperty(value = "其它标记类别") |
| | | @TableField("sign_type_other_boolean") |
| | | private String signTypeOtherBoolean; |
| | | |
| | | /** |
| | | * 其它标记类别(是否输送线互通) |
| | | */ |
| | | @ApiModelProperty(value= "入库站点集合") |
| | | @ApiModelProperty(value = "入库站点集合") |
| | | @TableField("sta_no_list") |
| | | private String staNoList; |
| | | |
| | | /** |
| | | * 库类型ID |
| | | */ |
| | | @ApiModelProperty(value= "库类型ID") |
| | | @ApiModelProperty(value = "库类型ID") |
| | | @TableField("type_id") |
| | | private Integer typeId; |
| | | |
| | | /** |
| | | * 相似物料开关 |
| | | */ |
| | | @ApiModelProperty(value= "相似物料开关") |
| | | @ApiModelProperty(value = "相似物料开关") |
| | | @TableField("be_similar") |
| | | private String beSimilar; |
| | | |
| | | /** |
| | | * 是否存在点位 |
| | | */ |
| | | @ApiModelProperty(value= "是否存在点位") |
| | | @ApiModelProperty(value = "是否存在点位") |
| | | @TableField("point_switch") |
| | | private String pointSwitch; |
| | | |
| | | /** |
| | | * 空板靠近摆放 |
| | | */ |
| | | @ApiModelProperty(value= "空板靠近摆放") |
| | | @ApiModelProperty(value = "空板靠近摆放") |
| | | @TableField("empty_similar") |
| | | private String emptySimilar; |
| | | |
| | | public RowLastno() {} |
| | | public RowLastno() { |
| | | } |
| | | |
| | | public RowLastno(String wrkMk,Integer currentRow,Integer sRow,Integer eRow,Integer crnQty,String memo,Long modiUser,Date modiTime,Long appeUser,Date appeTime,Integer limintLoc) { |
| | | public RowLastno(String wrkMk, Integer currentRow, Integer sRow, Integer eRow, Integer crnQty, String memo, Long modiUser, Date modiTime, Long appeUser, Date appeTime, Integer limintLoc) { |
| | | this.wrkMk = wrkMk; |
| | | this.currentRow = currentRow; |
| | | this.sRow = sRow; |
| | |
| | | return modiUser; |
| | | } |
| | | |
| | | public String getModiUser$(){ |
| | | public String getModiUser$() { |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.modiUser); |
| | | if (!Cools.isEmpty(user)){ |
| | | if (!Cools.isEmpty(user)) { |
| | | return String.valueOf(user.getUsername()); |
| | | } |
| | | return null; |
| | |
| | | return modiTime; |
| | | } |
| | | |
| | | public String getModiTime$(){ |
| | | if (Cools.isEmpty(this.modiTime)){ |
| | | public String getModiTime$() { |
| | | if (Cools.isEmpty(this.modiTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.modiTime); |
| | |
| | | return appeUser; |
| | | } |
| | | |
| | | public String getAppeUser$(){ |
| | | public String getAppeUser$() { |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.appeUser); |
| | | if (!Cools.isEmpty(user)){ |
| | | if (!Cools.isEmpty(user)) { |
| | | return String.valueOf(user.getUsername()); |
| | | } |
| | | return null; |
| | |
| | | return appeTime; |
| | | } |
| | | |
| | | public String getAppeTime$(){ |
| | | if (Cools.isEmpty(this.appeTime)){ |
| | | public String getAppeTime$() { |
| | | if (Cools.isEmpty(this.appeTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.appeTime); |
| | |
| | | public void setLimintLoc(Integer limintLoc) { |
| | | this.limintLoc = limintLoc; |
| | | } |
| | | |
| | | public Integer getsCrnNo() { |
| | | return sCrnNo; |
| | | } |
| | |
| | | public Integer getTypeId() { |
| | | return typeId; |
| | | } |
| | | |
| | | public String getTypeId$() { |
| | | RowLastnoTypeService rowLastnoTypeService = SpringUtils.getBean(RowLastnoTypeService.class); |
| | | RowLastnoType rowLastnoType = rowLastnoTypeService.selectById(this.typeId.longValue()); |
| | | BasWhsService basWhsService = SpringUtils.getBean(BasWhsService.class); |
| | | BasWhs basWhs = basWhsService.selectOne(new EntityWrapper<BasWhs>().eq("identifying",rowLastnoType.getType().longValue()) ); |
| | | if (!Cools.isEmpty(rowLastnoType)){ |
| | | return rowLastnoType.getTypeName()+"<==>"+rowLastnoType.getMemo()+"<==>"+basWhs.getWhsDesc(); |
| | | BasWhs basWhs = basWhsService.selectOne(new EntityWrapper<BasWhs>().eq("identifying", rowLastnoType.getType().longValue())); |
| | | if (!Cools.isEmpty(rowLastnoType)) { |
| | | return rowLastnoType.getTypeName() + "<==>" + rowLastnoType.getMemo() + "<==>" + basWhs.getWhsDesc(); |
| | | } |
| | | return typeId.toString(); |
| | | } |
| | |
| | | package com.zy.asrs.entity; |
| | | |
| | | import com.core.common.Cools;import com.baomidou.mybatisplus.annotations.TableId; |
| | | import com.baomidou.mybatisplus.enums.IdType; |
| | | import com.baomidou.mybatisplus.annotations.TableField; |
| | | import com.baomidou.mybatisplus.annotations.TableId; |
| | | import com.baomidou.mybatisplus.annotations.TableName; |
| | | import com.baomidou.mybatisplus.enums.IdType; |
| | | import com.core.common.Cools; |
| | | import com.core.common.SpringUtils; |
| | | import com.zy.system.service.UserService; |
| | | import com.zy.system.entity.User; |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.Date; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | |
| | | import com.zy.system.service.UserService; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import com.baomidou.mybatisplus.annotations.TableName; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | |
| | | import java.io.Serializable; |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.Date; |
| | | |
| | | @Data |
| | | @TableName("asr_row_lastno_type") |
| | |
| | | /** |
| | | * 类别 |
| | | */ |
| | | @ApiModelProperty(value= "类别") |
| | | @ApiModelProperty(value = "类别") |
| | | @TableId(value = "id", type = IdType.INPUT) |
| | | private Integer id; |
| | | |
| | | /** |
| | | * 规则简述 |
| | | */ |
| | | @ApiModelProperty(value= "规则简述") |
| | | @ApiModelProperty(value = "规则简述") |
| | | @TableField("type_name") |
| | | private String typeName; |
| | | |
| | | /** |
| | | * 补充 |
| | | */ |
| | | @ApiModelProperty(value= "补充") |
| | | @ApiModelProperty(value = "补充") |
| | | private String memo; |
| | | |
| | | /** |
| | | * 创建人员 |
| | | */ |
| | | @ApiModelProperty(value= "创建人员") |
| | | @ApiModelProperty(value = "创建人员") |
| | | @TableField("modi_user") |
| | | private Long modiUser; |
| | | |
| | | /** |
| | | * 创建时间 |
| | | */ |
| | | @ApiModelProperty(value= "创建时间") |
| | | @ApiModelProperty(value = "创建时间") |
| | | @TableField("modi_time") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date modiTime; |
| | | |
| | | /** |
| | | * 修改人员 |
| | | */ |
| | | @ApiModelProperty(value= "修改人员") |
| | | @ApiModelProperty(value = "修改人员") |
| | | @TableField("appe_user") |
| | | private Long appeUser; |
| | | |
| | | /** |
| | | * 修改时间 |
| | | */ |
| | | @ApiModelProperty(value= "修改时间") |
| | | @ApiModelProperty(value = "修改时间") |
| | | @TableField("appe_time") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date appeTime; |
| | | |
| | | /** |
| | | * 库型 1: 标准堆垛机库 2: 平库 3: 穿梭板 4: 四向车 5: AGV 0: 未知 |
| | | */ |
| | | @ApiModelProperty(value= "库型 1: 标准堆垛机库 2: 平库 3: 穿梭板 4: 四向车 5: AGV 0: 未知 ") |
| | | @ApiModelProperty(value = "库型 1: 标准堆垛机库 2: 平库 3: 穿梭板 4: 四向车 5: AGV 0: 未知 ") |
| | | private Integer type; |
| | | |
| | | public RowLastnoType() {} |
| | | public RowLastnoType() { |
| | | } |
| | | |
| | | public RowLastnoType(Integer id,String typeName,String memo,Long modiUser,Date modiTime,Long appeUser,Date appeTime,Integer type) { |
| | | public RowLastnoType(Integer id, String typeName, String memo, Long modiUser, Date modiTime, Long appeUser, Date appeTime, Integer type) { |
| | | this.id = id; |
| | | this.typeName = typeName; |
| | | this.memo = memo; |
| | |
| | | // null // 库型 |
| | | // ); |
| | | |
| | | public String getModiUser$(){ |
| | | public String getModiUser$() { |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.modiUser); |
| | | if (!Cools.isEmpty(user)){ |
| | | if (!Cools.isEmpty(user)) { |
| | | return String.valueOf(user.getNickname()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public String getModiTime$(){ |
| | | if (Cools.isEmpty(this.modiTime)){ |
| | | public String getModiTime$() { |
| | | if (Cools.isEmpty(this.modiTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.modiTime); |
| | | } |
| | | |
| | | public String getAppeUser$(){ |
| | | public String getAppeUser$() { |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.appeUser); |
| | | if (!Cools.isEmpty(user)){ |
| | | if (!Cools.isEmpty(user)) { |
| | | return String.valueOf(user.getNickname()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public String getAppeTime$(){ |
| | | if (Cools.isEmpty(this.appeTime)){ |
| | | public String getAppeTime$() { |
| | | if (Cools.isEmpty(this.appeTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.appeTime); |
| | | } |
| | | |
| | | public String getType$(){ |
| | | if (null == this.type){ return null; } |
| | | switch (this.type){ |
| | | public String getType$() { |
| | | if (null == this.type) { |
| | | return null; |
| | | } |
| | | switch (this.type) { |
| | | case 0: |
| | | return "标准堆垛机库"; |
| | | case 1: |
| | |
| | | import com.baomidou.mybatisplus.annotations.TableId; |
| | | import com.baomidou.mybatisplus.annotations.TableName; |
| | | import com.baomidou.mybatisplus.enums.IdType; |
| | | import com.core.common.Cools; |
| | | import com.core.common.SpringUtils; |
| | | import com.zy.asrs.service.BasCrnpService; |
| | | import com.zy.asrs.service.BasDevpService; |
| | | import com.zy.asrs.service.BasWrkIotypeService; |
| | | import com.zy.system.entity.User; |
| | | import com.zy.system.service.UserService; |
| | | import com.core.common.Cools; |
| | | import com.core.common.SpringUtils; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | |
| | | import java.io.Serializable; |
| | |
| | | /** |
| | | * 路径ID |
| | | */ |
| | | @ApiModelProperty(value= "路径ID") |
| | | @ApiModelProperty(value = "路径ID") |
| | | @TableId(value = "type_id", type = IdType.AUTO) |
| | | @TableField("type_id") |
| | | private Long typeId; |
| | |
| | | /** |
| | | * 入出库类型 |
| | | */ |
| | | @ApiModelProperty(value= "入出库类型") |
| | | @ApiModelProperty(value = "入出库类型") |
| | | @TableId(value = "type_no", type = IdType.INPUT) |
| | | @TableField("type_no") |
| | | private Integer typeNo; |
| | |
| | | /** |
| | | * 作业类型 |
| | | */ |
| | | @ApiModelProperty(value= "作业类型") |
| | | @ApiModelProperty(value = "作业类型") |
| | | @TableField("type_desc") |
| | | private String typeDesc; |
| | | |
| | | /** |
| | | * 作业站点 |
| | | */ |
| | | @ApiModelProperty(value= "作业站点") |
| | | @ApiModelProperty(value = "作业站点") |
| | | @TableId(value = "stn_no", type = IdType.INPUT) |
| | | @TableField("stn_no") |
| | | private Integer stnNo; |
| | |
| | | /** |
| | | * 站点名称 |
| | | */ |
| | | @ApiModelProperty(value= "站点名称") |
| | | @ApiModelProperty(value = "站点名称") |
| | | @TableField("stn_desc") |
| | | private String stnDesc; |
| | | |
| | | /** |
| | | * 堆垛机号 |
| | | */ |
| | | @ApiModelProperty(value= "堆垛机号") |
| | | @ApiModelProperty(value = "堆垛机号") |
| | | @TableId(value = "crn_no", type = IdType.INPUT) |
| | | @TableField("crn_no") |
| | | private Integer crnNo; |
| | |
| | | /** |
| | | * 堆垛机站点 |
| | | */ |
| | | @ApiModelProperty(value= "堆垛机站点") |
| | | @ApiModelProperty(value = "堆垛机站点") |
| | | @TableField("crn_stn") |
| | | private Integer crnStn; |
| | | |
| | | /** |
| | | * 备注 |
| | | */ |
| | | @ApiModelProperty(value= "备注") |
| | | @ApiModelProperty(value = "备注") |
| | | private String memo; |
| | | |
| | | /** |
| | | * 修改人员 |
| | | */ |
| | | @ApiModelProperty(value= "修改人员") |
| | | @ApiModelProperty(value = "修改人员") |
| | | @TableField("modi_user") |
| | | private Long modiUser; |
| | | |
| | | /** |
| | | * 修改时间 |
| | | */ |
| | | @ApiModelProperty(value= "修改时间") |
| | | @ApiModelProperty(value = "修改时间") |
| | | @TableField("modi_time") |
| | | private Date modiTime; |
| | | |
| | | /** |
| | | * 创建者 |
| | | */ |
| | | @ApiModelProperty(value= "创建者") |
| | | @ApiModelProperty(value = "创建者") |
| | | @TableField("appe_user") |
| | | private Long appeUser; |
| | | |
| | | /** |
| | | * 添加时间 |
| | | */ |
| | | @ApiModelProperty(value= "添加时间") |
| | | @ApiModelProperty(value = "添加时间") |
| | | @TableField("appe_time") |
| | | private Date appeTime; |
| | | |
| | | public StaDesc() {} |
| | | public StaDesc() { |
| | | } |
| | | |
| | | public StaDesc(String typeDesc,String stnDesc,Integer crnStn,String memo,Long modiUser,Date modiTime,Long appeUser,Date appeTime) { |
| | | public StaDesc(String typeDesc, String stnDesc, Integer crnStn, String memo, Long modiUser, Date modiTime, Long appeUser, Date appeTime) { |
| | | this.typeDesc = typeDesc; |
| | | this.stnDesc = stnDesc; |
| | | this.crnStn = crnStn; |
| | |
| | | return typeNo; |
| | | } |
| | | |
| | | public String getTypeNo$(){ |
| | | public String getTypeNo$() { |
| | | BasWrkIotypeService service = SpringUtils.getBean(BasWrkIotypeService.class); |
| | | BasWrkIotype basWrkIotype = service.selectById(this.typeNo); |
| | | if (!Cools.isEmpty(basWrkIotype)){ |
| | | if (!Cools.isEmpty(basWrkIotype)) { |
| | | return String.valueOf(basWrkIotype.getIoDesc()); |
| | | } |
| | | return null; |
| | |
| | | return stnNo; |
| | | } |
| | | |
| | | public String getStnNo$(){ |
| | | public String getStnNo$() { |
| | | BasDevpService service = SpringUtils.getBean(BasDevpService.class); |
| | | BasDevp basDevp = service.selectById(this.stnNo); |
| | | if (!Cools.isEmpty(basDevp)){ |
| | | if (!Cools.isEmpty(basDevp)) { |
| | | return String.valueOf(basDevp.getDevNo()); |
| | | } |
| | | return null; |
| | |
| | | return crnNo; |
| | | } |
| | | |
| | | public String getCrnNo$(){ |
| | | public String getCrnNo$() { |
| | | BasCrnpService service = SpringUtils.getBean(BasCrnpService.class); |
| | | BasCrnp basCrnp = service.selectById(this.crnNo); |
| | | if (!Cools.isEmpty(basCrnp)){ |
| | | if (!Cools.isEmpty(basCrnp)) { |
| | | return String.valueOf(basCrnp.getCrnNo()); |
| | | } |
| | | return null; |
| | |
| | | return crnStn; |
| | | } |
| | | |
| | | public String getCrnStn$(){ |
| | | public String getCrnStn$() { |
| | | BasDevpService service = SpringUtils.getBean(BasDevpService.class); |
| | | BasDevp basDevp = service.selectById(this.crnStn); |
| | | if (!Cools.isEmpty(basDevp)){ |
| | | if (!Cools.isEmpty(basDevp)) { |
| | | return String.valueOf(basDevp.getDevNo()); |
| | | } |
| | | return null; |
| | |
| | | return modiUser; |
| | | } |
| | | |
| | | public String getModiUser$(){ |
| | | public String getModiUser$() { |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.modiUser); |
| | | if (!Cools.isEmpty(user)){ |
| | | if (!Cools.isEmpty(user)) { |
| | | return String.valueOf(user.getUsername()); |
| | | } |
| | | return null; |
| | |
| | | return modiTime; |
| | | } |
| | | |
| | | public String getModiTime$(){ |
| | | if (Cools.isEmpty(this.modiTime)){ |
| | | public String getModiTime$() { |
| | | if (Cools.isEmpty(this.modiTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.modiTime); |
| | |
| | | return appeUser; |
| | | } |
| | | |
| | | public String getAppeUser$(){ |
| | | public String getAppeUser$() { |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.appeUser); |
| | | if (!Cools.isEmpty(user)){ |
| | | if (!Cools.isEmpty(user)) { |
| | | return String.valueOf(user.getUsername()); |
| | | } |
| | | return null; |
| | |
| | | return appeTime; |
| | | } |
| | | |
| | | public String getAppeTime$(){ |
| | | if (Cools.isEmpty(this.appeTime)){ |
| | | public String getAppeTime$() { |
| | | if (Cools.isEmpty(this.appeTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.appeTime); |
| | |
| | | |
| | | import com.baomidou.mybatisplus.annotations.TableField; |
| | | import com.baomidou.mybatisplus.annotations.TableName; |
| | | import com.core.common.Cools; |
| | | import com.core.common.SpringUtils; |
| | | import com.zy.asrs.service.BasCrnErrorService; |
| | | import com.zy.asrs.service.BasCrnpService; |
| | | import com.zy.asrs.service.LocMastService; |
| | | import com.zy.system.entity.User; |
| | | import com.zy.system.service.UserService; |
| | | import com.core.common.Cools; |
| | | import com.core.common.SpringUtils; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | |
| | | import java.io.Serializable; |
| | |
| | | /** |
| | | * 日期 |
| | | */ |
| | | @ApiModelProperty(value= "日期") |
| | | @ApiModelProperty(value = "日期") |
| | | @TableField("io_time") |
| | | private Date ioTime; |
| | | |
| | | /** |
| | | * 工作号 |
| | | */ |
| | | @ApiModelProperty(value= "工作号") |
| | | @ApiModelProperty(value = "工作号") |
| | | @TableField("wrk_no") |
| | | private Integer wrkNo; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("wrk_type") |
| | | private String wrkType; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("s_station") |
| | | private String sStation; |
| | | |
| | | /** |
| | | * 库位号 |
| | | */ |
| | | @ApiModelProperty(value= "库位号") |
| | | @ApiModelProperty(value = "库位号") |
| | | @TableField("loc_no") |
| | | private String locNo; |
| | | |
| | | /** |
| | | * 异常码 |
| | | */ |
| | | @ApiModelProperty(value= "异常码") |
| | | @ApiModelProperty(value = "异常码") |
| | | @TableField("crn_error") |
| | | private Long crnError; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("o_station") |
| | | private String oStation; |
| | | |
| | | /** |
| | | * 修改人员 |
| | | */ |
| | | @ApiModelProperty(value= "修改人员") |
| | | @ApiModelProperty(value = "修改人员") |
| | | @TableField("modi_user") |
| | | private Long modiUser; |
| | | |
| | | /** |
| | | * 异常时间 |
| | | */ |
| | | @ApiModelProperty(value= "异常时间") |
| | | @ApiModelProperty(value = "异常时间") |
| | | @TableField("modi_time") |
| | | private Date modiTime; |
| | | |
| | | /** |
| | | * 创建者 |
| | | */ |
| | | @ApiModelProperty(value= "创建者") |
| | | @ApiModelProperty(value = "创建者") |
| | | @TableField("appe_user") |
| | | private Long appeUser; |
| | | |
| | | /** |
| | | * 添加时间 |
| | | */ |
| | | @ApiModelProperty(value= "添加时间") |
| | | @ApiModelProperty(value = "添加时间") |
| | | @TableField("appe_time") |
| | | private Date appeTime; |
| | | |
| | | /** |
| | | * 堆垛机号 |
| | | */ |
| | | @ApiModelProperty(value= "堆垛机号") |
| | | @ApiModelProperty(value = "堆垛机号") |
| | | @TableField("dev_no") |
| | | private Integer devNo; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("input_type") |
| | | private Integer inputType; |
| | | |
| | | /** |
| | | * 工作档时间 |
| | | */ |
| | | @ApiModelProperty(value= "工作档时间") |
| | | @ApiModelProperty(value = "工作档时间") |
| | | @TableField("wrk_time") |
| | | private Date wrkTime; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | private Integer tag; |
| | | |
| | | public StkPlcm() {} |
| | | public StkPlcm() { |
| | | } |
| | | |
| | | public StkPlcm(Date ioTime,Integer wrkNo,String wrkType,String sStation,String locNo,Long crnError,String oStation,Long modiUser,Date modiTime,Long appeUser,Date appeTime,Integer devNo,Integer inputType,Date wrkTime,Integer tag) { |
| | | public StkPlcm(Date ioTime, Integer wrkNo, String wrkType, String sStation, String locNo, Long crnError, String oStation, Long modiUser, Date modiTime, Long appeUser, Date appeTime, Integer devNo, Integer inputType, Date wrkTime, Integer tag) { |
| | | this.ioTime = ioTime; |
| | | this.wrkNo = wrkNo; |
| | | this.wrkType = wrkType; |
| | |
| | | return ioTime; |
| | | } |
| | | |
| | | public String getIoTime$(){ |
| | | if (Cools.isEmpty(this.ioTime)){ |
| | | public String getIoTime$() { |
| | | if (Cools.isEmpty(this.ioTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.ioTime); |
| | |
| | | return locNo; |
| | | } |
| | | |
| | | public String getLocNo$(){ |
| | | public String getLocNo$() { |
| | | LocMastService service = SpringUtils.getBean(LocMastService.class); |
| | | LocMast locMast = service.selectById(this.locNo); |
| | | if (!Cools.isEmpty(locMast)){ |
| | | if (!Cools.isEmpty(locMast)) { |
| | | return String.valueOf(locMast.getLocNo()); |
| | | } |
| | | return null; |
| | |
| | | return crnError; |
| | | } |
| | | |
| | | public String getCrnError$(){ |
| | | public String getCrnError$() { |
| | | BasCrnErrorService service = SpringUtils.getBean(BasCrnErrorService.class); |
| | | BasCrnError basCrnError = service.selectById(this.crnError); |
| | | if (!Cools.isEmpty(basCrnError)){ |
| | | if (!Cools.isEmpty(basCrnError)) { |
| | | return String.valueOf(basCrnError.getErrName()); |
| | | } |
| | | return null; |
| | |
| | | return modiUser; |
| | | } |
| | | |
| | | public String getModiUser$(){ |
| | | public String getModiUser$() { |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.modiUser); |
| | | if (!Cools.isEmpty(user)){ |
| | | if (!Cools.isEmpty(user)) { |
| | | return String.valueOf(user.getUsername()); |
| | | } |
| | | return null; |
| | |
| | | return modiTime; |
| | | } |
| | | |
| | | public String getModiTime$(){ |
| | | if (Cools.isEmpty(this.modiTime)){ |
| | | public String getModiTime$() { |
| | | if (Cools.isEmpty(this.modiTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.modiTime); |
| | |
| | | return appeUser; |
| | | } |
| | | |
| | | public String getAppeUser$(){ |
| | | public String getAppeUser$() { |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.appeUser); |
| | | if (!Cools.isEmpty(user)){ |
| | | if (!Cools.isEmpty(user)) { |
| | | return String.valueOf(user.getUsername()); |
| | | } |
| | | return null; |
| | |
| | | return appeTime; |
| | | } |
| | | |
| | | public String getAppeTime$(){ |
| | | if (Cools.isEmpty(this.appeTime)){ |
| | | public String getAppeTime$() { |
| | | if (Cools.isEmpty(this.appeTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.appeTime); |
| | |
| | | return devNo; |
| | | } |
| | | |
| | | public String getDevNo$(){ |
| | | public String getDevNo$() { |
| | | BasCrnpService service = SpringUtils.getBean(BasCrnpService.class); |
| | | BasCrnp basCrnp = service.selectById(this.devNo); |
| | | if (!Cools.isEmpty(basCrnp)){ |
| | | if (!Cools.isEmpty(basCrnp)) { |
| | | return String.valueOf(basCrnp.getCrnNo()); |
| | | } |
| | | return null; |
| | |
| | | return wrkTime; |
| | | } |
| | | |
| | | public String getWrkTime$(){ |
| | | if (Cools.isEmpty(this.wrkTime)){ |
| | | public String getWrkTime$() { |
| | | if (Cools.isEmpty(this.wrkTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.wrkTime); |
| | |
| | | /** |
| | | * ID |
| | | */ |
| | | @ApiModelProperty(value= "ID") |
| | | @ApiModelProperty(value = "ID") |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Long id; |
| | | |
| | | /** |
| | | * 编号 |
| | | */ |
| | | @ApiModelProperty(value= "编号") |
| | | @ApiModelProperty(value = "编号") |
| | | private String uuid; |
| | | |
| | | /** |
| | | * 名称 |
| | | */ |
| | | @ApiModelProperty(value= "名称") |
| | | @ApiModelProperty(value = "名称") |
| | | private String name; |
| | | |
| | | /** |
| | | * 父级 |
| | | */ |
| | | @ApiModelProperty(value= "父级") |
| | | @ApiModelProperty(value = "父级") |
| | | @TableField("parent_id") |
| | | private Long parentId; |
| | | |
| | | /** |
| | | * 父级名称 |
| | | */ |
| | | @ApiModelProperty(value= "父级名称") |
| | | @ApiModelProperty(value = "父级名称") |
| | | @TableField("parent_name") |
| | | private String parentName; |
| | | |
| | | /** |
| | | * 关联路径 |
| | | */ |
| | | @ApiModelProperty(value= "关联路径") |
| | | @ApiModelProperty(value = "关联路径") |
| | | private String path; |
| | | |
| | | /** |
| | | * 关联路径名 |
| | | */ |
| | | @ApiModelProperty(value= "关联路径名") |
| | | @ApiModelProperty(value = "关联路径名") |
| | | @TableField("path_name") |
| | | private String pathName; |
| | | |
| | | /** |
| | | * 类型 1: 盒装 2: 袋装 0: 其他 |
| | | */ |
| | | @ApiModelProperty(value= "类型 1: 盒装 2: 袋装 0: 其他 ") |
| | | @ApiModelProperty(value = "类型 1: 盒装 2: 袋装 0: 其他 ") |
| | | private Integer type; |
| | | |
| | | /** |
| | | * 负责人 |
| | | */ |
| | | @ApiModelProperty(value= "负责人") |
| | | @ApiModelProperty(value = "负责人") |
| | | private String leading; |
| | | |
| | | /** |
| | | * 图片 |
| | | */ |
| | | @ApiModelProperty(value= "图片") |
| | | @ApiModelProperty(value = "图片") |
| | | private String img; |
| | | |
| | | /** |
| | | * 简要描述 |
| | | */ |
| | | @ApiModelProperty(value= "简要描述") |
| | | @ApiModelProperty(value = "简要描述") |
| | | private String brief; |
| | | |
| | | /** |
| | | * 数量 |
| | | */ |
| | | @ApiModelProperty(value= "数量") |
| | | @ApiModelProperty(value = "数量") |
| | | private Integer count; |
| | | |
| | | /** |
| | | * 等级 |
| | | */ |
| | | @ApiModelProperty(value= "等级") |
| | | @ApiModelProperty(value = "等级") |
| | | private Integer level; |
| | | |
| | | /** |
| | | * 排序 |
| | | */ |
| | | @ApiModelProperty(value= "排序") |
| | | @ApiModelProperty(value = "排序") |
| | | private Integer sort; |
| | | |
| | | /** |
| | | * 状态 1: 正常 0: 禁用 |
| | | */ |
| | | @ApiModelProperty(value= "状态 1: 正常 0: 禁用 ") |
| | | @ApiModelProperty(value = "状态 1: 正常 0: 禁用 ") |
| | | private Integer status; |
| | | |
| | | /** |
| | | * 添加时间 |
| | | */ |
| | | @ApiModelProperty(value= "添加时间") |
| | | @ApiModelProperty(value = "添加时间") |
| | | @TableField("create_time") |
| | | private Date createTime; |
| | | |
| | | /** |
| | | * 添加人员 |
| | | */ |
| | | @ApiModelProperty(value= "添加人员") |
| | | @ApiModelProperty(value = "添加人员") |
| | | @TableField("create_by") |
| | | private Long createBy; |
| | | |
| | | /** |
| | | * 修改时间 |
| | | */ |
| | | @ApiModelProperty(value= "修改时间") |
| | | @ApiModelProperty(value = "修改时间") |
| | | @TableField("update_time") |
| | | private Date updateTime; |
| | | |
| | | /** |
| | | * 修改人员 |
| | | */ |
| | | @ApiModelProperty(value= "修改人员") |
| | | @ApiModelProperty(value = "修改人员") |
| | | @TableField("update_by") |
| | | private Long updateBy; |
| | | |
| | | /** |
| | | * 备注 |
| | | */ |
| | | @ApiModelProperty(value= "备注") |
| | | @ApiModelProperty(value = "备注") |
| | | private String memo; |
| | | |
| | | public Tag() {} |
| | | public Tag() { |
| | | } |
| | | |
| | | public Tag(String uuid,String name,Long parentId,String parentName,String path,String pathName,Integer type,String leading,String img,String brief,Integer count,Integer level,Integer sort,Integer status,Date createTime,Long createBy,Date updateTime,Long updateBy,String memo) { |
| | | public Tag(String uuid, String name, Long parentId, String parentName, String path, String pathName, Integer type, String leading, String img, String brief, Integer count, Integer level, Integer sort, Integer status, Date createTime, Long createBy, Date updateTime, Long updateBy, String memo) { |
| | | this.uuid = uuid; |
| | | this.name = name; |
| | | this.parentId = parentId; |
| | |
| | | return type; |
| | | } |
| | | |
| | | public String getType$(){ |
| | | if (null == this.type){ return null; } |
| | | switch (this.type){ |
| | | public String getType$() { |
| | | if (null == this.type) { |
| | | return null; |
| | | } |
| | | switch (this.type) { |
| | | case 1: |
| | | return "盒装"; |
| | | case 2: |
| | |
| | | return status; |
| | | } |
| | | |
| | | public String getStatus$(){ |
| | | if (null == this.status){ return null; } |
| | | switch (this.status){ |
| | | public String getStatus$() { |
| | | if (null == this.status) { |
| | | return null; |
| | | } |
| | | switch (this.status) { |
| | | case 1: |
| | | return "正常"; |
| | | case 0: |
| | |
| | | return createTime; |
| | | } |
| | | |
| | | public String getCreateTime$(){ |
| | | if (Cools.isEmpty(this.createTime)){ |
| | | public String getCreateTime$() { |
| | | if (Cools.isEmpty(this.createTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.createTime); |
| | |
| | | return createBy; |
| | | } |
| | | |
| | | public String getCreateBy$(){ |
| | | public String getCreateBy$() { |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.createBy); |
| | | if (!Cools.isEmpty(user)){ |
| | | if (!Cools.isEmpty(user)) { |
| | | return String.valueOf(user.getNickname()); |
| | | } |
| | | return null; |
| | |
| | | return updateTime; |
| | | } |
| | | |
| | | public String getUpdateTime$(){ |
| | | if (Cools.isEmpty(this.updateTime)){ |
| | | public String getUpdateTime$() { |
| | | if (Cools.isEmpty(this.updateTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.updateTime); |
| | |
| | | return updateBy; |
| | | } |
| | | |
| | | public String getUpdateBy$(){ |
| | | public String getUpdateBy$() { |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.updateBy); |
| | | if (!Cools.isEmpty(user)){ |
| | | if (!Cools.isEmpty(user)) { |
| | | return String.valueOf(user.getNickname()); |
| | | } |
| | | return null; |
| | |
| | | import com.baomidou.mybatisplus.enums.IdType; |
| | | import com.core.common.Cools; |
| | | import com.core.common.SpringUtils; |
| | | import com.zy.system.service.UserService; |
| | | import com.zy.system.entity.User; |
| | | import com.zy.system.service.UserService; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | |
| | | import java.io.Serializable; |
| | |
| | | /** |
| | | * 编号 |
| | | */ |
| | | @ApiModelProperty(value= "编号") |
| | | @ApiModelProperty(value = "编号") |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Long id; |
| | | |
| | | /** |
| | | * 序列号 |
| | | */ |
| | | @ApiModelProperty(value= "序列号") |
| | | @ApiModelProperty(value = "序列号") |
| | | @TableField("tray_no") |
| | | private String trayNo; |
| | | |
| | | /** |
| | | * 起始 |
| | | */ |
| | | @ApiModelProperty(value= "起始") |
| | | @ApiModelProperty(value = "起始") |
| | | private String start; |
| | | |
| | | /** |
| | | * 终止 |
| | | */ |
| | | @ApiModelProperty(value= "终止") |
| | | @ApiModelProperty(value = "终止") |
| | | private String finish; |
| | | |
| | | /** |
| | | * 备注 |
| | | */ |
| | | @ApiModelProperty(value= "备注") |
| | | @ApiModelProperty(value = "备注") |
| | | private String memo; |
| | | |
| | | /** |
| | | * 修改时间 |
| | | */ |
| | | @ApiModelProperty(value= "修改时间") |
| | | @ApiModelProperty(value = "修改时间") |
| | | @TableField("modi_time") |
| | | private Date modiTime; |
| | | |
| | | /** |
| | | * 修改人员 |
| | | */ |
| | | @ApiModelProperty(value= "修改人员") |
| | | @ApiModelProperty(value = "修改人员") |
| | | @TableField("modi_user") |
| | | private Long modiUser; |
| | | |
| | | /** |
| | | * 添加时间 |
| | | */ |
| | | @ApiModelProperty(value= "添加时间") |
| | | @ApiModelProperty(value = "添加时间") |
| | | @TableField("appe_time") |
| | | private Date appeTime; |
| | | |
| | | /** |
| | | * 添加人员 |
| | | */ |
| | | @ApiModelProperty(value= "添加人员") |
| | | @ApiModelProperty(value = "添加人员") |
| | | @TableField("appe_user") |
| | | private Long appeUser; |
| | | |
| | | public TrayCode() {} |
| | | public TrayCode() { |
| | | } |
| | | |
| | | public TrayCode(String trayNo,String start,String finish,String memo,Date modiTime,Long modiUser,Date appeTime,Long appeUser) { |
| | | public TrayCode(String trayNo, String start, String finish, String memo, Date modiTime, Long modiUser, Date appeTime, Long appeUser) { |
| | | this.trayNo = trayNo; |
| | | this.start = start; |
| | | this.finish = finish; |
| | |
| | | return modiTime; |
| | | } |
| | | |
| | | public String getModiTime$(){ |
| | | if (Cools.isEmpty(this.modiTime)){ |
| | | public String getModiTime$() { |
| | | if (Cools.isEmpty(this.modiTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.modiTime); |
| | |
| | | return modiUser; |
| | | } |
| | | |
| | | public String getModiUser$(){ |
| | | public String getModiUser$() { |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.modiUser); |
| | | if (!Cools.isEmpty(user)){ |
| | | if (!Cools.isEmpty(user)) { |
| | | return String.valueOf(user.getUsername()); |
| | | } |
| | | return null; |
| | |
| | | return appeTime; |
| | | } |
| | | |
| | | public String getAppeTime$(){ |
| | | if (Cools.isEmpty(this.appeTime)){ |
| | | public String getAppeTime$() { |
| | | if (Cools.isEmpty(this.appeTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.appeTime); |
| | |
| | | return appeUser; |
| | | } |
| | | |
| | | public String getAppeUser$(){ |
| | | public String getAppeUser$() { |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.appeUser); |
| | | if (!Cools.isEmpty(user)){ |
| | | if (!Cools.isEmpty(user)) { |
| | | return String.valueOf(user.getUsername()); |
| | | } |
| | | return null; |
| | |
| | | |
| | | /** |
| | | * 日出入库次数统计 |
| | | * |
| | | * @author admin |
| | | * @date 2018年11月24日 |
| | | */ |
| | | public class ViewInOutBean { |
| | | private String ymd; |
| | | private String ymd; |
| | | private String source_sta_no; |
| | | private Long sto_qty; |
| | | private Long ret_qty; |
| | |
| | | private int pageSize; |
| | | private String begin_date; //查询开始日期 |
| | | private String end_date; //查询截止日期 |
| | | |
| | | public String getYmd() { |
| | | return ymd; |
| | | } |
| | | public void setYmd(String ymd) { |
| | | this.ymd = ymd; |
| | | } |
| | | public String getSource_sta_no() { |
| | | return source_sta_no; |
| | | } |
| | | public void setSource_sta_no(String source_sta_no) { |
| | | this.source_sta_no = source_sta_no; |
| | | } |
| | | public Long getSto_qty() { |
| | | return sto_qty; |
| | | } |
| | | public void setSto_qty(Long sto_qty) { |
| | | this.sto_qty = sto_qty; |
| | | } |
| | | public Long getRet_qty() { |
| | | return ret_qty; |
| | | } |
| | | public void setRet_qty(Long ret_qty) { |
| | | this.ret_qty = ret_qty; |
| | | } |
| | | public Long getTotal_qty() { |
| | | return total_qty; |
| | | } |
| | | public void setTotal_qty(Long total_qty) { |
| | | this.total_qty = total_qty; |
| | | } |
| | | public int getPageNumber() { |
| | | return pageNumber; |
| | | } |
| | | public void setPageNumber(int pageNumber) { |
| | | this.pageNumber = pageNumber; |
| | | } |
| | | public int getPageSize() { |
| | | return pageSize; |
| | | } |
| | | public void setPageSize(int pageSize) { |
| | | this.pageSize = pageSize; |
| | | } |
| | | public String getBegin_date() { |
| | | return begin_date; |
| | | } |
| | | public void setBegin_date(String begin_date) { |
| | | this.begin_date = begin_date; |
| | | } |
| | | public String getEnd_date() { |
| | | return end_date; |
| | | } |
| | | public void setEnd_date(String end_date) { |
| | | this.end_date = end_date; |
| | | } |
| | | |
| | | public String getYmd() { |
| | | return ymd; |
| | | } |
| | | |
| | | public void setYmd(String ymd) { |
| | | this.ymd = ymd; |
| | | } |
| | | |
| | | public String getSource_sta_no() { |
| | | return source_sta_no; |
| | | } |
| | | |
| | | public void setSource_sta_no(String source_sta_no) { |
| | | this.source_sta_no = source_sta_no; |
| | | } |
| | | |
| | | public Long getSto_qty() { |
| | | return sto_qty; |
| | | } |
| | | |
| | | public void setSto_qty(Long sto_qty) { |
| | | this.sto_qty = sto_qty; |
| | | } |
| | | |
| | | public Long getRet_qty() { |
| | | return ret_qty; |
| | | } |
| | | |
| | | public void setRet_qty(Long ret_qty) { |
| | | this.ret_qty = ret_qty; |
| | | } |
| | | |
| | | public Long getTotal_qty() { |
| | | return total_qty; |
| | | } |
| | | |
| | | public void setTotal_qty(Long total_qty) { |
| | | this.total_qty = total_qty; |
| | | } |
| | | |
| | | public int getPageNumber() { |
| | | return pageNumber; |
| | | } |
| | | |
| | | public void setPageNumber(int pageNumber) { |
| | | this.pageNumber = pageNumber; |
| | | } |
| | | |
| | | public int getPageSize() { |
| | | return pageSize; |
| | | } |
| | | |
| | | public void setPageSize(int pageSize) { |
| | | this.pageSize = pageSize; |
| | | } |
| | | |
| | | public String getBegin_date() { |
| | | return begin_date; |
| | | } |
| | | |
| | | public void setBegin_date(String begin_date) { |
| | | this.begin_date = begin_date; |
| | | } |
| | | |
| | | public String getEnd_date() { |
| | | return end_date; |
| | | } |
| | | |
| | | public void setEnd_date(String end_date) { |
| | | this.end_date = end_date; |
| | | } |
| | | } |
| | |
| | | |
| | | public void setLocSts(String locSts) { |
| | | this.locSts = locSts; |
| | | switch (locSts){ |
| | | switch (locSts) { |
| | | case "D": |
| | | this.bgc = "#00B271"; |
| | | this.color = "#fff"; |
| | |
| | | |
| | | /** |
| | | * 库存滞留时间实体类 |
| | | * |
| | | * @author admin |
| | | * @date 2018年11月23日 |
| | | */ |
| | | @Data |
| | | public class ViewStayTimeBean { |
| | | |
| | | private int pageNumber; |
| | | private int pageSize; |
| | | private int pageNumber; |
| | | private int pageSize; |
| | | |
| | | private int stay_time; |
| | | private int stay_time; |
| | | |
| | | private String begin_date; |
| | | private String end_date; |
| | | private String begin_date; |
| | | private String end_date; |
| | | |
| | | private Integer row; |
| | | private Integer row; |
| | | |
| | | @ApiModelProperty(value= "库位号") |
| | | private String loc_no; |
| | | @ApiModelProperty(value = "库位号") |
| | | private String loc_no; |
| | | |
| | | @ApiModelProperty(value= "托盘条码") |
| | | private String zpallet; |
| | | @ApiModelProperty(value = "托盘条码") |
| | | private String zpallet; |
| | | |
| | | @ApiModelProperty(value= "数量") |
| | | private Double anfme; |
| | | @ApiModelProperty(value = "数量") |
| | | private Double anfme; |
| | | |
| | | @ApiModelProperty(value= "商品编号") |
| | | private String matnr; |
| | | @ApiModelProperty(value = "商品编号") |
| | | private String matnr; |
| | | |
| | | @ApiModelProperty(value= "商品名称") |
| | | private String maktx; |
| | | @ApiModelProperty(value = "商品名称") |
| | | private String maktx; |
| | | |
| | | @ApiModelProperty(value= "批号") |
| | | private String batch; |
| | | @ApiModelProperty(value = "批号") |
| | | private String batch; |
| | | |
| | | @ApiModelProperty(value= "单据编号") |
| | | @TableField("order_no") |
| | | private String orderNo; |
| | | @ApiModelProperty(value = "单据编号") |
| | | @TableField("order_no") |
| | | private String orderNo; |
| | | |
| | | @ApiModelProperty(value= "规格") |
| | | private String specs; |
| | | @ApiModelProperty(value = "规格") |
| | | private String specs; |
| | | |
| | | @ApiModelProperty(value= "型号") |
| | | private String model; |
| | | @ApiModelProperty(value = "型号") |
| | | private String model; |
| | | |
| | | @ApiModelProperty(value= "颜色") |
| | | private String color; |
| | | @ApiModelProperty(value = "颜色") |
| | | private String color; |
| | | |
| | | @ApiModelProperty(value= "品牌") |
| | | private String brand; |
| | | @ApiModelProperty(value = "品牌") |
| | | private String brand; |
| | | |
| | | @ApiModelProperty(value= "单位") |
| | | private String unit; |
| | | @ApiModelProperty(value = "单位") |
| | | private String unit; |
| | | |
| | | @ApiModelProperty(value= "单价") |
| | | private Double price; |
| | | @ApiModelProperty(value = "单价") |
| | | private Double price; |
| | | |
| | | @ApiModelProperty(value= "sku") |
| | | private String sku; |
| | | @ApiModelProperty(value = "sku") |
| | | private String sku; |
| | | |
| | | @ApiModelProperty(value= "单位量") |
| | | private Double units; |
| | | @ApiModelProperty(value = "单位量") |
| | | private Double units; |
| | | |
| | | @ApiModelProperty(value= "条码") |
| | | private String barcode; |
| | | @ApiModelProperty(value = "条码") |
| | | private String barcode; |
| | | |
| | | @ApiModelProperty(value= "产地") |
| | | private String origin; |
| | | @ApiModelProperty(value = "产地") |
| | | private String origin; |
| | | |
| | | @ApiModelProperty(value= "厂家") |
| | | private String manu; |
| | | @ApiModelProperty(value = "厂家") |
| | | private String manu; |
| | | |
| | | @ApiModelProperty(value= "生产日期") |
| | | private String manu_date; |
| | | @ApiModelProperty(value = "生产日期") |
| | | private String manu_date; |
| | | |
| | | @ApiModelProperty(value= "品项数") |
| | | private String item_num; |
| | | @ApiModelProperty(value = "品项数") |
| | | private String item_num; |
| | | |
| | | @ApiModelProperty(value= "安全库存量") |
| | | private Double safe_qty; |
| | | @ApiModelProperty(value = "安全库存量") |
| | | private Double safe_qty; |
| | | |
| | | @ApiModelProperty(value= "重量") |
| | | private Double weight; |
| | | @ApiModelProperty(value = "重量") |
| | | private Double weight; |
| | | |
| | | @ApiModelProperty(value= "长度") |
| | | private Double length; |
| | | @ApiModelProperty(value = "长度") |
| | | private Double length; |
| | | |
| | | @ApiModelProperty(value= "体积") |
| | | private Double volume; |
| | | @ApiModelProperty(value = "体积") |
| | | private Double volume; |
| | | |
| | | @ApiModelProperty(value= "三方编码") |
| | | private String three_code; |
| | | @ApiModelProperty(value = "三方编码") |
| | | private String three_code; |
| | | |
| | | @ApiModelProperty(value= "供应商") |
| | | private String supp; |
| | | @ApiModelProperty(value = "供应商") |
| | | private String supp; |
| | | |
| | | @ApiModelProperty(value= "供应商编码") |
| | | private String supp_code; |
| | | @ApiModelProperty(value = "供应商编码") |
| | | private String supp_code; |
| | | |
| | | @ApiModelProperty(value= "是否批次 1: 是 0: 否 ") |
| | | private Integer be_batch; |
| | | @ApiModelProperty(value = "是否批次 1: 是 0: 否 ") |
| | | private Integer be_batch; |
| | | |
| | | @ApiModelProperty(value= "保质期") |
| | | private String dead_time; |
| | | @ApiModelProperty(value = "保质期") |
| | | private String dead_time; |
| | | |
| | | @ApiModelProperty(value= "预警天数") |
| | | private Integer dead_warn; |
| | | @ApiModelProperty(value = "预警天数") |
| | | private Integer dead_warn; |
| | | |
| | | @ApiModelProperty(value= "制购 1: 制造 2: 采购 3: 外协 ") |
| | | private Integer source; |
| | | @ApiModelProperty(value = "制购 1: 制造 2: 采购 3: 外协 ") |
| | | private Integer source; |
| | | |
| | | @ApiModelProperty(value= "要求检验 1: 是 0: 否 ") |
| | | private Integer inspect; |
| | | @ApiModelProperty(value = "要求检验 1: 是 0: 否 ") |
| | | private Integer inspect; |
| | | |
| | | @ApiModelProperty(value= "危险品 1: 是 0: 否 ") |
| | | private Integer danger; |
| | | @ApiModelProperty(value = "危险品 1: 是 0: 否 ") |
| | | private Integer danger; |
| | | |
| | | @ApiModelProperty(value= "修改人员") |
| | | private Long modi_user; |
| | | @ApiModelProperty(value = "修改人员") |
| | | private Long modi_user; |
| | | |
| | | @ApiModelProperty(value= "修改时间") |
| | | private Date modi_time; |
| | | @ApiModelProperty(value = "修改时间") |
| | | private Date modi_time; |
| | | |
| | | @ApiModelProperty(value= "创建者") |
| | | private Long appe_user; |
| | | @ApiModelProperty(value = "创建者") |
| | | private Long appe_user; |
| | | |
| | | @ApiModelProperty(value= "添加时间") |
| | | private Date appe_time; |
| | | @ApiModelProperty(value = "添加时间") |
| | | private Date appe_time; |
| | | |
| | | @ApiModelProperty(value= "备注") |
| | | private String memo; |
| | | @ApiModelProperty(value = "备注") |
| | | private String memo; |
| | | |
| | | public String getModiUser$(){ |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.modi_user); |
| | | if (!Cools.isEmpty(user)){ |
| | | return String.valueOf(user.getUsername()); |
| | | } |
| | | return null; |
| | | } |
| | | public String getModiUser$() { |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.modi_user); |
| | | if (!Cools.isEmpty(user)) { |
| | | return String.valueOf(user.getUsername()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public String getModiTime$(){ |
| | | if (Cools.isEmpty(this.modi_time)){ |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.modi_time); |
| | | } |
| | | public String getModiTime$() { |
| | | if (Cools.isEmpty(this.modi_time)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.modi_time); |
| | | } |
| | | |
| | | public String getAppeUser$(){ |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.appe_user); |
| | | if (!Cools.isEmpty(user)){ |
| | | return String.valueOf(user.getUsername()); |
| | | } |
| | | return null; |
| | | } |
| | | public String getAppeUser$() { |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.appe_user); |
| | | if (!Cools.isEmpty(user)) { |
| | | return String.valueOf(user.getUsername()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public String getAppeTime$(){ |
| | | if (Cools.isEmpty(this.appe_time)){ |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.appe_time); |
| | | } |
| | | public String getAppeTime$() { |
| | | if (Cools.isEmpty(this.appe_time)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.appe_time); |
| | | } |
| | | |
| | | } |
| | |
| | | |
| | | /** |
| | | * 库位使用率视图实体类 |
| | | * |
| | | * @author admin |
| | | * @date 2018年11月23日 |
| | | */ |
| | | public class ViewStockUseBean { |
| | | private String row1; //钢架号 |
| | | private Long total_qty; //库位总数 |
| | | private Long full_qty; //在库数量 |
| | | private Long null_qty; //空库位 |
| | | private String row1; //钢架号 |
| | | private Long total_qty; //库位总数 |
| | | private Long full_qty; //在库数量 |
| | | private Long null_qty; //空库位 |
| | | private Long forbid_qty; //禁用库位 |
| | | private Long empty_qty; //空容器 |
| | | private Long empty_qty; //空容器 |
| | | private String full_rate; //在库率 |
| | | private String occ_rate; //使用率 |
| | | private int pageNumber; |
| | | private int pageSize; |
| | | |
| | | public String getRow1() { |
| | | return row1; |
| | | } |
| | | public void setRow1(String row1) { |
| | | this.row1 = row1; |
| | | } |
| | | public Long getTotal_qty() { |
| | | return total_qty; |
| | | } |
| | | public void setTotal_qty(Long total_qty) { |
| | | this.total_qty = total_qty; |
| | | } |
| | | public Long getFull_qty() { |
| | | return full_qty; |
| | | } |
| | | public void setFull_qty(Long full_qty) { |
| | | this.full_qty = full_qty; |
| | | } |
| | | public Long getNull_qty() { |
| | | return null_qty; |
| | | } |
| | | public void setNull_qty(Long null_qty) { |
| | | this.null_qty = null_qty; |
| | | } |
| | | public Long getForbid_qty() { |
| | | return forbid_qty; |
| | | } |
| | | public void setForbid_qty(Long forbid_qty) { |
| | | this.forbid_qty = forbid_qty; |
| | | } |
| | | public Long getEmpty_qty() { |
| | | return empty_qty; |
| | | } |
| | | public void setEmpty_qty(Long empty_qty) { |
| | | this.empty_qty = empty_qty; |
| | | } |
| | | public String getFull_rate() { |
| | | return full_rate; |
| | | } |
| | | public void setFull_rate(String full_rate) { |
| | | this.full_rate = full_rate; |
| | | } |
| | | public String getOcc_rate() { |
| | | return occ_rate; |
| | | } |
| | | public void setOcc_rate(String occ_rate) { |
| | | this.occ_rate = occ_rate; |
| | | } |
| | | public int getPageNumber() { |
| | | return pageNumber; |
| | | } |
| | | public void setPageNumber(int pageNumber) { |
| | | this.pageNumber = pageNumber; |
| | | } |
| | | public int getPageSize() { |
| | | return pageSize; |
| | | } |
| | | public void setPageSize(int pageSize) { |
| | | this.pageSize = pageSize; |
| | | } |
| | | |
| | | public String getRow1() { |
| | | return row1; |
| | | } |
| | | |
| | | public void setRow1(String row1) { |
| | | this.row1 = row1; |
| | | } |
| | | |
| | | public Long getTotal_qty() { |
| | | return total_qty; |
| | | } |
| | | |
| | | public void setTotal_qty(Long total_qty) { |
| | | this.total_qty = total_qty; |
| | | } |
| | | |
| | | public Long getFull_qty() { |
| | | return full_qty; |
| | | } |
| | | |
| | | public void setFull_qty(Long full_qty) { |
| | | this.full_qty = full_qty; |
| | | } |
| | | |
| | | public Long getNull_qty() { |
| | | return null_qty; |
| | | } |
| | | |
| | | public void setNull_qty(Long null_qty) { |
| | | this.null_qty = null_qty; |
| | | } |
| | | |
| | | public Long getForbid_qty() { |
| | | return forbid_qty; |
| | | } |
| | | |
| | | public void setForbid_qty(Long forbid_qty) { |
| | | this.forbid_qty = forbid_qty; |
| | | } |
| | | |
| | | public Long getEmpty_qty() { |
| | | return empty_qty; |
| | | } |
| | | |
| | | public void setEmpty_qty(Long empty_qty) { |
| | | this.empty_qty = empty_qty; |
| | | } |
| | | |
| | | public String getFull_rate() { |
| | | return full_rate; |
| | | } |
| | | |
| | | public void setFull_rate(String full_rate) { |
| | | this.full_rate = full_rate; |
| | | } |
| | | |
| | | public String getOcc_rate() { |
| | | return occ_rate; |
| | | } |
| | | |
| | | public void setOcc_rate(String occ_rate) { |
| | | this.occ_rate = occ_rate; |
| | | } |
| | | |
| | | public int getPageNumber() { |
| | | return pageNumber; |
| | | } |
| | | |
| | | public void setPageNumber(int pageNumber) { |
| | | this.pageNumber = pageNumber; |
| | | } |
| | | |
| | | public int getPageSize() { |
| | | return pageSize; |
| | | } |
| | | |
| | | public void setPageSize(int pageSize) { |
| | | this.pageSize = pageSize; |
| | | } |
| | | |
| | | } |
| | |
| | | |
| | | /** |
| | | * 入库明细统计 |
| | | * |
| | | * @author admin |
| | | * @date 2018年11月26日 |
| | | */ |
| | |
| | | public class ViewWorkInBean { |
| | | |
| | | |
| | | private int pageNumber; |
| | | private int pageSize; |
| | | private int pageNumber; |
| | | private int pageSize; |
| | | |
| | | private int stay_time; |
| | | private int stay_time; |
| | | |
| | | private String begin_date; |
| | | private String end_date; |
| | | private String query_date; |
| | | private String begin_date; |
| | | private String end_date; |
| | | private String query_date; |
| | | |
| | | private Integer row; |
| | | private Integer row; |
| | | |
| | | private String crn_str_time; |
| | | private String crn_end_time; |
| | | private String crn_str_time; |
| | | private String crn_end_time; |
| | | |
| | | @ApiModelProperty(value= "工作号") |
| | | private Integer wrk_no; |
| | | @ApiModelProperty(value = "工作号") |
| | | private Integer wrk_no; |
| | | |
| | | @ApiModelProperty(value= "工作时间") |
| | | private Date io_time; |
| | | @ApiModelProperty(value = "工作时间") |
| | | private Date io_time; |
| | | |
| | | @ApiModelProperty(value= "库位号") |
| | | private String loc_no; |
| | | @ApiModelProperty(value = "库位号") |
| | | private String loc_no; |
| | | |
| | | @ApiModelProperty(value= "托盘条码") |
| | | private String zpallet; |
| | | @ApiModelProperty(value = "托盘条码") |
| | | private String zpallet; |
| | | |
| | | @ApiModelProperty(value= "数量") |
| | | private Double anfme; |
| | | @ApiModelProperty(value = "数量") |
| | | private Double anfme; |
| | | |
| | | @ApiModelProperty(value= "商品编号") |
| | | private String matnr; |
| | | @ApiModelProperty(value = "商品编号") |
| | | private String matnr; |
| | | |
| | | @ApiModelProperty(value= "商品名称") |
| | | private String maktx; |
| | | @ApiModelProperty(value = "商品名称") |
| | | private String maktx; |
| | | |
| | | @ApiModelProperty(value= "批号") |
| | | private String batch; |
| | | @ApiModelProperty(value = "批号") |
| | | private String batch; |
| | | |
| | | @ApiModelProperty(value= "单据编号") |
| | | @TableField("order_no") |
| | | private String orderNo; |
| | | @ApiModelProperty(value = "单据编号") |
| | | @TableField("order_no") |
| | | private String orderNo; |
| | | |
| | | @ApiModelProperty(value= "规格") |
| | | private String specs; |
| | | @ApiModelProperty(value = "规格") |
| | | private String specs; |
| | | |
| | | @ApiModelProperty(value= "型号") |
| | | private String model; |
| | | @ApiModelProperty(value = "型号") |
| | | private String model; |
| | | |
| | | @ApiModelProperty(value= "颜色") |
| | | private String color; |
| | | @ApiModelProperty(value = "颜色") |
| | | private String color; |
| | | |
| | | @ApiModelProperty(value= "品牌") |
| | | private String brand; |
| | | @ApiModelProperty(value = "品牌") |
| | | private String brand; |
| | | |
| | | @ApiModelProperty(value= "单位") |
| | | private String unit; |
| | | @ApiModelProperty(value = "单位") |
| | | private String unit; |
| | | |
| | | @ApiModelProperty(value= "单价") |
| | | private Double price; |
| | | @ApiModelProperty(value = "单价") |
| | | private Double price; |
| | | |
| | | @ApiModelProperty(value= "sku") |
| | | private String sku; |
| | | @ApiModelProperty(value = "sku") |
| | | private String sku; |
| | | |
| | | @ApiModelProperty(value= "单位量") |
| | | private Double units; |
| | | @ApiModelProperty(value = "单位量") |
| | | private Double units; |
| | | |
| | | @ApiModelProperty(value= "条码") |
| | | private String barcode; |
| | | @ApiModelProperty(value = "条码") |
| | | private String barcode; |
| | | |
| | | @ApiModelProperty(value= "产地") |
| | | private String origin; |
| | | @ApiModelProperty(value = "产地") |
| | | private String origin; |
| | | |
| | | @ApiModelProperty(value= "厂家") |
| | | private String manu; |
| | | @ApiModelProperty(value = "厂家") |
| | | private String manu; |
| | | |
| | | @ApiModelProperty(value= "生产日期") |
| | | private String manu_date; |
| | | @ApiModelProperty(value = "生产日期") |
| | | private String manu_date; |
| | | |
| | | @ApiModelProperty(value= "品项数") |
| | | private String item_num; |
| | | @ApiModelProperty(value = "品项数") |
| | | private String item_num; |
| | | |
| | | @ApiModelProperty(value= "安全库存量") |
| | | private Double safe_qty; |
| | | @ApiModelProperty(value = "安全库存量") |
| | | private Double safe_qty; |
| | | |
| | | @ApiModelProperty(value= "重量") |
| | | private Double weight; |
| | | @ApiModelProperty(value = "重量") |
| | | private Double weight; |
| | | |
| | | @ApiModelProperty(value= "长度") |
| | | private Double length; |
| | | @ApiModelProperty(value = "长度") |
| | | private Double length; |
| | | |
| | | @ApiModelProperty(value= "体积") |
| | | private Double volume; |
| | | @ApiModelProperty(value = "体积") |
| | | private Double volume; |
| | | |
| | | @ApiModelProperty(value= "三方编码") |
| | | private String three_code; |
| | | @ApiModelProperty(value = "三方编码") |
| | | private String three_code; |
| | | |
| | | @ApiModelProperty(value= "供应商") |
| | | private String supp; |
| | | @ApiModelProperty(value = "供应商") |
| | | private String supp; |
| | | |
| | | @ApiModelProperty(value= "供应商编码") |
| | | private String supp_code; |
| | | @ApiModelProperty(value = "供应商编码") |
| | | private String supp_code; |
| | | |
| | | @ApiModelProperty(value= "是否批次 1: 是 0: 否 ") |
| | | private Integer be_batch; |
| | | @ApiModelProperty(value = "是否批次 1: 是 0: 否 ") |
| | | private Integer be_batch; |
| | | |
| | | @ApiModelProperty(value= "保质期") |
| | | private String dead_time; |
| | | @ApiModelProperty(value = "保质期") |
| | | private String dead_time; |
| | | |
| | | @ApiModelProperty(value= "预警天数") |
| | | private Integer dead_warn; |
| | | @ApiModelProperty(value = "预警天数") |
| | | private Integer dead_warn; |
| | | |
| | | @ApiModelProperty(value= "制购 1: 制造 2: 采购 3: 外协 ") |
| | | private Integer source; |
| | | @ApiModelProperty(value = "制购 1: 制造 2: 采购 3: 外协 ") |
| | | private Integer source; |
| | | |
| | | @ApiModelProperty(value= "要求检验 1: 是 0: 否 ") |
| | | private Integer inspect; |
| | | @ApiModelProperty(value = "要求检验 1: 是 0: 否 ") |
| | | private Integer inspect; |
| | | |
| | | @ApiModelProperty(value= "危险品 1: 是 0: 否 ") |
| | | private Integer danger; |
| | | @ApiModelProperty(value = "危险品 1: 是 0: 否 ") |
| | | private Integer danger; |
| | | |
| | | @ApiModelProperty(value= "修改人员") |
| | | private Long modi_user; |
| | | @ApiModelProperty(value = "修改人员") |
| | | private Long modi_user; |
| | | |
| | | @ApiModelProperty(value= "修改时间") |
| | | private Object modi_time; |
| | | @ApiModelProperty(value = "修改时间") |
| | | private Object modi_time; |
| | | |
| | | @ApiModelProperty(value= "创建者") |
| | | private Long appe_user; |
| | | @ApiModelProperty(value = "创建者") |
| | | private Long appe_user; |
| | | |
| | | @ApiModelProperty(value= "添加时间") |
| | | private Object appe_time; |
| | | @ApiModelProperty(value = "添加时间") |
| | | private Object appe_time; |
| | | |
| | | @ApiModelProperty(value= "备注") |
| | | private String memo; |
| | | @ApiModelProperty(value = "备注") |
| | | private String memo; |
| | | |
| | | public String getModiUser$(){ |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.modi_user); |
| | | if (!Cools.isEmpty(user)){ |
| | | return String.valueOf(user.getUsername()); |
| | | } |
| | | return null; |
| | | } |
| | | public String getModiUser$() { |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.modi_user); |
| | | if (!Cools.isEmpty(user)) { |
| | | return String.valueOf(user.getUsername()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public String getAppeUser$(){ |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.appe_user); |
| | | if (!Cools.isEmpty(user)){ |
| | | return String.valueOf(user.getUsername()); |
| | | } |
| | | return null; |
| | | } |
| | | public String getAppeUser$() { |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.appe_user); |
| | | if (!Cools.isEmpty(user)) { |
| | | return String.valueOf(user.getUsername()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public String getIoTime$(){ |
| | | if (Cools.isEmpty(this.io_time)){ |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.io_time); |
| | | } |
| | | public String getIoTime$() { |
| | | if (Cools.isEmpty(this.io_time)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.io_time); |
| | | } |
| | | |
| | | public void setQuery_date(String query_date) { |
| | | this.query_date = query_date; |
| | | if (query_date.contains(" - ")) { |
| | | String[] dates = query_date.split(" - "); |
| | | this.begin_date = dates[0]; |
| | | this.end_date = dates[1]; |
| | | public void setQuery_date(String query_date) { |
| | | this.query_date = query_date; |
| | | if (query_date.contains(" - ")) { |
| | | String[] dates = query_date.split(" - "); |
| | | this.begin_date = dates[0]; |
| | | this.end_date = dates[1]; |
| | | |
| | | } |
| | | } |
| | | } |
| | | } |
| | | |
| | | } |
| | |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @ApiModelProperty(value= "托盘条码") |
| | | @ApiModelProperty(value = "托盘条码") |
| | | private String zpallet; |
| | | |
| | | @ApiModelProperty(value= "数量") |
| | | @ApiModelProperty(value = "数量") |
| | | private Double anfme; |
| | | |
| | | @ApiModelProperty(value= "库位号") |
| | | @ApiModelProperty(value = "库位号") |
| | | @TableField("loc_no") |
| | | private String locNo; |
| | | |
| | | @ApiModelProperty(value= "商品编号") |
| | | @ApiModelProperty(value = "商品编号") |
| | | private String matnr; |
| | | |
| | | @ApiModelProperty(value= "商品名称") |
| | | @ApiModelProperty(value = "商品名称") |
| | | private String maktx; |
| | | |
| | | @ApiModelProperty(value= "批号") |
| | | @ApiModelProperty(value = "批号") |
| | | private String batch; |
| | | |
| | | @ApiModelProperty(value= "单据编号") |
| | | @ApiModelProperty(value = "单据编号") |
| | | @TableField("order_no") |
| | | private String orderNo; |
| | | |
| | | @ApiModelProperty(value= "规格") |
| | | @ApiModelProperty(value = "规格") |
| | | private String specs; |
| | | |
| | | @ApiModelProperty(value= "型号") |
| | | @ApiModelProperty(value = "型号") |
| | | private String model; |
| | | |
| | | @ApiModelProperty(value= "颜色") |
| | | @ApiModelProperty(value = "颜色") |
| | | private String color; |
| | | |
| | | @ApiModelProperty(value= "品牌") |
| | | @ApiModelProperty(value = "品牌") |
| | | private String brand; |
| | | |
| | | @ApiModelProperty(value= "单位") |
| | | @ApiModelProperty(value = "单位") |
| | | private String unit; |
| | | |
| | | @ApiModelProperty(value= "单价") |
| | | @ApiModelProperty(value = "单价") |
| | | private Double price; |
| | | |
| | | @ApiModelProperty(value= "sku") |
| | | @ApiModelProperty(value = "sku") |
| | | private String sku; |
| | | |
| | | @ApiModelProperty(value= "单位量") |
| | | @ApiModelProperty(value = "单位量") |
| | | private Double units; |
| | | |
| | | @ApiModelProperty(value= "条码") |
| | | @ApiModelProperty(value = "条码") |
| | | private String barcode; |
| | | |
| | | @ApiModelProperty(value= "产地") |
| | | @ApiModelProperty(value = "产地") |
| | | private String origin; |
| | | |
| | | @ApiModelProperty(value= "厂家") |
| | | @ApiModelProperty(value = "厂家") |
| | | private String manu; |
| | | |
| | | @ApiModelProperty(value= "生产日期") |
| | | @ApiModelProperty(value = "生产日期") |
| | | @TableField("manu_date") |
| | | private String manuDate; |
| | | |
| | | @ApiModelProperty(value= "品项数") |
| | | @ApiModelProperty(value = "品项数") |
| | | @TableField("item_num") |
| | | private String itemNum; |
| | | |
| | | @ApiModelProperty(value= "安全库存量") |
| | | @ApiModelProperty(value = "安全库存量") |
| | | @TableField("safe_qty") |
| | | private Double safeQty; |
| | | |
| | | @ApiModelProperty(value= "重量") |
| | | @ApiModelProperty(value = "重量") |
| | | private Double weight; |
| | | |
| | | @ApiModelProperty(value= "长度") |
| | | @ApiModelProperty(value = "长度") |
| | | private Double length; |
| | | |
| | | @ApiModelProperty(value= "体积") |
| | | @ApiModelProperty(value = "体积") |
| | | private Double volume; |
| | | |
| | | @ApiModelProperty(value= "三方编码") |
| | | @ApiModelProperty(value = "三方编码") |
| | | @TableField("three_code") |
| | | private String threeCode; |
| | | |
| | | @ApiModelProperty(value= "供应商") |
| | | @ApiModelProperty(value = "供应商") |
| | | private String supp; |
| | | |
| | | @ApiModelProperty(value= "供应商编码") |
| | | @ApiModelProperty(value = "供应商编码") |
| | | @TableField("supp_code") |
| | | private String suppCode; |
| | | |
| | | @ApiModelProperty(value= "是否批次 1: 是 0: 否 ") |
| | | @ApiModelProperty(value = "是否批次 1: 是 0: 否 ") |
| | | @TableField("be_batch") |
| | | private Integer beBatch; |
| | | |
| | | @ApiModelProperty(value= "保质期") |
| | | @ApiModelProperty(value = "保质期") |
| | | @TableField("dead_time") |
| | | private String deadTime; |
| | | |
| | | @ApiModelProperty(value= "预警天数") |
| | | @ApiModelProperty(value = "预警天数") |
| | | @TableField("dead_warn") |
| | | private Integer deadWarn; |
| | | |
| | | @ApiModelProperty(value= "制购 1: 制造 2: 采购 3: 外协 ") |
| | | @ApiModelProperty(value = "制购 1: 制造 2: 采购 3: 外协 ") |
| | | private Integer source; |
| | | |
| | | @ApiModelProperty(value= "要求检验 1: 是 0: 否 ") |
| | | @ApiModelProperty(value = "要求检验 1: 是 0: 否 ") |
| | | private Integer inspect; |
| | | |
| | | @ApiModelProperty(value= "危险品 1: 是 0: 否 ") |
| | | @ApiModelProperty(value = "危险品 1: 是 0: 否 ") |
| | | private Integer danger; |
| | | |
| | | @ApiModelProperty(value= "状态") |
| | | @ApiModelProperty(value = "状态") |
| | | private String status; |
| | | |
| | | @ApiModelProperty(value= "入出状态") |
| | | @ApiModelProperty(value = "入出状态") |
| | | @TableField("io_status") |
| | | private String ioStatus; |
| | | |
| | | @ApiModelProperty(value= "修改时间") |
| | | @ApiModelProperty(value = "修改时间") |
| | | @TableField("modi_time") |
| | | private Date modiTime; |
| | | |
| | | @ApiModelProperty(value= "修改人员") |
| | | @ApiModelProperty(value = "修改人员") |
| | | @TableField("modi_user") |
| | | private Long modiUser; |
| | | |
| | | @ApiModelProperty(value= "添加时间") |
| | | @ApiModelProperty(value = "添加时间") |
| | | @TableField("appe_time") |
| | | private Date appeTime; |
| | | |
| | | @ApiModelProperty(value= "创建者") |
| | | @ApiModelProperty(value = "创建者") |
| | | @TableField("appe_user") |
| | | private Long appeUser; |
| | | |
| | | @ApiModelProperty(value= "备注") |
| | | @ApiModelProperty(value = "备注") |
| | | private String memo; |
| | | |
| | | @ApiModelProperty(value= "预留1") |
| | | @ApiModelProperty(value = "预留1") |
| | | private String temp1; |
| | | @ApiModelProperty(value= "预留1") |
| | | @ApiModelProperty(value = "预留1") |
| | | private String temp2; |
| | | @ApiModelProperty(value= "预留1") |
| | | @ApiModelProperty(value = "预留1") |
| | | private String temp3; |
| | | @ApiModelProperty(value= "预留1") |
| | | @ApiModelProperty(value = "预留1") |
| | | private String temp4; |
| | | |
| | | public String getBeBatch$(){ |
| | | if (null == this.beBatch){ return null; } |
| | | switch (this.beBatch){ |
| | | public String getBeBatch$() { |
| | | if (null == this.beBatch) { |
| | | return null; |
| | | } |
| | | switch (this.beBatch) { |
| | | case 1: |
| | | return "是"; |
| | | case 0: |
| | |
| | | } |
| | | } |
| | | |
| | | public String getSource$(){ |
| | | if (null == this.source){ return null; } |
| | | switch (this.source){ |
| | | public String getSource$() { |
| | | if (null == this.source) { |
| | | return null; |
| | | } |
| | | switch (this.source) { |
| | | case 1: |
| | | return "制造"; |
| | | case 2: |
| | |
| | | } |
| | | } |
| | | |
| | | public String getInspect$(){ |
| | | if (null == this.inspect){ return null; } |
| | | switch (this.inspect){ |
| | | public String getInspect$() { |
| | | if (null == this.inspect) { |
| | | return null; |
| | | } |
| | | switch (this.inspect) { |
| | | case 1: |
| | | return "是"; |
| | | case 0: |
| | |
| | | } |
| | | } |
| | | |
| | | public String getDanger$(){ |
| | | if (null == this.danger){ return null; } |
| | | switch (this.danger){ |
| | | public String getDanger$() { |
| | | if (null == this.danger) { |
| | | return null; |
| | | } |
| | | switch (this.danger) { |
| | | case 1: |
| | | return "是"; |
| | | case 0: |
| | |
| | | } |
| | | } |
| | | |
| | | public String getModiTime$(){ |
| | | if (Cools.isEmpty(this.modiTime)){ |
| | | public String getModiTime$() { |
| | | if (Cools.isEmpty(this.modiTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.modiTime); |
| | | } |
| | | |
| | | public String getAppeTime$(){ |
| | | if (Cools.isEmpty(this.appeTime)){ |
| | | public String getAppeTime$() { |
| | | if (Cools.isEmpty(this.appeTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.appeTime); |
| | |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @ApiModelProperty(value= "托盘条码") |
| | | @ApiModelProperty(value = "托盘条码") |
| | | private String zpallet; |
| | | |
| | | @ApiModelProperty(value= "数量") |
| | | @ApiModelProperty(value = "数量") |
| | | private Double anfme; |
| | | |
| | | @ApiModelProperty(value= "库位号") |
| | | @ApiModelProperty(value = "库位号") |
| | | @TableField("loc_no") |
| | | private String locNo; |
| | | |
| | | @ApiModelProperty(value= "商品编号") |
| | | @ApiModelProperty(value = "商品编号") |
| | | private String matnr; |
| | | |
| | | @ApiModelProperty(value= "商品名称") |
| | | @ApiModelProperty(value = "商品名称") |
| | | private String maktx; |
| | | |
| | | @ApiModelProperty(value= "批号") |
| | | @ApiModelProperty(value = "批号") |
| | | private String batch; |
| | | |
| | | @ApiModelProperty(value= "单据编号") |
| | | @ApiModelProperty(value = "单据编号") |
| | | @TableField("order_no") |
| | | private String orderNo; |
| | | |
| | | @ApiModelProperty(value= "规格") |
| | | @ApiModelProperty(value = "规格") |
| | | private String specs; |
| | | |
| | | @ApiModelProperty(value= "型号") |
| | | @ApiModelProperty(value = "型号") |
| | | private String model; |
| | | |
| | | @ApiModelProperty(value= "颜色") |
| | | @ApiModelProperty(value = "颜色") |
| | | private String color; |
| | | |
| | | @ApiModelProperty(value= "品牌") |
| | | @ApiModelProperty(value = "品牌") |
| | | private String brand; |
| | | |
| | | @ApiModelProperty(value= "单位") |
| | | @ApiModelProperty(value = "单位") |
| | | private String unit; |
| | | |
| | | @ApiModelProperty(value= "单价") |
| | | @ApiModelProperty(value = "单价") |
| | | private Double price; |
| | | |
| | | @ApiModelProperty(value= "sku") |
| | | @ApiModelProperty(value = "sku") |
| | | private String sku; |
| | | |
| | | @ApiModelProperty(value= "单位量") |
| | | @ApiModelProperty(value = "单位量") |
| | | private Double units; |
| | | |
| | | @ApiModelProperty(value= "条码") |
| | | @ApiModelProperty(value = "条码") |
| | | private String barcode; |
| | | |
| | | @ApiModelProperty(value= "产地") |
| | | @ApiModelProperty(value = "产地") |
| | | private String origin; |
| | | |
| | | @ApiModelProperty(value= "厂家") |
| | | @ApiModelProperty(value = "厂家") |
| | | private String manu; |
| | | |
| | | @ApiModelProperty(value= "生产日期") |
| | | @ApiModelProperty(value = "生产日期") |
| | | @TableField("manu_date") |
| | | private String manuDate; |
| | | |
| | | @ApiModelProperty(value= "品项数") |
| | | @ApiModelProperty(value = "品项数") |
| | | @TableField("item_num") |
| | | private String itemNum; |
| | | |
| | | @ApiModelProperty(value= "安全库存量") |
| | | @ApiModelProperty(value = "安全库存量") |
| | | @TableField("safe_qty") |
| | | private Double safeQty; |
| | | |
| | | @ApiModelProperty(value= "重量") |
| | | @ApiModelProperty(value = "重量") |
| | | private Double weight; |
| | | |
| | | @ApiModelProperty(value= "长度") |
| | | @ApiModelProperty(value = "长度") |
| | | private Double length; |
| | | |
| | | @ApiModelProperty(value= "体积") |
| | | @ApiModelProperty(value = "体积") |
| | | private Double volume; |
| | | |
| | | @ApiModelProperty(value= "三方编码") |
| | | @ApiModelProperty(value = "三方编码") |
| | | @TableField("three_code") |
| | | private String threeCode; |
| | | |
| | | @ApiModelProperty(value= "供应商") |
| | | @ApiModelProperty(value = "供应商") |
| | | private String supp; |
| | | |
| | | @ApiModelProperty(value= "供应商编码") |
| | | @ApiModelProperty(value = "供应商编码") |
| | | @TableField("supp_code") |
| | | private String suppCode; |
| | | |
| | | @ApiModelProperty(value= "是否批次 1: 是 0: 否 ") |
| | | @ApiModelProperty(value = "是否批次 1: 是 0: 否 ") |
| | | @TableField("be_batch") |
| | | private Integer beBatch; |
| | | |
| | | @ApiModelProperty(value= "保质期") |
| | | @ApiModelProperty(value = "保质期") |
| | | @TableField("dead_time") |
| | | private String deadTime; |
| | | |
| | | @ApiModelProperty(value= "预警天数") |
| | | @ApiModelProperty(value = "预警天数") |
| | | @TableField("dead_warn") |
| | | private Integer deadWarn; |
| | | |
| | | @ApiModelProperty(value= "制购 1: 制造 2: 采购 3: 外协 ") |
| | | @ApiModelProperty(value = "制购 1: 制造 2: 采购 3: 外协 ") |
| | | private Integer source; |
| | | |
| | | @ApiModelProperty(value= "要求检验 1: 是 0: 否 ") |
| | | @ApiModelProperty(value = "要求检验 1: 是 0: 否 ") |
| | | private Integer inspect; |
| | | |
| | | @ApiModelProperty(value= "危险品 1: 是 0: 否 ") |
| | | @ApiModelProperty(value = "危险品 1: 是 0: 否 ") |
| | | private Integer danger; |
| | | |
| | | @ApiModelProperty(value= "状态") |
| | | @ApiModelProperty(value = "状态") |
| | | private String status; |
| | | |
| | | @ApiModelProperty(value= "入出状态") |
| | | @ApiModelProperty(value = "入出状态") |
| | | @TableField("io_status") |
| | | private String ioStatus; |
| | | |
| | | @ApiModelProperty(value= "修改时间") |
| | | @ApiModelProperty(value = "修改时间") |
| | | @TableField("modi_time") |
| | | private Date modiTime; |
| | | |
| | | @ApiModelProperty(value= "修改人员") |
| | | @ApiModelProperty(value = "修改人员") |
| | | @TableField("modi_user") |
| | | private Long modiUser; |
| | | |
| | | @ApiModelProperty(value= "添加时间") |
| | | @ApiModelProperty(value = "添加时间") |
| | | @TableField("appe_time") |
| | | private Date appeTime; |
| | | |
| | | @ApiModelProperty(value= "创建者") |
| | | @ApiModelProperty(value = "创建者") |
| | | @TableField("appe_user") |
| | | private Long appeUser; |
| | | |
| | | @ApiModelProperty(value= "备注") |
| | | @ApiModelProperty(value = "备注") |
| | | private String memo; |
| | | |
| | | @ApiModelProperty(value= "预留1") |
| | | @ApiModelProperty(value = "预留1") |
| | | private String temp1; |
| | | @ApiModelProperty(value= "预留1") |
| | | @ApiModelProperty(value = "预留1") |
| | | private String temp2; |
| | | @ApiModelProperty(value= "预留1") |
| | | @ApiModelProperty(value = "预留1") |
| | | private String temp3; |
| | | @ApiModelProperty(value= "预留1") |
| | | @ApiModelProperty(value = "预留1") |
| | | private String temp4; |
| | | |
| | | public String getBeBatch$(){ |
| | | if (null == this.beBatch){ return null; } |
| | | switch (this.beBatch){ |
| | | public String getBeBatch$() { |
| | | if (null == this.beBatch) { |
| | | return null; |
| | | } |
| | | switch (this.beBatch) { |
| | | case 1: |
| | | return "是"; |
| | | case 0: |
| | |
| | | } |
| | | } |
| | | |
| | | public String getSource$(){ |
| | | if (null == this.source){ return null; } |
| | | switch (this.source){ |
| | | public String getSource$() { |
| | | if (null == this.source) { |
| | | return null; |
| | | } |
| | | switch (this.source) { |
| | | case 1: |
| | | return "制造"; |
| | | case 2: |
| | |
| | | } |
| | | } |
| | | |
| | | public String getInspect$(){ |
| | | if (null == this.inspect){ return null; } |
| | | switch (this.inspect){ |
| | | public String getInspect$() { |
| | | if (null == this.inspect) { |
| | | return null; |
| | | } |
| | | switch (this.inspect) { |
| | | case 1: |
| | | return "是"; |
| | | case 0: |
| | |
| | | } |
| | | } |
| | | |
| | | public String getDanger$(){ |
| | | if (null == this.danger){ return null; } |
| | | switch (this.danger){ |
| | | public String getDanger$() { |
| | | if (null == this.danger) { |
| | | return null; |
| | | } |
| | | switch (this.danger) { |
| | | case 1: |
| | | return "是"; |
| | | case 0: |
| | |
| | | } |
| | | } |
| | | |
| | | public String getModiTime$(){ |
| | | if (Cools.isEmpty(this.modiTime)){ |
| | | public String getModiTime$() { |
| | | if (Cools.isEmpty(this.modiTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.modiTime); |
| | | } |
| | | |
| | | public String getAppeTime$(){ |
| | | if (Cools.isEmpty(this.appeTime)){ |
| | | public String getAppeTime$() { |
| | | if (Cools.isEmpty(this.appeTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.appeTime); |
| | |
| | | |
| | | /** |
| | | * 入出库统计曲线图 |
| | | * |
| | | * @author admin |
| | | * @date 2018年12月12日 |
| | | */ |
| | | public class WorkChartAxis { |
| | | private String ymd; |
| | | private String ymd; |
| | | private int inqty; |
| | | private int outqty; |
| | | |
| | | public String getYmd() { |
| | | return ymd; |
| | | } |
| | | public void setYmd(String ymd) { |
| | | this.ymd = ymd; |
| | | } |
| | | public int getInqty() { |
| | | return inqty; |
| | | } |
| | | public void setInqty(int inqty) { |
| | | this.inqty = inqty; |
| | | } |
| | | public int getOutqty() { |
| | | return outqty; |
| | | } |
| | | public void setOutqty(int outqty) { |
| | | this.outqty = outqty; |
| | | } |
| | | |
| | | public String getYmd() { |
| | | return ymd; |
| | | } |
| | | |
| | | public void setYmd(String ymd) { |
| | | this.ymd = ymd; |
| | | } |
| | | |
| | | public int getInqty() { |
| | | return inqty; |
| | | } |
| | | |
| | | public void setInqty(int inqty) { |
| | | this.inqty = inqty; |
| | | } |
| | | |
| | | public int getOutqty() { |
| | | return outqty; |
| | | } |
| | | |
| | | public void setOutqty(int outqty) { |
| | | this.outqty = outqty; |
| | | } |
| | | } |
| | |
| | | /** |
| | | * 工作号 |
| | | */ |
| | | @ApiModelProperty(value= "工作号") |
| | | @ApiModelProperty(value = "工作号") |
| | | @TableField("wrk_no") |
| | | private Integer wrkNo; |
| | | |
| | | /** |
| | | * 工作时间 |
| | | */ |
| | | @ApiModelProperty(value= "工作时间") |
| | | @ApiModelProperty(value = "工作时间") |
| | | @TableField("io_time") |
| | | private Date ioTime; |
| | | |
| | | /** |
| | | * 数量 |
| | | */ |
| | | @ApiModelProperty(value= "数量") |
| | | @ApiModelProperty(value = "数量") |
| | | private Double anfme; |
| | | |
| | | /** |
| | | * 托盘条码 |
| | | */ |
| | | @ApiModelProperty(value= "托盘条码") |
| | | @ApiModelProperty(value = "托盘条码") |
| | | private String zpallet; |
| | | |
| | | /** |
| | | * 物料 |
| | | */ |
| | | @ApiModelProperty(value= "商品编号") |
| | | @ApiModelProperty(value = "商品编号") |
| | | private String matnr; |
| | | |
| | | /** |
| | | * 物料描述 |
| | | */ |
| | | @ApiModelProperty(value= "商品名称") |
| | | @ApiModelProperty(value = "商品名称") |
| | | private String maktx; |
| | | |
| | | /** |
| | | * 批号 |
| | | */ |
| | | @ApiModelProperty(value= "批号") |
| | | @ApiModelProperty(value = "批号") |
| | | private String batch; |
| | | |
| | | /** |
| | | * 单据编号 |
| | | */ |
| | | @ApiModelProperty(value= "单据编号") |
| | | @ApiModelProperty(value = "单据编号") |
| | | @TableField("order_no") |
| | | private String orderNo; |
| | | |
| | | /** |
| | | * 规格 |
| | | */ |
| | | @ApiModelProperty(value= "规格") |
| | | @ApiModelProperty(value = "规格") |
| | | private String specs; |
| | | |
| | | /** |
| | | * 型号 |
| | | */ |
| | | @ApiModelProperty(value= "型号") |
| | | @ApiModelProperty(value = "型号") |
| | | private String model; |
| | | |
| | | /** |
| | | * 颜色 |
| | | */ |
| | | @ApiModelProperty(value= "颜色") |
| | | @ApiModelProperty(value = "颜色") |
| | | private String color; |
| | | |
| | | /** |
| | | * 品牌 |
| | | */ |
| | | @ApiModelProperty(value= "品牌") |
| | | @ApiModelProperty(value = "品牌") |
| | | private String brand; |
| | | |
| | | /** |
| | | * 单位 |
| | | */ |
| | | @ApiModelProperty(value= "单位") |
| | | @ApiModelProperty(value = "单位") |
| | | private String unit; |
| | | |
| | | /** |
| | | * 单价 |
| | | */ |
| | | @ApiModelProperty(value= "单价") |
| | | @ApiModelProperty(value = "单价") |
| | | private Double price; |
| | | |
| | | /** |
| | | * sku |
| | | */ |
| | | @ApiModelProperty(value= "sku") |
| | | @ApiModelProperty(value = "sku") |
| | | private String sku; |
| | | |
| | | /** |
| | | * 单位量 |
| | | */ |
| | | @ApiModelProperty(value= "单位量") |
| | | @ApiModelProperty(value = "单位量") |
| | | private Double units; |
| | | |
| | | /** |
| | | * 条码 |
| | | */ |
| | | @ApiModelProperty(value= "条码") |
| | | @ApiModelProperty(value = "条码") |
| | | private String barcode; |
| | | |
| | | /** |
| | | * 产地 |
| | | */ |
| | | @ApiModelProperty(value= "产地") |
| | | @ApiModelProperty(value = "产地") |
| | | private String origin; |
| | | |
| | | /** |
| | | * 厂家 |
| | | */ |
| | | @ApiModelProperty(value= "厂家") |
| | | @ApiModelProperty(value = "厂家") |
| | | private String manu; |
| | | |
| | | /** |
| | | * 生产日期 |
| | | */ |
| | | @ApiModelProperty(value= "生产日期") |
| | | @ApiModelProperty(value = "生产日期") |
| | | @TableField("manu_date") |
| | | private String manuDate; |
| | | |
| | | /** |
| | | * 品项数 |
| | | */ |
| | | @ApiModelProperty(value= "品项数") |
| | | @ApiModelProperty(value = "品项数") |
| | | @TableField("item_num") |
| | | private String itemNum; |
| | | |
| | | /** |
| | | * 安全库存量 |
| | | */ |
| | | @ApiModelProperty(value= "安全库存量") |
| | | @ApiModelProperty(value = "安全库存量") |
| | | @TableField("safe_qty") |
| | | private Double safeQty; |
| | | |
| | | /** |
| | | * 重量 |
| | | */ |
| | | @ApiModelProperty(value= "重量") |
| | | @ApiModelProperty(value = "重量") |
| | | private Double weight; |
| | | |
| | | /** |
| | | * 长度 |
| | | */ |
| | | @ApiModelProperty(value= "长度") |
| | | @ApiModelProperty(value = "长度") |
| | | private Double length; |
| | | |
| | | /** |
| | | * 体积 |
| | | */ |
| | | @ApiModelProperty(value= "体积") |
| | | @ApiModelProperty(value = "体积") |
| | | private Double volume; |
| | | |
| | | /** |
| | | * 三方编码 |
| | | */ |
| | | @ApiModelProperty(value= "三方编码") |
| | | @ApiModelProperty(value = "三方编码") |
| | | @TableField("three_code") |
| | | private String threeCode; |
| | | |
| | | /** |
| | | * 供应商 |
| | | */ |
| | | @ApiModelProperty(value= "供应商") |
| | | @ApiModelProperty(value = "供应商") |
| | | private String supp; |
| | | |
| | | /** |
| | | * 供应商编码 |
| | | */ |
| | | @ApiModelProperty(value= "供应商编码") |
| | | @ApiModelProperty(value = "供应商编码") |
| | | @TableField("supp_code") |
| | | private String suppCode; |
| | | |
| | | /** |
| | | * 是否批次 1: 是 0: 否 |
| | | */ |
| | | @ApiModelProperty(value= "是否批次 1: 是 0: 否 ") |
| | | @ApiModelProperty(value = "是否批次 1: 是 0: 否 ") |
| | | @TableField("be_batch") |
| | | private Integer beBatch; |
| | | |
| | | /** |
| | | * 保质期 |
| | | */ |
| | | @ApiModelProperty(value= "保质期") |
| | | @ApiModelProperty(value = "保质期") |
| | | @TableField("dead_time") |
| | | private String deadTime; |
| | | |
| | | /** |
| | | * 预警天数 |
| | | */ |
| | | @ApiModelProperty(value= "预警天数") |
| | | @ApiModelProperty(value = "预警天数") |
| | | @TableField("dead_warn") |
| | | private Integer deadWarn; |
| | | |
| | | /** |
| | | * 制购 1: 制造 2: 采购 3: 外协 |
| | | */ |
| | | @ApiModelProperty(value= "制购 1: 制造 2: 采购 3: 外协 ") |
| | | @ApiModelProperty(value = "制购 1: 制造 2: 采购 3: 外协 ") |
| | | private Integer source; |
| | | |
| | | /** |
| | | * 要求检验 1: 是 0: 否 |
| | | */ |
| | | @ApiModelProperty(value= "要求检验 1: 是 0: 否 ") |
| | | @ApiModelProperty(value = "要求检验 1: 是 0: 否 ") |
| | | private Integer inspect; |
| | | |
| | | /** |
| | | * 1正常,2报废,3需返工 |
| | | */ |
| | | @ApiModelProperty(value= "危险品 1: 是 0: 否 ") |
| | | @ApiModelProperty(value = "危险品 1: 是 0: 否 ") |
| | | private Integer danger; |
| | | |
| | | /** |
| | | * 修改人员 |
| | | */ |
| | | @ApiModelProperty(value= "修改人员") |
| | | @ApiModelProperty(value = "修改人员") |
| | | @TableField("modi_user") |
| | | private Long modiUser; |
| | | |
| | | /** |
| | | * 修改时间 |
| | | */ |
| | | @ApiModelProperty(value= "修改时间") |
| | | @ApiModelProperty(value = "修改时间") |
| | | @TableField("modi_time") |
| | | private Date modiTime; |
| | | |
| | | /** |
| | | * 创建者 |
| | | */ |
| | | @ApiModelProperty(value= "创建者") |
| | | @ApiModelProperty(value = "创建者") |
| | | @TableField("appe_user") |
| | | private Long appeUser; |
| | | |
| | | /** |
| | | * 添加时间 |
| | | */ |
| | | @ApiModelProperty(value= "添加时间") |
| | | @ApiModelProperty(value = "添加时间") |
| | | @TableField("appe_time") |
| | | private Date appeTime; |
| | | |
| | | /** |
| | | * 备注 |
| | | */ |
| | | @ApiModelProperty(value= "备注") |
| | | @ApiModelProperty(value = "备注") |
| | | private String memo; |
| | | |
| | | @ApiModelProperty(value= "预留1") |
| | | @ApiModelProperty(value = "预留1") |
| | | private String temp1; |
| | | @ApiModelProperty(value= "预留1") |
| | | @ApiModelProperty(value = "预留1") |
| | | private String temp2; |
| | | @ApiModelProperty(value= "预留1") |
| | | @ApiModelProperty(value = "预留1") |
| | | private String temp3; |
| | | @ApiModelProperty(value= "预留1") |
| | | @ApiModelProperty(value = "预留1") |
| | | private String temp4; |
| | | |
| | | public String getIoTime$(){ |
| | | if (Cools.isEmpty(this.ioTime)){ |
| | | public String getIoTime$() { |
| | | if (Cools.isEmpty(this.ioTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.ioTime); |
| | | } |
| | | |
| | | public String getBeBatch$(){ |
| | | if (null == this.beBatch){ return null; } |
| | | switch (this.beBatch){ |
| | | public String getBeBatch$() { |
| | | if (null == this.beBatch) { |
| | | return null; |
| | | } |
| | | switch (this.beBatch) { |
| | | case 1: |
| | | return "是"; |
| | | case 0: |
| | |
| | | } |
| | | } |
| | | |
| | | public String getSource$(){ |
| | | if (null == this.source){ return null; } |
| | | switch (this.source){ |
| | | public String getSource$() { |
| | | if (null == this.source) { |
| | | return null; |
| | | } |
| | | switch (this.source) { |
| | | case 1: |
| | | return "制造"; |
| | | case 2: |
| | |
| | | } |
| | | } |
| | | |
| | | public String getInspect$(){ |
| | | if (null == this.inspect){ return null; } |
| | | switch (this.inspect){ |
| | | public String getInspect$() { |
| | | if (null == this.inspect) { |
| | | return null; |
| | | } |
| | | switch (this.inspect) { |
| | | case 1: |
| | | return "是"; |
| | | case 0: |
| | |
| | | } |
| | | } |
| | | |
| | | public String getDanger$(){ |
| | | if (null == this.danger){ return null; } |
| | | switch (this.danger){ |
| | | public String getDanger$() { |
| | | if (null == this.danger) { |
| | | return null; |
| | | } |
| | | switch (this.danger) { |
| | | case 1: |
| | | return "是"; |
| | | case 0: |
| | |
| | | } |
| | | } |
| | | |
| | | public String getModiUser$(){ |
| | | public String getModiUser$() { |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.modiUser); |
| | | if (!Cools.isEmpty(user)){ |
| | | if (!Cools.isEmpty(user)) { |
| | | return String.valueOf(user.getUsername()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public String getModiTime$(){ |
| | | if (Cools.isEmpty(this.modiTime)){ |
| | | public String getModiTime$() { |
| | | if (Cools.isEmpty(this.modiTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.modiTime); |
| | | } |
| | | |
| | | public String getAppeUser$(){ |
| | | public String getAppeUser$() { |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.appeUser); |
| | | if (!Cools.isEmpty(user)){ |
| | | if (!Cools.isEmpty(user)) { |
| | | return String.valueOf(user.getUsername()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public String getAppeTime$(){ |
| | | if (Cools.isEmpty(this.appeTime)){ |
| | | public String getAppeTime$() { |
| | | if (Cools.isEmpty(this.appeTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.appeTime); |
| | |
| | | /** |
| | | * 工作号 |
| | | */ |
| | | @ApiModelProperty(value= "工作号") |
| | | @ApiModelProperty(value = "工作号") |
| | | @TableField("wrk_no") |
| | | private Integer wrkNo; |
| | | |
| | | /** |
| | | * 工作时间 |
| | | */ |
| | | @ApiModelProperty(value= "工作时间") |
| | | @ApiModelProperty(value = "工作时间") |
| | | @TableField("io_time") |
| | | private Date ioTime; |
| | | |
| | | /** |
| | | * 数量 |
| | | */ |
| | | @ApiModelProperty(value= "数量") |
| | | @ApiModelProperty(value = "数量") |
| | | private Double anfme; |
| | | |
| | | /** |
| | | * 托盘条码 |
| | | */ |
| | | @ApiModelProperty(value= "托盘条码") |
| | | @ApiModelProperty(value = "托盘条码") |
| | | private String zpallet; |
| | | |
| | | /** |
| | | * 物料 |
| | | */ |
| | | @ApiModelProperty(value= "商品编号") |
| | | @ApiModelProperty(value = "商品编号") |
| | | private String matnr; |
| | | |
| | | /** |
| | | * 物料描述 |
| | | */ |
| | | @ApiModelProperty(value= "商品名称") |
| | | @ApiModelProperty(value = "商品名称") |
| | | private String maktx; |
| | | |
| | | /** |
| | | * 批号 |
| | | */ |
| | | @ApiModelProperty(value= "批号") |
| | | @ApiModelProperty(value = "批号") |
| | | private String batch; |
| | | |
| | | /** |
| | | * 单据编号 |
| | | */ |
| | | @ApiModelProperty(value= "单据编号") |
| | | @ApiModelProperty(value = "单据编号") |
| | | @TableField("order_no") |
| | | private String orderNo; |
| | | |
| | | /** |
| | | * 规格 |
| | | */ |
| | | @ApiModelProperty(value= "规格") |
| | | @ApiModelProperty(value = "规格") |
| | | private String specs; |
| | | |
| | | /** |
| | | * 型号 |
| | | */ |
| | | @ApiModelProperty(value= "型号") |
| | | @ApiModelProperty(value = "型号") |
| | | private String model; |
| | | |
| | | /** |
| | | * 颜色 |
| | | */ |
| | | @ApiModelProperty(value= "颜色") |
| | | @ApiModelProperty(value = "颜色") |
| | | private String color; |
| | | |
| | | /** |
| | | * 品牌 |
| | | */ |
| | | @ApiModelProperty(value= "品牌") |
| | | @ApiModelProperty(value = "品牌") |
| | | private String brand; |
| | | |
| | | /** |
| | | * 单位 |
| | | */ |
| | | @ApiModelProperty(value= "单位") |
| | | @ApiModelProperty(value = "单位") |
| | | private String unit; |
| | | |
| | | /** |
| | | * 单价 |
| | | */ |
| | | @ApiModelProperty(value= "单价") |
| | | @ApiModelProperty(value = "单价") |
| | | private Double price; |
| | | |
| | | /** |
| | | * sku |
| | | */ |
| | | @ApiModelProperty(value= "sku") |
| | | @ApiModelProperty(value = "sku") |
| | | private String sku; |
| | | |
| | | /** |
| | | * 单位量 |
| | | */ |
| | | @ApiModelProperty(value= "单位量") |
| | | @ApiModelProperty(value = "单位量") |
| | | private Double units; |
| | | |
| | | /** |
| | | * 条码 |
| | | */ |
| | | @ApiModelProperty(value= "条码") |
| | | @ApiModelProperty(value = "条码") |
| | | private String barcode; |
| | | |
| | | /** |
| | | * 产地 |
| | | */ |
| | | @ApiModelProperty(value= "产地") |
| | | @ApiModelProperty(value = "产地") |
| | | private String origin; |
| | | |
| | | /** |
| | | * 厂家 |
| | | */ |
| | | @ApiModelProperty(value= "厂家") |
| | | @ApiModelProperty(value = "厂家") |
| | | private String manu; |
| | | |
| | | /** |
| | | * 生产日期 |
| | | */ |
| | | @ApiModelProperty(value= "生产日期") |
| | | @ApiModelProperty(value = "生产日期") |
| | | @TableField("manu_date") |
| | | private String manuDate; |
| | | |
| | | /** |
| | | * 品项数 |
| | | */ |
| | | @ApiModelProperty(value= "品项数") |
| | | @ApiModelProperty(value = "品项数") |
| | | @TableField("item_num") |
| | | private String itemNum; |
| | | |
| | | /** |
| | | * 安全库存量 |
| | | */ |
| | | @ApiModelProperty(value= "安全库存量") |
| | | @ApiModelProperty(value = "安全库存量") |
| | | @TableField("safe_qty") |
| | | private Double safeQty; |
| | | |
| | | /** |
| | | * 重量 |
| | | */ |
| | | @ApiModelProperty(value= "重量") |
| | | @ApiModelProperty(value = "重量") |
| | | private Double weight; |
| | | |
| | | /** |
| | | * 长度 |
| | | */ |
| | | @ApiModelProperty(value= "长度") |
| | | @ApiModelProperty(value = "长度") |
| | | private Double length; |
| | | |
| | | /** |
| | | * 体积 |
| | | */ |
| | | @ApiModelProperty(value= "体积") |
| | | @ApiModelProperty(value = "体积") |
| | | private Double volume; |
| | | |
| | | /** |
| | | * 三方编码 |
| | | */ |
| | | @ApiModelProperty(value= "三方编码") |
| | | @ApiModelProperty(value = "三方编码") |
| | | @TableField("three_code") |
| | | private String threeCode; |
| | | |
| | | /** |
| | | * 供应商 |
| | | */ |
| | | @ApiModelProperty(value= "供应商") |
| | | @ApiModelProperty(value = "供应商") |
| | | private String supp; |
| | | |
| | | /** |
| | | * 供应商编码 |
| | | */ |
| | | @ApiModelProperty(value= "供应商编码") |
| | | @ApiModelProperty(value = "供应商编码") |
| | | @TableField("supp_code") |
| | | private String suppCode; |
| | | |
| | | /** |
| | | * 是否批次 1: 是 0: 否 |
| | | */ |
| | | @ApiModelProperty(value= "是否批次 1: 是 0: 否 ") |
| | | @ApiModelProperty(value = "是否批次 1: 是 0: 否 ") |
| | | @TableField("be_batch") |
| | | private Integer beBatch; |
| | | |
| | | /** |
| | | * 保质期 |
| | | */ |
| | | @ApiModelProperty(value= "保质期") |
| | | @ApiModelProperty(value = "保质期") |
| | | @TableField("dead_time") |
| | | private String deadTime; |
| | | |
| | | /** |
| | | * 预警天数 |
| | | */ |
| | | @ApiModelProperty(value= "预警天数") |
| | | @ApiModelProperty(value = "预警天数") |
| | | @TableField("dead_warn") |
| | | private Integer deadWarn; |
| | | |
| | | /** |
| | | * 制购 1: 制造 2: 采购 3: 外协 |
| | | */ |
| | | @ApiModelProperty(value= "制购 1: 制造 2: 采购 3: 外协 ") |
| | | @ApiModelProperty(value = "制购 1: 制造 2: 采购 3: 外协 ") |
| | | private Integer source; |
| | | |
| | | /** |
| | | * 要求检验 1: 是 0: 否 |
| | | */ |
| | | @ApiModelProperty(value= "要求检验 1: 是 0: 否 ") |
| | | @ApiModelProperty(value = "要求检验 1: 是 0: 否 ") |
| | | private Integer inspect; |
| | | |
| | | /** |
| | | * 危险品 1: 是 0: 否 |
| | | */ |
| | | @ApiModelProperty(value= "危险品 1: 是 0: 否 ") |
| | | @ApiModelProperty(value = "危险品 1: 是 0: 否 ") |
| | | private Integer danger; |
| | | |
| | | /** |
| | | * 修改人员 |
| | | */ |
| | | @ApiModelProperty(value= "修改人员") |
| | | @ApiModelProperty(value = "修改人员") |
| | | @TableField("modi_user") |
| | | private Long modiUser; |
| | | |
| | | /** |
| | | * 修改时间 |
| | | */ |
| | | @ApiModelProperty(value= "修改时间") |
| | | @ApiModelProperty(value = "修改时间") |
| | | @TableField("modi_time") |
| | | private Date modiTime; |
| | | |
| | | /** |
| | | * 创建者 |
| | | */ |
| | | @ApiModelProperty(value= "创建者") |
| | | @ApiModelProperty(value = "创建者") |
| | | @TableField("appe_user") |
| | | private Long appeUser; |
| | | |
| | | /** |
| | | * 添加时间 |
| | | */ |
| | | @ApiModelProperty(value= "添加时间") |
| | | @ApiModelProperty(value = "添加时间") |
| | | @TableField("appe_time") |
| | | private Date appeTime; |
| | | |
| | | /** |
| | | * 备注 |
| | | */ |
| | | @ApiModelProperty(value= "备注") |
| | | @ApiModelProperty(value = "备注") |
| | | private String memo; |
| | | |
| | | @ApiModelProperty(value= "预留1") |
| | | @ApiModelProperty(value = "预留1") |
| | | private String temp1; |
| | | @ApiModelProperty(value= "预留1") |
| | | @ApiModelProperty(value = "预留1") |
| | | private String temp2; |
| | | @ApiModelProperty(value= "预留1") |
| | | @ApiModelProperty(value = "预留1") |
| | | private String temp3; |
| | | @ApiModelProperty(value= "预留1") |
| | | @ApiModelProperty(value = "预留1") |
| | | private String temp4; |
| | | |
| | | public String getIoTime$(){ |
| | | if (Cools.isEmpty(this.ioTime)){ |
| | | public String getIoTime$() { |
| | | if (Cools.isEmpty(this.ioTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.ioTime); |
| | | } |
| | | |
| | | public String getBeBatch$(){ |
| | | if (null == this.beBatch){ return null; } |
| | | switch (this.beBatch){ |
| | | public String getBeBatch$() { |
| | | if (null == this.beBatch) { |
| | | return null; |
| | | } |
| | | switch (this.beBatch) { |
| | | case 1: |
| | | return "是"; |
| | | case 0: |
| | |
| | | } |
| | | } |
| | | |
| | | public String getSource$(){ |
| | | if (null == this.source){ return null; } |
| | | switch (this.source){ |
| | | public String getSource$() { |
| | | if (null == this.source) { |
| | | return null; |
| | | } |
| | | switch (this.source) { |
| | | case 1: |
| | | return "制造"; |
| | | case 2: |
| | |
| | | } |
| | | } |
| | | |
| | | public String getInspect$(){ |
| | | if (null == this.inspect){ return null; } |
| | | switch (this.inspect){ |
| | | public String getInspect$() { |
| | | if (null == this.inspect) { |
| | | return null; |
| | | } |
| | | switch (this.inspect) { |
| | | case 1: |
| | | return "是"; |
| | | case 0: |
| | |
| | | } |
| | | } |
| | | |
| | | public String getDanger$(){ |
| | | if (null == this.danger){ return null; } |
| | | switch (this.danger){ |
| | | public String getDanger$() { |
| | | if (null == this.danger) { |
| | | return null; |
| | | } |
| | | switch (this.danger) { |
| | | case 1: |
| | | return "是"; |
| | | case 0: |
| | |
| | | } |
| | | } |
| | | |
| | | public String getModiUser$(){ |
| | | public String getModiUser$() { |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.modiUser); |
| | | if (!Cools.isEmpty(user)){ |
| | | if (!Cools.isEmpty(user)) { |
| | | return String.valueOf(user.getUsername()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public String getModiTime$(){ |
| | | if (Cools.isEmpty(this.modiTime)){ |
| | | public String getModiTime$() { |
| | | if (Cools.isEmpty(this.modiTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.modiTime); |
| | | } |
| | | |
| | | public String getAppeUser$(){ |
| | | public String getAppeUser$() { |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.appeUser); |
| | | if (!Cools.isEmpty(user)){ |
| | | if (!Cools.isEmpty(user)) { |
| | | return String.valueOf(user.getUsername()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public String getAppeTime$(){ |
| | | if (Cools.isEmpty(this.appeTime)){ |
| | | public String getAppeTime$() { |
| | | if (Cools.isEmpty(this.appeTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.appeTime); |
| | | } |
| | | |
| | | public void sync(Object source) { |
| | | Synchro.Copy(source, this); |
| | | } |
| | |
| | | import com.baomidou.mybatisplus.annotations.TableId; |
| | | import com.baomidou.mybatisplus.annotations.TableName; |
| | | import com.baomidou.mybatisplus.enums.IdType; |
| | | import com.zy.system.entity.User; |
| | | import com.zy.system.service.UserService; |
| | | import com.core.common.Cools; |
| | | import com.core.common.SpringUtils; |
| | | import com.zy.system.entity.User; |
| | | import com.zy.system.service.UserService; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | |
| | | import java.io.Serializable; |
| | |
| | | /** |
| | | * 类型 |
| | | */ |
| | | @ApiModelProperty(value= "类型") |
| | | @ApiModelProperty(value = "类型") |
| | | @TableId(value = "wrk_mk", type = IdType.INPUT) |
| | | @TableField("wrk_mk") |
| | | private Integer wrkMk; |
| | |
| | | /** |
| | | * 当前ID |
| | | */ |
| | | @ApiModelProperty(value= "当前ID") |
| | | @ApiModelProperty(value = "当前ID") |
| | | @TableField("wrk_no") |
| | | private Integer wrkNo; |
| | | |
| | | /** |
| | | * 修改人员 |
| | | */ |
| | | @ApiModelProperty(value= "修改人员") |
| | | @ApiModelProperty(value = "修改人员") |
| | | @TableField("modi_user") |
| | | private Long modiUser; |
| | | |
| | | /** |
| | | * 修改时间 |
| | | */ |
| | | @ApiModelProperty(value= "修改时间") |
| | | @ApiModelProperty(value = "修改时间") |
| | | @TableField("modi_time") |
| | | private Date modiTime; |
| | | |
| | | /** |
| | | * 创建者 |
| | | */ |
| | | @ApiModelProperty(value= "创建者") |
| | | @ApiModelProperty(value = "创建者") |
| | | @TableField("appe_user") |
| | | private Long appeUser; |
| | | |
| | | /** |
| | | * 添加时间 |
| | | */ |
| | | @ApiModelProperty(value= "添加时间") |
| | | @ApiModelProperty(value = "添加时间") |
| | | @TableField("appe_time") |
| | | private Date appeTime; |
| | | |
| | | /** |
| | | * 起始ID |
| | | */ |
| | | @ApiModelProperty(value= "起始ID") |
| | | @ApiModelProperty(value = "起始ID") |
| | | @TableField("s_no") |
| | | private Integer sNo; |
| | | |
| | | /** |
| | | * 终止ID |
| | | */ |
| | | @ApiModelProperty(value= "终止ID") |
| | | @ApiModelProperty(value = "终止ID") |
| | | @TableField("e_no") |
| | | private Integer eNo; |
| | | |
| | | /** |
| | | * 备注 |
| | | */ |
| | | @ApiModelProperty(value= "备注") |
| | | @ApiModelProperty(value = "备注") |
| | | @TableField("memo_m") |
| | | private String memoM; |
| | | |
| | | public WrkLastno() {} |
| | | public WrkLastno() { |
| | | } |
| | | |
| | | public WrkLastno(Integer wrkNo,Long modiUser,Date modiTime,Long appeUser,Date appeTime,Integer sNo,Integer eNo,String memoM) { |
| | | public WrkLastno(Integer wrkNo, Long modiUser, Date modiTime, Long appeUser, Date appeTime, Integer sNo, Integer eNo, String memoM) { |
| | | this.wrkNo = wrkNo; |
| | | this.modiUser = modiUser; |
| | | this.modiTime = modiTime; |
| | |
| | | return modiUser; |
| | | } |
| | | |
| | | public String getModiUser$(){ |
| | | public String getModiUser$() { |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.modiUser); |
| | | if (!Cools.isEmpty(user)){ |
| | | if (!Cools.isEmpty(user)) { |
| | | return String.valueOf(user.getUsername()); |
| | | } |
| | | return null; |
| | |
| | | return modiTime; |
| | | } |
| | | |
| | | public String getModiTime$(){ |
| | | if (Cools.isEmpty(this.modiTime)){ |
| | | public String getModiTime$() { |
| | | if (Cools.isEmpty(this.modiTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.modiTime); |
| | |
| | | return appeUser; |
| | | } |
| | | |
| | | public String getAppeUser$(){ |
| | | public String getAppeUser$() { |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.appeUser); |
| | | if (!Cools.isEmpty(user)){ |
| | | if (!Cools.isEmpty(user)) { |
| | | return String.valueOf(user.getUsername()); |
| | | } |
| | | return null; |
| | |
| | | return appeTime; |
| | | } |
| | | |
| | | public String getAppeTime$(){ |
| | | if (Cools.isEmpty(this.appeTime)){ |
| | | public String getAppeTime$() { |
| | | if (Cools.isEmpty(this.appeTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.appeTime); |
| | |
| | | import com.baomidou.mybatisplus.annotations.TableId; |
| | | import com.baomidou.mybatisplus.annotations.TableName; |
| | | import com.baomidou.mybatisplus.enums.IdType; |
| | | import com.core.common.Cools; |
| | | import com.core.common.SpringUtils; |
| | | import com.zy.asrs.service.*; |
| | | import com.zy.common.utils.Synchro; |
| | | import com.zy.system.entity.User; |
| | | import com.zy.system.service.UserService; |
| | | import com.core.common.Cools; |
| | | import com.core.common.SpringUtils; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | |
| | | /** |
| | | * 工作号 |
| | | */ |
| | | @ApiModelProperty(value= "工作号") |
| | | @ApiModelProperty(value = "工作号") |
| | | @TableId(value = "wrk_no", type = IdType.INPUT) |
| | | @TableField("wrk_no") |
| | | private Integer wrkNo; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("inv_wh") |
| | | private String invWh; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | private Date ymd; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | private String mk; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("whs_type") |
| | | private Integer whsType; |
| | | |
| | | /** |
| | | * 工作状态 |
| | | */ |
| | | @ApiModelProperty(value= "工作状态") |
| | | @ApiModelProperty(value = "工作状态") |
| | | @TableField("wrk_sts") |
| | | private Long wrkSts; |
| | | |
| | | /** |
| | | * 入出库类型 |
| | | */ |
| | | @ApiModelProperty(value= "入出库类型") |
| | | @ApiModelProperty(value = "入出库类型") |
| | | @TableField("io_type") |
| | | private Integer ioType; |
| | | |
| | | /** |
| | | * 堆垛机 |
| | | */ |
| | | @ApiModelProperty(value= "堆垛机") |
| | | @ApiModelProperty(value = "堆垛机") |
| | | @TableField("crn_no") |
| | | private Integer crnNo; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("sheet_no") |
| | | private String sheetNo; |
| | | |
| | | /** |
| | | * 优先级 |
| | | */ |
| | | @ApiModelProperty(value= "优先级") |
| | | @ApiModelProperty(value = "优先级") |
| | | @TableField("io_pri") |
| | | private Double ioPri; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("wrk_date") |
| | | private Date wrkDate; |
| | | |
| | | /** |
| | | * 目标库位 |
| | | */ |
| | | @ApiModelProperty(value= "目标库位") |
| | | @ApiModelProperty(value = "目标库位") |
| | | @TableField("loc_no") |
| | | private String locNo; |
| | | |
| | | /** |
| | | * 目标站 |
| | | */ |
| | | @ApiModelProperty(value= "目标站") |
| | | @ApiModelProperty(value = "目标站") |
| | | @TableField("sta_no") |
| | | private Integer staNo; |
| | | |
| | | /** |
| | | * 源站 |
| | | */ |
| | | @ApiModelProperty(value= "源站") |
| | | @ApiModelProperty(value = "源站") |
| | | @TableField("source_sta_no") |
| | | private Integer sourceStaNo; |
| | | |
| | | /** |
| | | * 源库位 |
| | | */ |
| | | @ApiModelProperty(value= "源库位") |
| | | @ApiModelProperty(value = "源库位") |
| | | @TableField("source_loc_no") |
| | | private String sourceLocNo; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("loc_sts") |
| | | private String locSts; |
| | | |
| | | /** |
| | | * 拣料 |
| | | */ |
| | | @ApiModelProperty(value= "拣料") |
| | | @ApiModelProperty(value = "拣料") |
| | | private String picking; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("link_mis") |
| | | private String linkMis; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("online_yn") |
| | | private String onlineYn; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("upd_mk") |
| | | private String updMk; |
| | | |
| | | /** |
| | | * 退出 |
| | | */ |
| | | @ApiModelProperty(value= "退出") |
| | | @ApiModelProperty(value = "退出") |
| | | @TableField("exit_mk") |
| | | private String exitMk; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("plt_type") |
| | | private Integer pltType; |
| | | |
| | | /** |
| | | * 空板 |
| | | */ |
| | | @ApiModelProperty(value= "空板") |
| | | @ApiModelProperty(value = "空板") |
| | | @TableField("empty_mk") |
| | | private String emptyMk; |
| | | |
| | | /** |
| | | * 工作时间 |
| | | */ |
| | | @ApiModelProperty(value= "工作时间") |
| | | @ApiModelProperty(value = "工作时间") |
| | | @TableField("io_time") |
| | | private Date ioTime; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("ctn_type") |
| | | private Integer ctnType; |
| | | |
| | | @ApiModelProperty(value= "用于标识跨库操作,1,堆垛机往四向库,2四向库往堆垛机") |
| | | @ApiModelProperty(value = "用于标识跨库操作,1,堆垛机往四向库,2四向库往堆垛机") |
| | | private String packed; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("ove_mk") |
| | | private String oveMk; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("mtn_type") |
| | | private Double mtnType; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("user_no") |
| | | private String userNo; |
| | | |
| | | /** |
| | | * 堆垛机启动时间 |
| | | */ |
| | | @ApiModelProperty(value= "堆垛机启动时间") |
| | | @ApiModelProperty(value = "堆垛机启动时间") |
| | | @TableField("crn_str_time") |
| | | private Date crnStrTime; |
| | | |
| | | /** |
| | | * 堆垛机停止时间 |
| | | */ |
| | | @ApiModelProperty(value= "堆垛机停止时间") |
| | | @ApiModelProperty(value = "堆垛机停止时间") |
| | | @TableField("crn_end_time") |
| | | private Date crnEndTime; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("plc_str_time") |
| | | private Date plcStrTime; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("crn_pos_time") |
| | | private Date crnPosTime; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("load_time") |
| | | private Double loadTime; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("exp_time") |
| | | private Double expTime; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("ref_wrkno") |
| | | private Double refWrkno; |
| | | |
| | | /** |
| | | * 拣料时间 |
| | | */ |
| | | @ApiModelProperty(value= "拣料时间") |
| | | @ApiModelProperty(value = "拣料时间") |
| | | @TableField("ref_iotime") |
| | | private Date refIotime; |
| | | |
| | | /** |
| | | * 修改人员 |
| | | */ |
| | | @ApiModelProperty(value= "修改人员") |
| | | @ApiModelProperty(value = "修改人员") |
| | | @TableField("modi_user") |
| | | private Long modiUser; |
| | | |
| | | /** |
| | | * 修改时间 |
| | | */ |
| | | @ApiModelProperty(value= "修改时间") |
| | | @ApiModelProperty(value = "修改时间") |
| | | @TableField("modi_time") |
| | | private Date modiTime; |
| | | |
| | | /** |
| | | * 创建者 |
| | | */ |
| | | @ApiModelProperty(value= "创建者") |
| | | @ApiModelProperty(value = "创建者") |
| | | @TableField("appe_user") |
| | | private Long appeUser; |
| | | |
| | | /** |
| | | * 添加时间 |
| | | */ |
| | | @ApiModelProperty(value= "添加时间") |
| | | @ApiModelProperty(value = "添加时间") |
| | | @TableField("appe_time") |
| | | private Date appeTime; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("pause_mk") |
| | | private String pauseMk; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("error_time") |
| | | private Date errorTime; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("error_memo") |
| | | private String errorMemo; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("ctn_kind") |
| | | private Integer ctnKind; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("manu_type") |
| | | private String manuType; |
| | | |
| | | /** |
| | | * 备注 |
| | | */ |
| | | @ApiModelProperty(value= "备注") |
| | | @ApiModelProperty(value = "备注") |
| | | private String memo; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("sc_weight") |
| | | private Double scWeight; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("log_mk") |
| | | private String logMk; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("log_err_time") |
| | | private Date logErrTime; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("log_err_memo") |
| | | private String logErrMemo; |
| | | |
| | | /** |
| | | * 条码 |
| | | */ |
| | | @ApiModelProperty(value= "条码") |
| | | @ApiModelProperty(value = "条码") |
| | | private String barcode; |
| | | |
| | | // Y:销售订单出库任务 |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("Pdc_type") |
| | | private String PdcType; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("ctn_no") |
| | | private String ctnNo; |
| | | |
| | | /** |
| | | * 满板 |
| | | */ |
| | | @ApiModelProperty(value= "满板") |
| | | @ApiModelProperty(value = "满板") |
| | | @TableField("full_plt") |
| | | private String fullPlt; |
| | | |
| | | /** |
| | | * 先入品 / 双重入库 |
| | | */ |
| | | @ApiModelProperty(value= "先入品") |
| | | @ApiModelProperty(value = "先入品") |
| | | @TableField("pre_have") |
| | | private String preHave; |
| | | |
| | | /** |
| | | * 空操作 / 取货无箱 |
| | | */ |
| | | @ApiModelProperty(value= "空操作") |
| | | @ApiModelProperty(value = "空操作") |
| | | @TableField("take_none") |
| | | private String takeNone; |
| | | |
| | | public WrkMast() {} |
| | | public WrkMast() { |
| | | } |
| | | |
| | | public String getYmd$(){ |
| | | if (Cools.isEmpty(this.ymd)){ |
| | | public String getYmd$() { |
| | | if (Cools.isEmpty(this.ymd)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.ymd); |
| | | } |
| | | |
| | | public String getWrkSts$(){ |
| | | public String getWrkSts$() { |
| | | BasWrkStatusService service = SpringUtils.getBean(BasWrkStatusService.class); |
| | | BasWrkStatus basWrkStatus = service.selectById(this.wrkSts); |
| | | if (!Cools.isEmpty(basWrkStatus)){ |
| | | if (!Cools.isEmpty(basWrkStatus)) { |
| | | return String.valueOf(basWrkStatus.getWrkDesc()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public String getIoType$(){ |
| | | public String getIoType$() { |
| | | BasWrkIotypeService service = SpringUtils.getBean(BasWrkIotypeService.class); |
| | | BasWrkIotype basWrkIotype = service.selectById(this.ioType); |
| | | if (!Cools.isEmpty(basWrkIotype)){ |
| | | if (!Cools.isEmpty(basWrkIotype)) { |
| | | return String.valueOf(basWrkIotype.getIoDesc()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public String getCrnNo$(){ |
| | | public String getCrnNo$() { |
| | | BasCrnpService service = SpringUtils.getBean(BasCrnpService.class); |
| | | BasCrnp basCrnp = service.selectById(this.crnNo); |
| | | if (!Cools.isEmpty(basCrnp)){ |
| | | if (!Cools.isEmpty(basCrnp)) { |
| | | return String.valueOf(basCrnp.getCrnNo()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public String getWrkDate$(){ |
| | | if (Cools.isEmpty(this.wrkDate)){ |
| | | public String getWrkDate$() { |
| | | if (Cools.isEmpty(this.wrkDate)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.wrkDate); |
| | | } |
| | | |
| | | public String getLocNo$(){ |
| | | public String getLocNo$() { |
| | | LocMastService service = SpringUtils.getBean(LocMastService.class); |
| | | LocMast locMast = service.selectById(this.locNo); |
| | | if (!Cools.isEmpty(locMast)){ |
| | | if (!Cools.isEmpty(locMast)) { |
| | | return String.valueOf(locMast.getLocNo()); |
| | | } |
| | | return this.locNo; |
| | | } |
| | | |
| | | public String getStaNo$(){ |
| | | public String getStaNo$() { |
| | | BasDevpService service = SpringUtils.getBean(BasDevpService.class); |
| | | BasDevp basDevp = service.selectById(this.staNo); |
| | | if (!Cools.isEmpty(basDevp)){ |
| | | if (!Cools.isEmpty(basDevp)) { |
| | | return String.valueOf(basDevp.getDevNo()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public String getSourceStaNo$(){ |
| | | public String getSourceStaNo$() { |
| | | BasDevpService service = SpringUtils.getBean(BasDevpService.class); |
| | | BasDevp basDevp = service.selectById(this.sourceStaNo); |
| | | if (!Cools.isEmpty(basDevp)){ |
| | | if (!Cools.isEmpty(basDevp)) { |
| | | return String.valueOf(basDevp.getDevNo()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public String getSourceLocNo$(){ |
| | | public String getSourceLocNo$() { |
| | | LocMastService service = SpringUtils.getBean(LocMastService.class); |
| | | LocMast locMast = service.selectById(this.sourceLocNo); |
| | | if (!Cools.isEmpty(locMast)){ |
| | | if (!Cools.isEmpty(locMast)) { |
| | | return String.valueOf(locMast.getLocNo()); |
| | | } |
| | | return this.sourceLocNo; |
| | | } |
| | | |
| | | public String getIoTime$(){ |
| | | if (Cools.isEmpty(this.ioTime)){ |
| | | public String getIoTime$() { |
| | | if (Cools.isEmpty(this.ioTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.ioTime); |
| | | } |
| | | |
| | | public String getCrnStrTime$(){ |
| | | if (Cools.isEmpty(this.crnStrTime)){ |
| | | public String getCrnStrTime$() { |
| | | if (Cools.isEmpty(this.crnStrTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.crnStrTime); |
| | | } |
| | | |
| | | public String getCrnEndTime$(){ |
| | | if (Cools.isEmpty(this.crnEndTime)){ |
| | | public String getCrnEndTime$() { |
| | | if (Cools.isEmpty(this.crnEndTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.crnEndTime); |
| | | } |
| | | |
| | | public String getPlcStrTime$(){ |
| | | if (Cools.isEmpty(this.plcStrTime)){ |
| | | public String getPlcStrTime$() { |
| | | if (Cools.isEmpty(this.plcStrTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.plcStrTime); |
| | | } |
| | | |
| | | public String getCrnPosTime$(){ |
| | | if (Cools.isEmpty(this.crnPosTime)){ |
| | | public String getCrnPosTime$() { |
| | | if (Cools.isEmpty(this.crnPosTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.crnPosTime); |
| | | } |
| | | |
| | | public String getRefIotime$(){ |
| | | if (Cools.isEmpty(this.refIotime)){ |
| | | public String getRefIotime$() { |
| | | if (Cools.isEmpty(this.refIotime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.refIotime); |
| | | } |
| | | |
| | | public String getModiUser$(){ |
| | | public String getModiUser$() { |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.modiUser); |
| | | if (!Cools.isEmpty(user)){ |
| | | if (!Cools.isEmpty(user)) { |
| | | return String.valueOf(user.getUsername()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public String getModiTime$(){ |
| | | if (Cools.isEmpty(this.modiTime)){ |
| | | public String getModiTime$() { |
| | | if (Cools.isEmpty(this.modiTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.modiTime); |
| | | } |
| | | |
| | | public String getAppeUser$(){ |
| | | public String getAppeUser$() { |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.appeUser); |
| | | if (!Cools.isEmpty(user)){ |
| | | if (!Cools.isEmpty(user)) { |
| | | return String.valueOf(user.getUsername()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public String getAppeTime$(){ |
| | | if (Cools.isEmpty(this.appeTime)){ |
| | | public String getAppeTime$() { |
| | | if (Cools.isEmpty(this.appeTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.appeTime); |
| | | } |
| | | |
| | | public String getErrorTime$(){ |
| | | if (Cools.isEmpty(this.errorTime)){ |
| | | public String getErrorTime$() { |
| | | if (Cools.isEmpty(this.errorTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.errorTime); |
| | |
| | | // this.errorMemo = errorMemo; |
| | | // } |
| | | |
| | | public String getLogErrTime$(){ |
| | | if (Cools.isEmpty(this.logErrTime)){ |
| | | public String getLogErrTime$() { |
| | | if (Cools.isEmpty(this.logErrTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.logErrTime); |
| | | } |
| | | |
| | | public Long getWrkStsComplete(){ |
| | | if (Cools.isEmpty(this.wrkSts)){ |
| | | public Long getWrkStsComplete() { |
| | | if (Cools.isEmpty(this.wrkSts)) { |
| | | return this.wrkSts; |
| | | } |
| | | if (this.ioType>10){ |
| | | return this.wrkSts+2; |
| | | }else { |
| | | return this.wrkSts+2; |
| | | if (this.ioType > 10) { |
| | | return this.wrkSts + 2; |
| | | } else { |
| | | return this.wrkSts + 2; |
| | | } |
| | | } |
| | | |
| | |
| | | import com.baomidou.mybatisplus.annotations.TableId; |
| | | import com.baomidou.mybatisplus.annotations.TableName; |
| | | import com.baomidou.mybatisplus.enums.IdType; |
| | | import com.core.common.Cools; |
| | | import com.core.common.SpringUtils; |
| | | import com.zy.asrs.service.*; |
| | | import com.zy.common.utils.Synchro; |
| | | import com.zy.system.entity.User; |
| | | import com.zy.system.service.UserService; |
| | | import com.core.common.Cools; |
| | | import com.core.common.SpringUtils; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | |
| | | /** |
| | | * 编号 |
| | | */ |
| | | @ApiModelProperty(value= "编号") |
| | | @ApiModelProperty(value = "编号") |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Long id; |
| | | |
| | | /** |
| | | * 工作号 |
| | | */ |
| | | @ApiModelProperty(value= "工作号") |
| | | @ApiModelProperty(value = "工作号") |
| | | @TableField("wrk_no") |
| | | private Integer wrkNo; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("inv_wh") |
| | | private String invWh; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | private Date ymd; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | private String mk; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("whs_type") |
| | | private Integer whsType; |
| | | |
| | | /** |
| | | * 工作状态 |
| | | */ |
| | | @ApiModelProperty(value= "工作状态") |
| | | @ApiModelProperty(value = "工作状态") |
| | | @TableField("wrk_sts") |
| | | private Integer wrkSts; |
| | | |
| | | /** |
| | | * 入出库类型 |
| | | */ |
| | | @ApiModelProperty(value= "入出库类型") |
| | | @ApiModelProperty(value = "入出库类型") |
| | | @TableField("io_type") |
| | | private Integer ioType; |
| | | |
| | | /** |
| | | * 堆垛机号 |
| | | */ |
| | | @ApiModelProperty(value= "堆垛机号") |
| | | @ApiModelProperty(value = "堆垛机号") |
| | | @TableField("crn_no") |
| | | private Integer crnNo; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("sheet_no") |
| | | private String sheetNo; |
| | | |
| | | /** |
| | | * 优先级 |
| | | */ |
| | | @ApiModelProperty(value= "优先级") |
| | | @ApiModelProperty(value = "优先级") |
| | | @TableField("io_pri") |
| | | private Double ioPri; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("wrk_date") |
| | | private Date wrkDate; |
| | | |
| | | /** |
| | | * 目标库位 |
| | | */ |
| | | @ApiModelProperty(value= "目标库位") |
| | | @ApiModelProperty(value = "目标库位") |
| | | @TableField("loc_no") |
| | | private String locNo; |
| | | |
| | | /** |
| | | * 目标站 |
| | | */ |
| | | @ApiModelProperty(value= "目标站") |
| | | @ApiModelProperty(value = "目标站") |
| | | @TableField("sta_no") |
| | | private Integer staNo; |
| | | |
| | | /** |
| | | * 源站 |
| | | */ |
| | | @ApiModelProperty(value= "源站") |
| | | @ApiModelProperty(value = "源站") |
| | | @TableField("source_sta_no") |
| | | private Integer sourceStaNo; |
| | | |
| | | /** |
| | | * 源库位 |
| | | */ |
| | | @ApiModelProperty(value= "源库位") |
| | | @ApiModelProperty(value = "源库位") |
| | | @TableField("source_loc_no") |
| | | private String sourceLocNo; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("loc_sts") |
| | | private String locSts; |
| | | |
| | | /** |
| | | * 拣料 |
| | | */ |
| | | @ApiModelProperty(value= "拣料") |
| | | @ApiModelProperty(value = "拣料") |
| | | private String picking; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("link_mis") |
| | | private String linkMis; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("online_yn") |
| | | private String onlineYn; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("upd_mk") |
| | | private String updMk; |
| | | |
| | | /** |
| | | * 退出 |
| | | */ |
| | | @ApiModelProperty(value= "退出") |
| | | @ApiModelProperty(value = "退出") |
| | | @TableField("exit_mk") |
| | | private String exitMk; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("plt_type") |
| | | private Integer pltType; |
| | | |
| | | /** |
| | | * 空板 |
| | | */ |
| | | @ApiModelProperty(value= "空板") |
| | | @ApiModelProperty(value = "空板") |
| | | @TableField("empty_mk") |
| | | private String emptyMk; |
| | | |
| | | /** |
| | | * 工作时间 |
| | | */ |
| | | @ApiModelProperty(value= "工作时间") |
| | | @ApiModelProperty(value = "工作时间") |
| | | @TableField("io_time") |
| | | private Date ioTime; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("ctn_type") |
| | | private Integer ctnType; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | private String packed; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("ove_mk") |
| | | private String oveMk; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("mtn_type") |
| | | private Double mtnType; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("user_no") |
| | | private String userNo; |
| | | |
| | | /** |
| | | * 堆垛机启动时间 |
| | | */ |
| | | @ApiModelProperty(value= "堆垛机启动时间") |
| | | @ApiModelProperty(value = "堆垛机启动时间") |
| | | @TableField("crn_str_time") |
| | | private Date crnStrTime; |
| | | |
| | | /** |
| | | * 堆垛机停止时间 |
| | | */ |
| | | @ApiModelProperty(value= "堆垛机停止时间") |
| | | @ApiModelProperty(value = "堆垛机停止时间") |
| | | @TableField("crn_end_time") |
| | | private Date crnEndTime; |
| | | |
| | | /** |
| | | * 拣料时间 |
| | | */ |
| | | @ApiModelProperty(value= "拣料时间") |
| | | @ApiModelProperty(value = "拣料时间") |
| | | @TableField("plc_str_time") |
| | | private Date plcStrTime; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("crn_pos_time") |
| | | private Date crnPosTime; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("load_time") |
| | | private Double loadTime; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("exp_time") |
| | | private Double expTime; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("ref_wrkno") |
| | | private Double refWrkno; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("ref_iotime") |
| | | private Date refIotime; |
| | | |
| | | /** |
| | | * 修改人员 |
| | | */ |
| | | @ApiModelProperty(value= "修改人员") |
| | | @ApiModelProperty(value = "修改人员") |
| | | @TableField("modi_user") |
| | | private Long modiUser; |
| | | |
| | | /** |
| | | * 修改时间 |
| | | */ |
| | | @ApiModelProperty(value= "修改时间") |
| | | @ApiModelProperty(value = "修改时间") |
| | | @TableField("modi_time") |
| | | private Date modiTime; |
| | | |
| | | /** |
| | | * 创建者 |
| | | */ |
| | | @ApiModelProperty(value= "创建者") |
| | | @ApiModelProperty(value = "创建者") |
| | | @TableField("appe_user") |
| | | private Long appeUser; |
| | | |
| | | /** |
| | | * 添加时间 |
| | | */ |
| | | @ApiModelProperty(value= "添加时间") |
| | | @ApiModelProperty(value = "添加时间") |
| | | @TableField("appe_time") |
| | | private Date appeTime; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("pause_mk") |
| | | private String pauseMk; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("error_time") |
| | | private Date errorTime; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("error_memo") |
| | | private String errorMemo; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("ctn_kind") |
| | | private Integer ctnKind; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("manu_type") |
| | | private String manuType; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("memo_m") |
| | | private String memoM; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("sc_weight") |
| | | private Double scWeight; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("log_mk") |
| | | private String logMk; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("log_err_time") |
| | | private Date logErrTime; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("log_err_memo") |
| | | private String logErrMemo; |
| | | |
| | | /** |
| | | * 条码 |
| | | */ |
| | | @ApiModelProperty(value= "条码") |
| | | @ApiModelProperty(value = "条码") |
| | | private String barcode; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("Pdc_type") |
| | | private String PdcType; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value = "") |
| | | @TableField("ctn_no") |
| | | private String ctnNo; |
| | | |
| | | /** |
| | | * 满板 |
| | | */ |
| | | @ApiModelProperty(value= "满板") |
| | | @ApiModelProperty(value = "满板") |
| | | @TableField("full_plt") |
| | | private String fullPlt; |
| | | |
| | | /** |
| | | * 先入品 / 双重入库 |
| | | */ |
| | | @ApiModelProperty(value= "先入品") |
| | | @ApiModelProperty(value = "先入品") |
| | | @TableField("pre_have") |
| | | private String preHave; |
| | | |
| | | /** |
| | | * 空操作 / 取货无箱 |
| | | */ |
| | | @ApiModelProperty(value= "空操作") |
| | | @ApiModelProperty(value = "空操作") |
| | | @TableField("take_none") |
| | | private String takeNone; |
| | | |
| | | public WrkMastLog() {} |
| | | public WrkMastLog() { |
| | | } |
| | | |
| | | public String getWrkNo$(){ |
| | | public String getWrkNo$() { |
| | | WrkMastService service = SpringUtils.getBean(WrkMastService.class); |
| | | WrkMast wrkMast = service.selectById(this.wrkNo); |
| | | if (!Cools.isEmpty(wrkMast)){ |
| | | if (!Cools.isEmpty(wrkMast)) { |
| | | return String.valueOf(wrkMast.getWrkNo()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public String getYmd$(){ |
| | | if (Cools.isEmpty(this.ymd)){ |
| | | public String getYmd$() { |
| | | if (Cools.isEmpty(this.ymd)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.ymd); |
| | | } |
| | | |
| | | public String getWrkSts$(){ |
| | | public String getWrkSts$() { |
| | | BasWrkStatusService service = SpringUtils.getBean(BasWrkStatusService.class); |
| | | BasWrkStatus basWrkStatus = service.selectById(this.wrkSts); |
| | | if (!Cools.isEmpty(basWrkStatus)){ |
| | | if (!Cools.isEmpty(basWrkStatus)) { |
| | | return String.valueOf(basWrkStatus.getWrkDesc()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public long getWrkSts(){ |
| | | return (long)this.wrkSts; |
| | | public long getWrkSts() { |
| | | return (long) this.wrkSts; |
| | | } |
| | | |
| | | public String getIoType$(){ |
| | | public String getIoType$() { |
| | | BasWrkIotypeService service = SpringUtils.getBean(BasWrkIotypeService.class); |
| | | BasWrkIotype basWrkIotype = service.selectById(this.ioType); |
| | | if (!Cools.isEmpty(basWrkIotype)){ |
| | | if (!Cools.isEmpty(basWrkIotype)) { |
| | | return String.valueOf(basWrkIotype.getIoDesc()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public String getCrnNo$(){ |
| | | public String getCrnNo$() { |
| | | BasCrnpService service = SpringUtils.getBean(BasCrnpService.class); |
| | | BasCrnp basCrnp = service.selectById(this.crnNo); |
| | | if (!Cools.isEmpty(basCrnp)){ |
| | | if (!Cools.isEmpty(basCrnp)) { |
| | | return String.valueOf(basCrnp.getCrnNo()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public String getWrkDate$(){ |
| | | if (Cools.isEmpty(this.wrkDate)){ |
| | | public String getWrkDate$() { |
| | | if (Cools.isEmpty(this.wrkDate)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.wrkDate); |
| | | } |
| | | |
| | | public String getLocNo$(){ |
| | | public String getLocNo$() { |
| | | LocMastService service = SpringUtils.getBean(LocMastService.class); |
| | | LocMast locMast = service.selectById(this.locNo); |
| | | if (!Cools.isEmpty(locMast)){ |
| | | if (!Cools.isEmpty(locMast)) { |
| | | return String.valueOf(locMast.getLocNo()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public String getStaNo$(){ |
| | | public String getStaNo$() { |
| | | BasDevpService service = SpringUtils.getBean(BasDevpService.class); |
| | | BasDevp basDevp = service.selectById(this.staNo); |
| | | if (!Cools.isEmpty(basDevp)){ |
| | | if (!Cools.isEmpty(basDevp)) { |
| | | return String.valueOf(basDevp.getDevNo()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public String getSourceStaNo$(){ |
| | | public String getSourceStaNo$() { |
| | | BasDevpService service = SpringUtils.getBean(BasDevpService.class); |
| | | BasDevp basDevp = service.selectById(this.sourceStaNo); |
| | | if (!Cools.isEmpty(basDevp)){ |
| | | if (!Cools.isEmpty(basDevp)) { |
| | | return String.valueOf(basDevp.getDevNo()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public String getSourceLocNo$(){ |
| | | public String getSourceLocNo$() { |
| | | LocMastService service = SpringUtils.getBean(LocMastService.class); |
| | | LocMast locMast = service.selectById(this.sourceLocNo); |
| | | if (!Cools.isEmpty(locMast)){ |
| | | if (!Cools.isEmpty(locMast)) { |
| | | return String.valueOf(locMast.getLocNo()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public String getIoTime$(){ |
| | | if (Cools.isEmpty(this.ioTime)){ |
| | | public String getIoTime$() { |
| | | if (Cools.isEmpty(this.ioTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.ioTime); |
| | | } |
| | | |
| | | public String getCrnStrTime$(){ |
| | | if (Cools.isEmpty(this.crnStrTime)){ |
| | | public String getCrnStrTime$() { |
| | | if (Cools.isEmpty(this.crnStrTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.crnStrTime); |
| | | } |
| | | |
| | | public String getCrnEndTime$(){ |
| | | if (Cools.isEmpty(this.crnEndTime)){ |
| | | public String getCrnEndTime$() { |
| | | if (Cools.isEmpty(this.crnEndTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.crnEndTime); |
| | | } |
| | | |
| | | public String getPlcStrTime$(){ |
| | | if (Cools.isEmpty(this.plcStrTime)){ |
| | | public String getPlcStrTime$() { |
| | | if (Cools.isEmpty(this.plcStrTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.plcStrTime); |
| | | } |
| | | |
| | | public String getCrnPosTime$(){ |
| | | if (Cools.isEmpty(this.crnPosTime)){ |
| | | public String getCrnPosTime$() { |
| | | if (Cools.isEmpty(this.crnPosTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.crnPosTime); |
| | | } |
| | | |
| | | |
| | | public String getRefIotime$(){ |
| | | if (Cools.isEmpty(this.refIotime)){ |
| | | public String getRefIotime$() { |
| | | if (Cools.isEmpty(this.refIotime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.refIotime); |
| | | } |
| | | |
| | | public String getModiUser$(){ |
| | | public String getModiUser$() { |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.modiUser); |
| | | if (!Cools.isEmpty(user)){ |
| | | if (!Cools.isEmpty(user)) { |
| | | return String.valueOf(user.getUsername()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public String getModiTime$(){ |
| | | if (Cools.isEmpty(this.modiTime)){ |
| | | public String getModiTime$() { |
| | | if (Cools.isEmpty(this.modiTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.modiTime); |
| | | } |
| | | |
| | | public String getAppeUser$(){ |
| | | public String getAppeUser$() { |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.appeUser); |
| | | if (!Cools.isEmpty(user)){ |
| | | if (!Cools.isEmpty(user)) { |
| | | return String.valueOf(user.getUsername()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public String getAppeTime$(){ |
| | | if (Cools.isEmpty(this.appeTime)){ |
| | | public String getAppeTime$() { |
| | | if (Cools.isEmpty(this.appeTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.appeTime); |
| | | } |
| | | |
| | | public String getErrorTime$(){ |
| | | if (Cools.isEmpty(this.errorTime)){ |
| | | public String getErrorTime$() { |
| | | if (Cools.isEmpty(this.errorTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.errorTime); |
| | | } |
| | | |
| | | public String getLogErrTime$(){ |
| | | if (Cools.isEmpty(this.logErrTime)){ |
| | | public String getLogErrTime$() { |
| | | if (Cools.isEmpty(this.logErrTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.logErrTime); |
| | |
| | | public class CheckOrderParam implements Serializable { |
| | | private String inventoryCode; |
| | | private String inventoryStartTime; |
| | | private String inventoryName; |
| | | private String inventoryName; |
| | | //private String status; |
| | | |
| | | private List<MatDto> details; |
| | |
| | | package com.zy.asrs.entity.param; |
| | | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.util.List; |
| | |
| | | private String data = ""; |
| | | |
| | | @Data |
| | | public static class PositionCodePaths{ |
| | | public static class PositionCodePaths { |
| | | private String positionCode; |
| | | private String type; |
| | | |
| | | public PositionCodePaths(String positionCode, String type){ |
| | | public PositionCodePaths(String positionCode, String type) { |
| | | this.positionCode = positionCode; |
| | | this.type = type; |
| | | |
| | |
| | | |
| | | |
| | | @Data |
| | | public class matList{ |
| | | public class matList { |
| | | private String matnr; //物料编码 |
| | | private String maktx; //物料名称 |
| | | private String batch; //批次 |
| | |
| | | |
| | | |
| | | @Data |
| | | public static class DataJson{ |
| | | public static class DataJson { |
| | | private String flowCode = "LIKUwms12GOTmes"; |
| | | private String tableCode; |
| | | private String logName; |
| | | |
| | | } |
| | | |
| | | @Data |
| | | public static class UpdateJson { |
| | | private String orderNo; |
| | |
| | | |
| | | |
| | | } |
| | | |
| | | @Data |
| | | public static class MatDetails{ |
| | | public static class MatDetails { |
| | | private String matnr; |
| | | private Integer seq; //序号 |
| | | private String batch; |
| | |
| | | private Double count; |
| | | |
| | | // 序列码 |
| | | private String threeCode; |
| | | private String threeCode; |
| | | |
| | | private Integer danger; |
| | | |
| | |
| | | this.batch = batch; |
| | | this.count = count; |
| | | } |
| | | public LocDetlAdjust(String matnr, String batch, Double count,Integer danger ,String threeCode ) { |
| | | |
| | | public LocDetlAdjust(String matnr, String batch, Double count, Integer danger, String threeCode) { |
| | | this.matnr = matnr; |
| | | this.batch = batch; |
| | | this.count = count; |
| | |
| | | public class MatDto { |
| | | |
| | | // 物料编号 |
| | | private String productionCode; |
| | | private String productionCode; |
| | | |
| | | // 物料编号 |
| | | private String matnr; |
| | |
| | | |
| | | public MatDto() { |
| | | } |
| | | |
| | | public MatDto(String matnr, String maknx, String batch, String specs, String manu, String memo, Double count, Double total) { |
| | | this.matnr = matnr; |
| | | this.maknx = maknx; |
| | |
| | | this.total = total; |
| | | } |
| | | |
| | | public MatDto(String matnr, String maknx, String batch, String specs, String manu, String memo, Double count, Double total,String orderNo,String customer) { |
| | | public MatDto(String matnr, String maknx, String batch, String specs, String manu, String memo, Double count, Double total, String orderNo, String customer) { |
| | | this.matnr = matnr; |
| | | this.maknx = maknx; |
| | | this.batch = batch; |
| | |
| | | this.maknx = maknx; |
| | | this.count = count; |
| | | } |
| | | |
| | | public MatDto(String matNo, String maknx, Double count, String specs) { |
| | | this.specs = specs; |
| | | this.matnr = matNo; |
| | | this.maknx = maknx; |
| | | this.count = count; |
| | | } |
| | | |
| | | public MatDto(String matNo, String maknx, Double count, Double total, String specs) { |
| | | this.specs = specs; |
| | | this.matnr = matNo; |
| | |
| | | public class MatSyncParam { |
| | | |
| | | /** |
| | | * 创建时间 |
| | | * 创建时间 |
| | | */ |
| | | private String createTime; |
| | | |
| | | private List<MatParam> matDetails; |
| | | |
| | | @Data |
| | | public static class MatParam{ |
| | | public static class MatParam { |
| | | /** |
| | | * 商品编号 |
| | | */ |
| | |
| | | package com.zy.asrs.entity.param; |
| | | |
| | | import com.alibaba.fastjson.JSON; |
| | | import com.core.common.DateUtils; |
| | | import com.zy.common.model.DetlDto; |
| | | import lombok.Data; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | /** |
| | |
| | | private List<DetlDto> details; |
| | | |
| | | private String lgort; |
| | | |
| | | |
| | | |
| | | } |
| | |
| | | //上级系统工作号 |
| | | private String superTaskNo; |
| | | |
| | | private String msgType; |
| | | private String msgType; |
| | | |
| | | //private String taskNo; |
| | | } |
| | |
| | | this.typeDesc103 = typeDesc103; |
| | | } |
| | | |
| | | public List<Integer> getType(){ |
| | | public List<Integer> getType() { |
| | | List<Integer> type = new ArrayList<>(); |
| | | if (this.typeDesc1==1){ |
| | | if (this.typeDesc1 == 1) { |
| | | type.add(1); |
| | | } |
| | | if (this.typeDesc10==1){ |
| | | if (this.typeDesc10 == 1) { |
| | | type.add(10); |
| | | } |
| | | if (this.typeDesc53==1){ |
| | | if (this.typeDesc53 == 1) { |
| | | type.add(53); |
| | | type.add(57); |
| | | } |
| | | if (this.typeDesc101==1){ |
| | | if (this.typeDesc101 == 1) { |
| | | type.add(101); |
| | | } |
| | | if (this.typeDesc110==1){ |
| | | if (this.typeDesc110 == 1) { |
| | | type.add(110); |
| | | } |
| | | if (this.typeDesc103==1){ |
| | | if (this.typeDesc103 == 1) { |
| | | type.add(103); |
| | | type.add(107); |
| | | } |
| | |
| | | |
| | | import lombok.Data; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | @Data |
| | |
| | | package com.zy.asrs.entity.param; |
| | | |
| | | import com.zy.asrs.entity.InventoryCheckOrderDetl; |
| | | import lombok.Data; |
| | | |
| | | import java.util.List; |
| | | |
| | | @Data |
| | | public class pdaAdjustParam { |
| | | private String barcode; |
| | | private List<InventoryCheckOrderDetl> param; |
| | | } |
| | |
| | | private String name; |
| | | |
| | | private Object value; |
| | | |
| | | public KeyValueVo() { |
| | | } |
| | | |
| | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | |
| | | import java.io.Serializable; |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.Date; |
| | |
| | | /** |
| | | * 所属项目 |
| | | */ |
| | | @ApiModelProperty(value= "所属项目") |
| | | @ApiModelProperty(value = "所属项目") |
| | | @TableField("host_id") |
| | | private Long hostId; |
| | | |
| | | /** |
| | | * 任务号 |
| | | */ |
| | | @ApiModelProperty(value= "任务号") |
| | | @ApiModelProperty(value = "任务号") |
| | | @TableField("wrk_no") |
| | | private String wrkNo; |
| | | |
| | | /** |
| | | * 工作状态 |
| | | */ |
| | | @ApiModelProperty(value= "工作状态") |
| | | @ApiModelProperty(value = "工作状态") |
| | | @TableField("wrk_sts") |
| | | private Long wrkSts; |
| | | |
| | | /** |
| | | * 托盘号 |
| | | */ |
| | | @ApiModelProperty(value= "托盘号") |
| | | @ApiModelProperty(value = "托盘号") |
| | | private String zpallet; |
| | | |
| | | /** |
| | | * 入库数量 |
| | | */ |
| | | @ApiModelProperty(value= "入库数量") |
| | | @ApiModelProperty(value = "入库数量") |
| | | @ExcelProperty(value = "入库总量") |
| | | private Double anfme; |
| | | |
| | | /** |
| | | * 关联货位 |
| | | */ |
| | | @ApiModelProperty(value= "关联货位") |
| | | @ApiModelProperty(value = "关联货位") |
| | | @TableField("node_id") |
| | | private Long nodeId; |
| | | |
| | | /** |
| | | * 货位 |
| | | */ |
| | | @ApiModelProperty(value= "货位") |
| | | @ApiModelProperty(value = "货位") |
| | | @TableField("loc_no") |
| | | private String locNo; |
| | | |
| | | /** |
| | | * 商品编码 |
| | | */ |
| | | @ApiModelProperty(value= "商品编码") |
| | | @ApiModelProperty(value = "商品编码") |
| | | @ExcelProperty(value = "商品编码") |
| | | private String matnr; |
| | | |
| | | /** |
| | | * 商品名称 |
| | | */ |
| | | @ApiModelProperty(value= "商品名称") |
| | | @ApiModelProperty(value = "商品名称") |
| | | @ExcelProperty(value = "商品名称") |
| | | private String maktx; |
| | | |
| | | /** |
| | | * 名称 |
| | | */ |
| | | @ApiModelProperty(value= "名称") |
| | | @ApiModelProperty(value = "名称") |
| | | private String name; |
| | | |
| | | /** |
| | | * 规格 |
| | | */ |
| | | @ApiModelProperty(value= "规格") |
| | | @ApiModelProperty(value = "规格") |
| | | @ExcelProperty(value = "规格") |
| | | private String specs; |
| | | |
| | | /** |
| | | * 型号 |
| | | */ |
| | | @ApiModelProperty(value= "型号") |
| | | @ApiModelProperty(value = "型号") |
| | | private String model; |
| | | |
| | | /** |
| | | * 批号 |
| | | */ |
| | | @ApiModelProperty(value= "批号") |
| | | @ApiModelProperty(value = "批号") |
| | | private String batch; |
| | | |
| | | /** |
| | | * 单位 |
| | | */ |
| | | @ApiModelProperty(value= "单位") |
| | | @ApiModelProperty(value = "单位") |
| | | @ExcelProperty(value = "单位") |
| | | private String unit; |
| | | |
| | | /** |
| | | * SKC |
| | | */ |
| | | @ApiModelProperty(value= "SKC") |
| | | @ApiModelProperty(value = "SKC") |
| | | @ExcelProperty(value = "SKC") |
| | | private String barcode; |
| | | |
| | | /** |
| | | * 单据类型 |
| | | */ |
| | | @ApiModelProperty(value= "单据类型") |
| | | @ApiModelProperty(value = "单据类型") |
| | | @TableField("doc_id") |
| | | private Long docId; |
| | | |
| | | /** |
| | | * 单据编号 |
| | | */ |
| | | @ApiModelProperty(value= "单据编号") |
| | | @ApiModelProperty(value = "单据编号") |
| | | @TableField("doc_num") |
| | | private String docNum; |
| | | |
| | | /** |
| | | * 客户名称 |
| | | */ |
| | | @ApiModelProperty(value= "客户名称") |
| | | @ApiModelProperty(value = "客户名称") |
| | | @TableField("cust_name") |
| | | private String custName; |
| | | |
| | | /** |
| | | * 品项数 |
| | | */ |
| | | @ApiModelProperty(value= "品项数") |
| | | @ApiModelProperty(value = "品项数") |
| | | @TableField("item_num") |
| | | private Integer itemNum; |
| | | |
| | | /** |
| | | * 数量 |
| | | */ |
| | | @ApiModelProperty(value= "数量") |
| | | @ApiModelProperty(value = "数量") |
| | | private Integer count; |
| | | |
| | | /** |
| | | * 单价 |
| | | */ |
| | | @ApiModelProperty(value= "单价") |
| | | @ApiModelProperty(value = "单价") |
| | | private Double price; |
| | | |
| | | /** |
| | | * 重量 |
| | | */ |
| | | @ApiModelProperty(value= "重量") |
| | | @ApiModelProperty(value = "重量") |
| | | private Double weight; |
| | | |
| | | /** |
| | | * 状态 1: 正常 0: 禁用 |
| | | */ |
| | | @ApiModelProperty(value= "状态 1: 正常 0: 禁用 ") |
| | | @ApiModelProperty(value = "状态 1: 正常 0: 禁用 ") |
| | | private Integer status; |
| | | |
| | | /** |
| | | * 添加人员 |
| | | */ |
| | | @ApiModelProperty(value= "添加人员") |
| | | @ApiModelProperty(value = "添加人员") |
| | | @TableField("create_by") |
| | | private Long createBy; |
| | | |
| | | /** |
| | | * 添加时间 |
| | | */ |
| | | @ApiModelProperty(value= "添加时间") |
| | | @ApiModelProperty(value = "添加时间") |
| | | @TableField("create_time") |
| | | private Date createTime; |
| | | |
| | | /** |
| | | * 修改人员 |
| | | */ |
| | | @ApiModelProperty(value= "修改人员") |
| | | @ApiModelProperty(value = "修改人员") |
| | | @TableField("update_by") |
| | | private Long updateBy; |
| | | |
| | | /** |
| | | * 修改时间 |
| | | */ |
| | | @ApiModelProperty(value= "修改时间") |
| | | @ApiModelProperty(value = "修改时间") |
| | | @TableField("update_time") |
| | | private Date updateTime; |
| | | |
| | | /** |
| | | * 备注 |
| | | */ |
| | | @ApiModelProperty(value= "备注") |
| | | @ApiModelProperty(value = "备注") |
| | | private String memo; |
| | | |
| | | public Pakin() {} |
| | | public Pakin() { |
| | | } |
| | | |
| | | public Pakin(Long hostId, String wrkNo, Long wrkSts, String zpallet, Double anfme, Long nodeId, String locNo, String matnr, String maktx, String name, String specs, String model, String batch, String unit, String barcode, Long docId, String docNum, String custName, Integer itemNum, Integer count, Double weight, Integer status, Long createBy, Date createTime, Long updateBy, Date updateTime, String memo) { |
| | | this.hostId = hostId; |
| | |
| | | // null // 备注 |
| | | // ); |
| | | |
| | | public String getHostId$(){ |
| | | public String getHostId$() { |
| | | HostService service = SpringUtils.getBean(HostService.class); |
| | | Host host = service.selectById(this.hostId); |
| | | if (!Cools.isEmpty(host)){ |
| | | if (!Cools.isEmpty(host)) { |
| | | return String.valueOf(host.getName()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | |
| | | |
| | | public String getStatus$(){ |
| | | if (null == this.status){ return null; } |
| | | switch (this.status){ |
| | | public String getStatus$() { |
| | | if (null == this.status) { |
| | | return null; |
| | | } |
| | | switch (this.status) { |
| | | case 1: |
| | | return "正常"; |
| | | case 0: |
| | |
| | | } |
| | | } |
| | | |
| | | public String getCreateBy$(){ |
| | | public String getCreateBy$() { |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.createBy); |
| | | if (!Cools.isEmpty(user)){ |
| | | if (!Cools.isEmpty(user)) { |
| | | return String.valueOf(user.getNickname()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public String getCreateTime$(){ |
| | | if (Cools.isEmpty(this.createTime)){ |
| | | public String getCreateTime$() { |
| | | if (Cools.isEmpty(this.createTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.createTime); |
| | | } |
| | | |
| | | public String getUpdateBy$(){ |
| | | public String getUpdateBy$() { |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.updateBy); |
| | | if (!Cools.isEmpty(user)){ |
| | | if (!Cools.isEmpty(user)) { |
| | | return String.valueOf(user.getNickname()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public String getUpdateTime$(){ |
| | | if (Cools.isEmpty(this.updateTime)){ |
| | | public String getUpdateTime$() { |
| | | if (Cools.isEmpty(this.updateTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.updateTime); |
| | |
| | | |
| | | /** |
| | | * 库位占用百分比 |
| | | * |
| | | * @author admin |
| | | * @date 2018年12月12日 |
| | | */ |
| | |
| | | private int oqty; |
| | | private int uqty; |
| | | private int xqty; |
| | | public int getFqty() { |
| | | return fqty; |
| | | } |
| | | public void setFqty(int fqty) { |
| | | this.fqty = fqty; |
| | | } |
| | | public int getOqty() { |
| | | return oqty; |
| | | } |
| | | public void setOqty(int oqty) { |
| | | this.oqty = oqty; |
| | | } |
| | | public int getUqty() { |
| | | return uqty; |
| | | } |
| | | public void setUqty(int uqty) { |
| | | this.uqty = uqty; |
| | | } |
| | | public int getXqty() { |
| | | return xqty; |
| | | } |
| | | public void setXqty(int xqty) { |
| | | this.xqty = xqty; |
| | | } |
| | | |
| | | public int getFqty() { |
| | | return fqty; |
| | | } |
| | | |
| | | public void setFqty(int fqty) { |
| | | this.fqty = fqty; |
| | | } |
| | | |
| | | public int getOqty() { |
| | | return oqty; |
| | | } |
| | | |
| | | public void setOqty(int oqty) { |
| | | this.oqty = oqty; |
| | | } |
| | | |
| | | public int getUqty() { |
| | | return uqty; |
| | | } |
| | | |
| | | public void setUqty(int uqty) { |
| | | this.uqty = uqty; |
| | | } |
| | | |
| | | public int getXqty() { |
| | | return xqty; |
| | | } |
| | | |
| | | public void setXqty(int xqty) { |
| | | this.xqty = xqty; |
| | | } |
| | | } |
| | |
| | | package com.zy.asrs.mapper; |
| | | |
| | | import com.zy.asrs.entity.AdjDetl; |
| | | import com.baomidou.mybatisplus.mapper.BaseMapper; |
| | | import com.zy.asrs.entity.AdjDetl; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.springframework.stereotype.Repository; |
| | | |
| | |
| | | package com.zy.asrs.mapper; |
| | | |
| | | import com.zy.asrs.entity.ApiLog; |
| | | import com.baomidou.mybatisplus.mapper.BaseMapper; |
| | | import com.zy.asrs.entity.ApiLog; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.springframework.stereotype.Repository; |
| | | |
| | |
| | | package com.zy.asrs.mapper; |
| | | |
| | | import com.zy.asrs.entity.AutoMove; |
| | | import com.baomidou.mybatisplus.mapper.BaseMapper; |
| | | import com.zy.asrs.entity.AutoMove; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.springframework.stereotype.Repository; |
| | | |
| | |
| | | package com.zy.asrs.mapper; |
| | | |
| | | import com.zy.asrs.entity.BasCrnOpt; |
| | | import com.baomidou.mybatisplus.mapper.BaseMapper; |
| | | import com.zy.asrs.entity.BasCrnOpt; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.springframework.stereotype.Repository; |
| | | |
| | |
| | | package com.zy.asrs.mapper; |
| | | |
| | | import com.zy.asrs.entity.BasErrLog; |
| | | import com.baomidou.mybatisplus.mapper.BaseMapper; |
| | | import com.zy.asrs.entity.BasErrLog; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.springframework.stereotype.Repository; |
| | | |
| | |
| | | package com.zy.asrs.mapper; |
| | | |
| | | import com.zy.asrs.entity.BasPlcerror; |
| | | import com.baomidou.mybatisplus.mapper.BaseMapper; |
| | | import com.zy.asrs.entity.BasPlcerror; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.springframework.stereotype.Repository; |
| | | |
| | |
| | | package com.zy.asrs.mapper; |
| | | |
| | | import com.zy.asrs.entity.DocType; |
| | | import com.baomidou.mybatisplus.mapper.BaseMapper; |
| | | import com.zy.asrs.entity.DocType; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.springframework.stereotype.Repository; |
| | | |
| | |
| | | |
| | | Integer listByPageCount(Map<String, Object> map); |
| | | |
| | | LocDetl selectItem(@Param("locNo")String locNo, @Param("matnr")String matnr, @Param("batch")String batch); |
| | | LocDetl selectItem(@Param("locNo") String locNo, @Param("matnr") String matnr, @Param("batch") String batch); |
| | | |
| | | int deleteItem(@Param("locNo")String locNo, @Param("matnr")String matnr, @Param("batch")String batch); |
| | | int deleteItem(@Param("locNo") String locNo, @Param("matnr") String matnr, @Param("batch") String batch); |
| | | |
| | | int updateAnfme(@Param("anfme")Double anfme, @Param("locNo")String locNo, @Param("matnr")String matnr, @Param("batch")String batch); |
| | | int updateAnfme(@Param("anfme") Double anfme, @Param("locNo") String locNo, @Param("matnr") String matnr, @Param("batch") String batch); |
| | | |
| | | List<LocDetl> getStockOutPage(Map<String, Object> map); |
| | | |
| | |
| | | @Select("SELECT ld.loc_no FROM asr_loc_detl ld LEFT JOIN asr_loc_mast lm ON ld.loc_no = lm.loc_no WHERE (1 = 1 AND ld.matnr = #{matnr} AND (lm.row1 >= #{start} AND lm.row1 <= #{end}) AND lm.loc_sts = 'F' AND DateDiff(dd, ld.appe_time, getdate()) = 0) ORDER BY ld.appe_time ASC") |
| | | List<String> selectSameDetlToday(@Param("matnr") String matnr, @Param("start") Integer start, @Param("end") Integer end); |
| | | |
| | | List<String> selectSameDetlTodayBatch(@Param("matnr") String matnr,@Param("batch") String batch, @Param("start") Integer start, @Param("end") Integer end); |
| | | List<String> selectSameDetlTodayBatch(@Param("matnr") String matnr, @Param("batch") String batch, @Param("start") Integer start, @Param("end") Integer end); |
| | | |
| | | List<LocDetl> getStockStatis(Map<String, Object> map); |
| | | |
| | |
| | | |
| | | // ------------------------------------------------- |
| | | |
| | | List<LocDetl> queryStock(@Param("matnr")String matnr, @Param("batch")String batch, @Param("orderNo")String orderNo, @Param("locNos") Set<String> locNos, @Param("supp")String supp, @Param("temp1")String temp1, @Param("temp2")String temp2); |
| | | List<LocDetl> queryStockCrn(@Param("matnr")String matnr, @Param("batch")String batch, @Param("orderNo")String orderNo, @Param("locNos") Set<String> locNos, @Param("supp")String supp, @Param("temp1")String temp1, @Param("temp2")String temp2); |
| | | List<LocDetl> queryStockFour(@Param("matnr")String matnr, @Param("batch")String batch, @Param("orderNo")String orderNo, @Param("locNos") Set<String> locNos, @Param("supp")String supp, @Param("temp1")String temp1, @Param("temp2")String temp2); |
| | | List<LocDetl> queryStockMinAnfme(@Param("matnr")String matnr, @Param("batch")String batch, @Param("orderNo")String orderNo, @Param("locNos") Set<String> locNos, @Param("supp")String supp, @Param("temp1")String temp1, @Param("temp2")String temp2); |
| | | List<LocDetl> queryStock(@Param("matnr") String matnr, @Param("batch") String batch, @Param("orderNo") String orderNo, @Param("locNos") Set<String> locNos, @Param("supp") String supp, @Param("temp1") String temp1, @Param("temp2") String temp2); |
| | | |
| | | List<LocDetl> queryStockCrn(@Param("matnr") String matnr, @Param("batch") String batch, @Param("orderNo") String orderNo, @Param("locNos") Set<String> locNos, @Param("supp") String supp, @Param("temp1") String temp1, @Param("temp2") String temp2); |
| | | |
| | | List<LocDetl> queryStockFour(@Param("matnr") String matnr, @Param("batch") String batch, @Param("orderNo") String orderNo, @Param("locNos") Set<String> locNos, @Param("supp") String supp, @Param("temp1") String temp1, @Param("temp2") String temp2); |
| | | |
| | | List<LocDetl> queryStockMinAnfme(@Param("matnr") String matnr, @Param("batch") String batch, @Param("orderNo") String orderNo, @Param("locNos") Set<String> locNos, @Param("supp") String supp, @Param("temp1") String temp1, @Param("temp2") String temp2); |
| | | |
| | | Double queryStockAnfme(String matnr, String batch); |
| | | |
| | |
| | | |
| | | Double selectLocDetlSumQty(String locNo); |
| | | |
| | | void updateMatTurn(@Param("matnrOld")String matnrOld,@Param("matnr")String matnr); |
| | | void updateMatTurn(@Param("matnrOld") String matnrOld, @Param("matnr") String matnr); |
| | | |
| | | List<Map<String,Object>> selectLocDetlUnilateralMoveShuttleMapY(Integer crnNo); |
| | | List<Map<String, Object>> selectLocDetlUnilateralMoveShuttleMapY(Integer crnNo); |
| | | |
| | | List<Map<String,Object>> selectLocDetlUnilateralMoveShuttleMapN(Integer crnNo); |
| | | List<Map<String, Object>> selectLocDetlUnilateralMoveShuttleMapN(Integer crnNo); |
| | | |
| | | List<LocDetl> selectLocDetlUnilateralMoveShuttleY(@Param("matnr")String matnr,@Param("batch")String batch,@Param("grade")String grade); |
| | | List<LocDetl> selectLocDetlUnilateralMoveShuttleN(@Param("matnr")String matnr,@Param("batch")String batch,@Param("grade")String grade); |
| | | List<LocDetl> selectLocDetlUnilateralMoveShuttleY(@Param("matnr") String matnr, @Param("batch") String batch, @Param("grade") String grade); |
| | | |
| | | List<LocDetl> selectLocDetlUnilateralMoveShuttleN(@Param("matnr") String matnr, @Param("batch") String batch, @Param("grade") String grade); |
| | | |
| | | |
| | | } |
| | |
| | | @Repository |
| | | public interface LocMastMapper extends BaseMapper<LocMast> { |
| | | |
| | | LocMast queryFreeLocMast(@Param("row") Integer row, @Param("locType1") Short locType1,@Param("whsType") Long whsType); |
| | | LocMast queryFreeLocMast(@Param("row") Integer row, @Param("locType1") Short locType1, @Param("whsType") Long whsType); |
| | | |
| | | @Select("select loc_no from asr_loc_mast where 1=1 and loc_sts = 'O' and crn_no = #{crnNo}") |
| | | List<String> queryGroupEmptyStock(Integer crnNo,@Param("whsType") Long whsType); |
| | | List<String> queryGroupEmptyStock(Integer crnNo, @Param("whsType") Long whsType); |
| | | |
| | | @Select("select count(*) as count from asr_loc_mast where 1=1 and loc_sts = 'O' and loc_type1 = #{locType1} and crn_no = #{crnNo}") |
| | | Integer selectEmptyLocCount(@Param("locType1") Short locType1, @Param("crnNo") Integer crnNo,@Param("whsType") Long whsType); |
| | | Integer selectEmptyLocCount(@Param("locType1") Short locType1, @Param("crnNo") Integer crnNo, @Param("whsType") Long whsType); |
| | | |
| | | List<LocMast> queryShallowLocFMast(@Param("crnNo") Integer crnNo,@Param("whsType") Long whsType); |
| | | List<LocMast> queryShallowLocFMast(@Param("crnNo") Integer crnNo, @Param("whsType") Long whsType); |
| | | |
| | | List<LocMast> selectLocShuttleMoveUnilateralY(@Param("bay")Integer bay,@Param("lev")Integer lev,@Param("whsType") Long whsType); |
| | | List<LocMast> selectLocShuttleMoveUnilateralN(@Param("bay")Integer bay,@Param("lev")Integer lev,@Param("whsType") Long whsType); |
| | | List<LocMast> selectLocShuttleMoveUnilateralY(@Param("bay") Integer bay, @Param("lev") Integer lev, @Param("whsType") Long whsType); |
| | | |
| | | List<LocMast> selectLocShuttleMoveUnilateralN(@Param("bay") Integer bay, @Param("lev") Integer lev, @Param("whsType") Long whsType); |
| | | |
| | | /* |
| | | * 获取目标库位所在巷道最浅非空库位 深>浅 |
| | | * */ |
| | | // LocMast selectLocByLocStsPakInF1(@Param("locNos") List<String> locNos,@Param("whsType") Long whsType); |
| | | |
| | | LocMast selectLocByLocStsPakInF1(@Param("crnNo") Integer crnNo,@Param("bay") Integer bay,@Param("lev") Integer lev,@Param("gro") Integer gro,@Param("whsType") Long whsType); |
| | | LocMast selectLocByLocStsPakInF1(@Param("crnNo") Integer crnNo, @Param("bay") Integer bay, @Param("lev") Integer lev, @Param("gro") Integer gro, @Param("whsType") Long whsType); |
| | | |
| | | LocMast selectLocByLocStsPakInShuttleF1(@Param("crnNo") Integer crnNo,@Param("bay") Integer bay,@Param("lev") Integer lev,@Param("gro") Integer gro,@Param("whsType") Long whsType); |
| | | LocMast selectLocByLocStsPakInShuttleF1(@Param("crnNo") Integer crnNo, @Param("bay") Integer bay, @Param("lev") Integer lev, @Param("gro") Integer gro, @Param("whsType") Long whsType); |
| | | |
| | | /* |
| | | * 获取目标库位所在巷道最浅非空库位 深<浅 |
| | | * */ |
| | | // LocMast selectLocByLocStsPakInF2(@Param("locNos") List<String> locNos,@Param("whsType") Long whsType); |
| | | |
| | | LocMast selectLocByLocStsPakInF2(@Param("crnNo") Integer crnNo,@Param("bay") Integer bay,@Param("lev") Integer lev,@Param("gro") Integer gro,@Param("whsType") Long whsType); |
| | | LocMast selectLocByLocStsPakInF2(@Param("crnNo") Integer crnNo, @Param("bay") Integer bay, @Param("lev") Integer lev, @Param("gro") Integer gro, @Param("whsType") Long whsType); |
| | | |
| | | LocMast selectLocByLocStsPakInShuttleF2(@Param("crnNo") Integer crnNo,@Param("bay") Integer bay,@Param("lev") Integer lev,@Param("gro") Integer gro,@Param("whsType") Long whsType); |
| | | LocMast selectLocByLocStsPakInShuttleF2(@Param("crnNo") Integer crnNo, @Param("bay") Integer bay, @Param("lev") Integer lev, @Param("gro") Integer gro, @Param("whsType") Long whsType); |
| | | |
| | | /* |
| | | * 获取目标库位所在巷道最深空库位 深>浅 |
| | | * */ |
| | | // LocMast selectLocByLocStsPakInO1(@Param("locNos") List<String> locNos,@Param("whsType") Long whsType); |
| | | |
| | | LocMast selectLocByLocStsPakInO1(@Param("crnNo") Integer crnNo,@Param("bay") Integer bay,@Param("lev") Integer lev,@Param("gro") Integer gro,@Param("whsType") Long whsType); |
| | | LocMast selectLocByLocStsPakInO1(@Param("crnNo") Integer crnNo, @Param("bay") Integer bay, @Param("lev") Integer lev, @Param("gro") Integer gro, @Param("whsType") Long whsType); |
| | | |
| | | /* |
| | | * 获取目标库位所在巷道最深空库位 深<浅 |
| | | * */ |
| | | // LocMast selectLocByLocStsPakInO2(@Param("locNos") List<String> locNos,@Param("whsType") Long whsType); |
| | | |
| | | LocMast selectLocByLocStsPakInO2(@Param("crnNo") Integer crnNo,@Param("bay") Integer bay,@Param("lev") Integer lev,@Param("gro") Integer gro,@Param("whsType") Long whsType); |
| | | LocMast selectLocByLocStsPakInO2(@Param("crnNo") Integer crnNo, @Param("bay") Integer bay, @Param("lev") Integer lev, @Param("gro") Integer gro, @Param("whsType") Long whsType); |
| | | } |
| | |
| | | |
| | | import com.baomidou.mybatisplus.mapper.BaseMapper; |
| | | import com.baomidou.mybatisplus.plugins.Page; |
| | | import com.zy.asrs.entity.Mat; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.springframework.stereotype.Repository; |
| | | import com.zy.asrs.entity.Mat; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | |
| | | @Repository |
| | | public interface MatMapper extends BaseMapper<Mat> { |
| | | |
| | | List<Mat> listByPage(Page page, @Param("tagId") String tagId, @Param("matnr") Object matnr, @Param("maktx") Object maktx); |
| | | List<Mat> listByPage2(Page page, @Param("tagId") String tagId, @Param("matnr") Object matnr, @Param("maktx") Object maktx, @Param("specs") Object specs); |
| | | List<Mat> listByPage(Page page, @Param("tagId") String tagId, @Param("matnr") Object matnr, @Param("maktx") Object maktx); |
| | | |
| | | Mat selectByMatnr(@Param("matnr")String matnr); |
| | | List<Mat> listByPage2(Page page, @Param("tagId") String tagId, @Param("matnr") Object matnr, @Param("maktx") Object maktx, @Param("specs") Object specs); |
| | | |
| | | List<Mat> selectByMatnrLink(@Param("matnr")String matnr); |
| | | Mat selectByMatnr(@Param("matnr") String matnr); |
| | | |
| | | List<Mat> selectByMatnrLink(@Param("matnr") String matnr); |
| | | |
| | | Mat selectNewUpdateTime(); |
| | | |
| | |
| | | |
| | | Integer getPakoutPageCount(Map<String, Object> map); |
| | | |
| | | int increase(@Param("orderId")Long orderId, @Param("matnr")String matnr, @Param("batch")String batch, @Param("qty")Double qty); |
| | | int increase(@Param("orderId") Long orderId, @Param("matnr") String matnr, @Param("batch") String batch, @Param("qty") Double qty); |
| | | |
| | | int decrease(@Param("orderNo")String orderNo, @Param("matnr")String matnr, @Param("batch")String batch, @Param("qty")Double qty); |
| | | int decrease(@Param("orderNo") String orderNo, @Param("matnr") String matnr, @Param("batch") String batch, @Param("qty") Double qty); |
| | | |
| | | int modifyStatus(@Param("orderId") Long orderId, @Param("status")Integer status); |
| | | int modifyStatus(@Param("orderId") Long orderId, @Param("status") Integer status); |
| | | |
| | | int addToLogTable(OrderDetl orderDetl); |
| | | |
| | | int increaseQtyByOrderNo(@Param("orderNo")String orderNo, @Param("matnr")String matnr, @Param("batch")String batch, @Param("qty")Double qty); |
| | | int increaseQtyByOrderNo(@Param("orderNo") String orderNo, @Param("matnr") String matnr, @Param("batch") String batch, @Param("qty") Double qty); |
| | | |
| | | int increaseWorkQty(@Param("orderId")Long orderId, @Param("matnr")String matnr, @Param("batch")String batch, @Param("workQty")Double workQty); |
| | | int increaseWorkQty(@Param("orderId") Long orderId, @Param("matnr") String matnr, @Param("batch") String batch, @Param("workQty") Double workQty); |
| | | |
| | | int increaseWorkQty2(@Param("id")Long id, @Param("workQty")Double workQty); |
| | | int increaseWorkQty2(@Param("id") Long id, @Param("workQty") Double workQty); |
| | | |
| | | /** |
| | | * 查询打印订单明细二维码数据 |
| | | * |
| | | * @param id 订单明细id |
| | | */ |
| | | PrintDataDto selectPrintData(Integer id); |
| | |
| | | |
| | | package com.zy.asrs.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.mapper.BaseMapper; |
| | | import com.zy.asrs.entity.OrderDetlReport; |
| | | import com.zy.asrs.entity.OrderDetlReportLog; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.springframework.stereotype.Repository; |
| | |
| | | package com.zy.asrs.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.mapper.BaseMapper; |
| | | import com.zy.asrs.entity.OrderDetl; |
| | | import com.zy.asrs.entity.OrderDetlReport; |
| | | import com.zy.asrs.entity.OrderDetlReportLog; |
| | | import com.zy.asrs.entity.param.PrintDataDto; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.springframework.stereotype.Repository; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | @Mapper |
| | | @Repository |
| | |
| | | @Repository |
| | | public interface OrderMapper extends BaseMapper<Order> { |
| | | |
| | | int updateSettle(@Param("orderId")Long orderId, @Param("settle")Long settle, @Param("userId")Long userId); |
| | | int updateSettle(@Param("orderId") Long orderId, @Param("settle") Long settle, @Param("userId") Long userId); |
| | | |
| | | List<Order> selectComplete(); |
| | | |
| | | List<Order> selectComplete8(); |
| | | |
| | | int addToLogTable(Order order); |
| | | |
| | | List<Order> selectorderNoL(@Param("orderNo")String orderNo); |
| | | List<Order> selectorderNoL(@Param("orderNo") String orderNo); |
| | | |
| | | Order selectOrderMoveStatus(); |
| | | |
| | | Order selectOrderMoveStatusInitial(); |
| | | } |
| | |
| | | package com.zy.asrs.mapper; |
| | | |
| | | import com.zy.asrs.entity.OrderSettle; |
| | | import com.baomidou.mybatisplus.mapper.BaseMapper; |
| | | import com.zy.asrs.entity.OrderSettle; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.springframework.stereotype.Repository; |
| | | |
| | |
| | | package com.zy.asrs.mapper; |
| | | |
| | | import com.zy.asrs.entity.Pack; |
| | | import com.baomidou.mybatisplus.mapper.BaseMapper; |
| | | import com.zy.asrs.entity.Pack; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.springframework.stereotype.Repository; |
| | | |
| | |
| | | @Repository |
| | | public interface ReportQueryMapper { |
| | | |
| | | List<ViewStockUseBean> queryViewStockUseListDate(ViewStockUseBean viewStockUse); |
| | | |
| | | //分页查询库位使用率 |
| | | List<ViewStockUseBean> queryViewStockUseList(ViewStockUseBean viewStockUse); |
| | | int getViewStockUseCount(ViewStockUseBean viewStockUse); |
| | | List<ViewStockUseBean> getViewStockUseAll(ViewStockUseBean viewStockUse); |
| | | List<ViewStockUseBean> queryViewStockUseListDate(ViewStockUseBean viewStockUse); |
| | | |
| | | //分页查询库存滞留时间 |
| | | public List<ViewStayTimeBean> queryViewStayTimeList(ViewStayTimeBean viewStayTime); |
| | | public int getViewStayTimeCount(ViewStayTimeBean viewStayTime); |
| | | //不分页查询所有信息,用于excel导出 |
| | | public List<ViewStayTimeBean> getViewStayTimeAll(ViewStayTimeBean viewStayTime); |
| | | //分页查询库位使用率 |
| | | List<ViewStockUseBean> queryViewStockUseList(ViewStockUseBean viewStockUse); |
| | | |
| | | // // 库位Map |
| | | @Select("select distinct row1 from asr_loc_mast order by row1 asc") |
| | | List<Integer> getViewLocRowTotal(); |
| | | int getViewStockUseCount(ViewStockUseBean viewStockUse); |
| | | |
| | | @Select("select distinct lev1 from asr_loc_mast where row1=#{row1} order by lev1 desc") |
| | | public List<String> getViewLocLevCount(@Param("row1") int row1); |
| | | // |
| | | @Select("select loc_no as locNo, bay1,loc_sts as locSts from asr_loc_mast where row1=#{row1} and lev1=#{lev1} order by bay1") |
| | | public List<ViewLocMapDto> getViewLocBays(@Param("row1") int row1, @Param("lev1") int lev1); |
| | | List<ViewStockUseBean> getViewStockUseAll(ViewStockUseBean viewStockUse); |
| | | |
| | | // 库位Map |
| | | @Select("select distinct bay1 from asr_loc_mast where row1=#{row1} order by bay1") |
| | | public List<String> getViewLocBayCount(@Param("row1") int row1); |
| | | //分页查询库存滞留时间 |
| | | public List<ViewStayTimeBean> queryViewStayTimeList(ViewStayTimeBean viewStayTime); |
| | | |
| | | @Select("select lev1,loc_sts as locSts from asr_loc_mast where row1=#{row1} and bay1=#{bay1} order by bay1") |
| | | public List<ViewLocMapDto> getViewLocLevs(@Param("row1") int row1, @Param("bay1") int bay1); |
| | | public int getViewStayTimeCount(ViewStayTimeBean viewStayTime); |
| | | |
| | | //不分页查询所有信息,用于excel导出 |
| | | public List<ViewStayTimeBean> getViewStayTimeAll(ViewStayTimeBean viewStayTime); |
| | | |
| | | // // 库位Map |
| | | @Select("select distinct row1 from asr_loc_mast order by row1 asc") |
| | | List<Integer> getViewLocRowTotal(); |
| | | |
| | | @Select("select distinct lev1 from asr_loc_mast where row1=#{row1} order by lev1 desc") |
| | | public List<String> getViewLocLevCount(@Param("row1") int row1); |
| | | |
| | | // |
| | | @Select("select loc_no as locNo, bay1,loc_sts as locSts from asr_loc_mast where row1=#{row1} and lev1=#{lev1} order by bay1") |
| | | public List<ViewLocMapDto> getViewLocBays(@Param("row1") int row1, @Param("lev1") int lev1); |
| | | |
| | | // 库位Map |
| | | @Select("select distinct bay1 from asr_loc_mast where row1=#{row1} order by bay1") |
| | | public List<String> getViewLocBayCount(@Param("row1") int row1); |
| | | |
| | | @Select("select lev1,loc_sts as locSts from asr_loc_mast where row1=#{row1} and bay1=#{bay1} order by bay1") |
| | | public List<ViewLocMapDto> getViewLocLevs(@Param("row1") int row1, @Param("bay1") int bay1); |
| | | |
| | | |
| | | //分页查询站点入出库次数统计 |
| | | public List<ViewInOutBean> queryViewInOutList(ViewInOutBean viewInOut); |
| | | //分页查询站点入出库次数统计 |
| | | public List<ViewInOutBean> queryViewInOutList(ViewInOutBean viewInOut); |
| | | |
| | | public List<ViewInOutBean> queryViewInOutListDay(ViewInOutBean viewInOut); |
| | | public List<ViewInOutBean> queryViewInOutListDay(ViewInOutBean viewInOut); |
| | | |
| | | public List<ViewInOutBean> queryViewInOutListMonth(ViewInOutBean viewInOut); |
| | | public List<ViewInOutBean> queryViewInOutListMonth(ViewInOutBean viewInOut); |
| | | |
| | | public List<ViewInOutBean> queryViewInOutListYear(ViewInOutBean viewInOut); |
| | | public int getViewInOutCount(ViewInOutBean viewInOut); |
| | | public int getViewInOutCountDay(ViewInOutBean viewInOut); |
| | | public int getViewInOutCountMonth(ViewInOutBean viewInOut); |
| | | public int getViewInOutCountYear(ViewInOutBean viewInOut); |
| | | //不分页查询所有信息,用于excel导出 |
| | | public List<ViewInOutBean> getViewInOutAll(ViewInOutBean viewInOut); |
| | | public List<ViewInOutBean> queryViewInOutListYear(ViewInOutBean viewInOut); |
| | | |
| | | //分页查询日入库记录 |
| | | public List<ViewWorkInBean> queryViewWorkInList(ViewWorkInBean viewWorkIn); |
| | | public int getViewWorkInCount(ViewWorkInBean viewWorkIn); |
| | | //不分页查询所有信息,用于excel导出 |
| | | public List<ViewWorkInBean> getViewWorkInAll(ViewWorkInBean viewWorkIn); |
| | | public int getViewInOutCount(ViewInOutBean viewInOut); |
| | | |
| | | //分页查询日出库记录 |
| | | public List<ViewWorkInBean> queryViewWorkOutList(ViewWorkInBean viewWorkOut); |
| | | public int getViewWorkOutCount(ViewWorkInBean viewWorkOut); |
| | | //不分页查询所有信息,用于excel导出 |
| | | public List<ViewWorkInBean> getViewWorkOutAll(ViewWorkInBean viewWorkOut); |
| | | public int getViewInOutCountDay(ViewInOutBean viewInOut); |
| | | |
| | | public int getViewInOutCountMonth(ViewInOutBean viewInOut); |
| | | |
| | | public int getViewInOutCountYear(ViewInOutBean viewInOut); |
| | | |
| | | //不分页查询所有信息,用于excel导出 |
| | | public List<ViewInOutBean> getViewInOutAll(ViewInOutBean viewInOut); |
| | | |
| | | //分页查询日入库记录 |
| | | public List<ViewWorkInBean> queryViewWorkInList(ViewWorkInBean viewWorkIn); |
| | | |
| | | public int getViewWorkInCount(ViewWorkInBean viewWorkIn); |
| | | |
| | | //不分页查询所有信息,用于excel导出 |
| | | public List<ViewWorkInBean> getViewWorkInAll(ViewWorkInBean viewWorkIn); |
| | | |
| | | //分页查询日出库记录 |
| | | public List<ViewWorkInBean> queryViewWorkOutList(ViewWorkInBean viewWorkOut); |
| | | |
| | | public int getViewWorkOutCount(ViewWorkInBean viewWorkOut); |
| | | |
| | | //不分页查询所有信息,用于excel导出 |
| | | public List<ViewWorkInBean> getViewWorkOutAll(ViewWorkInBean viewWorkOut); |
| | | |
| | | |
| | | // ------图表 |
| | | //饼状图 |
| | | @Select("select * from asr_loc_use_view") |
| | | public LocChartPie getLocUseRate(); |
| | | //曲线图 |
| | | @Select("select ymd,SUM(sto_qty) inqty,SUM(ret_qty) outqty from asr_sta_inout_view " |
| | | + "where ymd>CONVERT(char(10), DATEADD(DAY,-12,GETDATE()), 120) group by ymd order by ymd") |
| | | public List<WorkChartAxis> getChartAxis(); |
| | | // ------图表 |
| | | //饼状图 |
| | | @Select("select * from asr_loc_use_view") |
| | | public LocChartPie getLocUseRate(); |
| | | |
| | | List<ViewWorkCountInView> selectWorkCountIn(@Param("curr") Integer curr, @Param("limit") Integer limit, @Param("matnr")String matnr, @Param("start") String startTime, @Param("end") String endTime); |
| | | //曲线图 |
| | | @Select("select ymd,SUM(sto_qty) inqty,SUM(ret_qty) outqty from asr_sta_inout_view " |
| | | + "where ymd>CONVERT(char(10), DATEADD(DAY,-12,GETDATE()), 120) group by ymd order by ymd") |
| | | public List<WorkChartAxis> getChartAxis(); |
| | | |
| | | Integer selectWorkCountInTotal(String matnr, @Param("start") String startTime, @Param("end") String endTime); |
| | | List<ViewWorkCountInView> selectWorkCountIn(@Param("curr") Integer curr, @Param("limit") Integer limit, @Param("matnr") String matnr, @Param("start") String startTime, @Param("end") String endTime); |
| | | |
| | | List<ViewWorkCountInView> selectWorkCountOut(@Param("curr") Integer pageNumber, @Param("limit") Integer pageSize, String matnr, @Param("start") String startTime, @Param("end") String endTime); |
| | | Integer selectWorkCountInTotal(String matnr, @Param("start") String startTime, @Param("end") String endTime); |
| | | |
| | | Integer selectWorkCountOutTotal(String matnr, @Param("start") String startTime, @Param("end") String endTime); |
| | | List<ViewWorkCountInView> selectWorkCountOut(@Param("curr") Integer pageNumber, @Param("limit") Integer pageSize, String matnr, @Param("start") String startTime, @Param("end") String endTime); |
| | | |
| | | Integer selectWorkCountInSum(String matnr, @Param("start") String startTime, @Param("end") String endTime); |
| | | Integer selectWorkCountOutTotal(String matnr, @Param("start") String startTime, @Param("end") String endTime); |
| | | |
| | | Integer selectWorkCountOutSum(String matnr, @Param("start") String startTime, @Param("end") String endTime); |
| | | Integer selectWorkCountInSum(String matnr, @Param("start") String startTime, @Param("end") String endTime); |
| | | |
| | | List<ViewInOutBean> selectAll(); |
| | | Integer selectWorkCountOutSum(String matnr, @Param("start") String startTime, @Param("end") String endTime); |
| | | |
| | | List<ViewInOutBean> selectAll(); |
| | | } |
| | |
| | | package com.zy.asrs.mapper; |
| | | |
| | | import com.zy.asrs.entity.RowLastnoType; |
| | | import com.baomidou.mybatisplus.mapper.BaseMapper; |
| | | import com.zy.asrs.entity.RowLastnoType; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.springframework.stereotype.Repository; |
| | | |
| | |
| | | package com.zy.asrs.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.mapper.BaseMapper; |
| | | import com.zy.asrs.entity.Tag; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.springframework.stereotype.Repository; |
| | | import com.zy.asrs.entity.Tag; |
| | | |
| | | @Mapper |
| | | @Repository |
| | |
| | | package com.zy.asrs.mapper; |
| | | |
| | | import com.zy.asrs.entity.TrayCode; |
| | | import com.baomidou.mybatisplus.mapper.BaseMapper; |
| | | import com.zy.asrs.entity.TrayCode; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.springframework.stereotype.Repository; |
| | | |
| | |
| | | package com.zy.asrs.mapper; |
| | | |
| | | import com.zy.asrs.entity.WaitPakin; |
| | | import com.baomidou.mybatisplus.mapper.BaseMapper; |
| | | import com.zy.asrs.entity.WaitPakin; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.springframework.stereotype.Repository; |
| | | |
| | |
| | | package com.zy.asrs.mapper; |
| | | |
| | | import com.zy.asrs.entity.WrkDetlLog; |
| | | import com.baomidou.mybatisplus.mapper.BaseMapper; |
| | | import com.zy.asrs.entity.WrkDetlLog; |
| | | import org.apache.ibatis.annotations.Insert; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | |
| | | |
| | | List<WrkDetl> selectByWrkNo(Integer wrkNo); |
| | | |
| | | int deleteItem(@Param("wrkNo")Integer wrkNo, @Param("matnr")String matnr, @Param("batch")String batch); |
| | | int deleteItem(@Param("wrkNo") Integer wrkNo, @Param("matnr") String matnr, @Param("batch") String batch); |
| | | |
| | | int updateAnfme(@Param("anfme")Double anfme, @Param("wrkNo")Integer wrkNo, @Param("matnr")String matnr, @Param("batch")String batch); |
| | | int updateAnfme(@Param("anfme") Double anfme, @Param("wrkNo") Integer wrkNo, @Param("matnr") String matnr, @Param("batch") String batch); |
| | | |
| | | List<WrkDetl> selectAndLogByOrderNo(String orderNo); |
| | | |
| | | int updateInspect( @Param("wrkNo")Integer wrkNo, @Param("matnr")String matnr, @Param("batch")String batch); |
| | | int updateInspect(@Param("wrkNo") Integer wrkNo, @Param("matnr") String matnr, @Param("batch") String batch); |
| | | |
| | | List<WrkDetl> selectPakoutQuery(@Param("staNo")Integer staNo, @Param("matnr")String matnr); |
| | | List<WrkDetl> selectPakoutQuery(@Param("staNo") Integer staNo, @Param("matnr") String matnr); |
| | | |
| | | List<WrkDetl> selectAndLogByOrderNoGroupByMatnrOfSum(String orderNo); |
| | | |
| | |
| | | @Repository |
| | | public interface WrkMastMapper extends BaseMapper<WrkMast> { |
| | | |
| | | // @Select("select * from asr_wrk_mast where ((wrk_sts = 4 Or wrk_sts = 14 ) and io_type <> 103 and io_type <> 104 and io_type <> 107 ) or (wrk_sts = 2 and io_type=6) order by upd_mk,io_time,wrk_no") |
| | | // @Select("select * from asr_wrk_mast where ((wrk_sts = 4 Or wrk_sts = 14 ) and io_type <> 103 and io_type <> 104 and io_type <> 107 ) or (wrk_sts = 2 and io_type=6) order by upd_mk,io_time,wrk_no") |
| | | List<WrkMast> selectToBeCompleteData(); |
| | | |
| | | List<WrkMast> selectToBeHistoryData(); |
| | | |
| | | @Select("select count(1) from asr_wrk_mast where 1=1 and io_type = #{ioType} and sta_no = #{staNo}") |
| | | int selectWrkMastBareBoardStaNo(Integer ioType,Integer staNo); |
| | | int selectWrkMastBareBoardStaNo(Integer ioType, Integer staNo); |
| | | |
| | | List<WrkMast> selectWrkMastWrkDetlMatnrBatch(@Param("ioType") Integer ioType, @Param("matnr") String matnr , @Param("batch") String batch , @Param("grade") String grade , @Param("crnNo") Integer crnNo); |
| | | List<WrkMast> selectWrkMastWrkDetlMatnrBatch(@Param("ioType") Integer ioType, @Param("matnr") String matnr, @Param("batch") String batch, @Param("grade") String grade, @Param("crnNo") Integer crnNo); |
| | | |
| | | @Insert("insert into asr_wrk_mast_log select * from asr_wrk_mast where wrk_no=#{workNo}") |
| | | int saveWrkMastLog(Integer workNo); |
| | |
| | | package com.zy.asrs.service; |
| | | |
| | | import com.zy.asrs.entity.AdjDetl; |
| | | import com.baomidou.mybatisplus.service.IService; |
| | | import com.zy.asrs.entity.AdjDetl; |
| | | |
| | | public interface AdjDetlService extends IService<AdjDetl> { |
| | | |
| | |
| | | package com.zy.asrs.service; |
| | | |
| | | import com.zy.asrs.entity.ApiLog; |
| | | import com.baomidou.mybatisplus.service.IService; |
| | | import com.zy.asrs.entity.ApiLog; |
| | | |
| | | public interface ApiLogService extends IService<ApiLog> { |
| | | |
| | |
| | | package com.zy.asrs.service; |
| | | |
| | | import com.zy.asrs.entity.AutoMove; |
| | | import com.baomidou.mybatisplus.service.IService; |
| | | import com.zy.asrs.entity.AutoMove; |
| | | |
| | | public interface AutoMoveService extends IService<AutoMove> { |
| | | |
| | |
| | | package com.zy.asrs.service; |
| | | |
| | | import com.zy.asrs.entity.BasCrnOpt; |
| | | import com.baomidou.mybatisplus.service.IService; |
| | | import com.zy.asrs.entity.BasCrnOpt; |
| | | |
| | | public interface BasCrnOptService extends IService<BasCrnOpt> { |
| | | |
| | |
| | | |
| | | /** |
| | | * 入库站 |
| | | * |
| | | * @return |
| | | */ |
| | | List<Integer> getAvailableInSite(); |
| | | |
| | | /** |
| | | * 空板入库站 |
| | | * |
| | | * @return |
| | | */ |
| | | List<Integer> getAvailableEmptyInSite(); |
| | | |
| | | /** |
| | | * 出库站 |
| | | * |
| | | * @return |
| | | */ |
| | | List<Integer> getAvailableOutSite(Integer typeNo); |
| | | |
| | | List<Integer> getCrnAvailableOutSite(Integer typeNo); |
| | | |
| | | List<Integer> getShuttleAvailableOutSite(Integer typeNo); |
| | | |
| | | List<Integer> getCtuAvailableOutSite(Integer typeNo); |
| | | |
| | | /** |
| | | * 空板出库站 |
| | | * |
| | | * @return |
| | | */ |
| | | List<Integer> getAvailableEmptyOutSite(); |
| | | |
| | | List<Integer> getCrnAvailableEmptyOutSite(); |
| | | |
| | | List<Integer> getShuttleAvailableEmptyOutSite(); |
| | | |
| | | List<Integer> getCtuAvailableEmptyOutSite(); |
| | | |
| | | /** |
| | | * 目标站点状态检测 |
| | | * |
| | | * @param devpNo |
| | | */ |
| | | BasDevp checkSiteStatus(Integer devpNo); |
| | | |
| | | /** |
| | | * 目标站点状态检测 |
| | | * |
| | | * @param pakin 是否入库操作 true 是 ; false 不是 |
| | | */ |
| | | BasDevp checkSiteStatus(Integer devpNo, boolean pakin); |
| | |
| | | package com.zy.asrs.service; |
| | | |
| | | import com.zy.asrs.entity.BasErrLog; |
| | | import com.baomidou.mybatisplus.service.IService; |
| | | import com.zy.asrs.entity.BasErrLog; |
| | | |
| | | public interface BasErrLogService extends IService<BasErrLog> { |
| | | |
| | |
| | | package com.zy.asrs.service; |
| | | |
| | | import com.zy.asrs.entity.BasPlcerror; |
| | | import com.baomidou.mybatisplus.service.IService; |
| | | import com.zy.asrs.entity.BasPlcerror; |
| | | |
| | | public interface BasPlcerrorService extends IService<BasPlcerror> { |
| | | |
| | |
| | | package com.zy.asrs.service; |
| | | |
| | | import com.zy.asrs.entity.DocType; |
| | | import com.baomidou.mybatisplus.service.IService; |
| | | import com.zy.asrs.entity.DocType; |
| | | |
| | | public interface DocTypeService extends IService<DocType> { |
| | | |
| | |
| | | |
| | | /** |
| | | * 获取当天相同规格货物的深库位号 |
| | | * |
| | | * @param matnr 商品编号 |
| | | * @return locNo 库位号 |
| | | */ |
| | |
| | | |
| | | /** |
| | | * 获取当天相同规格货物的深库位号 |
| | | * |
| | | * @param matnr 商品编号 |
| | | * @param batch 批次号 |
| | | * @return locNo 库位号 |
| | |
| | | |
| | | // -------------------------------------------------- |
| | | |
| | | List<LocDetl> queryStock(String matnr, String batch, String orderNo, Set<String> locNos,String supp,String temp1,String temp2); |
| | | List<LocDetl> queryStockCrn(String matnr, String batch, String orderNo, Set<String> locNos,String supp,String temp1,String temp2); |
| | | List<LocDetl> queryStockFour(String matnr, String batch, String orderNo, Set<String> locNos,String supp,String temp1,String temp2); |
| | | List<LocDetl> queryStockMinAnfme(String matnr, String batch, String orderNo, Set<String> locNos,String supp,String temp1,String temp2); |
| | | List<LocDetl> queryStock(String matnr, String batch, String orderNo, Set<String> locNos, String supp, String temp1, String temp2); |
| | | |
| | | List<LocDetl> queryStockCrn(String matnr, String batch, String orderNo, Set<String> locNos, String supp, String temp1, String temp2); |
| | | |
| | | List<LocDetl> queryStockFour(String matnr, String batch, String orderNo, Set<String> locNos, String supp, String temp1, String temp2); |
| | | |
| | | List<LocDetl> queryStockMinAnfme(String matnr, String batch, String orderNo, Set<String> locNos, String supp, String temp1, String temp2); |
| | | |
| | | Double queryStockAnfme(String matnr, String batch); |
| | | |
| | |
| | | |
| | | Double getLocDetlSumQty(String locNo); |
| | | |
| | | void updateMatTurn(String matnrOld,String matnr); |
| | | void updateMatTurn(String matnrOld, String matnr); |
| | | |
| | | List<Map<String, Object>> selectLocDetlUnilateralMoveShuttleMap(Integer crnNo); |
| | | |
| | | void adjustLocDetl2(LocDetlAdjustParam param,String barcode, Long userId); |
| | | void adjustLocDetl2(LocDetlAdjustParam param, String barcode, Long userId); |
| | | |
| | | |
| | | List<LocDetl> selectLocDetlUnilateralMoveShuttle(String matnr,String batch,String grade,Integer crnNo); |
| | | List<LocDetl> selectLocDetlUnilateralMoveShuttle(String matnr, String batch, String grade, Integer crnNo); |
| | | } |
| | |
| | | import com.baomidou.mybatisplus.service.IService; |
| | | import com.zy.asrs.entity.LocDetl; |
| | | import com.zy.asrs.entity.LocMast; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import java.util.List; |
| | | |
| | |
| | | * 检索可用库位 |
| | | */ |
| | | LocMast queryFreeLocMast(Integer row, Short locType1); |
| | | |
| | | LocMast queryFreeLocMast(Integer row, Short locType1, Long whsType); |
| | | |
| | | /** |
| | | * 获取同组货架的空库位 |
| | | * |
| | | * @param sourceLocNo 源库位 |
| | | * @return 同组空库位集合 |
| | | */ |
| | | List<String> queryGroupEmptyStock(String sourceLocNo); |
| | | |
| | | List<String> queryGroupEmptyStock(String sourceLocNo, Long whsType); |
| | | |
| | | /** |
| | | * 检查当前库位所属巷道的空库位数量 |
| | | * |
| | | * @param locMast |
| | | * @return |
| | | */ |
| | | Boolean checkEmptyCount(LocMast locMast); |
| | | |
| | | Boolean checkEmptyCount(LocMast locMast, Long whsType); |
| | | |
| | | /** |
| | | * 当前库存明细是否为整托 |
| | | */ |
| | | Boolean checkWhole(List<LocDetl> locDetls); |
| | | |
| | | Boolean checkWhole(List<LocDetl> locDetls, Long whsType); |
| | | |
| | | /** |
| | | * 查询浅库位在库,深库位为O的数据 |
| | | * |
| | | * @return |
| | | */ |
| | | List<LocMast> queryShallowLocFMast(Integer crnNo); |
| | | |
| | | List<LocMast> queryShallowLocFMast(Integer crnNo, Long whsType); |
| | | |
| | | List<LocMast> selectLocMastShuttleMoveUnilateral(Integer bay,Integer lev,Integer crnNo); |
| | | List<LocMast> selectLocMastShuttleMoveUnilateral(Integer bay,Integer lev,Integer crnNo, Long whsType); |
| | | List<LocMast> selectLocMastShuttleMoveUnilateral(Integer bay, Integer lev, Integer crnNo); |
| | | |
| | | List<LocMast> selectLocMastShuttleMoveUnilateral(Integer bay, Integer lev, Integer crnNo, Long whsType); |
| | | |
| | | /* |
| | | * 获取目标库位所在巷道最浅非空库位 |
| | | * */ |
| | | // LocMast selectLocByLocStsPakInF(Integer curRow,Integer nearRow,List<String> locNos); |
| | | // LocMast selectLocByLocStsPakInF(Integer curRow,Integer nearRow,List<String> locNos, Long whsType); |
| | | LocMast selectLocByLocStsPakInF(Integer curRow,Integer nearRow,LocMast locNo, Long whsType); |
| | | LocMast selectLocByLocStsPakInF(Integer curRow, Integer nearRow, LocMast locNo, Long whsType); |
| | | |
| | | LocMast selectLocByLocStsPakInShuttleF(Integer curRow,Integer nearRow,LocMast locNo, Long whsType); |
| | | LocMast selectLocByLocStsPakInShuttleF(Integer curRow, Integer nearRow, LocMast locNo, Long whsType); |
| | | |
| | | /* |
| | | * 获取目标库位所在巷道最深空库位 |
| | | * */ |
| | | // LocMast selectLocByLocStsPakInO(Integer curRow,Integer nearRow,List<String> locNos); |
| | | // LocMast selectLocByLocStsPakInO(Integer curRow,Integer nearRow,List<String> locNos, Long whsType); |
| | | LocMast selectLocByLocStsPakInO(Integer curRow,Integer nearRow,LocMast locNoo, Long whsType); |
| | | LocMast selectLocByLocStsPakInO(Integer curRow, Integer nearRow, LocMast locNoo, Long whsType); |
| | | } |
| | |
| | | public interface MatService extends IService<Mat> { |
| | | |
| | | Page<Mat> getPage(Page page, String tagId, Object matnr, Object maktx); |
| | | |
| | | Page<Mat> getPage2(Page page, String tagId, Object matnr, Object maktx, Object specs); |
| | | |
| | | Mat selectByMatnr(String matnr); |
| | | |
| | | List<Mat> selectByMatnrLink(String matnr); |
| | | |
| | | Page<Mat> getMatTurnPage(Page<Mat> page); |
| | |
| | | * 组托 |
| | | */ |
| | | void comb(CombParam param, Long userId); |
| | | |
| | | void mergeComb(CombParam param, Long userId); |
| | | |
| | | /** |
| | | * 上架 |
| | | */ |
| | | void onSale(CombParam param); |
| | | |
| | | /** |
| | | * 下架 |
| | | */ |
| | | void offSale(OffSaleParam param); |
| | | |
| | | /** |
| | | * 盘点 |
| | |
| | | |
| | | void leftoversOut(Map<String, Object> map, Long userId); |
| | | |
| | | void pdaAdjust(pdaAdjustParam param, Long userId); |
| | | |
| | | void inventoryUpload(String orderId); |
| | | |
| | | void pingKuShelves(CombParam combParam, Long userId); |
| | | |
| | | void pingKuUnShelves(CombParam combParam, Long userId); |
| | | |
| | | List<CodeDataParam> getData(Map<String, Object> token, CodeParam codeParam); |
| | | |
| | |
| | | |
| | | public interface NodeService extends IService<Node> { |
| | | |
| | | Node getTop(); |
| | | Node getTop(); |
| | | |
| | | Node selectByUuid(String uuid); |
| | | Node selectByUuid(String uuid); |
| | | |
| | | Node selectByUuid(String uuid, Long hostId); |
| | | Node selectByUuid(String uuid, Long hostId); |
| | | |
| | | Node selectByUuid(String uuid, Long hostId, Integer type); |
| | | Node selectByUuid(String uuid, Long hostId, Integer type); |
| | | |
| | | Node selectByUuid(String uuid, Long hostId, Integer type, Long parentId); |
| | | Node selectByUuid(String uuid, Long hostId, Integer type, Long parentId); |
| | | |
| | | R stockPakin(PakinParam number, Long userId, Long hostId); |
| | | |
| | | R initPakout(List<InitPakoutParam> params, Long userId, Long hostId); |
| | | |
| | | void locMove(String sourceLocNo, String targetLocNo, Long userId); |
| | | } |
| | |
| | | |
| | | /** |
| | | * 同步商品信息 |
| | | * |
| | | * @param param |
| | | */ |
| | | void syncMat(MatSyncParam param); |
| | |
| | | package com.zy.asrs.service; |
| | | |
| | | import com.baomidou.mybatisplus.plugins.Page; |
| | | import com.baomidou.mybatisplus.service.IService; |
| | | import com.zy.asrs.entity.OrderDetl; |
| | | import com.zy.asrs.entity.OrderDetlReport; |
| | | |
| | | import java.util.List; |
| | | |
| | | public interface OrderDetlReportService extends IService<OrderDetlReport> { |
| | | |
| | |
| | | |
| | | /** |
| | | * 入出库任务生成时,更新单据表中作业数量 |
| | | * |
| | | * @param orderId |
| | | * @param matnr |
| | | * @param batch |
| | |
| | | package com.zy.asrs.service; |
| | | |
| | | import com.zy.asrs.entity.Order; |
| | | import com.baomidou.mybatisplus.service.IService; |
| | | import com.zy.asrs.entity.Order; |
| | | import com.zy.asrs.entity.OrderDetl; |
| | | import com.zy.asrs.entity.WrkDetl; |
| | | import com.zy.asrs.entity.WrkMast; |
| | |
| | | void remove(Long orderId); |
| | | |
| | | List<Order> selectComplete(); |
| | | |
| | | List<Order> selectComplete8(); |
| | | |
| | | boolean addToLogTable(Order order); |
| | |
| | | List<Order> selectorderNoL(String orderNo); |
| | | |
| | | Order selectOrderMoveStatus(); |
| | | |
| | | Order selectOrderMoveStatusInitial(); |
| | | |
| | | } |
| | |
| | | package com.zy.asrs.service; |
| | | |
| | | import com.zy.asrs.entity.OrderSettle; |
| | | import com.baomidou.mybatisplus.service.IService; |
| | | import com.zy.asrs.entity.OrderSettle; |
| | | |
| | | public interface OrderSettleService extends IService<OrderSettle> { |
| | | |
| | |
| | | package com.zy.asrs.service; |
| | | |
| | | import com.zy.asrs.entity.Pack; |
| | | import com.baomidou.mybatisplus.service.IService; |
| | | import com.zy.asrs.entity.Pack; |
| | | |
| | | public interface PackService extends IService<Pack> { |
| | | |
| | |
| | | package com.zy.asrs.service; |
| | | |
| | | import com.zy.asrs.entity.RowLastnoType; |
| | | import com.baomidou.mybatisplus.service.IService; |
| | | import com.zy.asrs.entity.RowLastnoType; |
| | | |
| | | public interface RowLastnoTypeService extends IService<RowLastnoType> { |
| | | |
| | |
| | | package com.zy.asrs.service; |
| | | |
| | | import com.zy.asrs.entity.TrayCode; |
| | | import com.baomidou.mybatisplus.service.IService; |
| | | import com.zy.asrs.entity.TrayCode; |
| | | |
| | | public interface TrayCodeService extends IService<TrayCode> { |
| | | |
| | |
| | | package com.zy.asrs.service; |
| | | |
| | | import com.zy.asrs.entity.WaitPakinLog; |
| | | import com.baomidou.mybatisplus.service.IService; |
| | | import com.zy.asrs.entity.WaitPakinLog; |
| | | |
| | | public interface WaitPakinLogService extends IService<WaitPakinLog> { |
| | | |
| | |
| | | package com.zy.asrs.service; |
| | | |
| | | import com.zy.asrs.entity.WaitPakin; |
| | | import com.baomidou.mybatisplus.service.IService; |
| | | import com.zy.asrs.entity.WaitPakin; |
| | | |
| | | public interface WaitPakinService extends IService<WaitPakin> { |
| | | |
| | |
| | | package com.zy.asrs.service; |
| | | |
| | | import com.zy.asrs.entity.WrkDetlLog; |
| | | import com.baomidou.mybatisplus.service.IService; |
| | | import com.zy.asrs.entity.WrkDetlLog; |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | |
| | | |
| | | boolean save(Integer workNo); |
| | | |
| | | List<WrkDetlLog> selectWrkDetlLogs(Integer wrkNo, String orderNo,String matnr,String specs,String zpallet,String batch,Double anfme, Date modiTimeStart, Date modiTimeEnd, Integer curr, Integer limit); |
| | | List<WrkDetlLog> selectWrkDetlLogs(Integer wrkNo, String orderNo, String matnr, String specs, String zpallet, String batch, Double anfme, Date modiTimeStart, Date modiTimeEnd, Integer curr, Integer limit); |
| | | |
| | | Long selectWrkDetlLogsTotal(Integer wrkNo, String orderNo,String matnr,String specs,String zpallet,String batch,Double anfme, Date modiTimeStart, Date modiTimeEnd); |
| | | Long selectWrkDetlLogsTotal(Integer wrkNo, String orderNo, String matnr, String specs, String zpallet, String batch, Double anfme, Date modiTimeStart, Date modiTimeEnd); |
| | | |
| | | } |
| | |
| | | |
| | | /** |
| | | * 从工作档得到站点入库暂存数 |
| | | * |
| | | * @param crnNo |
| | | * @return |
| | | */ |
| | | int getStoreCount(Integer crnNo); |
| | | |
| | | int selectWrkMastBareBoardStaNo(Integer ioType,Integer staNo); |
| | | int selectWrkMastBareBoardStaNo(Integer ioType, Integer staNo); |
| | | |
| | | List<WrkMast> selectWrkMastWrkDetlMatnrBatch(Integer ioType,String matnr , String batch ,String grade,Integer crnNo); |
| | | List<WrkMast> selectWrkMastWrkDetlMatnrBatch(Integer ioType, String matnr, String batch, String grade, Integer crnNo); |
| | | |
| | | int saveWrkMastLog(Integer wrkNo); |
| | | |
| | | List<WrkMast> selectToShuttleTask(); |
| | | |
| | | List<WrkMast> selectToShuttleOutTask(); |
| | | |
| | | @Insert("insert into asr_wrk_detl_log select * from asr_wrk_detl where wrk_no=#{workNo}") |
| | |
| | | import com.baomidou.mybatisplus.service.impl.ServiceImpl; |
| | | import com.core.exception.CoolException; |
| | | import com.zy.asrs.entity.LocDetl; |
| | | import com.zy.asrs.entity.ManLocDetl; |
| | | import com.zy.asrs.entity.Mat; |
| | | import com.zy.asrs.entity.Node; |
| | | import com.zy.asrs.entity.param.LocDetlAdjustParam; |
| | | import com.zy.asrs.entity.result.StockVo; |
| | | import com.zy.asrs.mapper.LocDetlMapper; |
| | |
| | | import com.zy.asrs.entity.*; |
| | | import com.zy.asrs.entity.param.*; |
| | | import com.zy.asrs.mapper.BasDevpMapper; |
| | | import com.zy.asrs.mapper.ManLocDetlMapper; |
| | | import com.zy.asrs.service.*; |
| | | import com.zy.asrs.third.CodeDataParam; |
| | | import com.zy.asrs.third.CodeParam; |
| | |
| | | private CommonService commonService; |
| | | @Autowired |
| | | private NodeService nodeService; |
| | | @Autowired |
| | | private ManLocDetlService manLocDetlService; |
| | | @Autowired |
| | | private ManLocDetlMapper manLocDetlMapper; |
| | | @Resource |
| | | private InventoryCheckOrderService checkOrderService; |
| | | @Resource |
| | | private InventoryCheckOrderDetlService checkOrderDetlService; |
| | | |
| | | @Resource |
| | | private BasDevpMapper basDevpMapper; |
| | |
| | | |
| | | } |
| | | |
| | | // 商品上架 |
| | | @Override |
| | | public void onSale(CombParam param) { |
| | | Date now = new Date(); |
| | | // 获取库位号 |
| | | String locno = param.getLocno(); |
| | | Node node = nodeService.selectByUuid(locno); |
| | | if (Cools.isEmpty(node)) { |
| | | throw new CoolException(param.getLocno() + ":库位不存在"); |
| | | } |
| | | |
| | | // 获取商品列表 |
| | | for (CombParam.CombMat combMat : param.getCombMats()) { |
| | | Mat mat = matService.selectByMatnr(combMat.getMatnr()); |
| | | if (Cools.isEmpty(mat)) { |
| | | throw new CoolException(combMat.getMatnr() + ":商品档案不存在!"); |
| | | } |
| | | if (Cools.isEmpty(combMat.getAnfme()) || combMat.getAnfme() == 0) { |
| | | throw new CoolException(combMat.getMatnr() + ":商品数量有误!"); |
| | | } |
| | | if (Cools.isEmpty(combMat.getBatch())) { |
| | | // throw new CoolException(combMat.getMatnr() + ":商品批号有误!"); |
| | | } |
| | | ManLocDetl manLocDetl = new ManLocDetl(); |
| | | manLocDetl.setLocNo(locno); |
| | | manLocDetl.setNodeId(node.getId()); |
| | | manLocDetl.setMaktx(mat.getMaktx()); |
| | | manLocDetl.setMatnr(mat.getMatnr()); |
| | | manLocDetl.setBatch(Cools.isEmpty(combMat.getBatch()) ? "" : combMat.getBatch()); |
| | | manLocDetl.setAnfme(combMat.getAnfme()); |
| | | manLocDetl.setModiTime(now); |
| | | if (!manLocDetlService.insert(manLocDetl)) { |
| | | throw new CoolException("商品上架失败!"); |
| | | } |
| | | } |
| | | } |
| | | |
| | | // 商品下架 |
| | | @Override |
| | | public void offSale(OffSaleParam offSaleParam) { |
| | | ManLocDetl manLocDetl = manLocDetlMapper.selectLocNo0(offSaleParam.getLocNo(), offSaleParam.getMatnr()); |
| | | if (Cools.isEmpty(manLocDetl)) { |
| | | throw new CoolException("无此商品!"); |
| | | } |
| | | double anfme = manLocDetl.getAnfme() - offSaleParam.getAnfme(); |
| | | if (anfme < 0) { |
| | | throw new CoolException("商品库存不足!"); |
| | | } else if (anfme == 0) { |
| | | manLocDetlMapper.deleteLocNo0(offSaleParam.getLocNo(), offSaleParam.getMatnr()); |
| | | } |
| | | manLocDetlMapper.updateAnfme0(anfme, manLocDetl.getNodeId()); |
| | | } |
| | | |
| | | // 查找商品 |
| | | |
| | |
| | | |
| | | } |
| | | |
| | | @Override |
| | | public void pdaAdjust(pdaAdjustParam param, Long userId) { |
| | | if (Cools.isEmpty(param)) { |
| | | throw new CoolException("盘点列表参数为空"); |
| | | } |
| | | for (InventoryCheckOrderDetl orderDetl : param.getParam()) { |
| | | InventoryCheckOrderDetl inventoryCheckOrderDetl = checkOrderDetlService.selectOne(new EntityWrapper<InventoryCheckOrderDetl>() |
| | | .eq("order_no", orderDetl.getOrderNo()) |
| | | .eq("matnr", orderDetl.getMatnr()) |
| | | .eq("batch", orderDetl.getBatch())); |
| | | if (Cools.isEmpty(inventoryCheckOrderDetl)) { |
| | | throw new CoolException("未查询到盘点信息"); |
| | | } |
| | | if (!inventoryCheckOrderDetl.getStatus().equals("1")) { |
| | | throw new CoolException("该任务已盘点"); |
| | | } |
| | | inventoryCheckOrderDetl.setCheckAnfme(orderDetl.getCheckAnfme()); |
| | | inventoryCheckOrderDetl.setStatus("2"); |
| | | if (!checkOrderDetlService.updateById(inventoryCheckOrderDetl)) { |
| | | throw new CoolException("保存盘点信息失败!"); |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | } |
| | | |
| | | @Override |
| | | @Transactional |
| | | public void inventoryUpload(String orderId) { |
| | | if (Cools.isEmpty(orderId)) { |
| | | throw new CoolException("盘点单id为空"); |
| | | } |
| | | InventoryCheckOrder inventoryCheckOrder = checkOrderService.selectById(orderId); |
| | | if (Cools.isEmpty(inventoryCheckOrder)) { |
| | | throw new CoolException("未找到盘点单"); |
| | | } |
| | | if (inventoryCheckOrder.getStatus().equals("2")) { |
| | | throw new CoolException("盘点单已提交"); |
| | | } |
| | | int count = checkOrderDetlService.selectCount(new EntityWrapper<InventoryCheckOrderDetl>() |
| | | .eq("order_no", inventoryCheckOrder.getOrderNo()).isNull("check_anfme")); |
| | | if (count > 0) { |
| | | throw new CoolException("有未完成的盘点任务"); |
| | | } |
| | | |
| | | List<InventoryCheckOrderDetl> checkOrderProfitDetls = checkOrderDetlService.selectList(new EntityWrapper<InventoryCheckOrderDetl>() |
| | | .eq("order_no", inventoryCheckOrder.getOrderNo()) |
| | | .addFilter("anfme < check_anfme")); |
| | | if (!checkOrderProfitDetls.isEmpty()) { |
| | | //获取盘盈单param |
| | | InventoryErpParam erpProfitParam = getErpProfitParam(inventoryCheckOrder, checkOrderProfitDetls); |
| | | uploadErp(erpProfitParam); |
| | | } |
| | | |
| | | List<InventoryCheckOrderDetl> checkOrderDeficitDetls = checkOrderDetlService.selectList(new EntityWrapper<InventoryCheckOrderDetl>() |
| | | .eq("order_no", inventoryCheckOrder.getOrderNo()) |
| | | .addFilter("anfme > check_anfme")); |
| | | |
| | | if (!checkOrderDeficitDetls.isEmpty()) { |
| | | //获取盘亏单param |
| | | InventoryErpParam erpDeficitParam = getErpDeficitParam(inventoryCheckOrder, checkOrderDeficitDetls); |
| | | uploadErp(erpDeficitParam); |
| | | } |
| | | |
| | | inventoryCheckOrder.setStatus("2"); |
| | | if (!checkOrderService.updateById(inventoryCheckOrder)) { |
| | | throw new CoolException("状态更新失败"); |
| | | } |
| | | |
| | | |
| | | } |
| | | |
| | | @Override |
| | | @Transactional |
| | | public void pingKuShelves(CombParam combParam, Long userId) { |
| | | Node node = nodeService.selectOne(new EntityWrapper<Node>().eq("name", combParam.getLocno()).eq("type", 3)); |
| | | if (Cools.isEmpty(node)) { |
| | | throw new CoolException("未找到库位信息"); |
| | | } |
| | | |
| | | Order order = orderService.selectByNo(combParam.getOrderNo()); |
| | | if (Cools.isEmpty(order) || order.getSettle() > 2) { |
| | | throw new CoolException("单据编号已过期"); |
| | | } |
| | | // 生成入库通知档 |
| | | List<DetlDto> detlDtos = new ArrayList<>(); |
| | | |
| | | for (CombParam.CombMat elem : combParam.getCombMats()) { |
| | | |
| | | |
| | | // param.getCombMats().forEach(elem -> { |
| | | |
| | | // 订单明细数量校验 |
| | | OrderDetl orderDetl = orderDetlService.selectItem(order.getId(), elem.getMatnr(), elem.getBatch()); |
| | | if (Cools.isEmpty(orderDetl)) { |
| | | throw new CoolException("该单据中未找到对应物料明细"); |
| | | } |
| | | if (elem.getAnfme() > orderDetl.getEnableQty()) { |
| | | throw new CoolException(orderDetl.getMatnr() + "入库数量不合法"); |
| | | } |
| | | // 修改订单作业数量 |
| | | if (!orderDetlService.increaseWorkQty(order.getId(), elem.getMatnr(), elem.getBatch(), elem.getAnfme())) { |
| | | throw new CoolException("修改单据作业数量失败"); |
| | | } |
| | | |
| | | // DetlDto detlDto = new DetlDto(elem.getMatnr(), elem.getBatch(), elem.getAnfme(),orderDetl.getManu()); |
| | | DetlDto detlDto = new DetlDto(elem.getMatnr(), elem.getBatch(), elem.getAnfme(), orderDetl.getSuppCode() |
| | | , orderDetl.getManu(), orderDetl.getSku(), orderDetl.getSupp(), orderDetl.getTemp1(), orderDetl.getTemp2(), orderDetl.getTemp3(), orderDetl.getTemp4()); |
| | | if (DetlDto.has(detlDtos, detlDto)) { |
| | | DetlDto one = DetlDto.find(detlDtos, detlDto.getMatnr(), detlDto.getBatch()); |
| | | assert one != null; |
| | | one.setAnfme(one.getAnfme() + detlDto.getAnfme()); |
| | | } else { |
| | | detlDtos.add(detlDto); |
| | | } |
| | | // }); |
| | | } |
| | | int workNo = commonService.getWorkNo(4); |
| | | Date now = new Date(); |
| | | // 生成工作档 |
| | | WrkMast wrkMast = new WrkMast(); |
| | | wrkMast.setWrkNo(workNo); |
| | | wrkMast.setIoTime(new Date()); |
| | | wrkMast.setWrkSts(4L); // 工作状态:生成入库ID |
| | | wrkMast.setIoType(300); // 入出库状态:1.入库 |
| | | wrkMast.setIoPri(12D); // 优先级 |
| | | wrkMast.setLocNo(node.getName()); |
| | | wrkMast.setBarcode(""); // 托盘码 |
| | | wrkMast.setFullPlt("Y"); // 满板:Y |
| | | wrkMast.setPicking("N"); // 拣料 |
| | | wrkMast.setExitMk("N"); // 退出 |
| | | wrkMast.setEmptyMk("N"); // 空板 |
| | | wrkMast.setLinkMis("Y"); |
| | | wrkMast.setSheetNo(order.getOrderNo()); |
| | | // 操作人员数据 |
| | | wrkMast.setAppeTime(now); |
| | | wrkMast.setModiTime(now); |
| | | boolean res = wrkMastService.insert(wrkMast); |
| | | if (!res) { |
| | | throw new CoolException("保存工作档失败"); |
| | | } |
| | | for (DetlDto detlDto : detlDtos) { |
| | | Mat mat = matService.selectByMatnr(detlDto.getMatnr()); |
| | | if (Cools.isEmpty(mat)) { |
| | | throw new CoolException(detlDto.getMatnr() + "商品档案不存在"); |
| | | } |
| | | WrkDetl wrkDetl = new WrkDetl(); |
| | | |
| | | wrkDetl.sync(detlDto); |
| | | wrkDetl.sync(mat); |
| | | |
| | | wrkDetl.setOrderNo(order.getOrderNo()); |
| | | wrkDetl.setWrkNo(wrkMast.getWrkNo()); |
| | | wrkDetl.setIoTime(wrkMast.getIoTime()); |
| | | wrkDetl.setAppeTime(now); |
| | | wrkDetl.setModiTime(now); |
| | | wrkDetl.setManu(detlDto.getMark()); //标记 |
| | | wrkDetl.setOrigin(order.getItemName());//仓库 |
| | | wrkDetl.setSupp(detlDto.getSuppName()); //供应商 |
| | | wrkDetl.setSku(detlDto.getCustomer()); //客户名称 |
| | | wrkDetl.setThreeCode(detlDto.getOrderNo()); //u8发过来的订单号 |
| | | wrkDetl.setSuppCode(detlDto.getFromOrderNo()); //来源单号 |
| | | wrkDetl.setTemp1(detlDto.getTemp1()); |
| | | wrkDetl.setTemp2(detlDto.getTemp2()); |
| | | wrkDetl.setTemp3(detlDto.getSuppName()); |
| | | wrkDetl.setTemp4(detlDto.getTemp4()); |
| | | if (!wrkDetlService.insert(wrkDetl)) { |
| | | throw new CoolException("保存工作明细失败"); |
| | | } |
| | | } |
| | | orderService.updateSettle(order.getId(), 2L, userId); |
| | | |
| | | |
| | | } |
| | | |
| | | @Override |
| | | @Transactional |
| | | public void pingKuUnShelves(CombParam combParam, Long userId) { |
| | | String orderNo = combParam.getOrderNo(); |
| | | |
| | | Node node = nodeService.selectOne(new EntityWrapper<Node>().eq("name", combParam.getLocno()).eq("type", 3)); |
| | | if (Cools.isEmpty(node)) { |
| | | throw new CoolException("未找到库位信息"); |
| | | } |
| | | //根据订单号生成出库任务工作档 |
| | | Order order = orderService.selectOne(new EntityWrapper<Order>().eq("order_no", orderNo)); |
| | | if (order.getSettle() != 1 && order.getSettle() != 2) { |
| | | throw new CoolException("该订单已处理"); |
| | | } |
| | | List<DetlDto> detlDtos = new ArrayList<>(); |
| | | for (CombParam.CombMat elem : combParam.getCombMats()) { |
| | | Wrapper<ManLocDetl> manLocDetlWrapper = new EntityWrapper<ManLocDetl>().eq("loc_no", combParam.getLocno()) |
| | | .eq("matnr", elem.getMatnr()).eq("batch", elem.getBatch()) |
| | | .eq("temp3", elem.getSupp()).eq("temp1", elem.getTemp1()).eq("temp2", elem.getTemp2()); |
| | | ManLocDetl manLocDetl = manLocDetlService.selectOne(manLocDetlWrapper); |
| | | |
| | | if (Cools.isEmpty(manLocDetl)) { |
| | | throw new CoolException("该库位未查询到货物信息"); |
| | | } |
| | | if (elem.getAnfme() > manLocDetl.getAnfme()) { |
| | | throw new CoolException("出库数量大于库位剩余数量"); |
| | | } |
| | | |
| | | OrderDetl orderDetl = orderDetlService.selectItem(order.getId(), elem.getMatnr(), elem.getBatch()); |
| | | if (Cools.isEmpty(orderDetl)) { |
| | | throw new CoolException("该单据中未找到对应物料明细"); |
| | | } |
| | | if (elem.getAnfme() > orderDetl.getEnableQty()) { |
| | | throw new CoolException(orderDetl.getMatnr() + "入库数量不合法"); |
| | | } |
| | | // 修改订单作业数量 |
| | | if (!orderDetlService.increaseWorkQty(order.getId(), elem.getMatnr(), elem.getBatch(), elem.getAnfme())) { |
| | | throw new CoolException("修改单据作业数量失败"); |
| | | } |
| | | |
| | | DetlDto detlDto = new DetlDto(elem.getMatnr(), elem.getBatch(), elem.getAnfme(), orderDetl.getSuppCode() |
| | | , orderDetl.getManu(), orderDetl.getSku(), orderDetl.getSupp(), orderDetl.getTemp1(), orderDetl.getTemp2(), orderDetl.getTemp3(), orderDetl.getTemp4()); |
| | | |
| | | |
| | | int workNo = commonService.getWorkNo(4); |
| | | Date now = new Date(); |
| | | // 生成工作档 |
| | | WrkMast wrkMast = new WrkMast(); |
| | | wrkMast.setWrkNo(workNo); |
| | | wrkMast.setIoTime(new Date()); |
| | | wrkMast.setWrkSts(14L); // 工作状态:生成入库ID |
| | | wrkMast.setIoType(301); // 入出库状态:301.平库出库 |
| | | wrkMast.setIoPri(12D); // 优先级 |
| | | wrkMast.setSourceLocNo(node.getName()); |
| | | wrkMast.setBarcode(""); // 托盘码 |
| | | wrkMast.setFullPlt("Y"); // 满板:Y |
| | | wrkMast.setPicking("N"); // 拣料 |
| | | wrkMast.setExitMk("N"); // 退出 |
| | | wrkMast.setEmptyMk("N"); // 空板 |
| | | wrkMast.setLinkMis("Y"); |
| | | wrkMast.setSheetNo(order.getOrderNo()); |
| | | // 操作人员数据 |
| | | wrkMast.setAppeTime(now); |
| | | wrkMast.setModiTime(now); |
| | | boolean res = wrkMastService.insert(wrkMast); |
| | | if (!res) { |
| | | throw new CoolException("保存工作档失败"); |
| | | } |
| | | |
| | | Mat mat = matService.selectByMatnr(detlDto.getMatnr()); |
| | | if (Cools.isEmpty(mat)) { |
| | | throw new CoolException(detlDto.getMatnr() + "商品档案不存在"); |
| | | } |
| | | WrkDetl wrkDetl = new WrkDetl(); |
| | | |
| | | wrkDetl.sync(detlDto); |
| | | wrkDetl.sync(mat); |
| | | |
| | | wrkDetl.setOrderNo(order.getOrderNo()); |
| | | wrkDetl.setWrkNo(wrkMast.getWrkNo()); |
| | | wrkDetl.setIoTime(wrkMast.getIoTime()); |
| | | wrkDetl.setAppeTime(now); |
| | | wrkDetl.setModiTime(now); |
| | | wrkDetl.setManu(detlDto.getMark()); //标记 |
| | | wrkDetl.setOrigin(order.getItemName());//仓库 |
| | | wrkDetl.setSupp(detlDto.getSuppName()); //供应商 |
| | | wrkDetl.setSku(detlDto.getCustomer()); //客户名称 |
| | | wrkDetl.setThreeCode(detlDto.getOrderNo()); //u8发过来的订单号 |
| | | wrkDetl.setSuppCode(detlDto.getFromOrderNo()); //来源单号 |
| | | wrkDetl.setTemp1(detlDto.getTemp1()); |
| | | wrkDetl.setTemp2(detlDto.getTemp2()); |
| | | wrkDetl.setTemp3(detlDto.getTemp3()); |
| | | wrkDetl.setTemp4(detlDto.getTemp4()); |
| | | if (!wrkDetlService.insert(wrkDetl)) { |
| | | throw new CoolException("保存工作明细失败"); |
| | | } |
| | | |
| | | if (new BigDecimal(manLocDetl.getAnfme()).subtract(new BigDecimal(elem.getAnfme())).doubleValue() == 0) { |
| | | manLocDetlService.delete(manLocDetlWrapper); |
| | | } else { |
| | | manLocDetl.setAnfme(new BigDecimal(manLocDetl.getAnfme()).subtract(new BigDecimal(elem.getAnfme())).doubleValue()); |
| | | if (!manLocDetlService.update(manLocDetl, manLocDetlWrapper)) { |
| | | throw new CoolException("更新明细失败"); |
| | | } |
| | | } |
| | | |
| | | |
| | | } |
| | | orderService.updateSettle(order.getId(), 2L, userId); |
| | | |
| | | |
| | | } |
| | | |
| | | public void uploadErp(InventoryErpParam param) { |
| | | // String response = ""; |
| | | // boolean success = false; |
| | | // try { |
| | | // HashMap<String, Object> headers = new HashMap<>(); |
| | | // headers.put("Content-Type", "application/json"); |
| | | // response = new HttpHandler.Builder() |
| | | // .setHeaders(headers) |
| | | // .setUri("10.0.100.160:30108") |
| | | // .setPath("web/apps/gongqi.df.dataTrans/DTInterFace/doJobWithupdateBody") |
| | | // .setJson(JSON.toJSONString(param)) |
| | | // .build() |
| | | // .doPost(); |
| | | // JSONObject jsonObject = JSON.parseObject(response); |
| | | // if (jsonObject.getInteger("errcode").equals(0)) { |
| | | // success = true; |
| | | // } else if (jsonObject.getInteger("errcode").equals(1)) { |
| | | // log.error("请求接口失败!!!url:{};request:{};response:{}", MesConstant.URL+MesConstant.PACK_DOWN_URL, JSON.toJSONString(param), response); |
| | | // throw new CoolException(jsonObject.getString("msg")); |
| | | // } else { |
| | | // log.error("请求接口失败!!!url:{};request:{};response:{}", MesConstant.URL+MesConstant.PACK_DOWN_URL, JSON.toJSONString(param), response); |
| | | // throw new CoolException("上报mes系统失败"); |
| | | // } |
| | | // } catch (Exception e) { |
| | | // log.error("fail", e); |
| | | // throw new CoolException(e.getMessage()); |
| | | // } finally { |
| | | // try { |
| | | // // 保存接口日志 |
| | | // apiLogService.save( |
| | | // "盘点单上报", |
| | | // url , |
| | | // null, |
| | | // "127.0.0.1", |
| | | // JSON.toJSONString(param), |
| | | // response, |
| | | // success |
| | | // ); |
| | | // } catch (Exception e) { log.error("", e); } |
| | | // } |
| | | } |
| | | |
| | | public InventoryErpParam getErpProfitParam(InventoryCheckOrder inventoryCheckOrder, List<InventoryCheckOrderDetl> checkOrderProfitDetls) { |
| | | Date date = new Date(); |
| | | InventoryErpParam erpProfitParam = new InventoryErpParam(); |
| | | InventoryErpParam.DataJson dataJson = new InventoryErpParam.DataJson(); |
| | | dataJson.setFlowCode("LIKUwms12GOTmes"); |
| | | dataJson.setTableCode("DTInventInTable_pdd"); |
| | | dataJson.setLogName("盘盈单-入库单"); |
| | | erpProfitParam.setDataJson(dataJson); |
| | | List<InventoryErpParam.UpdateJson> updateJsonList = new ArrayList<>(); |
| | | InventoryErpParam.UpdateJson updateJson = new InventoryErpParam.UpdateJson(); |
| | | updateJson.setOrderNo(inventoryCheckOrder.getOrderNo()); |
| | | updateJson.setDate(new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(date)); |
| | | List<InventoryErpParam.MatDetails> matDetails = new ArrayList<>(); |
| | | for (InventoryCheckOrderDetl checkOrderProfitDetl : checkOrderProfitDetls) { |
| | | InventoryErpParam.MatDetails matDetail = new InventoryErpParam.MatDetails(); |
| | | |
| | | Mat mat = matService.selectByMatnr(checkOrderProfitDetl.getMatnr()); |
| | | |
| | | matDetail.setMatnr(checkOrderProfitDetl.getMatnr()); |
| | | matDetail.setBatch(checkOrderProfitDetl.getBatch()); |
| | | matDetail.setSpecs(mat.getSpecs()); |
| | | Double anfme = new BigDecimal(checkOrderProfitDetl.getCheckAnfme()).subtract(new BigDecimal(checkOrderProfitDetl.getAnfme())).doubleValue(); |
| | | matDetail.setAnfme(anfme); |
| | | matDetail.setLocNo(checkOrderProfitDetl.getLocNo()); |
| | | matDetail.setWarehouse(checkOrderProfitDetl.getArea()); |
| | | matDetail.setSeq(updateJson.getMatDetails() == null ? 1 : updateJson.getMatDetails().size() + 1); |
| | | matDetails.add(matDetail); |
| | | } |
| | | updateJson.setMatDetails(matDetails); |
| | | updateJsonList.add(updateJson); |
| | | erpProfitParam.setUpdateJson(updateJsonList); |
| | | return erpProfitParam; |
| | | } |
| | | |
| | | public InventoryErpParam getErpDeficitParam(InventoryCheckOrder inventoryCheckOrder, List<InventoryCheckOrderDetl> checkOrderDeficitDetls) { |
| | | Date date = new Date(); |
| | | InventoryErpParam erpDeficitParam = new InventoryErpParam(); |
| | | InventoryErpParam.DataJson dataJson = new InventoryErpParam.DataJson(); |
| | | dataJson.setFlowCode("LIKUwms12GOTmes"); |
| | | dataJson.setTableCode("DTInventOutTable_pdd"); |
| | | dataJson.setLogName("盘亏单-出库单"); |
| | | erpDeficitParam.setDataJson(dataJson); |
| | | List<InventoryErpParam.UpdateJson> updateJsonList2 = new ArrayList<>(); |
| | | InventoryErpParam.UpdateJson updateJson2 = new InventoryErpParam.UpdateJson(); |
| | | updateJson2.setOrderNo(inventoryCheckOrder.getOrderNo()); |
| | | updateJson2.setDate(new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(date)); |
| | | List<InventoryErpParam.MatDetails> matDetails = new ArrayList<>(); |
| | | for (InventoryCheckOrderDetl checkOrderDeficitDetl : checkOrderDeficitDetls) { |
| | | InventoryErpParam.MatDetails matDetail = new InventoryErpParam.MatDetails(); |
| | | |
| | | Mat mat = matService.selectByMatnr(checkOrderDeficitDetl.getMatnr()); |
| | | |
| | | matDetail.setMatnr(checkOrderDeficitDetl.getMatnr()); |
| | | matDetail.setBatch(checkOrderDeficitDetl.getBatch()); |
| | | matDetail.setSpecs(mat.getSpecs()); |
| | | Double anfme = new BigDecimal(checkOrderDeficitDetl.getAnfme()).subtract(new BigDecimal(checkOrderDeficitDetl.getCheckAnfme())).doubleValue(); |
| | | matDetail.setAnfme(anfme); |
| | | matDetail.setLocNo(checkOrderDeficitDetl.getLocNo()); |
| | | matDetail.setWarehouse(checkOrderDeficitDetl.getArea()); |
| | | matDetail.setSeq(updateJson2.getMatDetails() == null ? 1 : updateJson2.getMatDetails().size() + 1); |
| | | matDetails.add(matDetail); |
| | | } |
| | | updateJson2.setMatDetails(matDetails); |
| | | updateJsonList2.add(updateJson2); |
| | | erpDeficitParam.setUpdateJson(updateJsonList2); |
| | | return erpDeficitParam; |
| | | } |
| | | |
| | | @Override |
| | | @Transactional |
| | |
| | | import com.core.common.R; |
| | | import com.core.common.SnowflakeIdWorker; |
| | | import com.core.exception.CoolException; |
| | | import com.zy.asrs.entity.ManLocDetl; |
| | | import com.zy.asrs.entity.Mat; |
| | | import com.zy.asrs.entity.Node; |
| | | import com.zy.asrs.entity.param.InitPakoutParam; |
| | | import com.zy.asrs.entity.param.MatnrDto; |
| | | import com.zy.asrs.entity.param.PakinParam; |
| | | import com.zy.asrs.entity.result.Pakin; |
| | | import com.zy.asrs.mapper.NodeMapper; |
| | | import com.zy.asrs.service.ManLocDetlService; |
| | | import com.zy.asrs.service.MatService; |
| | | import com.zy.asrs.service.NodeService; |
| | | import com.zy.asrs.utils.SaasUtils; |
| | | import com.zy.asrs.utils.VersionUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | |
| | | private MatService matService; |
| | | @Autowired |
| | | private SnowflakeIdWorker snowflakeIdWorker; |
| | | @Autowired |
| | | private ManLocDetlService manLocDetlService; |
| | | @Override |
| | | public Node getTop() { |
| | | Node top = this.selectOne(new EntityWrapper<Node>().eq("type", 0).eq("level", 0)); |
| | |
| | | return selectOne(new EntityWrapper<Node>().eq("host_id", hostId).eq("uuid", uuid).eq("type", type).eq("parent_id", parentId)); |
| | | } |
| | | |
| | | @Override |
| | | public R stockPakin(PakinParam param, Long userId, Long hostId) { |
| | | Node node = nodeService.selectByUuid(param.getNodeId(), hostId); |
| | | if (node == null) { |
| | | node = nodeService.selectById(param.getNodeId()); |
| | | } |
| | | if (node == null) { |
| | | return R.error("货位不存在"); |
| | | } |
| | | if (Cools.isEmpty(param.getMats())) { |
| | | return R.error("入库物料不能为空"); |
| | | } |
| | | Date now = new Date(); |
| | | for (MatnrDto dto : param.getMats()) { |
| | | |
| | | Mat mat = matService.selectByMatnr(dto.getMatnr()); |
| | | if (mat == null) { |
| | | throw new CoolException("物料数据错误,请联系管理员"); |
| | | } |
| | | ManLocDetl check = manLocDetlService.selectOne(new EntityWrapper<ManLocDetl>() |
| | | .eq("loc_no", node.getUuid()) |
| | | .eq("matnr", dto.getMatnr())); |
| | | if (check == null) { |
| | | ManLocDetl manLocDetl = new ManLocDetl(); |
| | | manLocDetl.setLocNo(node.getUuid()); |
| | | manLocDetl.setNodeId(node.getId()); |
| | | manLocDetl.setZpallet(mat.getBarcode()); |
| | | manLocDetl.setAnfme(dto.getCount()); |
| | | manLocDetl.setMatnr(mat.getMatnr()); |
| | | manLocDetl.setMaktx(mat.getMaktx()); |
| | | manLocDetl.setName(mat.getName()); |
| | | manLocDetl.setBatch(null); |
| | | manLocDetl.setSpecs(mat.getSpecs()); |
| | | manLocDetl.setModel(mat.getModel()); |
| | | manLocDetl.setCreateTime(now); |
| | | manLocDetl.setModiTime(now); |
| | | manLocDetl.setCreateBy(userId); |
| | | SaasUtils.insertLog(0,manLocDetl.getLocNo(),manLocDetl.getMatnr(), manLocDetl.getAnfme()); |
| | | manLocDetlService.insert(manLocDetl); |
| | | }else { |
| | | check.setAnfme(dto.getCount() + check.getAnfme()); |
| | | manLocDetlService.update(check,new EntityWrapper<ManLocDetl>() |
| | | .eq("loc_no", node.getUuid()) |
| | | .eq("matnr", dto.getMatnr())); |
| | | } |
| | | |
| | | |
| | | } |
| | | return R.ok("入库成功"); |
| | | } |
| | | |
| | | @Transactional |
| | | @Override |
| | | public R initPakout(List<InitPakoutParam> params, Long userId, Long hostId) { |
| | | if (!Cools.isEmpty(params)) { |
| | | Date now = new Date(); |
| | | for (InitPakoutParam param : params) { |
| | | ManLocDetl manLocDetl = manLocDetlService.selectOne(new EntityWrapper<ManLocDetl>() |
| | | .eq("node_id", param.getNodeId()) |
| | | .eq("matnr", param.getMatnr())); |
| | | Node node = nodeService.selectOne(new EntityWrapper<Node>() |
| | | .eq("id", param.getNodeId())); |
| | | if (node == null) { |
| | | return R.error("找不到该库位,请联系管理员:" + param.getNodeId() ); |
| | | } |
| | | if (manLocDetl == null) { |
| | | return R.error("物料:"+ param.getMatnr() + " 在库位中不存在"); |
| | | } |
| | | if (manLocDetl.getAnfme() - param.getCount() < 0) { |
| | | return R.error("物料:"+ param.getMatnr() + " 在库位中数量不足"); |
| | | } else if (manLocDetl.getAnfme() - param.getCount() == 0) { |
| | | SaasUtils.insertLog(1,manLocDetl.getLocNo(), manLocDetl.getMatnr(),param.getCount()); |
| | | manLocDetlService.delete(new EntityWrapper<ManLocDetl>() |
| | | .eq("loc_no",node.getUuid()) |
| | | .eq("matnr",param.getMatnr())); |
| | | } else { |
| | | |
| | | manLocDetl.setAnfme(manLocDetl.getAnfme() - param.getCount()); |
| | | manLocDetlService.update(manLocDetl,new EntityWrapper<ManLocDetl>() |
| | | .eq("loc_no",node.getUuid()) |
| | | .eq("matnr",param.getMatnr())); |
| | | SaasUtils.insertLog(1,manLocDetl.getLocNo(), manLocDetl.getMatnr(),param.getCount()); |
| | | } |
| | | } |
| | | } |
| | | return R.ok("出库成功"); |
| | | } |
| | | |
| | | @Transactional |
| | | @Override |
| | | public void locMove(String sourceLocNo, String targetLocNo, Long userId) { |
| | | List<ManLocDetl> sourceManDetl = manLocDetlService.selectList(new EntityWrapper<ManLocDetl>() |
| | | .like("loc_no", sourceLocNo)); |
| | | for (ManLocDetl source : sourceManDetl) { |
| | | Node targetNode = nodeService.selectOne(new EntityWrapper<Node>() |
| | | .eq("uuid", targetLocNo)); |
| | | Node sourceNode = nodeService.selectOne(new EntityWrapper<Node>() |
| | | .eq("uuid", sourceLocNo)); |
| | | if (targetNode == null || targetNode.equals("")) { |
| | | throw new RuntimeException("无法查询到移库的目标库位"); |
| | | } |
| | | ManLocDetl check = manLocDetlService.selectOne(new EntityWrapper<ManLocDetl>() |
| | | .eq("loc_no", targetNode.getUuid()) |
| | | .eq("matnr", source.getMatnr())); |
| | | if (check == null) { |
| | | manLocDetlService.deleteById(source); |
| | | source.setLocNo(targetNode.getUuid()); |
| | | source.setNodeId(targetNode.getId()); |
| | | |
| | | SaasUtils.insertLog(2,source.getLocNo(), source.getMatnr(), source.getAnfme()); |
| | | manLocDetlService.insert(source); |
| | | }else { |
| | | check.setAnfme(check.getAnfme() + source.getAnfme()); |
| | | manLocDetlService.update(check,new EntityWrapper<ManLocDetl>() |
| | | .eq("loc_no", targetNode.getUuid()) |
| | | .eq("matnr", check.getMatnr())); |
| | | manLocDetlService.delete(new EntityWrapper<ManLocDetl>() |
| | | .eq("loc_no", sourceNode.getUuid()) |
| | | .eq("matnr", source.getMatnr())); |
| | | } |
| | | |
| | | } |
| | | } |
| | | } |
| | |
| | | private SlaveProperties slaveProperties; |
| | | @Autowired |
| | | private WaitPakinService waitPakinService; |
| | | @Autowired |
| | | private InventoryCheckOrderDetlService inventoryCheckOrderDetlService; |
| | | |
| | | @Override |
| | | @Transactional |
| | |
| | | // 生成工作档明细 |
| | | for (LocDetlDto detlDto : dto.getLocDetlDtos()) { |
| | | |
| | | InventoryCheckOrderDetl inventoryCheckOrderDetl = new InventoryCheckOrderDetl(); |
| | | inventoryCheckOrderDetl.setOrderNo(param.getOrderNo()); |
| | | inventoryCheckOrderDetl.setMatnr(detlDto.getLocDetl().getMatnr()); |
| | | inventoryCheckOrderDetl.setMaktx(detlDto.getLocDetl().getMaktx()); |
| | | inventoryCheckOrderDetl.setBatch(detlDto.getLocDetl().getBatch()); |
| | | inventoryCheckOrderDetl.setLocNo(detlDto.getLocDetl().getLocNo()); |
| | | inventoryCheckOrderDetl.setArea(detlDto.getLocDetl().getOrigin()); |
| | | inventoryCheckOrderDetl.setAnfme(detlDto.getLocDetl().getAnfme()); |
| | | inventoryCheckOrderDetl.setIoTime(now); |
| | | inventoryCheckOrderDetl.setStatus("1"); |
| | | if (!inventoryCheckOrderDetlService.insert(inventoryCheckOrderDetl)) { |
| | | throw new CoolException("保存盘点明细失败"); |
| | | } |
| | | |
| | | |
| | | if (detlDto.getCount() == null || detlDto.getCount() <= 0.0D) { |
| | | continue; |
| | |
| | | // 生成工作档明细 |
| | | for (LocDetlDto detlDto : dto.getLocDetlDtos()) { |
| | | |
| | | InventoryCheckOrderDetl inventoryCheckOrderDetl = new InventoryCheckOrderDetl(); |
| | | inventoryCheckOrderDetl.setOrderNo(param.getOrderNo()); |
| | | inventoryCheckOrderDetl.setMatnr(detlDto.getLocDetl().getMatnr()); |
| | | inventoryCheckOrderDetl.setMaktx(detlDto.getLocDetl().getMaktx()); |
| | | inventoryCheckOrderDetl.setBatch(detlDto.getLocDetl().getBatch()); |
| | | inventoryCheckOrderDetl.setLocNo(detlDto.getLocDetl().getLocNo()); |
| | | inventoryCheckOrderDetl.setArea(detlDto.getLocDetl().getOrigin()); |
| | | inventoryCheckOrderDetl.setAnfme(detlDto.getLocDetl().getAnfme()); |
| | | inventoryCheckOrderDetl.setIoTime(now); |
| | | inventoryCheckOrderDetl.setStatus("1"); |
| | | if (!inventoryCheckOrderDetlService.insert(inventoryCheckOrderDetl)) { |
| | | throw new CoolException("保存盘点明细失败"); |
| | | } |
| | | |
| | | |
| | | if (detlDto.getCount() == null || detlDto.getCount() <= 0.0D) { |
| | | continue; |
| | |
| | | if (Cools.isEmpty(wrkMast)) { |
| | | throw new CoolException(workNo + "工作档不存在"); |
| | | } |
| | | if (wrkMast.getWrkSts() == 4 || wrkMast.getWrkSts() == 14) { |
| | | if (wrkMast.getWrkSts() == 4 || wrkMast.getWrkSts() == 5||wrkMast.getWrkSts() == 14 || wrkMast.getWrkSts() == 15) { |
| | | throw new CoolException("当前工作档已完成"); |
| | | } |
| | | // 入库 + 库位转移 |
| | |
| | | package com.zy.asrs.task; |
| | | |
| | | import com.core.exception.CoolException; |
| | | import com.zy.asrs.task.core.AsrsException; |
| | | import com.zy.asrs.task.core.ReturnT; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | |
| | |
| | | |
| | | // protected abstract ReturnT<T> start(); |
| | | |
| | | protected void exceptionHandle(String errorMsg){ |
| | | protected void exceptionHandle(String errorMsg) { |
| | | log.error(errorMsg); |
| | | exceptionHandle(errorMsg, (Object) null); |
| | | } |
| | | |
| | | protected void exceptionHandle(String errorMsg, Object... args){ |
| | | protected void exceptionHandle(String errorMsg, Object... args) { |
| | | log.error(errorMsg); |
| | | throw new CoolException(MessageFormat.format(errorMsg, args)); |
| | | } |
| | |
| | | |
| | | import com.baomidou.mybatisplus.mapper.EntityWrapper; |
| | | import com.core.common.Cools; |
| | | import com.zy.asrs.entity.*; |
| | | import com.zy.asrs.entity.BasCrnp; |
| | | import com.zy.asrs.entity.Order; |
| | | import com.zy.asrs.entity.WrkMast; |
| | | import com.zy.asrs.service.*; |
| | | import com.zy.asrs.task.handler.AutoLocMoveHandler; |
| | | import com.zy.common.properties.SlaveWmsParameterProperties; |
| | |
| | | |
| | | //定时出库 经典双伸 |
| | | @Scheduled(cron = "0/3 * * * * ? ") |
| | | public void locToLocAutoLocMove(){ |
| | | if (slaveWmsParameterProperties.isAutoLocMoveBoolean()){ |
| | | public void locToLocAutoLocMove() { |
| | | if (slaveWmsParameterProperties.isAutoLocMoveBoolean()) { |
| | | Config config = configService.selectConfigByCode("AutoLocMove"); |
| | | if (Cools.isEmpty(config) || config.getValue().equals("false")) { |
| | | return; |
| | | } |
| | | Order order = orderService.selectOrderMoveStatus(); |
| | | if (!Cools.isEmpty(order)){ |
| | | if (!Cools.isEmpty(order)) { |
| | | // autoMoveService.selectList() |
| | | }else { |
| | | } else { |
| | | order = orderService.selectOrderMoveStatusInitial(); |
| | | if (Cools.isEmpty(order)){ |
| | | if (Cools.isEmpty(order)) { |
| | | return; |
| | | } |
| | | order.setMoveStatus(2); |
| | |
| | | |
| | | //定时出库 |
| | | @Scheduled(cron = "0/3 * * * * ? ") |
| | | public void locToLoc11(){ |
| | | if (slaveWmsParameterProperties.isAutoLocMoveUnilateralBoolean()){ |
| | | public void locToLoc11() { |
| | | if (slaveWmsParameterProperties.isAutoLocMoveUnilateralBoolean()) { |
| | | Config config = configService.selectConfigByCode("AutoLocMoveUnilateral"); |
| | | if (Cools.isEmpty(config) || config.getValue().equals("false")) { |
| | | return; |
| | | } |
| | | int crnCount = basCrnpService.selectCount(new EntityWrapper<>()); |
| | | for (int crnNo = 1;crnNo < crnCount;crnNo++){ |
| | | for (int crnNo = 1; crnNo < crnCount; crnNo++) { |
| | | WrkMast wrkMast = wrkMastService.selectOne(new EntityWrapper<WrkMast>().eq("io_type", 11).eq("crn_no", crnNo)); |
| | | WrkMast wrkMast1 = wrkMastService.selectOne(new EntityWrapper<WrkMast>().eq("io_type", 111).eq("crn_no", crnNo)); |
| | | if (Cools.isEmpty(wrkMast) && Cools.isEmpty(wrkMast1)){ |
| | | autoLocMoveHandler.start(crnNo,11); |
| | | if (Cools.isEmpty(wrkMast) && Cools.isEmpty(wrkMast1)) { |
| | | autoLocMoveHandler.start(crnNo, 11); |
| | | } |
| | | } |
| | | } |
| | |
| | | //定时入库 |
| | | @Scheduled(cron = "0/3 * * * * ? ") |
| | | public void locToLoc111() { |
| | | if (slaveWmsParameterProperties.isAutoLocMoveUnilateralBoolean()){ |
| | | if (slaveWmsParameterProperties.isAutoLocMoveUnilateralBoolean()) { |
| | | Config config = configService.selectConfigByCode("AutoLocMoveUnilateral"); |
| | | if (Cools.isEmpty(config) || config.getValue().equals("false")) { |
| | | return; |
| | | } |
| | | int crnCount = basCrnpService.selectCount(new EntityWrapper<>()); |
| | | for (int crnNo = 1;crnNo < crnCount;crnNo++){ |
| | | for (int crnNo = 1; crnNo < crnCount; crnNo++) { |
| | | BasCrnp basCrnp = basCrnpService.selectById(crnNo); |
| | | if (basCrnp == null) { |
| | | continue; |
| | | } |
| | | WrkMast wrkMast = wrkMastService.selectOne(new EntityWrapper<WrkMast>().eq("io_type", 111).eq("crn_no", crnNo)); |
| | | WrkMast wrkMast1 = wrkMastService.selectOne(new EntityWrapper<WrkMast>().eq("io_type", 11).eq("crn_no", crnNo)); |
| | | if (Cools.isEmpty(wrkMast) && Cools.isEmpty(wrkMast1)){ |
| | | autoLocMoveHandler.start(crnNo,111); |
| | | if (Cools.isEmpty(wrkMast) && Cools.isEmpty(wrkMast1)) { |
| | | autoLocMoveHandler.start(crnNo, 111); |
| | | } |
| | | } |
| | | } |
| | |
| | | import org.springframework.scheduling.annotation.Scheduled; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * Created by Monkey D. Luffy on 2023.10.25 |
| | | * 广德宜科..............以下.............广德宜科.............自动补空板再优化 |
| | |
| | | private SlaveWmsParameterProperties slaveWmsParameterProperties; |
| | | |
| | | /* |
| | | * 自动调空板出库 |
| | | * */ |
| | | * 自动调空板出库 |
| | | * */ |
| | | @Scheduled(cron = "0/3 * * * * ? ") |
| | | private void execute(){ |
| | | if (slaveWmsParameterProperties.isAutomaticFillingBoardStaNosBoolean()){ |
| | | private void execute() { |
| | | if (slaveWmsParameterProperties.isAutomaticFillingBoardStaNosBoolean()) { |
| | | Config config = configService.selectConfigByCode("AutomaticFillingBoard"); |
| | | if (!Cools.isEmpty(config) && !Cools.isEmpty(config.getValue()) && config.getValue().equals("true")){ |
| | | for (Integer staNo : slaveWmsParameterProperties.getAutomaticFillingBoardStaNos()){ |
| | | bareBoardHandler.start(110,staNo,"D"); |
| | | if (!Cools.isEmpty(config) && !Cools.isEmpty(config.getValue()) && config.getValue().equals("true")) { |
| | | for (Integer staNo : slaveWmsParameterProperties.getAutomaticFillingBoardStaNos()) { |
| | | bareBoardHandler.start(110, staNo, "D"); |
| | | } |
| | | } |
| | | } |
| | |
| | | package com.zy.asrs.task; |
| | | |
| | | import com.baomidou.mybatisplus.mapper.EntityWrapper; |
| | | import com.core.common.Cools; |
| | | import com.zy.asrs.entity.LocMast; |
| | | import com.zy.asrs.entity.WrkMast; |
| | | import com.zy.asrs.service.LocDetlService; |
| | | import com.zy.asrs.service.LocMastService; |
| | | import com.zy.asrs.service.WorkService; |
| | | import com.zy.asrs.service.WrkMastService; |
| | | import com.zy.asrs.task.core.ReturnT; |
| | | import com.zy.asrs.task.handler.CheckDeepHandler; |
| | | import com.zy.asrs.utils.Utils; |
| | | import com.zy.common.properties.SlaveProperties; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.scheduling.annotation.Scheduled; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | import java.text.ParseException; |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | @Component |
| | | @Slf4j |
| | |
| | | import com.alibaba.fastjson.JSONArray; |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.baomidou.mybatisplus.mapper.EntityWrapper; |
| | | import com.core.common.Cools; |
| | | import com.zy.asrs.entity.LocMast; |
| | | import com.zy.asrs.entity.param.ShuttleTask; |
| | | import com.zy.asrs.service.LocMastService; |
| | |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | import java.io.IOException; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | /** |
| | |
| | | } |
| | | } |
| | | |
| | | @Scheduled(cron = "0/15 * * * * ? ") |
| | | private void execute2() { |
| | | String response = null; |
| | | try { |
| | | ShuttleTask param = new ShuttleTask(); |
| | | response = new HttpHandler.Builder() |
| | | .setUri(shuttleWcsUrl) |
| | | .setJson(JSON.toJSONString(param)) |
| | | .setPath("/openapi/getAllLocInformation") |
| | | .build() |
| | | .doPost(); |
| | | } catch (IOException e) { |
| | | e.printStackTrace(); |
| | | } |
| | | JSONObject jsonObject = JSON.parseObject(response); |
| | | Integer code = jsonObject.getInteger("code"); |
| | | if (code.equals(200)) { |
| | | String data = jsonObject.getString("data"); |
| | | List<LocMast> locMasts = JSONArray.parseArray(data, LocMast.class); |
| | | for (LocMast locMast : locMasts) { |
| | | if (locMast.getLocNo().startsWith("02003") || locMast.getLocNo().startsWith("12003")) { |
| | | continue; |
| | | } |
| | | String locNo = locMast.getLocNo(); |
| | | int row = Integer.parseInt(locNo.substring(0, 2)) + 4; |
| | | if (row >= 10) { |
| | | locNo = row + locMast.getLocNo().substring(2); |
| | | } else { |
| | | locNo = "0" + row + locMast.getLocNo().substring(2); |
| | | } |
| | | LocMast locMast1 = locMastService.selectOne(new EntityWrapper<LocMast>().eq("loc_no", locNo)); |
| | | if (locMast1 == null) { |
| | | log.info("库位不匹配"); |
| | | } else { |
| | | if (locMast1.getLocSts().equalsIgnoreCase("X")) { |
| | | |
| | | } else if (!locMast1.getLocSts().equalsIgnoreCase(locMast.getLocSts())) { |
| | | log.info("库位状态不匹配{},WMS:{},RCS:{}", locMast1.getLocNo(), locMast1.getLocSts(), locMast.getLocSts()); |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | // @Scheduled(cron = "0/15 * * * * ? ") |
| | | // private void execute2() { |
| | | // String response = null; |
| | | // try { |
| | | // ShuttleTask param = new ShuttleTask(); |
| | | // response = new HttpHandler.Builder() |
| | | // .setUri(shuttleWcsUrl) |
| | | // .setJson(JSON.toJSONString(param)) |
| | | // .setPath("/openapi/getAllLocInformation") |
| | | // .build() |
| | | // .doPost(); |
| | | // } catch (IOException e) { |
| | | // e.printStackTrace(); |
| | | // } |
| | | // JSONObject jsonObject = JSON.parseObject(response); |
| | | // Integer code = jsonObject.getInteger("code"); |
| | | // if (code.equals(200)) { |
| | | // String data = jsonObject.getString("data"); |
| | | // List<LocMast> locMasts = JSONArray.parseArray(data, LocMast.class); |
| | | // for (LocMast locMast : locMasts) { |
| | | // if (locMast.getLocNo().startsWith("02003") || locMast.getLocNo().startsWith("12003")) { |
| | | // continue; |
| | | // } |
| | | // String locNo = locMast.getLocNo(); |
| | | // int row = Integer.parseInt(locNo.substring(0, 2)) + 4; |
| | | // if (row >= 10) { |
| | | // locNo = row + locMast.getLocNo().substring(2); |
| | | // } else { |
| | | // locNo = "0" + row + locMast.getLocNo().substring(2); |
| | | // } |
| | | // LocMast locMast1 = locMastService.selectOne(new EntityWrapper<LocMast>().eq("loc_no", locNo)); |
| | | // if (locMast1 == null) { |
| | | // log.info("库位不匹配"); |
| | | // } else { |
| | | // if (locMast1.getLocSts().equalsIgnoreCase("X")) { |
| | | // |
| | | // } else if (!locMast1.getLocSts().equalsIgnoreCase(locMast.getLocSts())) { |
| | | // log.info("库位状态不匹配{},WMS:{},RCS:{}", locMast1.getLocNo(), locMast1.getLocSts(), locMast.getLocSts()); |
| | | // } |
| | | // } |
| | | // } |
| | | // } |
| | | // } |
| | | |
| | | } |
| | |
| | | private NotifyLogHandler notifyLogHandler; |
| | | |
| | | @Scheduled(cron = "0/3 * * * * ? ") |
| | | private void execute(){ |
| | | private void execute() { |
| | | ReturnT<String> returnT = notifyLogHandler.start(); |
| | | if (!returnT.isSuccess()) { |
| | | log.error(returnT.getMsg()); |
| | |
| | | * 将已完成order和orderDetl移动到log表 |
| | | */ |
| | | @Scheduled(cron = "0/30 * * * * ?") |
| | | public void execute(){ |
| | | public void execute() { |
| | | orderMoveHistoryHandler.start(); |
| | | } |
| | | } |
| | |
| | | private OverYearLogHandler overYearLogHandler; |
| | | |
| | | @Scheduled(cron = "0/3 * * * * ? ") |
| | | private void execute(){ |
| | | private void execute() { |
| | | ReturnT<String> returnT = overYearLogHandler.start(); |
| | | if (!returnT.isSuccess()) { |
| | | log.error(returnT.getMsg()); |
| | |
| | | private WrkMastService wrkMastService; |
| | | |
| | | @Scheduled(cron = "0/3 * * * * ? ") |
| | | private void execute(){ |
| | | private void execute() { |
| | | List<WrkMast> wrkMasts = wrkMastService.selectToBeHistoryData(); |
| | | if (wrkMasts.isEmpty()) { |
| | | return; |
| | |
| | | this.content = content; |
| | | } |
| | | |
| | | public boolean isSuccess(){ |
| | | public boolean isSuccess() { |
| | | return this.code == 200; |
| | | } |
| | | |
| | |
| | | private ConfigService configService; |
| | | |
| | | @PostConstruct |
| | | private void start(){ |
| | | private void start() { |
| | | thread = new Thread(() -> { |
| | | while (!Thread.currentThread().isInterrupted()) { |
| | | try { |
| | |
| | | } |
| | | |
| | | @PreDestroy |
| | | public void shutDown(){ |
| | | public void shutDown() { |
| | | if (thread != null) |
| | | thread.interrupt(); |
| | | log.info("任务中心调度器已停止......"); |
| | |
| | | public ReturnT<String> start(Integer crnNo, Integer ioType) { |
| | | try { |
| | | //11 穿梭移单边 |
| | | if (ioType==11){ |
| | | for (int bay = 1;bay < 27;bay++){ |
| | | for (int lev = 1 ; lev <6 ; lev++){ |
| | | List<LocMast> locMasts = locMastService.selectLocMastShuttleMoveUnilateral(bay,lev,crnNo); |
| | | if (!Cools.isEmpty(locMasts) && locMasts.size()<4){ |
| | | for (LocMast locMast:locMasts){ |
| | | if (ioType == 11) { |
| | | for (int bay = 1; bay < 27; bay++) { |
| | | for (int lev = 1; lev < 6; lev++) { |
| | | List<LocMast> locMasts = locMastService.selectLocMastShuttleMoveUnilateral(bay, lev, crnNo); |
| | | if (!Cools.isEmpty(locMasts) && locMasts.size() < 4) { |
| | | for (LocMast locMast : locMasts) { |
| | | LocDetl locDetl = locDetlService.selectOne(new EntityWrapper<LocDetl>().eq("loc_no", locMast.getLocNo())); |
| | | // StartupDto startupDto = commonService.getLocNo(crnNo == 1 ? 6 : 5, ioType, crnNo == 1 ? 917 : 918, locDetl.getMatnr(), locDetl.getBatch(),locDetl.getBrand(), null); |
| | | StartupDto startupDto = commonService.getLocNo( ioType, crnNo == 1 ? 917 : 918, locDetl.getMatnr(), locDetl.getBatch(),locDetl.getBrand(), null,false); |
| | | workService.locMove(locMast.getLocNo(), startupDto.getLocNo(),9527L); |
| | | StartupDto startupDto = commonService.getLocNo(ioType, crnNo == 1 ? 917 : 918, locDetl.getMatnr(), locDetl.getBatch(), locDetl.getBrand(), null, false); |
| | | workService.locMove(locMast.getLocNo(), startupDto.getLocNo(), 9527L); |
| | | } |
| | | return SUCCESS; |
| | | } |
| | | } |
| | | } |
| | | }else {//11 单边移穿梭 |
| | | } else {//11 单边移穿梭 |
| | | List<Map<String, Object>> list = locDetlService.selectLocDetlUnilateralMoveShuttleMap(crnNo);//111 单边移穿梭 |
| | | for (Map<String, Object> map : list) { |
| | | String matnr = map.getOrDefault("matnr","").toString();//物料号 |
| | | String batch = map.getOrDefault("batch","").toString();//批号 |
| | | String grade = map.getOrDefault("brand","").toString();//等级 |
| | | String matnr = map.getOrDefault("matnr", "").toString();//物料号 |
| | | String batch = map.getOrDefault("batch", "").toString();//批号 |
| | | String grade = map.getOrDefault("brand", "").toString();//等级 |
| | | int count = Integer.parseInt(map.get("count").toString());//单边库数量 |
| | | if (count < 4) { |
| | | continue; |
| | |
| | | List<LocDetl> locDetlList = locDetlService.selectLocDetlUnilateralMoveShuttle(matnr, batch, grade, crnNo); |
| | | for (LocDetl locDetl : locDetlList) { |
| | | // StartupDto startupDto = commonService.getLocNo(crnNo == 1 ? 4 : 3, ioType, crnNo == 1 ? 901 : 932, locDetl.getMatnr(), locDetl.getBatch(), locDetl.getBrand(), null); |
| | | StartupDto startupDto = commonService.getLocNo( ioType, crnNo == 1 ? 901 : 932, locDetl.getMatnr(), locDetl.getBatch(), locDetl.getBrand(), null,false); |
| | | StartupDto startupDto = commonService.getLocNo(ioType, crnNo == 1 ? 901 : 932, locDetl.getMatnr(), locDetl.getBatch(), locDetl.getBrand(), null, false); |
| | | workService.locMove(locDetl.getLocNo(), startupDto.getLocNo(), 9527L); |
| | | } |
| | | } |
| | | return SUCCESS; |
| | | } |
| | | }catch (Exception e){ |
| | | log.error("自动移库出错,堆垛机号{},工作类型{}",crnNo,ioType); |
| | | } catch (Exception e) { |
| | | log.error("自动移库出错,堆垛机号{},工作类型{}", crnNo, ioType); |
| | | } |
| | | return SUCCESS; |
| | | } |
| | |
| | | @Autowired |
| | | private BasCrnpService basCrnpService; |
| | | |
| | | public ReturnT<String> start(Integer ioType,Integer staNo,String locStsTarget) { |
| | | public ReturnT<String> start(Integer ioType, Integer staNo, String locStsTarget) { |
| | | try { |
| | | if (wrkMastService.selectWrkMastBareBoardStaNo(ioType,staNo)!=0){ |
| | | if (wrkMastService.selectWrkMastBareBoardStaNo(ioType, staNo) != 0) { |
| | | return null; |
| | | } |
| | | // 获取工作号 |
| | | int workNo = commonService.getWorkNo(WorkNoType.getWorkNoType(ioType)); |
| | | ArrayList<Integer> crns =new ArrayList<>(); |
| | | ArrayList<Integer> crns = new ArrayList<>(); |
| | | List<BasCrnp> basCrnps = basCrnpService.selectList(new EntityWrapper<BasCrnp>().eq("crn_sts", 3).eq("out_enable", "Y").eq("wrk_no", 0)); |
| | | for (BasCrnp basCrnp : basCrnps){ |
| | | for (BasCrnp basCrnp : basCrnps) { |
| | | crns.add(basCrnp.getCrnNo()); |
| | | } |
| | | for (BasCrnp basCrnp : basCrnpService.selectList(new EntityWrapper<>())){ |
| | | for (BasCrnp basCrnp : basCrnpService.selectList(new EntityWrapper<>())) { |
| | | crns.add(basCrnp.getCrnNo()); |
| | | } |
| | | if (Cools.isEmpty(crns) || crns.size()==0){ |
| | | if (Cools.isEmpty(crns) || crns.size() == 0) { |
| | | return null; |
| | | } |
| | | |
| | | boolean sign = true; |
| | | for (Integer crnNo : crns){ |
| | | for (Integer crnNo : crns) { |
| | | sign = true; |
| | | |
| | | LocMast locMast = locMastService.selectOne(new EntityWrapper<LocMast>().eq("loc_sts",locStsTarget).eq("crn_no",crnNo)); |
| | | LocMast locMast = locMastService.selectOne(new EntityWrapper<LocMast>().eq("loc_sts", locStsTarget).eq("crn_no", crnNo)); |
| | | |
| | | if (Cools.isEmpty(locMast)) { |
| | | // throw new CoolException("库中无空板!!!"); |
| | | sign=false; |
| | | sign = false; |
| | | } |
| | | if (sign && !locMast.getLocSts().equals(locStsTarget)){ |
| | | if (sign && !locMast.getLocSts().equals(locStsTarget)) { |
| | | // throw new CoolException("所选库位存在状态不为D的库位,库位号:"+locMast.getLocNo()+" 、当前状态:"+locMast.getLocSts()+"-"+locMast.getLocSts$()); |
| | | sign=false; |
| | | sign = false; |
| | | } |
| | | if (sign){ |
| | | if (sign) { |
| | | // 获取源站 |
| | | Wrapper<StaDesc> wrapper = new EntityWrapper<StaDesc>() |
| | | .eq("type_no", ioType) |
| | | .eq("stn_no", staNo) |
| | | .eq("crn_no", crnNo); |
| | | StaDesc staDesc = staDescService.selectOne(wrapper); |
| | | if (Cools.isEmpty(staDesc)){ |
| | | if (Cools.isEmpty(staDesc)) { |
| | | sign = false; |
| | | continue; |
| | | } |
| | |
| | | // throw new CoolException("检索源站失败"); |
| | | sign = false; |
| | | } |
| | | if (sign){ |
| | | if (sign) { |
| | | Date now = new Date(); |
| | | // 保存工作档 |
| | | WrkMast wrkMast = new WrkMast(); |
| | |
| | | wrkMast.setStaNo(staNo); // 目标站 |
| | | wrkMast.setCrnNo(locMast.getCrnNo()); |
| | | wrkMast.setSourceLocNo(locMast.getLocNo()); // 源库位 |
| | | wrkMast.setFullPlt(ioType.equals(110)? "N" : "Y"); // 满板:Y |
| | | wrkMast.setFullPlt(ioType.equals(110) ? "N" : "Y"); // 满板:Y |
| | | wrkMast.setPicking("N"); // 拣料 |
| | | wrkMast.setExitMk("N"); // 退出 |
| | | wrkMast.setEmptyMk(ioType.equals(110)? "Y" : "N"); // 空板 |
| | | wrkMast.setEmptyMk(ioType.equals(110) ? "Y" : "N"); // 空板 |
| | | wrkMast.setLinkMis("N"); |
| | | wrkMast.setAppeUser(9999L); |
| | | wrkMast.setAppeTime(now); |
| | |
| | | throw new CoolException("保存工作档失败"); |
| | | } |
| | | // 更新库位状态 D.空板 -> R.出库预约 |
| | | if (locMast.getLocSts().equals(locStsTarget)){ |
| | | if (locMast.getLocSts().equals(locStsTarget)) { |
| | | locMast.setLocSts("R"); |
| | | locMast.setModiUser(9999L); |
| | | locMast.setModiTime(now); |
| | | if (!locMastService.updateById(locMast)) { |
| | | throw new CoolException("更新库位状态失败"); |
| | | }else { |
| | | } else { |
| | | return SUCCESS; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | if (!sign){ |
| | | if (!sign) { |
| | | log.error("未查到可出库的空板!!!"); |
| | | return null; |
| | | } |
| | | }catch (Exception e){ |
| | | log.error("异常!!!"+e); |
| | | } catch (Exception e) { |
| | | log.error("异常!!!" + e); |
| | | return null; |
| | | } |
| | | return SUCCESS; |
| | |
| | | import com.baomidou.mybatisplus.mapper.EntityWrapper; |
| | | import com.core.common.Cools; |
| | | import com.zy.asrs.entity.BasCrnp; |
| | | import com.zy.asrs.entity.LocDetl; |
| | | import com.zy.asrs.entity.LocMast; |
| | | import com.zy.asrs.entity.WrkMast; |
| | | import com.zy.asrs.service.*; |
| | |
| | | @Transactional |
| | | public synchronized ReturnT<String> start() { |
| | | try { |
| | | for (int crnNo = 1; crnNo < 3; crnNo++){ |
| | | for (int crnNo = 1; crnNo < 3; crnNo++) { |
| | | List<WrkMast> wrkMasts = wrkMastService.selectList(new EntityWrapper<WrkMast>() |
| | | .eq("crn_no",crnNo) |
| | | .eq("crn_no", crnNo) |
| | | .last(" and wrk_sts in (2,3,4,11,12)") |
| | | ); |
| | | if (wrkMasts.size() > 0) continue; |
| | | |
| | | //暂停移库 |
| | | BasCrnp crnp = basCrnpService.selectById(crnNo); |
| | | if(!Cools.isEmpty(crnp) && !Cools.isEmpty(crnp.getTankQty()) && crnp.getTankQty()==0){ |
| | | if (!Cools.isEmpty(crnp) && !Cools.isEmpty(crnp.getTankQty()) && crnp.getTankQty() == 0) { |
| | | continue; |
| | | } |
| | | |
| | | List<LocMast> locMasts = locMastService.queryShallowLocFMast(crnNo); |
| | | if (null == locMasts) continue; |
| | | |
| | | for (LocMast sourceLoc : locMasts){ |
| | | for (LocMast sourceLoc : locMasts) { |
| | | String deep = Utils.getDeepLoc(slaveProperties, sourceLoc.getLocNo()); |
| | | LocMast destLoc = locMastService.selectById(deep); |
| | | |
| | | if(!Cools.isEmpty(sourceLoc) && !Cools.isEmpty(destLoc)) { |
| | | if (!Cools.isEmpty(sourceLoc) && !Cools.isEmpty(destLoc)) { |
| | | //查找源库位是否有转移任务,如果有,不生成库位移转 |
| | | WrkMast wrkMast = wrkMastService.selectOne(new EntityWrapper<WrkMast>() |
| | | .eq("source_loc_no", sourceLoc.getLocNo())); |
| | |
| | | |
| | | /** |
| | | * 将深库位转为对应浅库位 |
| | | * |
| | | * @param deep |
| | | * @return |
| | | */ |
| | | private String convertShallow(String deep){ |
| | | private String convertShallow(String deep) { |
| | | String shallLoc = ""; |
| | | Integer mastInt = Integer.parseInt(deep.substring(0, 2)); |
| | | if (mastInt % 2 == 0){ |
| | | if (mastInt % 2 == 0) { |
| | | mastInt -= 1; |
| | | }else if (mastInt % 2 == 1){ |
| | | } else if (mastInt % 2 == 1) { |
| | | mastInt += 1; |
| | | } |
| | | if (mastInt <10){ |
| | | shallLoc = "0" + mastInt+ deep.substring(2,7); |
| | | }else { |
| | | shallLoc = mastInt+ deep.substring(2,7); |
| | | if (mastInt < 10) { |
| | | shallLoc = "0" + mastInt + deep.substring(2, 7); |
| | | } else { |
| | | shallLoc = mastInt + deep.substring(2, 7); |
| | | } |
| | | return shallLoc; |
| | | } |
| | |
| | | package com.zy.asrs.task.handler; |
| | | |
| | | import com.baomidou.mybatisplus.mapper.EntityWrapper; |
| | | import com.core.common.Cools; |
| | | import com.zy.asrs.entity.LocMast; |
| | | import com.zy.asrs.service.LocMastService; |
| | | import com.zy.asrs.service.WorkService; |
| | |
| | | @Autowired |
| | | private OrderDetlReportService orderDetlReportService; |
| | | |
| | | public ReturnT<String> start(){ |
| | | public ReturnT<String> start() { |
| | | List<Order> settleEqual6 = orderService.selectList(new EntityWrapper<Order>() |
| | | .eq("settle", 6)); |
| | | for (Order order : settleEqual6) { |
| | | List<OrderDetl> orderDetls = orderDetlService.selectList(new EntityWrapper<OrderDetl>() |
| | | .eq("order_no", order.getOrderNo())); |
| | | moveBoth(order,orderDetls); |
| | | moveBoth(order, orderDetls); |
| | | List<OrderDetlReport> orderNo = orderDetlReportService.selectList(new EntityWrapper<OrderDetlReport>().eq("order_no", order.getOrderNo())); |
| | | for (OrderDetlReport orderDetlReport : orderNo){ |
| | | for (OrderDetlReport orderDetlReport : orderNo) { |
| | | OrderDetlReportLog log = new OrderDetlReportLog(); |
| | | log.sync(orderDetlReport); |
| | | orderDetlReportLogService.insert(log); |
| | | orderDetlReportService.deleteById(orderDetlReport); |
| | | } |
| | | log.info("已完成单据移动至历史表成功 =====>" +order); |
| | | log.info("已完成单据移动至历史表成功 =====>" + order); |
| | | } |
| | | return SUCCESS; |
| | | } |
| | | |
| | | private void moveBoth(Order order, List<OrderDetl> orderDetls){ |
| | | private void moveBoth(Order order, List<OrderDetl> orderDetls) { |
| | | Date now = new Date(); |
| | | if (!Cools.isEmpty(orderDetls)) { |
| | | for (OrderDetl orderDetl : orderDetls) { |
| | |
| | | orderDetl.setUpdateTime(now); |
| | | orderDetlService.addToLogTable(orderDetl); |
| | | orderDetlService.delete(new EntityWrapper<OrderDetl>() |
| | | .eq("id",orderDetl.getId())); |
| | | .eq("id", orderDetl.getId())); |
| | | } |
| | | } |
| | | if (!Cools.isEmpty(order)){ |
| | | if (!Cools.isEmpty(order)) { |
| | | order.setUpdateBy(0L); |
| | | order.setUpdateTime(now); |
| | | orderService.addToLogTable(order); |
| | | orderService.delete(new EntityWrapper<Order>() |
| | | .eq("id",order.getId())); |
| | | .eq("id", order.getId())); |
| | | } |
| | | } |
| | | |
| | |
| | | import com.core.exception.CoolException; |
| | | import com.zy.asrs.entity.DocType; |
| | | import com.zy.asrs.entity.Order; |
| | | import com.zy.asrs.entity.OrderDetl; |
| | | import com.zy.asrs.entity.OrderDetlReport; |
| | | import com.zy.asrs.service.*; |
| | | import com.zy.asrs.task.AbstractHandler; |
| | |
| | | public ReturnT<String> start() { |
| | | try { |
| | | // 删除半年以上的历史档 |
| | | jdbcTemplate.update("delete from asr_stk_hplc where dateadd(day,180,appe_time) <= getdate();"); |
| | | jdbcTemplate.update("delete from asr_wrk_detl_log where dateadd(day,360,appe_time) <= getdate();"); |
| | | jdbcTemplate.update("delete from asr_wrk_mast_log where dateadd(day,360,appe_time) <= getdate();"); |
| | | jdbcTemplate.update("delete from cust_wait_pakin_log where dateadd(day,360,appe_time) <= getdate();"); |
| | |
| | | // exceptionHandle("生成手动入库单据[workNo={0}]失败", wrkMast.getWrkNo()); |
| | | // } |
| | | // } |
| | | // 拣料再入库 |
| | | // 拣料再入库 |
| | | } else if (wrkMast.getIoType() == 53) { |
| | | // if (!Cools.isEmpty(wrkDetls)) { |
| | | // if (!orderService.saveHandlerOrder(Boolean.FALSE, wrkMast, wrkDetls)) { |
| | |
| | | // } |
| | | } |
| | | |
| | | // 出库 -------------------------------------------------------------------------------- |
| | | // 出库 -------------------------------------------------------------------------------- |
| | | } else if (wrkMast.getWrkSts() == 15) { |
| | | // if (!Cools.isEmpty(wrkDetls)) { |
| | | // if (!orderService.saveHandlerOrder(Boolean.FALSE, wrkMast, wrkDetls)) { |
| | |
| | | // } |
| | | // } |
| | | } |
| | | |
| | | |
| | | |
| | | // 保存工作主档历史档 |
| | |
| | | wrkMastLog.sync(wrkMast1); |
| | | wrkMastLog.setModiTime(now); |
| | | wrkMastLog.setWrkSts(wrkMast1.getWrkSts().intValue()); |
| | | if (!wrkMastLogService.insert(wrkMastLog)){ |
| | | if (!wrkMastLogService.insert(wrkMastLog)) { |
| | | exceptionHandle("保存工作历史档[workNo={0}]失败", wrkMast.getWrkNo()); |
| | | } |
| | | |
| | |
| | | } |
| | | // 保存工作明细档历史档 |
| | | List<WrkDetl> wrkDetls1 = wrkDetlService.selectList(new EntityWrapper<WrkDetl>().eq("wrk_no", wrkMast.getWrkNo())); |
| | | wrkDetls1.forEach( wrkDetl -> { |
| | | wrkDetls1.forEach(wrkDetl -> { |
| | | WrkDetlLog wrkDetlLog = new WrkDetlLog(); |
| | | wrkDetlLog.sync(wrkDetl); |
| | | wrkDetlLog.setModiTime(now); |
| | | if (!wrkDetlLogService.insert(wrkDetlLog)){ |
| | | if (!wrkDetlLogService.insert(wrkDetlLog)) { |
| | | exceptionHandle("保存工作明细历史档[workNo={0}]失败", wrkMast.getWrkNo()); |
| | | } |
| | | }); |
| | |
| | | return FAIL.setMsg("全板入库 ===>> 添加库存明细失败; [workNo=" + wrkMast.getWrkNo() + "],[locNo=" + wrkMast.getLocNo() + "]"); |
| | | } |
| | | } |
| | | if (!Cools.isEmpty(wrkDetl.getOrderNo())){ |
| | | if (!Cools.isEmpty(wrkDetl.getOrderNo())) { |
| | | OrderDetlReport orderDetlReport = new OrderDetlReport(); |
| | | orderDetlReport.sync(wrkDetl); |
| | | orderDetlReportService.insert(orderDetlReport); |
| | |
| | | private boolean InboundOrderSwitch; |
| | | |
| | | @Scheduled(cron = "0/3 * * * * ? ") |
| | | void login(){ |
| | | if(!InboundOrderSwitch){ |
| | | void login() { |
| | | if (!InboundOrderSwitch) { |
| | | return; |
| | | } |
| | | inboundOrderHandler.start(); |
| | |
| | | private boolean LoginAuthenticationSwitch; |
| | | |
| | | //@Scheduled(cron = "0/3 * * * * ? ") |
| | | void login(){ |
| | | if(!LoginAuthenticationSwitch){ |
| | | void login() { |
| | | if (!LoginAuthenticationSwitch) { |
| | | return; |
| | | } |
| | | loginAuthenticationHandler.start(); |
| | |
| | | package com.zy.asrs.task.kingdee; |
| | | |
| | | import com.zy.asrs.entity.Order; |
| | | import com.zy.asrs.service.ApiLogService; |
| | | import com.zy.asrs.service.OrderService; |
| | | import com.zy.asrs.task.core.ReturnT; |
| | | import com.zy.asrs.task.kingdee.handler.ReviewOrderSyncHandler; |
| | |
| | | |
| | | @Scheduled(cron = "0/3 * * * * ? ") |
| | | @Async("orderThreadPool") |
| | | public void completeAndReport(){ |
| | | if(!ReviewOrderSwitch){ |
| | | public void completeAndReport() { |
| | | if (!ReviewOrderSwitch) { |
| | | return; |
| | | } |
| | | List<Order> orders = orderService.selectComplete(); |
| | |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.scheduling.annotation.Async; |
| | | import org.springframework.scheduling.annotation.Scheduled; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | import java.util.List; |
| | |
| | | @Value("${erp.switch.ReviewOrderSwitch}") |
| | | private boolean ReviewOrderSwitch; |
| | | |
| | | // @Scheduled(cron = "0/3 * * * * ? ") |
| | | // @Scheduled(cron = "0/3 * * * * ? ") |
| | | @Async("orderThreadPool") |
| | | public void completeAndReport(){ |
| | | if (1==1) return; |
| | | if(!ReviewOrderSwitch){ |
| | | public void completeAndReport() { |
| | | if (1 == 1) return; |
| | | if (!ReviewOrderSwitch) { |
| | | return; |
| | | } |
| | | List<Order> orders = orderService.selectComplete8(); |
| | |
| | | package com.zy.asrs.task.kingdee; |
| | | |
| | | import com.zy.asrs.entity.Order; |
| | | import com.zy.asrs.service.ApiLogService; |
| | | import com.zy.asrs.service.OrderService; |
| | | import com.zy.asrs.task.core.ReturnT; |
| | | import com.zy.asrs.task.kingdee.handler.ReviewOrderSyncHandler; |
| | | import com.zy.asrs.task.kingdee.handler.SaveOrderSyncHandler; |
| | | import com.zy.asrs.task.kingdee.handler.SubmitOrderSyncHandler; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | |
| | | |
| | | @Scheduled(cron = "0/3 * * * * ? ") |
| | | @Async("orderThreadPool") |
| | | public void completeAndReport(){ |
| | | if(!ReviewOrderSwitch){ |
| | | public void completeAndReport() { |
| | | if (!ReviewOrderSwitch) { |
| | | return; |
| | | } |
| | | List<Order> orders = orderService.selectComplete8(); |
| | |
| | | import com.core.common.Cools; |
| | | import com.core.common.DateUtils; |
| | | import com.core.common.SnowflakeIdWorker; |
| | | import com.core.exception.CoolException; |
| | | import com.zy.asrs.entity.*; |
| | | import com.zy.asrs.service.*; |
| | | import com.zy.asrs.task.AbstractHandler; |
| | | import com.zy.asrs.task.core.ReturnT; |
| | | import com.zy.common.utils.HttpHandler; |
| | | import com.zy.erp.kingdee.entity.param.InFormIdParam; |
| | | import com.zy.erp.kingdee.enums.KingDeeUtilType; |
| | | import com.zy.common.utils.HttpHandler; |
| | | import com.zy.erp.kingdee.utils.KingDeeUtil; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | |
| | | @Transactional |
| | | public synchronized ReturnT<String> start() { |
| | | SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); |
| | | SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); |
| | | //登录金蝶 |
| | | ReturnT<String> start = loginAuthenticationHandler.start(); |
| | | for(KingDeeUtilType kingDeeUtilType : KingDeeUtilType.values()) { |
| | | for (KingDeeUtilType kingDeeUtilType : KingDeeUtilType.values()) { |
| | | InFormIdParam inFormIdParam = new InFormIdParam(); |
| | | DocType docType = docTypeService.selectOne(new EntityWrapper<DocType>().eq("doc_name", kingDeeUtilType.desc)); |
| | | if (Cools.isEmpty(docType) && !kingDeeUtilType.formId.equals("BD_MATERIAL")){ |
| | | if (Cools.isEmpty(docType) && !kingDeeUtilType.formId.equals("BD_MATERIAL")) { |
| | | docType = docTypeService.selectOrAdd(kingDeeUtilType.desc, kingDeeUtilType.pakIn.equals(1)); |
| | | } |
| | | inFormIdParam.setFormId(kingDeeUtilType.formId); |
| | | inFormIdParam.setLimit(100); |
| | | inFormIdParam.setStartRow("0"); |
| | | String FDocumentStatus=null; |
| | | String FDocumentStatus = null; |
| | | |
| | | //条件和需要获得的结果拼接 |
| | | JSONObject jsonObject = new JSONObject(); |
| | |
| | | jsonObject.put("Limit", inFormIdParam.getLimit()); |
| | | jsonObject.put("StartRow", inFormIdParam.getStartRow()); |
| | | //物料档案查询 |
| | | if(kingDeeUtilType.formId.equals("BD_MATERIAL")){ |
| | | if (kingDeeUtilType.formId.equals("BD_MATERIAL")) { |
| | | Tag tag = tagService.selectByName("全部", 1); |
| | | //物料状态 FUseOrgId .FNumber |
| | | FDocumentStatus="C"; |
| | | jsonObject.put("FilterString", "FCreateDate>'"+sdf.format(tag.getUpdateTime())+"' and FDocumentStatus='"+FDocumentStatus+"' and FUseOrgId .FNumber='100'"); |
| | | FDocumentStatus = "C"; |
| | | jsonObject.put("FilterString", "FCreateDate>'" + sdf.format(tag.getUpdateTime()) + "' and FDocumentStatus='" + FDocumentStatus + "' and FUseOrgId .FNumber='100'"); |
| | | jsonObject.put("FieldKeys", "FName,FNumber,FCreateDate,FSpecification,FDocumentStatus"); |
| | | // FName : 物料名称 ; |
| | | // FNumber :物料编号; |
| | | // FCreateDate :物料创建时间; |
| | | // FSpecification :物料规格; |
| | | // FDocumentStatus :物料状态 |
| | | }else{ |
| | | } else { |
| | | //获取最新时间 |
| | | //单据状态 |
| | | FDocumentStatus="B"; |
| | | jsonObject.put("FilterString", "FCreateDate>'"+sdf.format(docType.getCreateTime())+"'"+" and FStockId.Fname='立库'"+" and FDocumentStatus='"+FDocumentStatus+"'"); |
| | | jsonObject.put("FieldKeys", "FBillNo,FCreateDate,FMaterialId.FNumber,FMaterialId.FName,FMaterialId.FSpecification,"+kingDeeUtilType.anfme+",FDocumentStatus"); |
| | | FDocumentStatus = "B"; |
| | | jsonObject.put("FilterString", "FCreateDate>'" + sdf.format(docType.getCreateTime()) + "'" + " and FStockId.Fname='立库'" + " and FDocumentStatus='" + FDocumentStatus + "'"); |
| | | jsonObject.put("FieldKeys", "FBillNo,FCreateDate,FMaterialId.FNumber,FMaterialId.FName,FMaterialId.FSpecification," + kingDeeUtilType.anfme + ",FDocumentStatus"); |
| | | // FBillNo :单据编号; |
| | | // FCreateDate :单据创建时间; |
| | | // FMaterialId.FNumber : 物料编码; |
| | |
| | | .build() |
| | | .doPost(); |
| | | JSONArray data = JSON.parseArray(response); |
| | | if(data.size()<=0) continue; |
| | | if (data.getJSONArray(0).get(0).toString().length()>=20) continue; |
| | | if (data.size() <= 0) continue; |
| | | if (data.getJSONArray(0).get(0).toString().length() >= 20) continue; |
| | | if (kingDeeUtilType.formId.equals("BD_MATERIAL")) {//物料档案 |
| | | Tag tag = tagService.selectByName("全部", 1); |
| | | for (int j = 0; j < data.size(); j++) { |
| | |
| | | //最新抓取商品时间 |
| | | if (!matService.insert(mat)) { |
| | | // throw new CoolException("服务器内部错误,请联系管理员"); |
| | | callApiLogSaveMat(mat,kingDeeUtilType, "同步新物料出错!!!"+mat, false); |
| | | log.info("同步新物料出错!!!参数:[{}]、[{}]",mat,jsonArray); |
| | | callApiLogSaveMat(mat, kingDeeUtilType, "同步新物料出错!!!" + mat, false); |
| | | log.info("同步新物料出错!!!参数:[{}]、[{}]", mat, jsonArray); |
| | | } else { |
| | | callApiLogSaveMat(mat,kingDeeUtilType, "同步新物料!", true); |
| | | callApiLogSaveMat(mat, kingDeeUtilType, "同步新物料!", true); |
| | | // log.info("同步新物料[商品编号:{}]", mat.getMatnr()); |
| | | } |
| | | }else { |
| | | if (!jsonDate.equals(tag.getUpdateTime())){ |
| | | callApiLogSaveMat(mat,kingDeeUtilType, "商品编号重复:"+mat.getMatnr(), false); |
| | | } else { |
| | | if (!jsonDate.equals(tag.getUpdateTime())) { |
| | | callApiLogSaveMat(mat, kingDeeUtilType, "商品编号重复:" + mat.getMatnr(), false); |
| | | log.info("同步新物料[商品编号:{}],商品编号重复!!!", mat.getMatnr()); |
| | | } |
| | | } |
| | |
| | | ); |
| | | |
| | | if (!orderService.insert(order)) { |
| | | if (!jsonDate.equals(docType.getCreateTime())){ |
| | | callApiLogSaveOrder(order,kingDeeUtilType, "生成单据主档失败,请联系管理员"+order, false); |
| | | if (!jsonDate.equals(docType.getCreateTime())) { |
| | | callApiLogSaveOrder(order, kingDeeUtilType, "生成单据主档失败,请联系管理员" + order, false); |
| | | } |
| | | continue; |
| | | // throw new CoolException("生成单据主档失败,请联系管理员"); |
| | |
| | | //物料编码 |
| | | Mat mat = matService.selectByMatnr(jsonArray.get(2).toString()); |
| | | if (Cools.isEmpty(mat)) { |
| | | if (!jsonDate.equals(docType.getCreateTime())){ |
| | | callApiLogSaveOrder(order,kingDeeUtilType, "编号商品检索失败,请先添加商品"+jsonArray.get(2).toString(), false); |
| | | if (!jsonDate.equals(docType.getCreateTime())) { |
| | | callApiLogSaveOrder(order, kingDeeUtilType, "编号商品检索失败,请先添加商品" + jsonArray.get(2).toString(), false); |
| | | } |
| | | continue; |
| | | } |
| | |
| | | orderDetl.setStatus(1); |
| | | orderDetl.setQty(0.0D); |
| | | if (!orderDetlService.insert(orderDetl)) { |
| | | callApiLogSaveOrder(order,kingDeeUtilType, "生成单据明细失败,请联系管理员!订单号:"+order.getOrderNo(), false); |
| | | callApiLogSaveOrder(order, kingDeeUtilType, "生成单据明细失败,请联系管理员!订单号:" + order.getOrderNo(), false); |
| | | // throw new CoolException("生成单据明细失败,请联系管理员"); |
| | | } |
| | | } |
| | |
| | | } |
| | | |
| | | public void callApiLogSaveMat(Mat mat, KingDeeUtilType kingDeeUtilType, String response, Boolean bool) { |
| | | apiLogService.save("获取"+kingDeeUtilType.desc, kingDeeUtilType.formId, "null", URL, |
| | | apiLogService.save("获取" + kingDeeUtilType.desc, kingDeeUtilType.formId, "null", URL, |
| | | "物料编号:" + mat.getMatnr() + "、物料名称:" + mat.getName() + "、类型:" + mat.getTagId$() + "、状态:" + mat.getStatus$(), |
| | | response, bool); |
| | | } |
| | | |
| | | public void callApiLogSaveOrder(Order order, KingDeeUtilType kingDeeUtilType, String response, Boolean bool) { |
| | | apiLogService.save("获取"+kingDeeUtilType.desc, kingDeeUtilType.formId, "null", URL, |
| | | "单据编号:" + order.getId() + "、状态:" + order.getStatus$(), |
| | | apiLogService.save("获取" + kingDeeUtilType.desc, kingDeeUtilType.formId, "null", URL, |
| | | "单据编号:" + order.getId() + "、状态:" + order.getStatus$(), |
| | | response, bool); |
| | | } |
| | | |
src/main/java/com/zy/asrs/task/kingdee/handler/LoginAuthenticationHandler.java
src/main/java/com/zy/asrs/task/kingdee/handler/ReviewOrderSyncHandler.java
src/main/java/com/zy/asrs/task/kingdee/handler/SaveOrderSyncHandler.java
src/main/java/com/zy/asrs/task/kingdee/handler/SubmitOrderSyncHandler.java
src/main/java/com/zy/asrs/third/TokenUtils.java
src/main/java/com/zy/asrs/timer/LedWebsocket.java
src/main/java/com/zy/asrs/utils/DigitAndSortUrils.java
src/main/java/com/zy/asrs/utils/InitStaDesc.java
src/main/java/com/zy/asrs/utils/SaasUtils.java
src/main/java/com/zy/asrs/utils/Utils.java
src/main/java/com/zy/asrs/utils/VersionUtils.java
src/main/java/com/zy/common/CodeBuilder.java
src/main/java/com/zy/common/config/AdminInterceptor.java
src/main/java/com/zy/common/config/AspectConfig.java
src/main/java/com/zy/common/config/ControllerResAdvice.java
src/main/java/com/zy/common/config/SwaggerConfig.java
src/main/java/com/zy/common/config/WebConfig.java
src/main/java/com/zy/common/config/WebSocketServer.java
src/main/java/com/zy/common/constant/AgvSiteConstant.java
src/main/java/com/zy/common/entity/NodeExcelListener.java
src/main/java/com/zy/common/entity/Parameter.java
src/main/java/com/zy/common/model/DetlDto.java
src/main/java/com/zy/common/model/LocDto.java
src/main/java/com/zy/common/model/MesPakoutParam.java
src/main/java/com/zy/common/model/MobileLocDetlVo.java
src/main/java/com/zy/common/model/OutLocDto.java
src/main/java/com/zy/common/model/PageParam.java
src/main/java/com/zy/common/model/Shelves.java
src/main/java/com/zy/common/model/TaskDto.java
src/main/java/com/zy/common/model/WrkDto.java
src/main/java/com/zy/common/model/enums/HtmlNavIconType.java
src/main/java/com/zy/common/properties/OSinfo.java
src/main/java/com/zy/common/properties/SystemProperties.java
src/main/java/com/zy/common/service/CommonService.java
src/main/java/com/zy/common/task/ActivateScheduler.java
src/main/java/com/zy/common/utils/BarcodeUtils.java
src/main/java/com/zy/common/utils/Http.java
src/main/java/com/zy/common/utils/HttpHandler.java
src/main/java/com/zy/common/utils/NodeUtils.java
src/main/java/com/zy/common/utils/OutStockInterceptUtil.java
src/main/java/com/zy/common/utils/QrCode.java
src/main/java/com/zy/common/utils/RandomValidateCodeUtil.java
src/main/java/com/zy/common/utils/RedisUtil.java
src/main/java/com/zy/common/utils/Synchro.java
src/main/java/com/zy/common/utils/TreeUtils.java
src/main/java/com/zy/common/web/AuthController.java
src/main/java/com/zy/common/web/BaseController.java
src/main/java/com/zy/common/web/FileController.java
src/main/java/com/zy/common/web/RouterController.java
src/main/java/com/zy/erp/kingdee/entity/param/InFormIdParam.java
src/main/java/com/zy/erp/kingdee/enums/KingDeeUtilType.java
src/main/java/com/zy/erp/kingdee/utils/KingDeeUtil.java
src/main/java/com/zy/erp/kingdee/utils/PostMesDataUtils.java
src/main/java/com/zy/system/controller/ApiController.java
src/main/java/com/zy/system/controller/ConfigController.java
src/main/java/com/zy/system/controller/HomeController.java
src/main/java/com/zy/system/controller/HostController.java
src/main/java/com/zy/system/controller/LicenseCreatorController.java
src/main/java/com/zy/system/controller/OperateLogController.java
src/main/java/com/zy/system/controller/PermissionController.java
src/main/java/com/zy/system/controller/ResourceController.java
src/main/java/com/zy/system/controller/RoleController.java
src/main/java/com/zy/system/controller/SaasLogController.java
src/main/java/com/zy/system/controller/UserController.java
src/main/java/com/zy/system/controller/UserLoginController.java
src/main/java/com/zy/system/entity/Api.java
src/main/java/com/zy/system/entity/Config.java
src/main/java/com/zy/system/entity/Host.java
src/main/java/com/zy/system/entity/LicenseInfos.java
src/main/java/com/zy/system/entity/OperateLog.java
src/main/java/com/zy/system/entity/Permission.java
src/main/java/com/zy/system/entity/Resource.java
src/main/java/com/zy/system/entity/Role.java
src/main/java/com/zy/system/entity/RolePermission.java
src/main/java/com/zy/system/entity/SaasLog.java
src/main/java/com/zy/system/entity/User.java
src/main/java/com/zy/system/entity/UserLogin.java
src/main/java/com/zy/system/entity/license/AbstractServerInfos.java
src/main/java/com/zy/system/entity/license/CustomKeyStoreParam.java
src/main/java/com/zy/system/entity/license/CustomLicenseManager.java
src/main/java/com/zy/system/entity/license/LicenseCheckListener.java
src/main/java/com/zy/system/entity/license/LicenseCreator.java
src/main/java/com/zy/system/entity/license/LicenseVerify.java
src/main/java/com/zy/system/entity/license/WindowsServerInfos.java
src/main/java/com/zy/system/mapper/LicenseInfosMapper.java
src/main/java/com/zy/system/mapper/SaasLogMapper.java
src/main/java/com/zy/system/service/LicenseInfosService.java
src/main/java/com/zy/system/service/SaasLogService.java
src/main/java/com/zy/system/service/impl/ConfigServiceImpl.java
src/main/java/com/zy/system/service/impl/LicenseInfosServiceImpl.java
src/main/java/com/zy/system/service/impl/OperateLogServiceImpl.java
src/main/java/com/zy/system/service/impl/SaasLogServiceImpl.java
src/main/java/com/zy/system/timer/LicenseTimer.java
src/main/resources/application.yml
src/main/resources/mapper/InventoryCheckOrderDetlMapper.xml (deleted)
src/main/resources/mapper/InventoryCheckOrderMapper.xml (deleted)
src/main/resources/mapper/LocCheckMapper.xml (deleted)
src/main/resources/mapper/ManLocDetlMapper.xml (deleted)
src/main/resources/mapper/WrkMastExecuteLogMapper.xml (deleted)
src/main/resources/mapper/WrkMastExecuteMapper.xml (deleted)
src/main/resources/mapper/WrkMastFourWarVehicleLogMapper.xml (deleted)
src/main/resources/mapper/WrkMastFourWarVehicleMapper.xml (deleted) |