Commit 4230731bbe13402ed763afa82ed24679aa1d51c2

Authored by pengcheng
2 parents 81c737f9 b9d689d6

Merge branch 'develop' of http://172.16.29.40:8010/wms/wms2 into develop

Showing 49 changed files with 3698 additions and 50 deletions
huaheng.iml deleted
1   -<?xml version="1.0" encoding="UTF-8"?>
2   -<module version="4">
3   - <component name="ExternalSystem" externalSystem="Maven" />
4   - <component name="FacetManager">
5   - <facet type="Spring" name="Spring">
6   - <configuration />
7   - </facet>
8   - <facet type="web" name="Web">
9   - <configuration>
10   - <webroots />
11   - <sourceRoots>
12   - <root url="file://$MODULE_DIR$/src/main/java" />
13   - <root url="file://$MODULE_DIR$/src/main/resources" />
14   - </sourceRoots>
15   - </configuration>
16   - </facet>
17   - </component>
18   -</module>
19 0 \ No newline at end of file
src/main/java/com/huaheng/framework/config/SwaggerConfig.java
... ... @@ -36,7 +36,7 @@ public class SwaggerConfig
36 36 .apiInfo(apiInfo())
37 37 .select()
38 38 // 指定当前包路径
39   - .apis(RequestHandlerSelectors.basePackage("com.huaheng.api"))
  39 + .apis(RequestHandlerSelectors.basePackage("com.huaheng.pc"))
40 40 // 扫描所有 .apis(RequestHandlerSelectors.any())
41 41 .paths(PathSelectors.any())
42 42 .build();
... ...
src/main/java/com/huaheng/pc/config/containerType/domain/ContainerType.java 0 → 100644
  1 +package com.huaheng.pc.config.containerType.domain;
  2 +
  3 +import com.baomidou.mybatisplus.annotation.IdType;
  4 +import com.baomidou.mybatisplus.annotation.TableField;
  5 +import com.baomidou.mybatisplus.annotation.TableId;
  6 +import com.baomidou.mybatisplus.annotation.TableName;
  7 +import io.swagger.annotations.ApiModel;
  8 +import io.swagger.annotations.ApiModelProperty;
  9 +import java.io.Serializable;
  10 +import java.math.BigDecimal;
  11 +import java.util.Date;
  12 +
  13 +@ApiModel(value="com.huaheng.pc.config.containerType.domain.ContainerType")
  14 +@TableName(value = "container_type")
  15 +public class ContainerType implements Serializable {
  16 + /**
  17 + * 内部号
  18 + */
  19 + @TableId(value = "id", type = IdType.AUTO)
  20 + @ApiModelProperty(value="内部号")
  21 + private Integer id;
  22 +
  23 + /**
  24 + * 箱型
  25 + */
  26 + @TableField(value = "code")
  27 + @ApiModelProperty(value="箱型")
  28 + private String code;
  29 +
  30 + /**
  31 + * 描述
  32 + */
  33 + @TableField(value = "name")
  34 + @ApiModelProperty(value="描述")
  35 + private String name;
  36 +
  37 + /**
  38 + * 仓库编码
  39 + */
  40 + @TableField(value = "warehouseCode")
  41 + @ApiModelProperty(value="仓库编码")
  42 + private String warehouseCode;
  43 +
  44 + /**
  45 + * 货主编码
  46 + */
  47 + @TableField(value = "companyCode")
  48 + @ApiModelProperty(value="货主编码")
  49 + private String companyCode;
  50 +
  51 + /**
  52 + * 启用;0—禁用状态
  53 + */
  54 + @TableField(value = "enable")
  55 + @ApiModelProperty(value="启用;0—禁用状态")
  56 + private Integer enable;
  57 +
  58 + /**
  59 + * 序号
  60 + */
  61 + @TableField(value = "sequence")
  62 + @ApiModelProperty(value="序号")
  63 + private Integer sequence;
  64 +
  65 + /**
  66 + * 空箱重量
  67 + */
  68 + @TableField(value = "emptyWeight")
  69 + @ApiModelProperty(value="空箱重量")
  70 + private BigDecimal emptyWeight;
  71 +
  72 + /**
  73 + * 长
  74 + */
  75 + @TableField(value = "length")
  76 + @ApiModelProperty(value="长")
  77 + private BigDecimal length;
  78 +
  79 + /**
  80 + * 宽
  81 + */
  82 + @TableField(value = "width")
  83 + @ApiModelProperty(value="宽")
  84 + private BigDecimal width;
  85 +
  86 + /**
  87 + * 高
  88 + */
  89 + @TableField(value = "height")
  90 + @ApiModelProperty(value="高")
  91 + private BigDecimal height;
  92 +
  93 + /**
  94 + * 重
  95 + */
  96 + @TableField(value = "weight")
  97 + @ApiModelProperty(value="重")
  98 + private BigDecimal weight;
  99 +
  100 + /**
  101 + * 最大重量
  102 + */
  103 + @TableField(value = "maxWeight")
  104 + @ApiModelProperty(value="最大重量")
  105 + private BigDecimal maxWeight;
  106 +
  107 + /**
  108 + * 装满度
  109 + */
  110 + @TableField(value = "fillPercent")
  111 + @ApiModelProperty(value="装满度")
  112 + private Integer fillPercent;
  113 +
  114 + /**
  115 + * 作为默认货箱
  116 + */
  117 + @TableField(value = "useAsDEFAULT")
  118 + @ApiModelProperty(value="作为默认货箱")
  119 + private Integer useAsDEFAULT;
  120 +
  121 + /**
  122 + * 状态
  123 + */
  124 + @TableField(value = "status")
  125 + @ApiModelProperty(value="状态")
  126 + private String status;
  127 +
  128 + /**
  129 + * 创建时间
  130 + */
  131 + @TableField(value = "created")
  132 + @ApiModelProperty(value="创建时间")
  133 + private Date created;
  134 +
  135 + /**
  136 + * 创建用户
  137 + */
  138 + @TableField(value = "createdBy")
  139 + @ApiModelProperty(value="创建用户")
  140 + private String createdBy;
  141 +
  142 + /**
  143 + * 创建时间
  144 + */
  145 + @TableField(value = "lastUpdated")
  146 + @ApiModelProperty(value="创建时间")
  147 + private Date lastUpdated;
  148 +
  149 + /**
  150 + * 更新用户
  151 + */
  152 + @TableField(value = "lastUpdatedBy")
  153 + @ApiModelProperty(value="更新用户")
  154 + private String lastUpdatedBy;
  155 +
  156 + /**
  157 + * 数据版本
  158 + */
  159 + @TableField(value = "version")
  160 + @ApiModelProperty(value="数据版本")
  161 + private Integer version;
  162 +
  163 + /**
  164 + * 自定义字段1-robot交互用字段
  165 + */
  166 + @TableField(value = "userDef1")
  167 + @ApiModelProperty(value="自定义字段1-robot交互用字段")
  168 + private String userDef1;
  169 +
  170 + /**
  171 + * 自定义字段2
  172 + */
  173 + @TableField(value = "userDef2")
  174 + @ApiModelProperty(value="自定义字段2")
  175 + private String userDef2;
  176 +
  177 + /**
  178 + * 自定义字段3
  179 + */
  180 + @TableField(value = "userDef3")
  181 + @ApiModelProperty(value="自定义字段3")
  182 + private String userDef3;
  183 +
  184 + /**
  185 + * 自定义字段4
  186 + */
  187 + @TableField(value = "userDef4")
  188 + @ApiModelProperty(value="自定义字段4")
  189 + private String userDef4;
  190 +
  191 + /**
  192 + * 自定义字段5
  193 + */
  194 + @TableField(value = "userDef5")
  195 + @ApiModelProperty(value="自定义字段5")
  196 + private String userDef5;
  197 +
  198 + /**
  199 + * 自定义字段6
  200 + */
  201 + @TableField(value = "userDef6")
  202 + @ApiModelProperty(value="自定义字段6")
  203 + private String userDef6;
  204 +
  205 + /**
  206 + * 自定义字段7
  207 + */
  208 + @TableField(value = "userDef7")
  209 + @ApiModelProperty(value="自定义字段7")
  210 + private String userDef7;
  211 +
  212 + /**
  213 + * 自定义字段8
  214 + */
  215 + @TableField(value = "userDef8")
  216 + @ApiModelProperty(value="自定义字段8")
  217 + private String userDef8;
  218 +
  219 + /**
  220 + * 处理标记
  221 + */
  222 + @TableField(value = "processStamp")
  223 + @ApiModelProperty(value="处理标记")
  224 + private String processStamp;
  225 +
  226 + private static final long serialVersionUID = 1L;
  227 +
  228 + public static final String COL_CODE = "code";
  229 +
  230 + public static final String COL_NAME = "name";
  231 +
  232 + public static final String COL_WAREHOUSECODE = "warehouseCode";
  233 +
  234 + public static final String COL_COMPANYCODE = "companyCode";
  235 +
  236 + public static final String COL_ENABLE = "enable";
  237 +
  238 + public static final String COL_SEQUENCE = "sequence";
  239 +
  240 + public static final String COL_EMPTYWEIGHT = "emptyWeight";
  241 +
  242 + public static final String COL_LENGTH = "length";
  243 +
  244 + public static final String COL_WIDTH = "width";
  245 +
  246 + public static final String COL_HEIGHT = "height";
  247 +
  248 + public static final String COL_WEIGHT = "weight";
  249 +
  250 + public static final String COL_MAXWEIGHT = "maxWeight";
  251 +
  252 + public static final String COL_FILLPERCENT = "fillPercent";
  253 +
  254 + public static final String COL_USEASDEFAULT = "useAsDEFAULT";
  255 +
  256 + public static final String COL_STATUS = "status";
  257 +
  258 + public static final String COL_CREATED = "created";
  259 +
  260 + public static final String COL_CREATEDBY = "createdBy";
  261 +
  262 + public static final String COL_LASTUPDATED = "lastUpdated";
  263 +
  264 + public static final String COL_LASTUPDATEDBY = "lastUpdatedBy";
  265 +
  266 + public static final String COL_VERSION = "version";
  267 +
  268 + public static final String COL_USERDEF1 = "userDef1";
  269 +
  270 + public static final String COL_USERDEF2 = "userDef2";
  271 +
  272 + public static final String COL_USERDEF3 = "userDef3";
  273 +
  274 + public static final String COL_USERDEF4 = "userDef4";
  275 +
  276 + public static final String COL_USERDEF5 = "userDef5";
  277 +
  278 + public static final String COL_USERDEF6 = "userDef6";
  279 +
  280 + public static final String COL_USERDEF7 = "userDef7";
  281 +
  282 + public static final String COL_USERDEF8 = "userDef8";
  283 +
  284 + public static final String COL_PROCESSSTAMP = "processStamp";
  285 +
  286 + /**
  287 + * 获取内部号
  288 + *
  289 + * @return id - 内部号
  290 + */
  291 + public Integer getId() {
  292 + return id;
  293 + }
  294 +
  295 + /**
  296 + * 设置内部号
  297 + *
  298 + * @param id 内部号
  299 + */
  300 + public void setId(Integer id) {
  301 + this.id = id;
  302 + }
  303 +
  304 + /**
  305 + * 获取箱型
  306 + *
  307 + * @return code - 箱型
  308 + */
  309 + public String getCode() {
  310 + return code;
  311 + }
  312 +
  313 + /**
  314 + * 设置箱型
  315 + *
  316 + * @param code 箱型
  317 + */
  318 + public void setCode(String code) {
  319 + this.code = code;
  320 + }
  321 +
  322 + /**
  323 + * 获取描述
  324 + *
  325 + * @return name - 描述
  326 + */
  327 + public String getName() {
  328 + return name;
  329 + }
  330 +
  331 + /**
  332 + * 设置描述
  333 + *
  334 + * @param name 描述
  335 + */
  336 + public void setName(String name) {
  337 + this.name = name;
  338 + }
  339 +
  340 + /**
  341 + * 获取仓库编码
  342 + *
  343 + * @return warehouseCode - 仓库编码
  344 + */
  345 + public String getWarehouseCode() {
  346 + return warehouseCode;
  347 + }
  348 +
  349 + /**
  350 + * 设置仓库编码
  351 + *
  352 + * @param warehouseCode 仓库编码
  353 + */
  354 + public void setWarehouseCode(String warehouseCode) {
  355 + this.warehouseCode = warehouseCode;
  356 + }
  357 +
  358 + /**
  359 + * 获取货主编码
  360 + *
  361 + * @return companyCode - 货主编码
  362 + */
  363 + public String getCompanyCode() {
  364 + return companyCode;
  365 + }
  366 +
  367 + /**
  368 + * 设置货主编码
  369 + *
  370 + * @param companyCode 货主编码
  371 + */
  372 + public void setCompanyCode(String companyCode) {
  373 + this.companyCode = companyCode;
  374 + }
  375 +
  376 + /**
  377 + * 获取启用;0—禁用状态
  378 + *
  379 + * @return enable - 启用;0—禁用状态
  380 + */
  381 + public Integer getEnable() {
  382 + return enable;
  383 + }
  384 +
  385 + /**
  386 + * 设置启用;0—禁用状态
  387 + *
  388 + * @param enable 启用;0—禁用状态
  389 + */
  390 + public void setEnable(Integer enable) {
  391 + this.enable = enable;
  392 + }
  393 +
  394 + /**
  395 + * 获取序号
  396 + *
  397 + * @return sequence - 序号
  398 + */
  399 + public Integer getSequence() {
  400 + return sequence;
  401 + }
  402 +
  403 + /**
  404 + * 设置序号
  405 + *
  406 + * @param sequence 序号
  407 + */
  408 + public void setSequence(Integer sequence) {
  409 + this.sequence = sequence;
  410 + }
  411 +
  412 + /**
  413 + * 获取空箱重量
  414 + *
  415 + * @return emptyWeight - 空箱重量
  416 + */
  417 + public BigDecimal getEmptyWeight() {
  418 + return emptyWeight;
  419 + }
  420 +
  421 + /**
  422 + * 设置空箱重量
  423 + *
  424 + * @param emptyWeight 空箱重量
  425 + */
  426 + public void setEmptyWeight(BigDecimal emptyWeight) {
  427 + this.emptyWeight = emptyWeight;
  428 + }
  429 +
  430 + /**
  431 + * 获取长
  432 + *
  433 + * @return length - 长
  434 + */
  435 + public BigDecimal getLength() {
  436 + return length;
  437 + }
  438 +
  439 + /**
  440 + * 设置长
  441 + *
  442 + * @param length 长
  443 + */
  444 + public void setLength(BigDecimal length) {
  445 + this.length = length;
  446 + }
  447 +
  448 + /**
  449 + * 获取宽
  450 + *
  451 + * @return width - 宽
  452 + */
  453 + public BigDecimal getWidth() {
  454 + return width;
  455 + }
  456 +
  457 + /**
  458 + * 设置宽
  459 + *
  460 + * @param width 宽
  461 + */
  462 + public void setWidth(BigDecimal width) {
  463 + this.width = width;
  464 + }
  465 +
  466 + /**
  467 + * 获取高
  468 + *
  469 + * @return height - 高
  470 + */
  471 + public BigDecimal getHeight() {
  472 + return height;
  473 + }
  474 +
  475 + /**
  476 + * 设置高
  477 + *
  478 + * @param height 高
  479 + */
  480 + public void setHeight(BigDecimal height) {
  481 + this.height = height;
  482 + }
  483 +
  484 + /**
  485 + * 获取重
  486 + *
  487 + * @return weight - 重
  488 + */
  489 + public BigDecimal getWeight() {
  490 + return weight;
  491 + }
  492 +
  493 + /**
  494 + * 设置重
  495 + *
  496 + * @param weight 重
  497 + */
  498 + public void setWeight(BigDecimal weight) {
  499 + this.weight = weight;
  500 + }
  501 +
  502 + /**
  503 + * 获取最大重量
  504 + *
  505 + * @return maxWeight - 最大重量
  506 + */
  507 + public BigDecimal getMaxWeight() {
  508 + return maxWeight;
  509 + }
  510 +
  511 + /**
  512 + * 设置最大重量
  513 + *
  514 + * @param maxWeight 最大重量
  515 + */
  516 + public void setMaxWeight(BigDecimal maxWeight) {
  517 + this.maxWeight = maxWeight;
  518 + }
  519 +
  520 + /**
  521 + * 获取装满度
  522 + *
  523 + * @return fillPercent - 装满度
  524 + */
  525 + public Integer getFillPercent() {
  526 + return fillPercent;
  527 + }
  528 +
  529 + /**
  530 + * 设置装满度
  531 + *
  532 + * @param fillPercent 装满度
  533 + */
  534 + public void setFillPercent(Integer fillPercent) {
  535 + this.fillPercent = fillPercent;
  536 + }
  537 +
  538 + /**
  539 + * 获取作为默认货箱
  540 + *
  541 + * @return useAsDEFAULT - 作为默认货箱
  542 + */
  543 + public Integer getUseAsDEFAULT() {
  544 + return useAsDEFAULT;
  545 + }
  546 +
  547 + /**
  548 + * 设置作为默认货箱
  549 + *
  550 + * @param useAsDEFAULT 作为默认货箱
  551 + */
  552 + public void setUseAsDEFAULT(Integer useAsDEFAULT) {
  553 + this.useAsDEFAULT = useAsDEFAULT;
  554 + }
  555 +
  556 + /**
  557 + * 获取状态
  558 + *
  559 + * @return status - 状态
  560 + */
  561 + public String getStatus() {
  562 + return status;
  563 + }
  564 +
  565 + /**
  566 + * 设置状态
  567 + *
  568 + * @param status 状态
  569 + */
  570 + public void setStatus(String status) {
  571 + this.status = status;
  572 + }
  573 +
  574 + /**
  575 + * 获取创建时间
  576 + *
  577 + * @return created - 创建时间
  578 + */
  579 + public Date getCreated() {
  580 + return created;
  581 + }
  582 +
  583 + /**
  584 + * 设置创建时间
  585 + *
  586 + * @param created 创建时间
  587 + */
  588 + public void setCreated(Date created) {
  589 + this.created = created;
  590 + }
  591 +
  592 + /**
  593 + * 获取创建用户
  594 + *
  595 + * @return createdBy - 创建用户
  596 + */
  597 + public String getCreatedBy() {
  598 + return createdBy;
  599 + }
  600 +
  601 + /**
  602 + * 设置创建用户
  603 + *
  604 + * @param createdBy 创建用户
  605 + */
  606 + public void setCreatedBy(String createdBy) {
  607 + this.createdBy = createdBy;
  608 + }
  609 +
  610 + /**
  611 + * 获取创建时间
  612 + *
  613 + * @return lastUpdated - 创建时间
  614 + */
  615 + public Date getLastUpdated() {
  616 + return lastUpdated;
  617 + }
  618 +
  619 + /**
  620 + * 设置创建时间
  621 + *
  622 + * @param lastUpdated 创建时间
  623 + */
  624 + public void setLastUpdated(Date lastUpdated) {
  625 + this.lastUpdated = lastUpdated;
  626 + }
  627 +
  628 + /**
  629 + * 获取更新用户
  630 + *
  631 + * @return lastUpdatedBy - 更新用户
  632 + */
  633 + public String getLastUpdatedBy() {
  634 + return lastUpdatedBy;
  635 + }
  636 +
  637 + /**
  638 + * 设置更新用户
  639 + *
  640 + * @param lastUpdatedBy 更新用户
  641 + */
  642 + public void setLastUpdatedBy(String lastUpdatedBy) {
  643 + this.lastUpdatedBy = lastUpdatedBy;
  644 + }
  645 +
  646 + /**
  647 + * 获取数据版本
  648 + *
  649 + * @return version - 数据版本
  650 + */
  651 + public Integer getVersion() {
  652 + return version;
  653 + }
  654 +
  655 + /**
  656 + * 设置数据版本
  657 + *
  658 + * @param version 数据版本
  659 + */
  660 + public void setVersion(Integer version) {
  661 + this.version = version;
  662 + }
  663 +
  664 + /**
  665 + * 获取自定义字段1-robot交互用字段
  666 + *
  667 + * @return userDef1 - 自定义字段1-robot交互用字段
  668 + */
  669 + public String getUserDef1() {
  670 + return userDef1;
  671 + }
  672 +
  673 + /**
  674 + * 设置自定义字段1-robot交互用字段
  675 + *
  676 + * @param userDef1 自定义字段1-robot交互用字段
  677 + */
  678 + public void setUserDef1(String userDef1) {
  679 + this.userDef1 = userDef1;
  680 + }
  681 +
  682 + /**
  683 + * 获取自定义字段2
  684 + *
  685 + * @return userDef2 - 自定义字段2
  686 + */
  687 + public String getUserDef2() {
  688 + return userDef2;
  689 + }
  690 +
  691 + /**
  692 + * 设置自定义字段2
  693 + *
  694 + * @param userDef2 自定义字段2
  695 + */
  696 + public void setUserDef2(String userDef2) {
  697 + this.userDef2 = userDef2;
  698 + }
  699 +
  700 + /**
  701 + * 获取自定义字段3
  702 + *
  703 + * @return userDef3 - 自定义字段3
  704 + */
  705 + public String getUserDef3() {
  706 + return userDef3;
  707 + }
  708 +
  709 + /**
  710 + * 设置自定义字段3
  711 + *
  712 + * @param userDef3 自定义字段3
  713 + */
  714 + public void setUserDef3(String userDef3) {
  715 + this.userDef3 = userDef3;
  716 + }
  717 +
  718 + /**
  719 + * 获取自定义字段4
  720 + *
  721 + * @return userDef4 - 自定义字段4
  722 + */
  723 + public String getUserDef4() {
  724 + return userDef4;
  725 + }
  726 +
  727 + /**
  728 + * 设置自定义字段4
  729 + *
  730 + * @param userDef4 自定义字段4
  731 + */
  732 + public void setUserDef4(String userDef4) {
  733 + this.userDef4 = userDef4;
  734 + }
  735 +
  736 + /**
  737 + * 获取自定义字段5
  738 + *
  739 + * @return userDef5 - 自定义字段5
  740 + */
  741 + public String getUserDef5() {
  742 + return userDef5;
  743 + }
  744 +
  745 + /**
  746 + * 设置自定义字段5
  747 + *
  748 + * @param userDef5 自定义字段5
  749 + */
  750 + public void setUserDef5(String userDef5) {
  751 + this.userDef5 = userDef5;
  752 + }
  753 +
  754 + /**
  755 + * 获取自定义字段6
  756 + *
  757 + * @return userDef6 - 自定义字段6
  758 + */
  759 + public String getUserDef6() {
  760 + return userDef6;
  761 + }
  762 +
  763 + /**
  764 + * 设置自定义字段6
  765 + *
  766 + * @param userDef6 自定义字段6
  767 + */
  768 + public void setUserDef6(String userDef6) {
  769 + this.userDef6 = userDef6;
  770 + }
  771 +
  772 + /**
  773 + * 获取自定义字段7
  774 + *
  775 + * @return userDef7 - 自定义字段7
  776 + */
  777 + public String getUserDef7() {
  778 + return userDef7;
  779 + }
  780 +
  781 + /**
  782 + * 设置自定义字段7
  783 + *
  784 + * @param userDef7 自定义字段7
  785 + */
  786 + public void setUserDef7(String userDef7) {
  787 + this.userDef7 = userDef7;
  788 + }
  789 +
  790 + /**
  791 + * 获取自定义字段8
  792 + *
  793 + * @return userDef8 - 自定义字段8
  794 + */
  795 + public String getUserDef8() {
  796 + return userDef8;
  797 + }
  798 +
  799 + /**
  800 + * 设置自定义字段8
  801 + *
  802 + * @param userDef8 自定义字段8
  803 + */
  804 + public void setUserDef8(String userDef8) {
  805 + this.userDef8 = userDef8;
  806 + }
  807 +
  808 + /**
  809 + * 获取处理标记
  810 + *
  811 + * @return processStamp - 处理标记
  812 + */
  813 + public String getProcessStamp() {
  814 + return processStamp;
  815 + }
  816 +
  817 + /**
  818 + * 设置处理标记
  819 + *
  820 + * @param processStamp 处理标记
  821 + */
  822 + public void setProcessStamp(String processStamp) {
  823 + this.processStamp = processStamp;
  824 + }
  825 +
  826 + @Override
  827 + public String toString() {
  828 + StringBuilder sb = new StringBuilder();
  829 + sb.append(getClass().getSimpleName());
  830 + sb.append(" [");
  831 + sb.append("Hash = ").append(hashCode());
  832 + sb.append(", id=").append(id);
  833 + sb.append(", code=").append(code);
  834 + sb.append(", name=").append(name);
  835 + sb.append(", warehouseCode=").append(warehouseCode);
  836 + sb.append(", companyCode=").append(companyCode);
  837 + sb.append(", enable=").append(enable);
  838 + sb.append(", sequence=").append(sequence);
  839 + sb.append(", emptyWeight=").append(emptyWeight);
  840 + sb.append(", length=").append(length);
  841 + sb.append(", width=").append(width);
  842 + sb.append(", height=").append(height);
  843 + sb.append(", weight=").append(weight);
  844 + sb.append(", maxWeight=").append(maxWeight);
  845 + sb.append(", fillPercent=").append(fillPercent);
  846 + sb.append(", useAsDEFAULT=").append(useAsDEFAULT);
  847 + sb.append(", status=").append(status);
  848 + sb.append(", created=").append(created);
  849 + sb.append(", createdBy=").append(createdBy);
  850 + sb.append(", lastUpdated=").append(lastUpdated);
  851 + sb.append(", lastUpdatedBy=").append(lastUpdatedBy);
  852 + sb.append(", version=").append(version);
  853 + sb.append(", userDef1=").append(userDef1);
  854 + sb.append(", userDef2=").append(userDef2);
  855 + sb.append(", userDef3=").append(userDef3);
  856 + sb.append(", userDef4=").append(userDef4);
  857 + sb.append(", userDef5=").append(userDef5);
  858 + sb.append(", userDef6=").append(userDef6);
  859 + sb.append(", userDef7=").append(userDef7);
  860 + sb.append(", userDef8=").append(userDef8);
  861 + sb.append(", processStamp=").append(processStamp);
  862 + sb.append("]");
  863 + return sb.toString();
  864 + }
  865 +}
0 866 \ No newline at end of file
... ...
src/main/java/com/huaheng/pc/config/containerType/mapper/ContainerTypeMapper.java 0 → 100644
  1 +package com.huaheng.pc.config.containerType.mapper;
  2 +
  3 +import com.baomidou.mybatisplus.core.mapper.BaseMapper;
  4 +import com.huaheng.pc.config.containerType.domain.ContainerType;
  5 +
  6 +public interface ContainerTypeMapper extends BaseMapper<ContainerType> {
  7 +}
0 8 \ No newline at end of file
... ...
src/main/java/com/huaheng/pc/config/containerType/service/ContainerTypeService.java 0 → 100644
  1 +package com.huaheng.pc.config.containerType.service;
  2 +
  3 +import com.huaheng.pc.config.containerType.domain.ContainerType;
  4 +import com.baomidou.mybatisplus.extension.service.IService;
  5 +public interface ContainerTypeService extends IService<ContainerType>{
  6 +
  7 + public Boolean checkConfig(String code);
  8 +}
... ...
src/main/java/com/huaheng/pc/config/containerType/service/ContainerTypeServiceImpl.java 0 → 100644
  1 +package com.huaheng.pc.config.containerType.service;
  2 +
  3 +import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
  4 +import com.baomidou.mybatisplus.core.toolkit.Wrappers;
  5 +import com.huaheng.common.utils.security.ShiroUtils;
  6 +import org.springframework.stereotype.Service;
  7 +import javax.annotation.Resource;
  8 +import java.util.List;
  9 +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
  10 +import com.huaheng.pc.config.containerType.domain.ContainerType;
  11 +import com.huaheng.pc.config.containerType.mapper.ContainerTypeMapper;
  12 +import com.huaheng.pc.config.containerType.service.ContainerTypeService;
  13 +@Service
  14 +public class ContainerTypeServiceImpl extends ServiceImpl<ContainerTypeMapper, ContainerType> implements ContainerTypeService{
  15 +
  16 + @Override
  17 + public Boolean checkConfig(String code) {
  18 + LambdaQueryWrapper<ContainerType> lambda = Wrappers.lambdaQuery();
  19 + lambda.eq(ContainerType::getWarehouseCode, ShiroUtils.getWarehouseCode())
  20 + .eq(ContainerType::getCode, code);
  21 + return this.count(lambda) != 0;
  22 + }
  23 +}
... ...
src/main/java/com/huaheng/pc/config/locationType/controller/LocationTypeController.java 0 → 100644
  1 +package com.huaheng.pc.config.locationType.controller;
  2 +
  3 +import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
  4 +import com.baomidou.mybatisplus.core.metadata.IPage;
  5 +import com.baomidou.mybatisplus.core.toolkit.Wrappers;
  6 +import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
  7 +import com.huaheng.common.support.Convert;
  8 +import com.huaheng.common.utils.StringUtils;
  9 +import com.huaheng.common.utils.security.ShiroUtils;
  10 +import com.huaheng.framework.aspectj.lang.annotation.Log;
  11 +import com.huaheng.framework.aspectj.lang.constant.BusinessType;
  12 +import com.huaheng.framework.web.controller.BaseController;
  13 +import com.huaheng.framework.web.domain.AjaxResult;
  14 +import com.huaheng.framework.web.page.PageDomain;
  15 +import com.huaheng.framework.web.page.TableDataInfo;
  16 +import com.huaheng.framework.web.page.TableSupport;
  17 +import com.huaheng.pc.general.location.domain.Location;
  18 +import com.huaheng.pc.config.locationType.domain.LocationType;
  19 +import com.huaheng.pc.general.location.service.LocationService;
  20 +import com.huaheng.pc.config.locationType.service.LocationTypeService;
  21 +import org.apache.shiro.authz.annotation.RequiresPermissions;
  22 +import org.springframework.stereotype.Controller;
  23 +import org.springframework.ui.ModelMap;
  24 +import org.springframework.web.bind.annotation.*;
  25 +
  26 +import javax.annotation.Resource;
  27 +import java.util.Arrays;
  28 +import java.util.List;
  29 +
  30 +@Controller
  31 +@RequestMapping("/config/locationType")
  32 +public class LocationTypeController extends BaseController {
  33 +
  34 + private String prefix = "config/locationType";
  35 +
  36 + @Resource
  37 + private LocationTypeService locationTypeService;
  38 + @Resource
  39 + private LocationService locationService;
  40 +
  41 + @RequestMapping("config:locationType:view")
  42 + @GetMapping
  43 + public String locationType() {
  44 + return prefix + "/location";
  45 + }
  46 +
  47 + /**
  48 + * 查询库位类型列表
  49 + */
  50 + @RequiresPermissions("config:locationType:list")
  51 + @Log(title = "通用-库位类型管理", operating = "查看库位类型列表", action = BusinessType.GRANT)
  52 + @PostMapping("/list")
  53 + @ResponseBody
  54 + public TableDataInfo list(LocationType locationType) {
  55 + LambdaQueryWrapper<LocationType> lambdaQueryWrapper = Wrappers.lambdaQuery();
  56 + PageDomain pageDomain = TableSupport.buildPageRequest();
  57 + Integer pageNum = pageDomain.getPageNum();
  58 + Integer pageSize = pageDomain.getPageSize();
  59 +
  60 + lambdaQueryWrapper.eq(LocationType::getWarehouseCode,ShiroUtils.getWarehouseCode());
  61 +
  62 + if (StringUtils.isNotNull(pageNum) && StringUtils.isNotNull(pageSize)){
  63 + /**
  64 + * 使用分页查询
  65 + */
  66 + Page<LocationType> page = new Page<>(pageNum, pageSize);
  67 + IPage<LocationType> iPage = locationTypeService.page(page, lambdaQueryWrapper);
  68 + return getDataTable(iPage.getRecords());
  69 + } else {
  70 + List<LocationType> list = locationTypeService.list(lambdaQueryWrapper);
  71 + return getDataTable(list);
  72 + }
  73 + }
  74 +
  75 + /**
  76 + * 新增库位类型
  77 + */
  78 + @GetMapping("/add")
  79 + public String add() {
  80 + return prefix + "/add";
  81 + }
  82 +
  83 + /**
  84 + * 新增保存库位类型
  85 + */
  86 + @RequiresPermissions("config:locationType:add")
  87 + @Log(title = "通用-库位类型管理", operating = "新增库位类型", action = BusinessType.INSERT)
  88 + @PostMapping("/add")
  89 + @ResponseBody
  90 + public AjaxResult addSave(LocationType locationType) {
  91 + Boolean result = locationTypeService.save(locationType);
  92 + return toAjax(result);
  93 + }
  94 +
  95 + /**
  96 + * 修改库位类型
  97 + */
  98 + @GetMapping("/edit/{id}")
  99 + public String edit(@PathVariable("id") Integer id, ModelMap mmap) {
  100 + LocationType locationType = locationTypeService.getById(id);
  101 + mmap.put("locationType", locationType);
  102 + return prefix + "/edit";
  103 + }
  104 +
  105 + /**
  106 + * 修改保存库位类型
  107 + */
  108 + @RequiresPermissions("config:locationType:edit")
  109 + @Log(title = "通用-库位类型管理", operating = "修改库位类型", action = BusinessType.UPDATE)
  110 + @PostMapping("/edit")
  111 + @ResponseBody
  112 + public AjaxResult editSave(LocationType locationType) {
  113 + locationType.setLastUpdatedBy(ShiroUtils.getLoginName());
  114 + Boolean result = locationTypeService.updateById(locationType);
  115 + return toAjax(result);
  116 + }
  117 +
  118 + /**
  119 + * 删除库位
  120 + */
  121 + @RequiresPermissions("config:locationType:remove")
  122 + @Log(title = "通用-库位类型管理", operating = "删除库位类型", action = BusinessType.DELETE)
  123 + @PostMapping( "/remove")
  124 + @ResponseBody
  125 + public AjaxResult remove(String ids) {
  126 + if (StringUtils.isEmpty(ids)){
  127 + return AjaxResult.error("id不能为空");
  128 + }
  129 +
  130 + for (Integer id : Convert.toIntArray(ids)) {
  131 + LambdaQueryWrapper<Location> lambdaQueryWrapper = Wrappers.lambdaQuery();
  132 + lambdaQueryWrapper.eq(Location::getLocationType,id);
  133 +
  134 + int count = locationService.count(lambdaQueryWrapper);
  135 + if (count != 0){
  136 + return AjaxResult.error("库位类型id="+id+",存在库位,不能删除。");
  137 + }
  138 + }
  139 + List<Integer> list = Arrays.asList(Convert.toIntArray(ids));
  140 + locationTypeService.removeByIds(list);
  141 + return AjaxResult.success("删除成功!");
  142 + }
  143 +}
... ...
src/main/java/com/huaheng/pc/config/locationType/domain/LocationType.java 0 → 100644
  1 +package com.huaheng.pc.config.locationType.domain;
  2 +
  3 +import com.baomidou.mybatisplus.annotation.IdType;
  4 +import com.baomidou.mybatisplus.annotation.TableField;
  5 +import com.baomidou.mybatisplus.annotation.TableId;
  6 +import com.baomidou.mybatisplus.annotation.TableName;
  7 +import java.io.Serializable;
  8 +import java.util.Date;
  9 +import lombok.Data;
  10 +
  11 +@Data
  12 +@TableName(value = "location_type")
  13 +public class LocationType implements Serializable {
  14 + /**
  15 + * 内部号
  16 + */
  17 + @TableId(value = "id", type = IdType.AUTO)
  18 + private Integer id;
  19 +
  20 + /**
  21 + * 货位类型
  22 + */
  23 + @TableField(value = "code")
  24 + private String code;
  25 +
  26 + /**
  27 + * 仓库编码
  28 + */
  29 + @TableField(value = "warehouseCode")
  30 + private String warehouseCode;
  31 +
  32 + /**
  33 + * 描述
  34 + */
  35 + @TableField(value = "name")
  36 + private String name;
  37 +
  38 + /**
  39 + * 长
  40 + */
  41 + @TableField(value = "length")
  42 + private Integer length;
  43 +
  44 + /**
  45 + * 宽
  46 + */
  47 + @TableField(value = "width")
  48 + private Integer width;
  49 +
  50 + /**
  51 + * 高
  52 + */
  53 + @TableField(value = "height")
  54 + private Integer height;
  55 +
  56 + /**
  57 + * 最大重量
  58 + */
  59 + @TableField(value = "maxWeight")
  60 + private Integer maxWeight;
  61 +
  62 + /**
  63 + * 最小允许单位
  64 + */
  65 + @TableField(value = "minQtyUm")
  66 + private String minQtyUm;
  67 +
  68 + /**
  69 + * 校验位
  70 + */
  71 + @TableField(value = "checkDigit")
  72 + private String checkDigit;
  73 +
  74 + /**
  75 + * 最多混放物料数
  76 + */
  77 + @TableField(value = "maxMaterials")
  78 + private Integer maxMaterials;
  79 +
  80 + /**
  81 + * 最大批号数量
  82 + */
  83 + @TableField(value = "maxLots")
  84 + private Integer maxLots;
  85 +
  86 + /**
  87 + * 最大允许托盘数
  88 + */
  89 + @TableField(value = "maxContainers")
  90 + private Integer maxContainers;
  91 +
  92 + /**
  93 + * 有效
  94 + */
  95 + @TableField(value = "enable")
  96 + private Integer enable;
  97 +
  98 + /**
  99 + * 创建时间
  100 + */
  101 + @TableField(value = "created")
  102 + private Date created;
  103 +
  104 + /**
  105 + * 创建者
  106 + */
  107 + @TableField(value = "createdBy")
  108 + private String createdBy;
  109 +
  110 + /**
  111 + * 创建时间
  112 + */
  113 + @TableField(value = "lastUpdated")
  114 + private Date lastUpdated;
  115 +
  116 + /**
  117 + * 更新者
  118 + */
  119 + @TableField(value = "lastUpdatedBy")
  120 + private String lastUpdatedBy;
  121 +
  122 + /**
  123 + * 处理类型
  124 + */
  125 + @TableField(value = "processStamp")
  126 + private String processStamp;
  127 +
  128 + private static final long serialVersionUID = 1L;
  129 +
  130 + public static final String COL_CODE = "code";
  131 +
  132 + public static final String COL_WAREHOUSECODE = "warehouseCode";
  133 +
  134 + public static final String COL_NAME = "name";
  135 +
  136 + public static final String COL_LENGTH = "length";
  137 +
  138 + public static final String COL_WIDTH = "width";
  139 +
  140 + public static final String COL_HEIGHT = "height";
  141 +
  142 + public static final String COL_MAXWEIGHT = "maxWeight";
  143 +
  144 + public static final String COL_MINQTYUM = "minQtyUm";
  145 +
  146 + public static final String COL_CHECKDIGIT = "checkDigit";
  147 +
  148 + public static final String COL_MAXMATERIALS = "maxMaterials";
  149 +
  150 + public static final String COL_MAXLOTS = "maxLots";
  151 +
  152 + public static final String COL_MAXCONTAINERS = "maxContainers";
  153 +
  154 + public static final String COL_ENABLE = "enable";
  155 +
  156 + public static final String COL_CREATED = "created";
  157 +
  158 + public static final String COL_CREATEDBY = "createdBy";
  159 +
  160 + public static final String COL_LASTUPDATED = "lastUpdated";
  161 +
  162 + public static final String COL_LASTUPDATEDBY = "lastUpdatedBy";
  163 +
  164 + public static final String COL_PROCESSSTAMP = "processStamp";
  165 +}
0 166 \ No newline at end of file
... ...
src/main/java/com/huaheng/pc/config/locationType/mapper/LocationTypeMapper.java 0 → 100644
  1 +package com.huaheng.pc.config.locationType.mapper;
  2 +
  3 +import com.baomidou.mybatisplus.core.mapper.BaseMapper;
  4 +import com.huaheng.pc.config.locationType.domain.LocationType;
  5 +
  6 +public interface LocationTypeMapper extends BaseMapper<LocationType> {
  7 +}
0 8 \ No newline at end of file
... ...
src/main/java/com/huaheng/pc/config/locationType/service/LocationTypeService.java 0 → 100644
  1 +package com.huaheng.pc.config.locationType.service;
  2 +
  3 +import com.huaheng.pc.config.locationType.domain.LocationType;
  4 +import com.baomidou.mybatisplus.extension.service.IService;
  5 +public interface LocationTypeService extends IService<LocationType>{
  6 +
  7 +
  8 +}
... ...
src/main/java/com/huaheng/pc/config/locationType/service/LocationTypeServiceImpl.java 0 → 100644
  1 +package com.huaheng.pc.config.locationType.service;
  2 +
  3 +import org.springframework.stereotype.Service;
  4 +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
  5 +import com.huaheng.pc.config.locationType.mapper.LocationTypeMapper;
  6 +import com.huaheng.pc.config.locationType.domain.LocationType;
  7 +
  8 +@Service
  9 +public class LocationTypeServiceImpl extends ServiceImpl<LocationTypeMapper, LocationType> implements LocationTypeService{
  10 +
  11 +}
... ...
src/main/java/com/huaheng/pc/config/zone/controller/ZoneController.java
... ... @@ -52,7 +52,7 @@ public class ZoneController extends BaseController {
52 52 LambdaQueryWrapper<Zone> lambdaQueryWrapper = Wrappers.lambdaQuery();
53 53 PageDomain pageDomain = TableSupport.buildPageRequest();
54 54 Integer pageNum = pageDomain.getPageNum();
55   - Integer pageSize = pageDomain.getPageSize() >> 1; //除2
  55 + Integer pageSize = pageDomain.getPageSize();
56 56  
57 57 lambdaQueryWrapper.ge(StringUtils.isNotEmpty(createdBegin),Zone::getCreated, createdBegin)
58 58 .le(StringUtils.isNotEmpty(createdEnd), Zone::getCreated, createdEnd)
... ...
src/main/java/com/huaheng/pc/general/company/controller/CompanyController.java
... ... @@ -56,7 +56,7 @@ public class CompanyController extends BaseController {
56 56 LambdaQueryWrapper<Company> lambdaQueryWrapper = Wrappers.lambdaQuery();
57 57 PageDomain pageDomain = TableSupport.buildPageRequest();
58 58 Integer pageNum = pageDomain.getPageNum();
59   - Integer pageSize = pageDomain.getPageSize() >> 1; //除2
  59 + Integer pageSize = pageDomain.getPageSize();
60 60  
61 61 lambdaQueryWrapper.gt(StringUtils.isNotEmpty(createdBegin),Company::getCreated, createdBegin)
62 62 .lt(StringUtils.isNotEmpty(createdEnd), Company::getCreated, createdEnd)
... ...
src/main/java/com/huaheng/pc/general/container/controller/ContainerController.java 0 → 100644
  1 +package com.huaheng.pc.general.container.controller;
  2 +
  3 +import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
  4 +import com.baomidou.mybatisplus.core.metadata.IPage;
  5 +import com.baomidou.mybatisplus.core.toolkit.Wrappers;
  6 +import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
  7 +import com.huaheng.common.support.Convert;
  8 +import com.huaheng.common.utils.StringUtils;
  9 +import com.huaheng.common.utils.security.ShiroUtils;
  10 +import com.huaheng.framework.aspectj.lang.annotation.Log;
  11 +import com.huaheng.framework.aspectj.lang.constant.BusinessType;
  12 +import com.huaheng.framework.web.controller.BaseController;
  13 +import com.huaheng.framework.web.domain.AjaxResult;
  14 +import com.huaheng.framework.web.page.PageDomain;
  15 +import com.huaheng.framework.web.page.TableDataInfo;
  16 +import com.huaheng.framework.web.page.TableSupport;
  17 +import com.huaheng.pc.general.container.domain.Container;
  18 +import com.huaheng.pc.general.container.service.ContainerService;
  19 +import io.swagger.annotations.Api;
  20 +import io.swagger.annotations.ApiOperation;
  21 +import io.swagger.annotations.ApiParam;
  22 +import org.apache.shiro.authz.annotation.RequiresPermissions;
  23 +import org.springframework.stereotype.Controller;
  24 +import org.springframework.ui.ModelMap;
  25 +import org.springframework.web.bind.annotation.*;
  26 +
  27 +import javax.annotation.Resource;
  28 +import java.util.List;
  29 +
  30 +@Api(tags={"容器操作类"})
  31 +@Controller
  32 +@RequestMapping("/general/container")
  33 +public class ContainerController extends BaseController {
  34 +
  35 + private String prefix = "general/container";
  36 +
  37 + @Resource
  38 + private ContainerService containerService;
  39 +
  40 + @RequiresPermissions("general:container:view")
  41 + @GetMapping()
  42 + public String container() {
  43 + return prefix + "/container";
  44 + }
  45 +
  46 + /**
  47 + * 查询库位列表
  48 + */
  49 + @ApiOperation(value="查看容器列表",
  50 + notes="根据容器编号、库位编码、容器状态、容器类型、创建时间获取库位的详细信息",
  51 + httpMethod = "POST")
  52 + @RequiresPermissions("general:location:list")
  53 + @Log(title = "通用-库位管理", operating = "查看库位列表", action = BusinessType.GRANT)
  54 + @PostMapping("/list")
  55 + @ResponseBody
  56 + public TableDataInfo list(
  57 + @ApiParam(name="location",value="容器编号、库位编码、容器状态、容器类型") Container container,
  58 + @ApiParam(name = "createdBegin", value = "起止时间") String createdBegin,
  59 + @ApiParam(name = "createdEnd", value = "结束时间") String createdEnd) {
  60 + LambdaQueryWrapper<Container> lambdaQueryWrapper = Wrappers.lambdaQuery();
  61 + PageDomain pageDomain = TableSupport.buildPageRequest();
  62 + Integer pageNum = pageDomain.getPageNum();
  63 + Integer pageSize = pageDomain.getPageSize();
  64 + lambdaQueryWrapper.gt(StringUtils.isNotEmpty(createdBegin), Container::getCreated, createdBegin)
  65 + .lt(StringUtils.isNotEmpty(createdEnd), Container::getCreated, createdEnd)
  66 + .eq(StringUtils.isNotEmpty(container.getCode()), Container::getCode, container.getCode())
  67 + .eq(StringUtils.isNotEmpty(container.getStatus()), Container::getStatus, container.getStatus())
  68 + .eq(StringUtils.isNotEmpty(container.getContainerType()), Container::getContainerType, container.getContainerType())
  69 + .eq(StringUtils.isNotEmpty(container.getWarehouseCode()), Container::getWarehouseCode, container.getWarehouseCode())
  70 + .eq(StringUtils.isNotEmpty(container.getLocationCode()), Container::getLocationCode, container.getLocationCode())
  71 + .eq(Container::getWarehouseCode, ShiroUtils.getWarehouseCode())
  72 + .eq(Container::getDeleted,false)
  73 + .orderByDesc(Container::getCreated);
  74 +
  75 + if (StringUtils.isNotNull(pageNum) && StringUtils.isNotNull(pageSize)){
  76 + /*使用分页查询*/
  77 + Page<Container> page = new Page<>(pageNum, pageSize);
  78 + IPage<Container> iPage = containerService.page(page, lambdaQueryWrapper);
  79 + return getDataTable(iPage.getRecords());
  80 + } else {
  81 + List<Container> list = containerService.list(lambdaQueryWrapper);
  82 + return getDataTable(list);
  83 + }
  84 + }
  85 +
  86 + /**
  87 + * 新增容器
  88 + */
  89 + @GetMapping("/add")
  90 + public String add() {
  91 + return prefix + "/add";
  92 + }
  93 +
  94 + /**
  95 + * 新增保存容器
  96 + */
  97 + @ApiOperation(value="新增容器", notes="根据容器类型、数量批量新增容器", httpMethod = "POST")
  98 + @RequiresPermissions("general:container:add")
  99 + @Log(title = "通用-容器", operating = "新增容器", action = BusinessType.INSERT)
  100 + @PostMapping("/add")
  101 + @ResponseBody
  102 + public AjaxResult addSave(
  103 + @ApiParam(name = "containerType", value = "容器类型", required = true)String containerType,
  104 + @ApiParam(name = "quantity", value = "数量", required = true)Integer quantity) {
  105 + AjaxResult result = containerService.insertContainer(containerType, quantity);
  106 + result.setData(null);
  107 + return result;
  108 + }
  109 +
  110 + /**
  111 + * 修改容器
  112 + */
  113 + @GetMapping("/edit/{id}")
  114 + public String edit(@PathVariable("id") Integer id, ModelMap mmap) {
  115 + Container container = containerService.getById(id);
  116 + mmap.put("container", container);
  117 + return prefix + "/edit";
  118 + }
  119 +
  120 + /**
  121 + * 修改保存容器
  122 + */
  123 + @ApiOperation(value="修改容器", notes="修改容器", httpMethod = "POST")
  124 + @RequiresPermissions("general:container:edit")
  125 + @Log(title = "通用-容器", operating = "修改容器", action = BusinessType.UPDATE)
  126 + @PostMapping("/edit")
  127 + @ResponseBody
  128 + public AjaxResult editSave(
  129 + @ApiParam(name = "Container", value = "容器实体", required = true)Container container) {
  130 + return toAjax(containerService.updateById(container));
  131 + }
  132 +
  133 + /**
  134 + * 删除容器
  135 + */
  136 + @ApiOperation(value="删除容器", notes="根据id批量删除容器,参数示例1,2,3", httpMethod = "POST")
  137 + @RequiresPermissions("general:container:remove")
  138 + @Log(title = "通用-容器", operating = "删除容器", action = BusinessType.DELETE)
  139 + @PostMapping( "/remove")
  140 + @ResponseBody
  141 + public AjaxResult remove(String ids) {
  142 + if (StringUtils.isEmpty(ids)){
  143 + return AjaxResult.error("id不能为空");
  144 + }
  145 +
  146 + for (Integer id : Convert.toIntArray(ids)) {
  147 + Container container = containerService.getById(id);
  148 + if (container.getStatus().equals("empty") && StringUtils.isEmpty(container.getLocationCode())) {
  149 + container.setDeleted(true);
  150 + container.setLastUpdatedBy(ShiroUtils.getLoginName());
  151 + containerService.updateById(container);
  152 + } else {
  153 + return AjaxResult.error("容器(" + container.getCode() + ")不是空,或者已在货架上,不能删除成功!");
  154 + }
  155 + }
  156 + return AjaxResult.success("删除成功!");
  157 + }
  158 +}
... ...
src/main/java/com/huaheng/pc/general/container/domain/Container.java 0 → 100644
  1 +package com.huaheng.pc.general.container.domain;
  2 +
  3 +import com.baomidou.mybatisplus.annotation.IdType;
  4 +import com.baomidou.mybatisplus.annotation.TableField;
  5 +import com.baomidou.mybatisplus.annotation.TableId;
  6 +import com.baomidou.mybatisplus.annotation.TableName;
  7 +import io.swagger.annotations.ApiModel;
  8 +import io.swagger.annotations.ApiModelProperty;
  9 +import lombok.Data;
  10 +
  11 +import java.io.Serializable;
  12 +import java.util.Date;
  13 +
  14 +@Data
  15 +@ApiModel(value="com.huaheng.pc.general.container.domain.Container")
  16 +@TableName(value = "container")
  17 +public class Container implements Serializable {
  18 + /**
  19 + * 内部号
  20 + */
  21 + @TableId(value = "id", type = IdType.AUTO)
  22 + @ApiModelProperty(value="内部号")
  23 + private Integer id;
  24 +
  25 + /**
  26 + * 容器名字
  27 + */
  28 + @TableField(value = "name")
  29 + @ApiModelProperty(value="容器名字")
  30 + private String name;
  31 +
  32 + /**
  33 + * 容器编码
  34 + */
  35 + @TableField(value = "code")
  36 + @ApiModelProperty(value="容器编码")
  37 + private String code;
  38 +
  39 + /**
  40 + * 仓库代码
  41 + */
  42 + @TableField(value = "warehouseCode")
  43 + @ApiModelProperty(value="仓库代码")
  44 + private String warehouseCode;
  45 +
  46 + /**
  47 + * 货主编码
  48 + */
  49 + @TableField(value = "companyCode")
  50 + @ApiModelProperty(value="货主编码")
  51 + private String companyCode;
  52 +
  53 + @TableField(value = "locationCode")
  54 + @ApiModelProperty(value = "库位编码")
  55 + private String locationCode;
  56 +
  57 + /**
  58 + * 容器类型
  59 + */
  60 + @TableField(value = "containerType")
  61 + @ApiModelProperty(value="容器类型")
  62 + private String containerType;
  63 +
  64 + /**
  65 + * 创建时间
  66 + */
  67 + @TableField(value = "created")
  68 + @ApiModelProperty(value="创建时间")
  69 + private Date created;
  70 +
  71 + /**
  72 + * 创建人
  73 + */
  74 + @TableField(value = "createdBy")
  75 + @ApiModelProperty(value="创建人")
  76 + private String createdBy;
  77 +
  78 + /**
  79 + * 最后更新时间
  80 + */
  81 + @TableField(value = "lastUpdated")
  82 + @ApiModelProperty(value="最后更新时间")
  83 + private Date lastUpdated;
  84 +
  85 + /**
  86 + * 最后更新人
  87 + */
  88 + @TableField(value = "lastUpdatedBy")
  89 + @ApiModelProperty(value="最后更新人")
  90 + private String lastUpdatedBy;
  91 +
  92 + /**
  93 + * 状态
  94 + */
  95 + @TableField(value = "status")
  96 + @ApiModelProperty(value="状态")
  97 + private String status;
  98 +
  99 + /**
  100 + * 启用;0—禁用
  101 + */
  102 + @TableField(value = "enable")
  103 + @ApiModelProperty(value="启用;0—禁用")
  104 + private Integer enable;
  105 +
  106 + /**
  107 + * 打印次数
  108 + */
  109 + @TableField(value = "printNum")
  110 + @ApiModelProperty(value="打印次数")
  111 + private Integer printNum;
  112 +
  113 + /**
  114 + * 数据版本
  115 + */
  116 + @TableField(value = "version")
  117 + @ApiModelProperty(value="数据版本")
  118 + private Integer version;
  119 +
  120 + /**
  121 + * 自定义字段1
  122 + */
  123 + @TableField(value = "userDef1")
  124 + @ApiModelProperty(value="自定义字段1")
  125 + private String userDef1;
  126 +
  127 + /**
  128 + * 自定义字段2
  129 + */
  130 + @TableField(value = "userDef2")
  131 + @ApiModelProperty(value="自定义字段2")
  132 + private String userDef2;
  133 +
  134 + /**
  135 + * 自定义字段3
  136 + */
  137 + @TableField(value = "userDef3")
  138 + @ApiModelProperty(value="自定义字段3")
  139 + private String userDef3;
  140 +
  141 + /**
  142 + * 自定义字段4
  143 + */
  144 + @TableField(value = "userDef4")
  145 + @ApiModelProperty(value="自定义字段4")
  146 + private String userDef4;
  147 +
  148 + /**
  149 + * 自定义字段5
  150 + */
  151 + @TableField(value = "userDef5")
  152 + @ApiModelProperty(value="自定义字段5")
  153 + private String userDef5;
  154 +
  155 + /**
  156 + * 自定义字段6
  157 + */
  158 + @TableField(value = "userDef6")
  159 + @ApiModelProperty(value="自定义字段6")
  160 + private String userDef6;
  161 +
  162 + /**
  163 + * 自定义字段7
  164 + */
  165 + @TableField(value = "userDef7")
  166 + @ApiModelProperty(value="自定义字段7")
  167 + private String userDef7;
  168 +
  169 + /**
  170 + * 自定义字段8
  171 + */
  172 + @TableField(value = "userDef8")
  173 + @ApiModelProperty(value="自定义字段8")
  174 + private String userDef8;
  175 +
  176 + /**
  177 + * 处理标记
  178 + */
  179 + @TableField(value = "processStamp")
  180 + @ApiModelProperty(value="处理标记")
  181 + private String processStamp;
  182 +
  183 + @TableField(value = "deleted")
  184 + @ApiModelProperty(value = "是否删除")
  185 + private Boolean deleted;
  186 +
  187 + private static final long serialVersionUID = 1L;
  188 +
  189 + public static final String COL_NAME = "name";
  190 +
  191 + public static final String COL_CODE = "code";
  192 +
  193 + public static final String COL_WAREHOUSECODE = "warehouseCode";
  194 +
  195 + public static final String COL_COMPANYCODE = "companyCode";
  196 +
  197 + public static final String COL_CONTAINERTYPE = "containerType";
  198 +
  199 + public static final String COL_CREATED = "created";
  200 +
  201 + public static final String COL_CREATEDBY = "createdBy";
  202 +
  203 + public static final String COL_LASTUPDATED = "lastUpdated";
  204 +
  205 + public static final String COL_LASTUPDATEDBY = "lastUpdatedBy";
  206 +
  207 + public static final String COL_STATUS = "status";
  208 +
  209 + public static final String COL_ENABLE = "enable";
  210 +
  211 + public static final String COL_PRINTNUM = "printNum";
  212 +
  213 + public static final String COL_VERSION = "version";
  214 +
  215 + public static final String COL_USERDEF1 = "userDef1";
  216 +
  217 + public static final String COL_USERDEF2 = "userDef2";
  218 +
  219 + public static final String COL_USERDEF3 = "userDef3";
  220 +
  221 + public static final String COL_USERDEF4 = "userDef4";
  222 +
  223 + public static final String COL_USERDEF5 = "userDef5";
  224 +
  225 + public static final String COL_USERDEF6 = "userDef6";
  226 +
  227 + public static final String COL_USERDEF7 = "userDef7";
  228 +
  229 + public static final String COL_USERDEF8 = "userDef8";
  230 +
  231 + public static final String COL_PROCESSSTAMP = "processStamp";
  232 +
  233 + @Override
  234 + public String toString() {
  235 + StringBuilder sb = new StringBuilder();
  236 + sb.append(getClass().getSimpleName());
  237 + sb.append(" [");
  238 + sb.append("Hash = ").append(hashCode());
  239 + sb.append(", id=").append(id);
  240 + sb.append(", name=").append(name);
  241 + sb.append(", code=").append(code);
  242 + sb.append(", warehouseCode=").append(warehouseCode);
  243 + sb.append(", companyCode=").append(companyCode);
  244 + sb.append(", containerType=").append(containerType);
  245 + sb.append(", created=").append(created);
  246 + sb.append(", createdBy=").append(createdBy);
  247 + sb.append(", lastUpdated=").append(lastUpdated);
  248 + sb.append(", lastUpdatedBy=").append(lastUpdatedBy);
  249 + sb.append(", status=").append(status);
  250 + sb.append(", enable=").append(enable);
  251 + sb.append(", printNum=").append(printNum);
  252 + sb.append(", version=").append(version);
  253 + sb.append(", userDef1=").append(userDef1);
  254 + sb.append(", userDef2=").append(userDef2);
  255 + sb.append(", userDef3=").append(userDef3);
  256 + sb.append(", userDef4=").append(userDef4);
  257 + sb.append(", userDef5=").append(userDef5);
  258 + sb.append(", userDef6=").append(userDef6);
  259 + sb.append(", userDef7=").append(userDef7);
  260 + sb.append(", userDef8=").append(userDef8);
  261 + sb.append(", processStamp=").append(processStamp);
  262 + sb.append("]");
  263 + return sb.toString();
  264 + }
  265 +}
0 266 \ No newline at end of file
... ...
src/main/java/com/huaheng/pc/general/container/domain/ContainerStatus.java 0 → 100644
  1 +package com.huaheng.pc.general.container.domain;
  2 +
  3 +public enum ContainerStatus {
  4 + empty,
  5 + some,
  6 + full;
  7 +}
... ...
src/main/java/com/huaheng/pc/general/container/mapper/ContainerMapper.java 0 → 100644
  1 +package com.huaheng.pc.general.container.mapper;
  2 +
  3 +import com.baomidou.mybatisplus.core.mapper.BaseMapper;
  4 +import com.huaheng.pc.general.container.domain.Container;
  5 +
  6 +public interface ContainerMapper extends BaseMapper<Container> {
  7 +
  8 +}
0 9 \ No newline at end of file
... ...
src/main/java/com/huaheng/pc/general/container/service/ContainerService.java 0 → 100644
  1 +package com.huaheng.pc.general.container.service;
  2 +
  3 +import com.huaheng.framework.web.domain.AjaxResult;
  4 +import com.huaheng.pc.general.container.domain.Container;
  5 +import com.baomidou.mybatisplus.extension.service.IService;
  6 +
  7 +import java.util.List;
  8 +
  9 +public interface ContainerService extends IService<Container>{
  10 +
  11 + public AjaxResult<List<Container>> insertContainer(String type, Integer quantity);
  12 +}
... ...
src/main/java/com/huaheng/pc/general/container/service/ContainerServiceImpl.java 0 → 100644
  1 +package com.huaheng.pc.general.container.service;
  2 +
  3 +import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
  4 +import com.baomidou.mybatisplus.core.toolkit.Wrappers;
  5 +import com.huaheng.common.exception.service.ServiceException;
  6 +import com.huaheng.common.utils.security.ShiroUtils;
  7 +import com.huaheng.framework.web.domain.AjaxResult;
  8 +import com.huaheng.pc.config.containerType.domain.ContainerType;
  9 +import com.huaheng.pc.config.containerType.service.ContainerTypeService;
  10 +import com.huaheng.pc.general.container.domain.ContainerStatus;
  11 +import org.apache.commons.collections.functors.ConstantFactory;
  12 +import org.springframework.stereotype.Service;
  13 +import javax.annotation.Resource;
  14 +import java.util.ArrayList;
  15 +import java.util.Date;
  16 +import java.util.List;
  17 +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
  18 +import com.huaheng.pc.general.container.domain.Container;
  19 +import com.huaheng.pc.general.container.mapper.ContainerMapper;
  20 +import com.huaheng.pc.general.container.service.ContainerService;
  21 +@Service
  22 +public class ContainerServiceImpl extends ServiceImpl<ContainerMapper, Container> implements ContainerService{
  23 +
  24 + @Resource
  25 + private ContainerTypeService containerTypeService;
  26 + @Resource
  27 + private ContainerMapper containerMapper;
  28 +
  29 + @Override
  30 + public AjaxResult<List<Container>> insertContainer(String type, Integer quantity) {
  31 + List<Container> containerList = new ArrayList<>();
  32 + Integer number = getNumber(type);
  33 + for(int i=0; i<quantity; i++) {
  34 + number++;
  35 + Container container = new Container();
  36 + container.setId(null);
  37 + container.setContainerType(type);
  38 + container.setCode(String.format("%s%05d", type, number));
  39 + container.setStatus(ContainerStatus.empty.name());
  40 + container.setCreated(new Date());
  41 + container.setCreatedBy(ShiroUtils.getLoginName());
  42 + container.setLastUpdated(null);
  43 + container.setLastUpdatedBy(null);
  44 + container.setEnable(0);
  45 + container.setDeleted(false);
  46 + container.setWarehouseCode(ShiroUtils.getWarehouseCode());
  47 + this.save(container);
  48 + containerList.add(container);
  49 + }
  50 + return AjaxResult.success(containerList);
  51 + }
  52 +
  53 + private Integer getNumber(String type) {
  54 + if (!containerTypeService.checkConfig(type))
  55 + throw new ServiceException("容器类型编码不存在");
  56 + LambdaQueryWrapper<Container> lambda = Wrappers.lambdaQuery();
  57 + lambda.select(Container::getCode).eq(Container::getContainerType, type)
  58 + .orderByDesc(Container::getId).last("Limit 1");
  59 + String maxCode = containerMapper.selectOne(lambda).getCode();
  60 +
  61 + //如果指定类型的最后的code存在,那么 code = 容器类型 + (排序号 + 1)
  62 + if (maxCode != null) {
  63 + Integer number = Integer.valueOf(maxCode.substring(maxCode.length() - 5, maxCode.length()));
  64 + return number;
  65 + } else {
  66 + return 0;
  67 + }
  68 + }
  69 +}
... ...
src/main/java/com/huaheng/pc/general/customer/controller/CustomerController.java 0 → 100644
  1 +package com.huaheng.pc.general.customer.controller;
  2 +
  3 +import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
  4 +import com.baomidou.mybatisplus.core.metadata.IPage;
  5 +import com.baomidou.mybatisplus.core.toolkit.Wrappers;
  6 +import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
  7 +import com.huaheng.common.support.Convert;
  8 +import com.huaheng.common.utils.StringUtils;
  9 +import com.huaheng.common.utils.security.ShiroUtils;
  10 +import com.huaheng.framework.aspectj.lang.annotation.Log;
  11 +import com.huaheng.framework.aspectj.lang.constant.BusinessType;
  12 +import com.huaheng.framework.web.controller.BaseController;
  13 +import com.huaheng.framework.web.domain.AjaxResult;
  14 +import com.huaheng.framework.web.page.PageDomain;
  15 +import com.huaheng.framework.web.page.TableDataInfo;
  16 +import com.huaheng.framework.web.page.TableSupport;
  17 +import com.huaheng.pc.general.customer.domain.Customer;
  18 +import com.huaheng.pc.general.customer.service.CustomerService;
  19 +import com.huaheng.pc.shipment.shipmentHeader.domain.ShipmentHeader;
  20 +import com.huaheng.pc.shipment.shipmentHeader.service.ShipmentHeaderService;
  21 +import io.swagger.annotations.Api;
  22 +import io.swagger.annotations.ApiOperation;
  23 +import io.swagger.annotations.ApiParam;
  24 +import org.apache.shiro.authz.annotation.RequiresPermissions;
  25 +import org.springframework.stereotype.Controller;
  26 +import org.springframework.ui.ModelMap;
  27 +import org.springframework.web.bind.annotation.*;
  28 +
  29 +import javax.annotation.Resource;
  30 +import java.util.List;
  31 +import java.util.Map;
  32 +
  33 +@Api(tags={"客户操作类"})
  34 +@Controller
  35 +@RequestMapping("/general/customer")
  36 +public class CustomerController extends BaseController {
  37 +
  38 + private String prefix = "general/customer";
  39 +
  40 + @Resource
  41 + private CustomerService customerService;
  42 + @Resource
  43 + private ShipmentHeaderService shipmentHeaderService;
  44 +
  45 + @RequiresPermissions("general:customer:view")
  46 + @GetMapping()
  47 + public String customer(){
  48 + return prefix + "/customer";
  49 + }
  50 +
  51 + /**
  52 + * 查询客户列表
  53 + */
  54 + @ApiOperation(value="查看客户列表", notes="根据编码、名称、创建时间获取客户的详细信息", httpMethod = "POST")
  55 + @RequiresPermissions("general:customer:list")
  56 + @Log(title = "通用-客户管理",operating = "查看客户信息", action = BusinessType.GRANT)
  57 + @PostMapping("/list")
  58 + @ResponseBody
  59 + public TableDataInfo list(@ApiParam(name="customer",value="编码、名称")Customer customer,
  60 + @ApiParam(name = "createdBegin", value = "起止时间") String createdBegin,
  61 + @ApiParam(name = "createdEnd", value = "结束时间") String createdEnd){
  62 + LambdaQueryWrapper<Customer> lambdaQueryWrapper = Wrappers.lambdaQuery();
  63 + PageDomain pageDomain = TableSupport.buildPageRequest();
  64 + Integer pageNum = pageDomain.getPageNum();
  65 + Integer pageSize = pageDomain.getPageSize() >> 1;
  66 + lambdaQueryWrapper.gt(StringUtils.isNotEmpty(createdBegin), Customer::getCreated, createdBegin)
  67 + .lt(StringUtils.isNotEmpty(createdEnd), Customer::getCreated, createdEnd)
  68 + .eq(StringUtils.isNotEmpty(customer.getCode()), Customer::getCode, customer.getCode())
  69 + .eq(StringUtils.isNotEmpty(customer.getName()), Customer::getName, customer.getName())
  70 + .eq(Customer::getDeleted, false)
  71 + .eq(Customer::getWarehouseCode, ShiroUtils.getWarehouseCode())
  72 + .orderByDesc(Customer::getCreated);
  73 +
  74 + if (StringUtils.isNotNull(pageNum) && StringUtils.isNotNull(pageSize)){
  75 + /*使用分页查询*/
  76 + Page<Customer> page = new Page<>(pageNum, pageSize);
  77 + IPage<Customer> iPage = customerService.page(page, lambdaQueryWrapper);
  78 + return getDataTable(iPage.getRecords());
  79 + } else {
  80 + List<Customer> list = customerService.list(lambdaQueryWrapper);
  81 + return getDataTable(list);
  82 + }
  83 + }
  84 +
  85 + /**
  86 + * 新增客户
  87 + */
  88 + @GetMapping("/add")
  89 + public String add() {
  90 + return prefix + "/add";
  91 + }
  92 +
  93 + /**
  94 + * 新增保存客户
  95 + */
  96 + @ApiOperation(value="新增客户", notes="新增客户", httpMethod = "POST")
  97 + @RequiresPermissions("general:customer:add")
  98 + @Log(title = "通用-客户管理",operating = "新增客户", action = BusinessType.INSERT)
  99 + @PostMapping("/add")
  100 + @ResponseBody
  101 + public AjaxResult addSave(Customer customer) {
  102 + customer.setWarehouseCode(ShiroUtils.getWarehouseCode());
  103 + customer.setCreatedBy(ShiroUtils.getLoginName());
  104 + customer.setLastUpdatedBy(ShiroUtils.getLoginName());
  105 + customer.setDeleted(false);
  106 + return toAjax(customerService.save(customer));
  107 + }
  108 +
  109 + /**
  110 + * 修改客户
  111 + */
  112 + @GetMapping("/edit/{id}")
  113 + public String edit(@PathVariable("id") Integer id, ModelMap mmap) {
  114 + Customer customer = customerService.getById(id);
  115 + mmap.put("customer", customer);
  116 + return prefix + "/edit";
  117 + }
  118 +
  119 + /**
  120 + * 修改保存客户
  121 + */
  122 + @ApiOperation(value="修改客户信息", notes="修改客户信息", httpMethod = "POST")
  123 + @RequiresPermissions("general:customer:edit")
  124 + @Log(title = "通用-客户管理",operating = "修改客户信息", action = BusinessType.UPDATE)
  125 + @PostMapping("/edit")
  126 + @ResponseBody
  127 + public AjaxResult editSave(Customer customer) {
  128 + customer.setLastUpdatedBy(ShiroUtils.getLoginName());
  129 + return toAjax(customerService.updateById(customer));
  130 + }
  131 +
  132 + /**
  133 + * 删除客户
  134 + */
  135 + @ApiOperation(value="删除客户信息", notes="单条删除或批量删除客户信息,示例1或1,2,3", httpMethod = "POST")
  136 + @RequiresPermissions("general:customer:remove")
  137 + @Log(title = "通用-客户管理",operating = "修改客户", action = BusinessType.DELETE)
  138 + @PostMapping( "/remove")
  139 + @ResponseBody
  140 + public AjaxResult remove(String ids) {
  141 + if (StringUtils.isEmpty(ids)) {
  142 + return AjaxResult.error("id不能为空");
  143 + }
  144 +
  145 + for (Integer id : Convert.toIntArray(ids)) {
  146 + Customer customer = customerService.getById(id);
  147 + ShipmentHeader shipmentHeader = new ShipmentHeader();
  148 + shipmentHeader.setWarehouseCode(ShiroUtils.getWarehouseCode());
  149 + shipmentHeader.setCustomerCode(customer.getCode());
  150 + shipmentHeader.setDeleted(false);
  151 + LambdaQueryWrapper<ShipmentHeader> lambda = Wrappers.lambdaQuery(shipmentHeader);
  152 +
  153 + Map<String, Object> map = shipmentHeaderService.getMap(lambda);
  154 + if (map != null) {
  155 + return AjaxResult.error("客户编码(" + customer.getCode() +")存在出库单,不能删除!");
  156 + }
  157 + customer.setDeleted(true);
  158 + customer.setLastUpdatedBy(ShiroUtils.getLoginName());
  159 + customerService.updateById(customer);
  160 + }
  161 + return AjaxResult.success("删除成功!");
  162 + }
  163 +}
... ...
src/main/java/com/huaheng/pc/general/customer/domain/Customer.java 0 → 100644
  1 +package com.huaheng.pc.general.customer.domain;
  2 +
  3 +import com.baomidou.mybatisplus.annotation.IdType;
  4 +import com.baomidou.mybatisplus.annotation.TableField;
  5 +import com.baomidou.mybatisplus.annotation.TableId;
  6 +import com.baomidou.mybatisplus.annotation.TableName;
  7 +import io.swagger.annotations.ApiModel;
  8 +import io.swagger.annotations.ApiModelProperty;
  9 +import java.io.Serializable;
  10 +import java.util.Date;
  11 +import lombok.Data;
  12 +
  13 +@ApiModel(value="com.huaheng.pc.general.customer.domain.Customer")
  14 +@Data
  15 +@TableName(value = "customer")
  16 +public class Customer implements Serializable {
  17 + /**
  18 + * 客户内部号
  19 + */
  20 + @TableId(value = "id", type = IdType.AUTO)
  21 + @ApiModelProperty(value="客户内部号")
  22 + private Integer id;
  23 +
  24 + /**
  25 + * 客户ID
  26 + */
  27 + @TableField(value = "code")
  28 + @ApiModelProperty(value="客户ID")
  29 + private String code;
  30 +
  31 + /**
  32 + * 配送点代码
  33 + */
  34 + @TableField(value = "shipToCode")
  35 + @ApiModelProperty(value="配送点代码")
  36 + private String shipToCode;
  37 +
  38 + @TableField(value = "warehouseCode")
  39 + @ApiModelProperty(value="null")
  40 + private String warehouseCode;
  41 +
  42 + /**
  43 + * 货主编码
  44 + */
  45 + @TableField(value = "companyCode")
  46 + @ApiModelProperty(value="货主编码")
  47 + private String companyCode;
  48 +
  49 + /**
  50 + * 名称
  51 + */
  52 + @TableField(value = "name")
  53 + @ApiModelProperty(value="名称")
  54 + private String name;
  55 +
  56 + /**
  57 + * 地址1
  58 + */
  59 + @TableField(value = "address1")
  60 + @ApiModelProperty(value="地址1")
  61 + private String address1;
  62 +
  63 + /**
  64 + * 地址2
  65 + */
  66 + @TableField(value = "address2")
  67 + @ApiModelProperty(value="地址2")
  68 + private String address2;
  69 +
  70 + /**
  71 + * 城市
  72 + */
  73 + @TableField(value = "city")
  74 + @ApiModelProperty(value="城市")
  75 + private String city;
  76 +
  77 + /**
  78 + * 省份
  79 + */
  80 + @TableField(value = "province")
  81 + @ApiModelProperty(value="省份")
  82 + private String province;
  83 +
  84 + /**
  85 + * 国家
  86 + */
  87 + @TableField(value = "country")
  88 + @ApiModelProperty(value="国家")
  89 + private String country;
  90 +
  91 + /**
  92 + * 邮编
  93 + */
  94 + @TableField(value = "postalCode")
  95 + @ApiModelProperty(value="邮编")
  96 + private String postalCode;
  97 +
  98 + /**
  99 + * 父
  100 + */
  101 + @TableField(value = "parent")
  102 + @ApiModelProperty(value="父")
  103 + private Integer parent;
  104 +
  105 + /**
  106 + * 联系人
  107 + */
  108 + @TableField(value = "attentionTo")
  109 + @ApiModelProperty(value="联系人")
  110 + private String attentionTo;
  111 +
  112 + /**
  113 + * 电话
  114 + */
  115 + @TableField(value = "phoneNum")
  116 + @ApiModelProperty(value="电话")
  117 + private String phoneNum;
  118 +
  119 + @TableField(value = "mobile")
  120 + @ApiModelProperty(value="null")
  121 + private String mobile;
  122 +
  123 + /**
  124 + * 传真
  125 + */
  126 + @TableField(value = "faxNum")
  127 + @ApiModelProperty(value="传真")
  128 + private String faxNum;
  129 +
  130 + /**
  131 + * E-mail
  132 + */
  133 + @TableField(value = "email")
  134 + @ApiModelProperty(value="E-mail")
  135 + private String email;
  136 +
  137 + /**
  138 + * 有效
  139 + */
  140 + @TableField(value = "enable")
  141 + @ApiModelProperty(value="有效")
  142 + private Integer enable;
  143 +
  144 + /**
  145 + * 创建时间
  146 + */
  147 + @TableField(value = "created")
  148 + @ApiModelProperty(value="创建时间")
  149 + private Date created;
  150 +
  151 + /**
  152 + * 创建用户
  153 + */
  154 + @TableField(value = "createdBy")
  155 + @ApiModelProperty(value="创建用户")
  156 + private String createdBy;
  157 +
  158 + /**
  159 + * 创建时间
  160 + */
  161 + @TableField(value = "lastUpdated")
  162 + @ApiModelProperty(value="创建时间")
  163 + private Date lastUpdated;
  164 +
  165 + /**
  166 + * 更新用户
  167 + */
  168 + @TableField(value = "lastUpdatedBy")
  169 + @ApiModelProperty(value="更新用户")
  170 + private String lastUpdatedBy;
  171 +
  172 + /**
  173 + * 数据版本
  174 + */
  175 + @TableField(value = "version")
  176 + @ApiModelProperty(value="数据版本")
  177 + private Integer version;
  178 +
  179 + /**
  180 + * 发票开票人
  181 + */
  182 + @TableField(value = "userDef1")
  183 + @ApiModelProperty(value="发票开票人")
  184 + private String userDef1;
  185 +
  186 + /**
  187 + * 发票收款人
  188 + */
  189 + @TableField(value = "userDef2")
  190 + @ApiModelProperty(value="发票收款人")
  191 + private String userDef2;
  192 +
  193 + /**
  194 + * 开票单位
  195 + */
  196 + @TableField(value = "userDef3")
  197 + @ApiModelProperty(value="开票单位")
  198 + private String userDef3;
  199 +
  200 + /**
  201 + * 发票代码
  202 + */
  203 + @TableField(value = "userDef4")
  204 + @ApiModelProperty(value="发票代码")
  205 + private String userDef4;
  206 +
  207 + /**
  208 + * 自定义字段5
  209 + */
  210 + @TableField(value = "userDef5")
  211 + @ApiModelProperty(value="自定义字段5")
  212 + private String userDef5;
  213 +
  214 + /**
  215 + * 自定义字段6
  216 + */
  217 + @TableField(value = "userDef6")
  218 + @ApiModelProperty(value="自定义字段6")
  219 + private String userDef6;
  220 +
  221 + /**
  222 + * 自定义字段7
  223 + */
  224 + @TableField(value = "userDef7")
  225 + @ApiModelProperty(value="自定义字段7")
  226 + private String userDef7;
  227 +
  228 + /**
  229 + * 自定义字段8
  230 + */
  231 + @TableField(value = "userDef8")
  232 + @ApiModelProperty(value="自定义字段8")
  233 + private String userDef8;
  234 +
  235 + /**
  236 + * 处理标记
  237 + */
  238 + @TableField(value = "processStamp")
  239 + @ApiModelProperty(value="处理标记")
  240 + private String processStamp;
  241 +
  242 + @TableField(value = "deleted")
  243 + @ApiModelProperty(value="是否删除")
  244 + private Boolean deleted;
  245 +
  246 + private static final long serialVersionUID = 1L;
  247 +
  248 + public static final String COL_CODE = "code";
  249 +
  250 + public static final String COL_SHIPTOCODE = "shipToCode";
  251 +
  252 + public static final String COL_WAREHOUSECODE = "warehouseCode";
  253 +
  254 + public static final String COL_COMPANYCODE = "companyCode";
  255 +
  256 + public static final String COL_NAME = "name";
  257 +
  258 + public static final String COL_ADDRESS1 = "address1";
  259 +
  260 + public static final String COL_ADDRESS2 = "address2";
  261 +
  262 + public static final String COL_CITY = "city";
  263 +
  264 + public static final String COL_PROVINCE = "province";
  265 +
  266 + public static final String COL_COUNTRY = "country";
  267 +
  268 + public static final String COL_POSTALCODE = "postalCode";
  269 +
  270 + public static final String COL_PARENT = "parent";
  271 +
  272 + public static final String COL_ATTENTIONTO = "attentionTo";
  273 +
  274 + public static final String COL_PHONENUM = "phoneNum";
  275 +
  276 + public static final String COL_MOBILE = "mobile";
  277 +
  278 + public static final String COL_FAXNUM = "faxNum";
  279 +
  280 + public static final String COL_EMAIL = "email";
  281 +
  282 + public static final String COL_ENABLE = "enable";
  283 +
  284 + public static final String COL_CREATED = "created";
  285 +
  286 + public static final String COL_CREATEDBY = "createdBy";
  287 +
  288 + public static final String COL_LASTUPDATED = "lastUpdated";
  289 +
  290 + public static final String COL_LASTUPDATEDBY = "lastUpdatedBy";
  291 +
  292 + public static final String COL_VERSION = "version";
  293 +
  294 + public static final String COL_USERDEF1 = "userDef1";
  295 +
  296 + public static final String COL_USERDEF2 = "userDef2";
  297 +
  298 + public static final String COL_USERDEF3 = "userDef3";
  299 +
  300 + public static final String COL_USERDEF4 = "userDef4";
  301 +
  302 + public static final String COL_USERDEF5 = "userDef5";
  303 +
  304 + public static final String COL_USERDEF6 = "userDef6";
  305 +
  306 + public static final String COL_USERDEF7 = "userDef7";
  307 +
  308 + public static final String COL_USERDEF8 = "userDef8";
  309 +
  310 + public static final String COL_PROCESSSTAMP = "processStamp";
  311 +}
0 312 \ No newline at end of file
... ...
src/main/java/com/huaheng/pc/general/customer/mapper/CustomerMapper.java 0 → 100644
  1 +package com.huaheng.pc.general.customer.mapper;
  2 +
  3 +import com.baomidou.mybatisplus.core.mapper.BaseMapper;
  4 +import com.huaheng.pc.general.customer.domain.Customer;
  5 +
  6 +public interface CustomerMapper extends BaseMapper<Customer> {
  7 +}
0 8 \ No newline at end of file
... ...
src/main/java/com/huaheng/pc/general/customer/service/CustomerService.java 0 → 100644
  1 +package com.huaheng.pc.general.customer.service;
  2 +
  3 +import com.huaheng.pc.general.customer.domain.Customer;
  4 +import com.baomidou.mybatisplus.extension.service.IService;
  5 +public interface CustomerService extends IService<Customer>{
  6 +
  7 +
  8 +}
... ...
src/main/java/com/huaheng/pc/general/customer/service/CustomerServiceImpl.java 0 → 100644
  1 +package com.huaheng.pc.general.customer.service;
  2 +
  3 +import org.springframework.stereotype.Service;
  4 +import javax.annotation.Resource;
  5 +import java.util.List;
  6 +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
  7 +import com.huaheng.pc.general.customer.mapper.CustomerMapper;
  8 +import com.huaheng.pc.general.customer.domain.Customer;
  9 +import com.huaheng.pc.general.customer.service.CustomerService;
  10 +@Service
  11 +public class CustomerServiceImpl extends ServiceImpl<CustomerMapper, Customer> implements CustomerService{
  12 +
  13 +}
... ...
src/main/java/com/huaheng/pc/general/location/controller/LocationController.java 0 → 100644
  1 +package com.huaheng.pc.general.location.controller;
  2 +
  3 +import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
  4 +import com.baomidou.mybatisplus.core.metadata.IPage;
  5 +import com.baomidou.mybatisplus.core.toolkit.Wrappers;
  6 +import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
  7 +import com.huaheng.common.support.Convert;
  8 +import com.huaheng.common.utils.StringUtils;
  9 +import com.huaheng.common.utils.security.ShiroUtils;
  10 +import com.huaheng.framework.aspectj.lang.annotation.Log;
  11 +import com.huaheng.framework.aspectj.lang.constant.BusinessType;
  12 +import com.huaheng.framework.web.controller.BaseController;
  13 +import com.huaheng.framework.web.domain.AjaxResult;
  14 +import com.huaheng.framework.web.page.PageDomain;
  15 +import com.huaheng.framework.web.page.TableDataInfo;
  16 +import com.huaheng.framework.web.page.TableSupport;
  17 +import com.huaheng.pc.general.location.domain.Location;
  18 +import com.huaheng.pc.general.location.service.LocationService;
  19 +import io.swagger.annotations.Api;
  20 +import io.swagger.annotations.ApiOperation;
  21 +import io.swagger.annotations.ApiParam;
  22 +import org.apache.shiro.authz.annotation.RequiresPermissions;
  23 +import org.springframework.stereotype.Controller;
  24 +import org.springframework.ui.ModelMap;
  25 +import org.springframework.web.bind.annotation.*;
  26 +
  27 +import javax.annotation.Resource;
  28 +import java.util.List;
  29 +
  30 +@Api(tags={"库位操作类"})
  31 +@Controller
  32 +@RequestMapping("/general/location")
  33 +public class LocationController extends BaseController {
  34 +
  35 + private String prefix = "general/location";
  36 +
  37 + @Resource
  38 + private LocationService locationService;
  39 +
  40 + @RequiresPermissions("general:location:view")
  41 + @GetMapping()
  42 + public String location() {
  43 + return prefix + "/location";
  44 + }
  45 +
  46 + /**
  47 + * 查询库位列表
  48 + */
  49 + @ApiOperation(value="查看库位列表",
  50 + notes="根据行、列、层、格、库位类型、库区、库位状态、容器编码、库位名称、库位编码、创建时间获取库位的详细信息",
  51 + httpMethod = "POST")
  52 + @RequiresPermissions("general:location:list")
  53 + @Log(title = "通用-库位管理", operating = "查看库位列表", action = BusinessType.GRANT)
  54 + @PostMapping("/list")
  55 + @ResponseBody
  56 + public TableDataInfo list(
  57 + @ApiParam(name="location",value="行、列、层、格、库位类型、库区、库位状态、容器编码、库位名称、库位编码") Location location,
  58 + @ApiParam(name = "createdBegin", value = "起止时间") String createdBegin,
  59 + @ApiParam(name = "createdEnd", value = "结束时间") String createdEnd) {
  60 + LambdaQueryWrapper<Location> lambdaQueryWrapper = Wrappers.lambdaQuery();
  61 + PageDomain pageDomain = TableSupport.buildPageRequest();
  62 + Integer pageNum = pageDomain.getPageNum();
  63 + Integer pageSize = pageDomain.getPageSize();
  64 + lambdaQueryWrapper.gt(StringUtils.isNotEmpty(createdBegin), Location::getCreated, createdBegin)
  65 + .lt(StringUtils.isNotEmpty(createdEnd), Location::getCreated, createdEnd)
  66 + .eq(StringUtils.isNotEmpty(location.getCode()), Location::getCode, location.getCode())
  67 + .eq(StringUtils.isNotEmpty(location.getName()), Location::getName,location.getName())
  68 + .eq(StringUtils.isNotEmpty(location.getContainerCode()), Location::getContainerCode, location.getContainerCode())
  69 + .eq(StringUtils.isNotNull(location.getEnable()), Location::getEnable, location.getEnable())
  70 + .eq(StringUtils.isNotEmpty(location.getZoneCode()), Location::getZoneCode, location.getZoneCode())
  71 + .eq(StringUtils.isNotNull(location.getIRow()), Location::getIRow, location.getIRow())
  72 + .eq(StringUtils.isNotNull(location.getIColumn()), Location::getIColumn, location.getIColumn())
  73 + .eq(StringUtils.isNotNull(location.getIGrid()), Location::getIGrid, location.getIGrid())
  74 + .eq(StringUtils.isNotNull(location.getILayer()), Location::getILayer, location.getILayer())
  75 + .eq(StringUtils.isNotEmpty(location.getLocationType()), Location::getLocationType, location.getLocationType())
  76 + .eq(Location::getDeleted,false)
  77 + .orderByDesc(Location::getCreated);
  78 +
  79 + if (StringUtils.isNotNull(pageNum) && StringUtils.isNotNull(pageSize)){
  80 + /*使用分页查询*/
  81 + Page<Location> page = new Page<>(pageNum, pageSize);
  82 + IPage<Location> iPage = locationService.page(page, lambdaQueryWrapper);
  83 + return getDataTable(iPage.getRecords());
  84 + } else {
  85 + List<Location> list = locationService.list(lambdaQueryWrapper);
  86 + return getDataTable(list);
  87 + }
  88 + }
  89 +
  90 + /**
  91 + * 新增库位
  92 + */
  93 + @GetMapping("/add")
  94 + public String add() {
  95 + return prefix + "/add";
  96 + }
  97 +
  98 + /**
  99 + * 新增保存库位
  100 + */
  101 + @ApiOperation(value="新增库位", notes="新增单个库位", httpMethod = "POST")
  102 + @RequiresPermissions("general:location:add")
  103 + @Log(title = "通用-库位管理", operating = "新增库位", action = BusinessType.INSERT)
  104 + @PostMapping("/add")
  105 + @ResponseBody
  106 + public AjaxResult addSave(Location location) {
  107 + Boolean result = locationService.save(location);
  108 + return toAjax(result);
  109 + }
  110 +
  111 +
  112 + /**
  113 + * 批量新增库位
  114 + */
  115 +
  116 + @GetMapping("/addBatch")
  117 + public String addBatch()
  118 + {
  119 + return prefix + "/addBatch";
  120 + }
  121 +
  122 + /**
  123 + * 批量新增保存库位
  124 + */
  125 + @RequiresPermissions("general:location:add")
  126 + @ApiOperation(value="新增库位", notes="批量新增库位", httpMethod = "POST")
  127 + @Log(title = "通用-库位管理", operating = "新增库位", action = BusinessType.INSERT)
  128 + @PostMapping("/addBatchSave")
  129 + @ResponseBody
  130 + public AjaxResult addBatchSave(Location lastLocation) {
  131 + return toAjax(locationService.insertLocation(lastLocation));
  132 + }
  133 +
  134 + /**
  135 + * 修改库位
  136 + */
  137 + @GetMapping("/edit/{id}")
  138 + public String edit(@PathVariable("id") Integer id, ModelMap mmap) {
  139 + mmap.put("location", locationService.getById(id));
  140 + return prefix + "/edit";
  141 + }
  142 +
  143 + /**
  144 + * 修改保存库位
  145 + */
  146 + @RequiresPermissions("general:location:edit")
  147 + @ApiOperation(value="修改库位", notes="批量修改库位", httpMethod = "POST")
  148 + @Log(title = "通用-库位管理", operating = "修改库位", action = BusinessType.UPDATE)
  149 + @PostMapping("/edit")
  150 + @ResponseBody
  151 + public AjaxResult editSave(Location location) {
  152 + location.setLastUpdatedBy(ShiroUtils.getLoginName());
  153 + return toAjax(locationService.updateById(location));
  154 + }
  155 +
  156 + /**
  157 + * 删除库位
  158 + */
  159 + @RequiresPermissions("general:location:remove")
  160 + @Log(title = "通用-库位管理", operating = "删除库位", action = BusinessType.DELETE)
  161 + @ApiOperation(value="删除库位", notes="批量删除库位", httpMethod = "POST")
  162 + @PostMapping( "/remove")
  163 + @ResponseBody
  164 + public AjaxResult remove(String ids) {
  165 + if (StringUtils.isEmpty(ids))
  166 + return AjaxResult.error("id不能为空");
  167 + for (Integer id : Convert.toIntArray(ids)) {
  168 + Location location = locationService.getById(id);
  169 + if (StringUtils.isEmpty(location.getContainerCode())) {
  170 + location.setDeleted(true);
  171 + location.setLastUpdatedBy(ShiroUtils.getLoginName());
  172 + locationService.updateById(location);
  173 + }
  174 + else {
  175 + return AjaxResult.error("库位(" + location.getCode() + ")不是空,或者有容器,不能删除成功!");
  176 + }
  177 + }
  178 + return AjaxResult.success("删除成功!");
  179 + }
  180 +}
... ...
src/main/java/com/huaheng/pc/general/location/domain/Location.java 0 → 100644
  1 +package com.huaheng.pc.general.location.domain;
  2 +
  3 +import com.baomidou.mybatisplus.annotation.IdType;
  4 +import com.baomidou.mybatisplus.annotation.TableField;
  5 +import com.baomidou.mybatisplus.annotation.TableId;
  6 +import com.baomidou.mybatisplus.annotation.TableName;
  7 +import java.io.Serializable;
  8 +import java.util.Date;
  9 +import lombok.Data;
  10 +
  11 +@Data
  12 +@TableName(value = "location")
  13 +public class Location implements Serializable {
  14 + /**
  15 + * ID
  16 + */
  17 + @TableId(value = "id", type = IdType.AUTO)
  18 + private Integer id;
  19 +
  20 + /**
  21 + * 货位
  22 + */
  23 + @TableField(value = "code")
  24 + private String code;
  25 +
  26 + /**
  27 + * 仓库
  28 + */
  29 + @TableField(value = "warehouseCode")
  30 + private String warehouseCode;
  31 +
  32 + /**
  33 + * 区域
  34 + */
  35 + @TableField(value = "zoneCode")
  36 + private String zoneCode;
  37 +
  38 + /**
  39 + * 货位类型
  40 + */
  41 + @TableField(value = "locationType")
  42 + private String locationType;
  43 +
  44 + /**
  45 + * 容器编码
  46 + */
  47 + @TableField(value = "containerCode")
  48 + private String containerCode;
  49 +
  50 + /**
  51 + * 行
  52 + */
  53 + @TableField(value = "iRow")
  54 + private Integer iRow;
  55 +
  56 + /**
  57 + * 列
  58 + */
  59 + @TableField(value = "iColumn")
  60 + private Integer iColumn;
  61 +
  62 + /**
  63 + * 层
  64 + */
  65 + @TableField(value = "iLayer")
  66 + private Integer iLayer;
  67 +
  68 + /**
  69 + * 格
  70 + */
  71 + @TableField(value = "iGrid")
  72 + private Integer iGrid;
  73 +
  74 + /**
  75 + * 名称
  76 + */
  77 + @TableField(value = "name")
  78 + private String name;
  79 +
  80 + /**
  81 + * 状态
  82 + */
  83 + @TableField(value = "enable")
  84 + private Integer enable;
  85 +
  86 + /**
  87 + * 上次盘点日期
  88 + */
  89 + @TableField(value = "lastCycleCountDate")
  90 + private Date lastCycleCountDate;
  91 +
  92 + /**
  93 + * 创建时间
  94 + */
  95 + @TableField(value = "created")
  96 + private Date created;
  97 +
  98 + /**
  99 + * 创建用户
  100 + */
  101 + @TableField(value = "createdBy")
  102 + private String createdBy;
  103 +
  104 + /**
  105 + * 创建时间
  106 + */
  107 + @TableField(value = "lastUpdated")
  108 + private Date lastUpdated;
  109 +
  110 + /**
  111 + * 更新用户
  112 + */
  113 + @TableField(value = "lastUpdatedBy")
  114 + private String lastUpdatedBy;
  115 +
  116 + /**
  117 + * 数据版本
  118 + */
  119 + @TableField(value = "version")
  120 + private Integer version;
  121 +
  122 + /**
  123 + * 自定义字段1
  124 + */
  125 + @TableField(value = "userDef1")
  126 + private String userDef1;
  127 +
  128 + /**
  129 + * 自定义字段2
  130 + */
  131 + @TableField(value = "userDef2")
  132 + private String userDef2;
  133 +
  134 + /**
  135 + * 自定义字段3
  136 + */
  137 + @TableField(value = "userDef3")
  138 + private String userDef3;
  139 +
  140 + /**
  141 + * 自定义字段4
  142 + */
  143 + @TableField(value = "userDef4")
  144 + private String userDef4;
  145 +
  146 + /**
  147 + * 自定义字段5
  148 + */
  149 + @TableField(value = "userDef5")
  150 + private String userDef5;
  151 +
  152 + /**
  153 + * 自定义字段6
  154 + */
  155 + @TableField(value = "userDef6")
  156 + private String userDef6;
  157 +
  158 + /**
  159 + * 自定义字段7
  160 + */
  161 + @TableField(value = "userDef7")
  162 + private String userDef7;
  163 +
  164 + /**
  165 + * 自定义字段8
  166 + */
  167 + @TableField(value = "userDef8")
  168 + private String userDef8;
  169 +
  170 + @TableField(value = "systemCreated")
  171 + private Integer systemCreated;
  172 +
  173 + @TableField(value = "deleted")
  174 + private Boolean deleted;
  175 +
  176 + private static final long serialVersionUID = 1L;
  177 +
  178 + public static final String COL_CODE = "code";
  179 +
  180 + public static final String COL_WAREHOUSECODE = "warehouseCode";
  181 +
  182 + public static final String COL_ZONECODE = "zoneCode";
  183 +
  184 + public static final String COL_LOCATIONTYPE = "locationType";
  185 +
  186 + public static final String COL_CONTAINERCODE = "containerCode";
  187 +
  188 + public static final String COL_IROW = "iRow";
  189 +
  190 + public static final String COL_ICOLUMN = "iColumn";
  191 +
  192 + public static final String COL_ILAYER = "iLayer";
  193 +
  194 + public static final String COL_IGRID = "iGrid";
  195 +
  196 + public static final String COL_NAME = "name";
  197 +
  198 + public static final String COL_ENABLE = "enable";
  199 +
  200 + public static final String COL_LASTCYCLECOUNTDATE = "lastCycleCountDate";
  201 +
  202 + public static final String COL_CREATED = "created";
  203 +
  204 + public static final String COL_CREATEDBY = "createdBy";
  205 +
  206 + public static final String COL_LASTUPDATED = "lastUpdated";
  207 +
  208 + public static final String COL_LASTUPDATEDBY = "lastUpdatedBy";
  209 +
  210 + public static final String COL_VERSION = "version";
  211 +
  212 + public static final String COL_USERDEF1 = "userDef1";
  213 +
  214 + public static final String COL_USERDEF2 = "userDef2";
  215 +
  216 + public static final String COL_USERDEF3 = "userDef3";
  217 +
  218 + public static final String COL_USERDEF4 = "userDef4";
  219 +
  220 + public static final String COL_USERDEF5 = "userDef5";
  221 +
  222 + public static final String COL_USERDEF6 = "userDef6";
  223 +
  224 + public static final String COL_USERDEF7 = "userDef7";
  225 +
  226 + public static final String COL_USERDEF8 = "userDef8";
  227 +
  228 + public static final String COL_SYSTEMCREATED = "systemCreated";
  229 +}
0 230 \ No newline at end of file
... ...
src/main/java/com/huaheng/pc/general/location/mapper/LocationMapper.java 0 → 100644
  1 +package com.huaheng.pc.general.location.mapper;
  2 +
  3 +import com.baomidou.mybatisplus.core.mapper.BaseMapper;
  4 +import com.huaheng.pc.general.location.domain.Location;
  5 +
  6 +public interface LocationMapper extends BaseMapper<Location> {
  7 +}
0 8 \ No newline at end of file
... ...
src/main/java/com/huaheng/pc/general/location/service/LocationService.java 0 → 100644
  1 +package com.huaheng.pc.general.location.service;
  2 +
  3 +import com.huaheng.pc.general.location.domain.Location;
  4 +import com.baomidou.mybatisplus.extension.service.IService;
  5 +public interface LocationService extends IService<Location>{
  6 +
  7 + boolean insertLocation(Location location);
  8 +
  9 +}
... ...
src/main/java/com/huaheng/pc/general/location/service/LocationServiceImpl.java 0 → 100644
  1 +package com.huaheng.pc.general.location.service;
  2 +
  3 +import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
  4 +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
  5 +import com.baomidou.mybatisplus.core.toolkit.Wrappers;
  6 +import com.huaheng.common.exception.service.ServiceException;
  7 +import com.huaheng.common.utils.security.ShiroUtils;
  8 +import com.huaheng.pc.config.locationType.domain.LocationType;
  9 +import com.huaheng.pc.config.locationType.service.LocationTypeService;
  10 +import com.huaheng.pc.config.zone.domain.Zone;
  11 +import com.huaheng.pc.config.zone.service.ZoneService;
  12 +import org.springframework.stereotype.Service;
  13 +import javax.annotation.Resource;
  14 +import java.text.MessageFormat;
  15 +import java.util.ArrayList;
  16 +import java.util.List;
  17 +import java.util.Map;
  18 +
  19 +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
  20 +import com.huaheng.pc.general.location.domain.Location;
  21 +import com.huaheng.pc.general.location.mapper.LocationMapper;
  22 +import com.huaheng.pc.general.location.service.LocationService;
  23 +@Service
  24 +public class LocationServiceImpl extends ServiceImpl<LocationMapper, Location> implements LocationService{
  25 +
  26 + @Resource
  27 + private LocationService locationService;
  28 + @Resource
  29 + private LocationTypeService locationTypeService;
  30 + @Resource
  31 + private ZoneService zoneService;
  32 +
  33 + @Override
  34 + public boolean insertLocation(Location location) {
  35 + /* 判断库位类型编码是否存在*/
  36 + LambdaQueryWrapper<LocationType> typelambda = Wrappers.lambdaQuery();
  37 + typelambda.eq(LocationType::getCode,location.getLocationType())
  38 + .select(LocationType::getCode);
  39 + List<Map<String, Object>> list = locationTypeService.listMaps(typelambda);
  40 + if (list.size() < 1){
  41 + throw new ServiceException("库位类型编码不存在");
  42 + }
  43 +
  44 + /* 判断库区编码是否存在*/
  45 + LambdaQueryWrapper<Zone> zoneLambda= Wrappers.lambdaQuery();
  46 + zoneLambda.eq(Zone::getCode, location.getZoneCode())
  47 + .select(Zone::getCode);
  48 +
  49 + list = zoneService.listMaps(zoneLambda);
  50 + if (list.size() < 1){
  51 + throw new ServiceException("库区编码不存在");
  52 + }
  53 +
  54 +
  55 + List<Location> locations = new ArrayList<>();
  56 + for (int i=1; i<=location.getIRow().intValue(); i++) {
  57 + for (int j=1; j<=location.getIColumn().intValue(); j++) {
  58 + for (int k=1; k<=location.getILayer().intValue(); k++) {
  59 + for (int m=1; m<=location.getIGrid().intValue(); m++) {
  60 + //Integer roadway = (j / 2) + 1;
  61 + Location param = new Location();
  62 + param.setIRow(i);
  63 + param.setIColumn(j);
  64 + param.setILayer(k);
  65 + param.setIGrid(m);
  66 + param.setZoneCode(location.getZoneCode());
  67 + param.setLocationType(location.getLocationType());
  68 + param.setEnable(location.getEnable());
  69 +
  70 +
  71 + String code = MessageFormat.format("{0}{1}-{2}-{3}-{4}",
  72 + location.getLocationType(),
  73 + String.format("%02d", location.getIRow()),
  74 + String.format("%02d", location.getIColumn()),
  75 + String.format("%02d", location.getILayer()),
  76 + String.format("%02d", location.getIGrid()));
  77 + QueryWrapper<Location> queryWrapper = new QueryWrapper<>();
  78 + if (locationService.list(queryWrapper.eq("code", code)) != null){
  79 + return true;
  80 + } else {
  81 + param.setCode(code);
  82 + location.setWarehouseCode(ShiroUtils.getWarehouseCode());
  83 + location.setCreatedBy(ShiroUtils.getLoginName());
  84 + location.setLastUpdatedBy(ShiroUtils.getLoginName());
  85 + }
  86 + param.setCode(code);
  87 + locations.add(param);
  88 + }
  89 + }
  90 + }
  91 + }
  92 +
  93 + return locationService.saveBatch(locations);
  94 + }
  95 +}
... ...
src/main/java/com/huaheng/pc/general/supplier/controller/SupplierController.java 0 → 100644
  1 +package com.huaheng.pc.general.supplier.controller;
  2 +
  3 +import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
  4 +import com.baomidou.mybatisplus.core.metadata.IPage;
  5 +import com.baomidou.mybatisplus.core.toolkit.Wrappers;
  6 +import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
  7 +import com.huaheng.common.support.Convert;
  8 +import com.huaheng.common.utils.StringUtils;
  9 +import com.huaheng.common.utils.security.ShiroUtils;
  10 +import com.huaheng.framework.aspectj.lang.annotation.Log;
  11 +import com.huaheng.framework.aspectj.lang.constant.BusinessType;
  12 +import com.huaheng.framework.web.controller.BaseController;
  13 +import com.huaheng.framework.web.domain.AjaxResult;
  14 +import com.huaheng.framework.web.page.PageDomain;
  15 +import com.huaheng.framework.web.page.TableDataInfo;
  16 +import com.huaheng.framework.web.page.TableSupport;
  17 +import com.huaheng.pc.general.location.domain.Location;
  18 +import com.huaheng.pc.general.supplier.domain.Supplier;
  19 +import com.huaheng.pc.general.supplier.service.SupplierService;
  20 +import com.huaheng.pc.receipt.receiptDetail.domain.ReceiptDetail;
  21 +import com.huaheng.pc.receipt.receiptDetail.service.ReceiptDetailService;
  22 +import com.huaheng.pc.receipt.receiptHeader.domain.ReceiptHeader;
  23 +import io.swagger.annotations.Api;
  24 +import io.swagger.annotations.ApiOperation;
  25 +import io.swagger.annotations.ApiParam;
  26 +import org.apache.shiro.authz.annotation.RequiresPermissions;
  27 +import org.springframework.stereotype.Controller;
  28 +import org.springframework.ui.ModelMap;
  29 +import org.springframework.web.bind.annotation.*;
  30 +
  31 +import javax.annotation.Resource;
  32 +import java.util.List;
  33 +import java.util.Map;
  34 +
  35 +@Api(tags={"供应商操作类"})
  36 +@Controller
  37 +@RequestMapping("/general/supplier")
  38 +public class SupplierController extends BaseController {
  39 +
  40 + private String prefix = "general/supplier";
  41 +
  42 + @Resource
  43 + private SupplierService supplierService;
  44 + @Resource
  45 + private ReceiptDetailService receiptDetailService;
  46 +
  47 + @RequiresPermissions("general:supplier:view")
  48 + @GetMapping()
  49 + public String supplier() {
  50 + return prefix + "/supplier";
  51 + }
  52 +
  53 + /**
  54 + * 查询供应商列表
  55 + */
  56 + @ApiOperation(value="查询供应商列表", notes="根据编码、名称、创建时间获取库位的详细信息", httpMethod = "POST")
  57 + @RequiresPermissions("general:supplier:list")
  58 + @Log(title = "通用-供应商管理", operating = "查看供应商列表", action = BusinessType.GRANT)
  59 + @PostMapping("/list")
  60 + @ResponseBody
  61 + public TableDataInfo list(@ApiParam(name = "supplier", value = "编码、名称")Supplier supplier,
  62 + @ApiParam(name = "createdBegin", value = "起止时间") String createdBegin,
  63 + @ApiParam(name = "createdEnd", value = "结束时间") String createdEnd) {
  64 + LambdaQueryWrapper<Supplier> lambdaQueryWrapper = Wrappers.lambdaQuery();
  65 + PageDomain pageDomain = TableSupport.buildPageRequest();
  66 + Integer pageNum = pageDomain.getPageNum();
  67 + Integer pageSize = pageDomain.getPageSize();
  68 + lambdaQueryWrapper.gt(StringUtils.isNotEmpty(createdBegin), Supplier::getCreated, createdBegin)
  69 + .lt(StringUtils.isNotEmpty(createdEnd), Supplier::getCreated, createdEnd)
  70 + .eq(StringUtils.isNotEmpty(supplier.getCode()), Supplier::getCode, supplier.getCode())
  71 + .eq(StringUtils.isNotEmpty(supplier.getName()), Supplier::getName, supplier.getName())
  72 + .eq(Supplier::getWarehouseCode, ShiroUtils.getWarehouseCode())
  73 + .eq(Supplier::getDeleted,false)
  74 + .orderByDesc(Supplier::getCreated);
  75 +
  76 + if (StringUtils.isNotNull(pageNum) && StringUtils.isNotNull(pageSize)){
  77 + /*使用分页查询*/
  78 + Page<Supplier> page = new Page<>(pageNum, pageSize);
  79 + IPage<Supplier> iPage = supplierService.page(page, lambdaQueryWrapper);
  80 + return getDataTable(iPage.getRecords());
  81 + } else {
  82 + List<Supplier> list = supplierService.list(lambdaQueryWrapper);
  83 + return getDataTable(list);
  84 + }
  85 + }
  86 +
  87 + /**
  88 + * 新增供应商
  89 + */
  90 + @GetMapping("/add")
  91 + public String add() {
  92 + return prefix + "/add";
  93 + }
  94 +
  95 + /**
  96 + * 新增保存供应商
  97 + */
  98 + @ApiOperation(value="新增供应商", notes="新增供应商", httpMethod = "POST")
  99 + @RequiresPermissions("general:supplier:add")
  100 + @Log(title = "通用-供应商管理", operating = "新增供应商", action = BusinessType.INSERT)
  101 + @PostMapping("/add")
  102 + @ResponseBody
  103 + public AjaxResult addSave(Supplier supplier) {
  104 + supplier.setWarehouseCode(ShiroUtils.getWarehouseCode());
  105 + supplier.setCreatedBy(ShiroUtils.getLoginName());
  106 + supplier.setLastUpdatedBy(ShiroUtils.getLoginName());
  107 + return toAjax(supplierService.save(supplier));
  108 + }
  109 +
  110 + /**
  111 + * 修改供应商
  112 + */
  113 + @GetMapping("/edit/{id}")
  114 + public String edit(@PathVariable("id") Integer id, ModelMap mmap)
  115 + {
  116 + Supplier supplier = supplierService.getById(id);
  117 + mmap.put("supplier", supplier);
  118 + return prefix + "/edit";
  119 + }
  120 +
  121 + /**
  122 + * 修改保存供应商
  123 + */
  124 + @ApiOperation(value="修改供应商", notes="修改供应商", httpMethod = "POST")
  125 + @RequiresPermissions("general:supplier:edit")
  126 + @Log(title = "通用-供应商管理", operating = "修改供应商", action = BusinessType.UPDATE)
  127 + @PostMapping("/edit")
  128 + @ResponseBody
  129 + public AjaxResult editSave(@ApiParam(name = "Supplier", value = "供应商") Supplier supplier) {
  130 + supplier.setEnable(1);
  131 + supplier.setLastUpdatedBy(ShiroUtils.getLoginName());
  132 + return toAjax(supplierService.updateById(supplier));
  133 + }
  134 +
  135 + /**
  136 + * 删除供应商
  137 + */
  138 + @ApiOperation(value="删除供应商", notes="单条删除或批量删除供应商信息,示例1或1,2,3", httpMethod = "POST")
  139 + @RequiresPermissions("general:supplier:remove")
  140 + @Log(title = "通用-供应商管理", operating = "删除供应商", action = BusinessType.DELETE)
  141 + @PostMapping( "/remove")
  142 + @ResponseBody
  143 + public AjaxResult remove(String ids) {
  144 + if (StringUtils.isEmpty(ids))
  145 + return AjaxResult.error("id不能为空");
  146 + for (Integer id : Convert.toIntArray(ids)) {
  147 + Supplier supplier = supplierService.getById(id);
  148 +
  149 + LambdaQueryWrapper<ReceiptDetail> lambda = Wrappers.lambdaQuery();
  150 + lambda.select(ReceiptDetail::getId)
  151 + .eq(ReceiptDetail::getWarehouseCode, ShiroUtils.getWarehouseCode())
  152 + .eq(ReceiptDetail::getSupplierCode, supplier.getCode())
  153 + .eq(ReceiptDetail::getDeleted, false);
  154 +
  155 + Map<String, Object> map = receiptDetailService.getMap(lambda);
  156 + if (map != null) {
  157 + return AjaxResult.error("供应商编码(" + supplier.getCode() +")存在入库单,不能删除!");
  158 + }
  159 +
  160 + supplier.setDeleted(true);
  161 + supplier.setLastUpdatedBy(ShiroUtils.getLoginName());
  162 + supplierService.updateById(supplier);
  163 + }
  164 + return AjaxResult.success("删除成功!");
  165 + }
  166 +}
... ...
src/main/java/com/huaheng/pc/general/supplier/domain/Supplier.java 0 → 100644
  1 +package com.huaheng.pc.general.supplier.domain;
  2 +
  3 +import com.baomidou.mybatisplus.annotation.IdType;
  4 +import com.baomidou.mybatisplus.annotation.TableField;
  5 +import com.baomidou.mybatisplus.annotation.TableId;
  6 +import com.baomidou.mybatisplus.annotation.TableName;
  7 +import io.swagger.annotations.ApiModel;
  8 +import io.swagger.annotations.ApiModelProperty;
  9 +import java.io.Serializable;
  10 +import java.util.Date;
  11 +import lombok.Data;
  12 +
  13 +@ApiModel(value="com.huaheng.pc.general.supplier.domain.Supplier")
  14 +@Data
  15 +@TableName(value = "supplier")
  16 +public class Supplier implements Serializable {
  17 + /**
  18 + * 供应商内部号
  19 + */
  20 + @TableId(value = "id", type = IdType.AUTO)
  21 + @ApiModelProperty(value="供应商内部号")
  22 + private Integer id;
  23 +
  24 + /**
  25 + * 供应商ID
  26 + */
  27 + @TableField(value = "code")
  28 + @ApiModelProperty(value="供应商ID")
  29 + private String code;
  30 +
  31 + @TableField(value = "warehouseCode")
  32 + @ApiModelProperty(value="null")
  33 + private String warehouseCode;
  34 +
  35 + /**
  36 + * 货主编码
  37 + */
  38 + @TableField(value = "companyCode")
  39 + @ApiModelProperty(value="货主编码")
  40 + private String companyCode;
  41 +
  42 + /**
  43 + * 供应商名称
  44 + */
  45 + @TableField(value = "name")
  46 + @ApiModelProperty(value="供应商名称")
  47 + private String name;
  48 +
  49 + /**
  50 + * 地址1
  51 + */
  52 + @TableField(value = "address1")
  53 + @ApiModelProperty(value="地址1")
  54 + private String address1;
  55 +
  56 + /**
  57 + * 地址2
  58 + */
  59 + @TableField(value = "address2")
  60 + @ApiModelProperty(value="地址2")
  61 + private String address2;
  62 +
  63 + /**
  64 + * 城市
  65 + */
  66 + @TableField(value = "city")
  67 + @ApiModelProperty(value="城市")
  68 + private String city;
  69 +
  70 + /**
  71 + * 省份
  72 + */
  73 + @TableField(value = "state")
  74 + @ApiModelProperty(value="省份")
  75 + private String state;
  76 +
  77 + /**
  78 + * 国家
  79 + */
  80 + @TableField(value = "country")
  81 + @ApiModelProperty(value="国家")
  82 + private String country;
  83 +
  84 + /**
  85 + * 邮编
  86 + */
  87 + @TableField(value = "postalCode")
  88 + @ApiModelProperty(value="邮编")
  89 + private String postalCode;
  90 +
  91 + /**
  92 + * 父
  93 + */
  94 + @TableField(value = "parent")
  95 + @ApiModelProperty(value="父")
  96 + private Integer parent;
  97 +
  98 + /**
  99 + * 联系人
  100 + */
  101 + @TableField(value = "attentionTo")
  102 + @ApiModelProperty(value="联系人")
  103 + private String attentionTo;
  104 +
  105 + /**
  106 + * 电话
  107 + */
  108 + @TableField(value = "phoneNum")
  109 + @ApiModelProperty(value="电话")
  110 + private String phoneNum;
  111 +
  112 + /**
  113 + * 传真
  114 + */
  115 + @TableField(value = "faxNum")
  116 + @ApiModelProperty(value="传真")
  117 + private String faxNum;
  118 +
  119 + /**
  120 + * E-mail
  121 + */
  122 + @TableField(value = "email")
  123 + @ApiModelProperty(value="E-mail")
  124 + private String email;
  125 +
  126 + /**
  127 + * 有效
  128 + */
  129 + @TableField(value = "enable")
  130 + @ApiModelProperty(value="有效")
  131 + private Integer enable;
  132 +
  133 + /**
  134 + * 承运人
  135 + */
  136 + @TableField(value = "carrier")
  137 + @ApiModelProperty(value="承运人")
  138 + private String carrier;
  139 +
  140 + /**
  141 + * 创建时间
  142 + */
  143 + @TableField(value = "created")
  144 + @ApiModelProperty(value="创建时间")
  145 + private Date created;
  146 +
  147 + /**
  148 + * 创建用户
  149 + */
  150 + @TableField(value = "createdBy")
  151 + @ApiModelProperty(value="创建用户")
  152 + private String createdBy;
  153 +
  154 + /**
  155 + * 创建时间
  156 + */
  157 + @TableField(value = "lastUpdated")
  158 + @ApiModelProperty(value="创建时间")
  159 + private Date lastUpdated;
  160 +
  161 + /**
  162 + * 更新用户
  163 + */
  164 + @TableField(value = "lastUpdatedBy")
  165 + @ApiModelProperty(value="更新用户")
  166 + private String lastUpdatedBy;
  167 +
  168 + /**
  169 + * 数据版本
  170 + */
  171 + @TableField(value = "version")
  172 + @ApiModelProperty(value="数据版本")
  173 + private Integer version;
  174 +
  175 + /**
  176 + * 自定义字段1
  177 + */
  178 + @TableField(value = "userDef1")
  179 + @ApiModelProperty(value="自定义字段1")
  180 + private String userDef1;
  181 +
  182 + /**
  183 + * 自定义字段2
  184 + */
  185 + @TableField(value = "userDef2")
  186 + @ApiModelProperty(value="自定义字段2")
  187 + private String userDef2;
  188 +
  189 + /**
  190 + * 自定义字段3
  191 + */
  192 + @TableField(value = "userDef3")
  193 + @ApiModelProperty(value="自定义字段3")
  194 + private String userDef3;
  195 +
  196 + /**
  197 + * 自定义字段4
  198 + */
  199 + @TableField(value = "userDef4")
  200 + @ApiModelProperty(value="自定义字段4")
  201 + private String userDef4;
  202 +
  203 + /**
  204 + * 自定义字段5
  205 + */
  206 + @TableField(value = "userDef5")
  207 + @ApiModelProperty(value="自定义字段5")
  208 + private String userDef5;
  209 +
  210 + /**
  211 + * 自定义字段6
  212 + */
  213 + @TableField(value = "userDef6")
  214 + @ApiModelProperty(value="自定义字段6")
  215 + private String userDef6;
  216 +
  217 + /**
  218 + * 自定义字段7
  219 + */
  220 + @TableField(value = "userDef7")
  221 + @ApiModelProperty(value="自定义字段7")
  222 + private String userDef7;
  223 +
  224 + /**
  225 + * 自定义字段8
  226 + */
  227 + @TableField(value = "userDef8")
  228 + @ApiModelProperty(value="自定义字段8")
  229 + private String userDef8;
  230 +
  231 + /**
  232 + * 处理标记
  233 + */
  234 + @TableField(value = "processStamp")
  235 + @ApiModelProperty(value="处理标记")
  236 + private String processStamp;
  237 +
  238 + @TableField(value = "deleted")
  239 + @ApiModelProperty(value = "是否删除")
  240 + private Boolean deleted;
  241 +
  242 + private static final long serialVersionUID = 1L;
  243 +
  244 + public static final String COL_CODE = "code";
  245 +
  246 + public static final String COL_WAREHOUSECODE = "warehouseCode";
  247 +
  248 + public static final String COL_COMPANYCODE = "companyCode";
  249 +
  250 + public static final String COL_NAME = "name";
  251 +
  252 + public static final String COL_ADDRESS1 = "address1";
  253 +
  254 + public static final String COL_ADDRESS2 = "address2";
  255 +
  256 + public static final String COL_CITY = "city";
  257 +
  258 + public static final String COL_STATE = "state";
  259 +
  260 + public static final String COL_COUNTRY = "country";
  261 +
  262 + public static final String COL_POSTALCODE = "postalCode";
  263 +
  264 + public static final String COL_PARENT = "parent";
  265 +
  266 + public static final String COL_ATTENTIONTO = "attentionTo";
  267 +
  268 + public static final String COL_PHONENUM = "phoneNum";
  269 +
  270 + public static final String COL_FAXNUM = "faxNum";
  271 +
  272 + public static final String COL_EMAIL = "email";
  273 +
  274 + public static final String COL_ENABLE = "enable";
  275 +
  276 + public static final String COL_CARRIER = "carrier";
  277 +
  278 + public static final String COL_CREATED = "created";
  279 +
  280 + public static final String COL_CREATEDBY = "createdBy";
  281 +
  282 + public static final String COL_LASTUPDATED = "lastUpdated";
  283 +
  284 + public static final String COL_LASTUPDATEDBY = "lastUpdatedBy";
  285 +
  286 + public static final String COL_VERSION = "version";
  287 +
  288 + public static final String COL_USERDEF1 = "userDef1";
  289 +
  290 + public static final String COL_USERDEF2 = "userDef2";
  291 +
  292 + public static final String COL_USERDEF3 = "userDef3";
  293 +
  294 + public static final String COL_USERDEF4 = "userDef4";
  295 +
  296 + public static final String COL_USERDEF5 = "userDef5";
  297 +
  298 + public static final String COL_USERDEF6 = "userDef6";
  299 +
  300 + public static final String COL_USERDEF7 = "userDef7";
  301 +
  302 + public static final String COL_USERDEF8 = "userDef8";
  303 +
  304 + public static final String COL_PROCESSSTAMP = "processStamp";
  305 +}
0 306 \ No newline at end of file
... ...
src/main/java/com/huaheng/pc/general/supplier/mapper/SupplierMapper.java 0 → 100644
  1 +package com.huaheng.pc.general.supplier.mapper;
  2 +
  3 +import com.baomidou.mybatisplus.core.mapper.BaseMapper;
  4 +import com.huaheng.pc.general.supplier.domain.Supplier;
  5 +
  6 +public interface SupplierMapper extends BaseMapper<Supplier> {
  7 +}
0 8 \ No newline at end of file
... ...
src/main/java/com/huaheng/pc/general/supplier/service/SupplierService.java 0 → 100644
  1 +package com.huaheng.pc.general.supplier.service;
  2 +
  3 +import com.huaheng.pc.general.supplier.domain.Supplier;
  4 +import com.baomidou.mybatisplus.extension.service.IService;
  5 +public interface SupplierService extends IService<Supplier>{
  6 +
  7 +
  8 +}
... ...
src/main/java/com/huaheng/pc/general/supplier/service/SupplierServiceImpl.java 0 → 100644
  1 +package com.huaheng.pc.general.supplier.service;
  2 +
  3 +import org.springframework.stereotype.Service;
  4 +import javax.annotation.Resource;
  5 +import java.util.List;
  6 +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
  7 +import com.huaheng.pc.general.supplier.mapper.SupplierMapper;
  8 +import com.huaheng.pc.general.supplier.domain.Supplier;
  9 +import com.huaheng.pc.general.supplier.service.SupplierService;
  10 +@Service
  11 +public class SupplierServiceImpl extends ServiceImpl<SupplierMapper, Supplier> implements SupplierService{
  12 +
  13 +}
... ...
src/main/java/com/huaheng/pc/general/warehouse/controller/WareHouseController.java
... ... @@ -63,7 +63,7 @@ public class WareHouseController extends BaseController {
63 63 LambdaQueryWrapper<Warehouse> lambdaQueryWrapper = Wrappers.lambdaQuery();
64 64 PageDomain pageDomain = TableSupport.buildPageRequest();
65 65 Integer pageNum = pageDomain.getPageNum();
66   - Integer pageSize = pageDomain.getPageSize()/2;
  66 + Integer pageSize = pageDomain.getPageSize();
67 67 lambdaQueryWrapper.gt(StringUtils.isNotEmpty(createdBegin),Warehouse::getCreated, createdBegin)
68 68 .lt(StringUtils.isNotEmpty(createdEnd),Warehouse::getCreated, createdEnd)
69 69 .eq(StringUtils.isNotEmpty(warehouse.getCode()),Warehouse::getCode, warehouse.getCode())
... ... @@ -135,11 +135,10 @@ public class WareHouseController extends BaseController {
135 135 @Log(title = "通用-仓库管理", operating = "删除仓库", action = BusinessType.DELETE)
136 136 @PostMapping( "/remove")
137 137 @ResponseBody
138   - public AjaxResult remove(String Codes) {
139   - if (StringUtils.isEmpty(Codes))
  138 + public AjaxResult remove(String codes) {
  139 + if (StringUtils.isEmpty(codes))
140 140 return AjaxResult.error("id不能为空");
141   - for (String code : Convert.toStrArray(Codes))
142   - {
  141 + for (String code : Convert.toStrArray(codes)) {
143 142 Warehouse warehouse = new Warehouse();
144 143 InventoryHeader inventory = new InventoryHeader();
145 144 inventory.setWarehouseCode(code);
... ... @@ -147,7 +146,7 @@ public class WareHouseController extends BaseController {
147 146 LambdaQueryWrapper<InventoryHeader> lambdaQueryWrapper = Wrappers.lambdaQuery();
148 147 lambdaQueryWrapper.eq(InventoryHeader::getWarehouseCode,code);
149 148 int count = inventoryHeaderService.count(lambdaQueryWrapper);
150   - if (count == 0) {
  149 + if (count != 0) {
151 150 return AjaxResult.error("仓库编码(" + warehouse.getCode() +")还有库存,不能删除!");
152 151 }
153 152 warehouse.setLastUpdatedBy(ShiroUtils.getLoginName());
... ...
src/main/java/com/huaheng/pc/receipt/receiptDetail/domain/ReceiptDetail.java
... ... @@ -4,284 +4,346 @@ import com.baomidou.mybatisplus.annotation.IdType;
4 4 import com.baomidou.mybatisplus.annotation.TableField;
5 5 import com.baomidou.mybatisplus.annotation.TableId;
6 6 import com.baomidou.mybatisplus.annotation.TableName;
  7 +import io.swagger.annotations.ApiModel;
  8 +import io.swagger.annotations.ApiModelProperty;
7 9 import java.io.Serializable;
8 10 import java.math.BigDecimal;
9 11 import java.util.Date;
10 12 import lombok.Data;
11 13  
  14 +@ApiModel(value = "com.huaheng.pc.receipt.receiptDetail.domain.ReceiptDetail")
12 15 @Data
13 16 @TableName(value = "receipt_detail")
14 17 public class ReceiptDetail implements Serializable {
15 18 /**
16 19 * 入库明细内部号
17 20 */
18   - @TableId(value = "id", type = IdType.AUTO)
  21 + @TableId(value = "id", type = IdType.AUTO)
  22 + @ApiModelProperty(value = "入库明细内部号")
19 23 private Integer id;
20 24  
21 25 /**
22 26 * 入库单头内部号
23 27 */
24 28 @TableField(value = "receiptId")
  29 + @ApiModelProperty(value = "入库单头内部号")
25 30 private Integer receiptId;
26 31  
27 32 /**
28 33 * 入库单
29 34 */
30 35 @TableField(value = "receiptCode")
  36 + @ApiModelProperty(value = "入库单")
31 37 private String receiptCode;
32 38  
33 39 /**
34 40 * 仓库
35 41 */
36 42 @TableField(value = "warehouseCode")
  43 + @ApiModelProperty(value = "仓库")
37 44 private String warehouseCode;
38 45  
39 46 /**
40 47 * 货主
41 48 */
42 49 @TableField(value = "companyCode")
  50 + @ApiModelProperty(value = "货主")
43 51 private String companyCode;
44 52  
45 53 /**
46 54 * 物料
47 55 */
48 56 @TableField(value = "materialCode")
  57 + @ApiModelProperty(value = "物料")
49 58 private String materialCode;
50 59  
51 60 /**
52 61 * 物料信息
53 62 */
54 63 @TableField(value = "materialName")
  64 + @ApiModelProperty(value = "物料信息")
55 65 private String materialName;
56 66  
57 67 /**
58 68 * 物料规格
59 69 */
60 70 @TableField(value = "materialSpec")
  71 + @ApiModelProperty(value = "物料规格")
61 72 private String materialSpec;
62 73  
63 74 /**
64 75 * 物料单位
65 76 */
66 77 @TableField(value = "materialUnit")
  78 + @ApiModelProperty(value = "物料单位")
67 79 private String materialUnit;
68 80  
69 81 /**
  82 + * 供应商编码
  83 + */
  84 + @TableField(value = "supplierCode")
  85 + @ApiModelProperty(value = "供应商编码")
  86 + private String supplierCode;
  87 +
  88 + /**
70 89 * 批次
71 90 */
72 91 @TableField(value = "batch")
  92 + @ApiModelProperty(value = "批次")
73 93 private String batch;
74 94  
75 95 /**
76 96 * 批号
77 97 */
78 98 @TableField(value = "lot")
  99 + @ApiModelProperty(value = "批号")
79 100 private String lot;
80 101  
81 102 /**
82 103 * 质检
83 104 */
84 105 @TableField(value = "qcCheck")
  106 + @ApiModelProperty(value = "质检")
85 107 private String qcCheck;
86 108  
87 109 /**
88 110 * 项目号
89 111 */
90 112 @TableField(value = "projectNo")
  113 + @ApiModelProperty(value = "项目号")
91 114 private String projectNo;
92 115  
93 116 /**
94 117 * 生产日期
95 118 */
96 119 @TableField(value = "manufactureDate")
  120 + @ApiModelProperty(value = "生产日期")
97 121 private Date manufactureDate;
98 122  
99 123 /**
100 124 * 失效日期
101 125 */
102 126 @TableField(value = "expirationDate")
  127 + @ApiModelProperty(value = "失效日期")
103 128 private Date expirationDate;
104 129  
105 130 /**
106 131 * 入库日期
107 132 */
108 133 @TableField(value = "agingDate")
  134 + @ApiModelProperty(value = "入库日期")
109 135 private Date agingDate;
110 136  
111 137 /**
112 138 * 属性模板
113 139 */
114 140 @TableField(value = "attributeTemplateCode")
  141 + @ApiModelProperty(value = "属性模板")
115 142 private String attributeTemplateCode;
116 143  
117 144 /**
118 145 * 属性1
119 146 */
120 147 @TableField(value = "attribute1")
  148 + @ApiModelProperty(value = "属性1")
121 149 private String attribute1;
122 150  
123 151 /**
124 152 * 属性2
125 153 */
126 154 @TableField(value = "attribute2")
  155 + @ApiModelProperty(value = "属性2")
127 156 private String attribute2;
128 157  
129 158 /**
130 159 * 属性3
131 160 */
132 161 @TableField(value = "attribute3")
  162 + @ApiModelProperty(value = "属性3")
133 163 private String attribute3;
134 164  
135 165 /**
136 166 * 属性4
137 167 */
138 168 @TableField(value = "attribute4")
  169 + @ApiModelProperty(value = "属性4")
139 170 private String attribute4;
140 171  
141 172 /**
142 173 * 总数量
143 174 */
144 175 @TableField(value = "totalQty")
  176 + @ApiModelProperty(value = "总数量")
145 177 private Integer totalQty;
146 178  
147 179 /**
148 180 * 未收数量
149 181 */
150 182 @TableField(value = "openQty")
  183 + @ApiModelProperty(value = "未收数量")
151 184 private Integer openQty;
152 185  
153 186 /**
154 187 * ERP单号
155 188 */
156 189 @TableField(value = "referCode")
  190 + @ApiModelProperty(value = "ERP单号")
157 191 private String referCode;
158 192  
159 193 /**
160 194 * ERP内部号
161 195 */
162 196 @TableField(value = "referId")
  197 + @ApiModelProperty(value = "ERP内部号")
163 198 private Integer referId;
164 199  
165 200 /**
166 201 * ERP行号
167 202 */
168 203 @TableField(value = "referLineNum")
  204 + @ApiModelProperty(value = "ERP行号")
169 205 private String referLineNum;
170 206  
171 207 /**
172 208 * 定位规则
173 209 */
174 210 @TableField(value = "locatingRule")
  211 + @ApiModelProperty(value = "定位规则")
175 212 private String locatingRule;
176 213  
177 214 /**
178 215 * 库存状态
179 216 */
180 217 @TableField(value = "inventorySts")
  218 + @ApiModelProperty(value = "库存状态")
181 219 private String inventorySts;
182 220  
183 221 /**
184 222 * 标价
185 223 */
186 224 @TableField(value = "itemListPrice")
  225 + @ApiModelProperty(value = "标价")
187 226 private BigDecimal itemListPrice;
188 227  
189 228 /**
190 229 * 净价
191 230 */
192 231 @TableField(value = "itemNetPrice")
  232 + @ApiModelProperty(value = "净价")
193 233 private BigDecimal itemNetPrice;
194 234  
195 235 /**
196 236 * 是否虚拟套件
197 237 */
198 238 @TableField(value = "isVirtualBom")
  239 + @ApiModelProperty(value = "是否虚拟套件")
199 240 private Integer isVirtualBom;
200 241  
201 242 /**
202 243 * 创建时间
203 244 */
204 245 @TableField(value = "created")
  246 + @ApiModelProperty(value = "创建时间")
205 247 private Date created;
206 248  
207 249 /**
208 250 * 创建用户
209 251 */
210 252 @TableField(value = "createdBy")
  253 + @ApiModelProperty(value = "创建用户")
211 254 private String createdBy;
212 255  
213 256 /**
214 257 * 创建时间
215 258 */
216 259 @TableField(value = "lastUpdated")
  260 + @ApiModelProperty(value = "创建时间")
217 261 private Date lastUpdated;
218 262  
219 263 /**
220 264 * 更新用户
221 265 */
222 266 @TableField(value = "lastUpdatedBy")
  267 + @ApiModelProperty(value = "更新用户")
223 268 private String lastUpdatedBy;
224 269  
225 270 /**
226 271 * 数据版本
227 272 */
228 273 @TableField(value = "version")
  274 + @ApiModelProperty(value = "数据版本")
229 275 private Integer version;
230 276  
231 277 /**
232 278 * 自定义字段1
233 279 */
234 280 @TableField(value = "userDef1")
  281 + @ApiModelProperty(value = "自定义字段1")
235 282 private String userDef1;
236 283  
237 284 /**
238 285 * 自定义字段2
239 286 */
240 287 @TableField(value = "userDef2")
  288 + @ApiModelProperty(value = "自定义字段2")
241 289 private String userDef2;
242 290  
243 291 /**
244 292 * 自定义字段3
245 293 */
246 294 @TableField(value = "userDef3")
  295 + @ApiModelProperty(value = "自定义字段3")
247 296 private String userDef3;
248 297  
249 298 /**
250 299 * 自定义字段4
251 300 */
252 301 @TableField(value = "userDef4")
  302 + @ApiModelProperty(value = "自定义字段4")
253 303 private String userDef4;
254 304  
255 305 /**
256 306 * 自定义字段5
257 307 */
258 308 @TableField(value = "userDef5")
  309 + @ApiModelProperty(value = "自定义字段5")
259 310 private String userDef5;
260 311  
261 312 /**
262 313 * 自定义字段6
263 314 */
264 315 @TableField(value = "userDef6")
  316 + @ApiModelProperty(value = "自定义字段6")
265 317 private String userDef6;
266 318  
267 319 /**
268 320 * 自定义字段7
269 321 */
270 322 @TableField(value = "userDef7")
  323 + @ApiModelProperty(value = "自定义字段7")
271 324 private String userDef7;
272 325  
273 326 /**
274 327 * 自定义字段8
275 328 */
276 329 @TableField(value = "userDef8")
  330 + @ApiModelProperty(value = "自定义字段8")
277 331 private String userDef8;
278 332  
279 333 /**
280 334 * 处理标记
281 335 */
282 336 @TableField(value = "processStamp")
  337 + @ApiModelProperty(value = "处理标记")
283 338 private String processStamp;
284 339  
  340 + /**
  341 + * 是否删除
  342 + */
  343 + @TableField(value = "deleted")
  344 + @ApiModelProperty(value = "是否删除")
  345 + private Boolean deleted;
  346 +
285 347 private static final long serialVersionUID = 1L;
286 348  
287 349 public static final String COL_RECEIPTID = "receiptId";
... ... @@ -300,6 +362,8 @@ public class ReceiptDetail implements Serializable {
300 362  
301 363 public static final String COL_MATERIALUNIT = "materialUnit";
302 364  
  365 + public static final String COL_SUPPLIERCODE = "supplierCode";
  366 +
303 367 public static final String COL_BATCH = "batch";
304 368  
305 369 public static final String COL_LOT = "lot";
... ... @@ -371,4 +435,6 @@ public class ReceiptDetail implements Serializable {
371 435 public static final String COL_USERDEF8 = "userDef8";
372 436  
373 437 public static final String COL_PROCESSSTAMP = "processStamp";
  438 +
  439 + public static final String COL_DELETED = "deleted";
374 440 }
375 441 \ No newline at end of file
... ...
src/main/java/com/huaheng/pc/receipt/receiptHeader/domain/ReceiptHeader.java
... ... @@ -249,6 +249,9 @@ public class ReceiptHeader implements Serializable {
249 249 @TableField(value = "processStamp")
250 250 private String processStamp;
251 251  
  252 + @TableField(value = "deleted")
  253 + private Boolean deleted;
  254 +
252 255 private static final long serialVersionUID = 1L;
253 256  
254 257 public static final String COL_WAREHOUSECODE = "warehouseCode";
... ...
src/main/java/com/huaheng/pc/shipment/shipmentHeader/domain/ShipmentHeader.java
... ... @@ -4,368 +4,437 @@ import com.baomidou.mybatisplus.annotation.IdType;
4 4 import com.baomidou.mybatisplus.annotation.TableField;
5 5 import com.baomidou.mybatisplus.annotation.TableId;
6 6 import com.baomidou.mybatisplus.annotation.TableName;
  7 +import io.swagger.annotations.ApiModel;
  8 +import io.swagger.annotations.ApiModelProperty;
7 9 import java.io.Serializable;
8 10 import java.math.BigDecimal;
9 11 import java.util.Date;
10 12 import lombok.Data;
11 13  
  14 +@ApiModel(value = "com.huaheng.pc.shipment.shipmentHeader.domain.ShipmentHeader")
12 15 @Data
13 16 @TableName(value = "shipment_header")
14 17 public class ShipmentHeader implements Serializable {
15 18 /**
16 19 * 出库单内部号
17 20 */
18   - @TableId(value = "id", type = IdType.AUTO)
  21 + @TableId(value = "id", type = IdType.AUTO)
  22 + @ApiModelProperty(value = "出库单内部号")
19 23 private Integer id;
20 24  
21 25 /**
22 26 * 仓库
23 27 */
24 28 @TableField(value = "warehouseCode")
  29 + @ApiModelProperty(value = "仓库")
25 30 private String warehouseCode;
26 31  
27 32 /**
28 33 * 货主
29 34 */
30 35 @TableField(value = "companyCode")
  36 + @ApiModelProperty(value = "货主")
31 37 private String companyCode;
32 38  
33 39 /**
34 40 * 装载号
35 41 */
36 42 @TableField(value = "loadId")
  43 + @ApiModelProperty(value = "装载号")
37 44 private Integer loadId;
38 45  
39 46 /**
40 47 * 出库单号
41 48 */
42 49 @TableField(value = "code")
  50 + @ApiModelProperty(value = "出库单号")
43 51 private String code;
44 52  
45 53 /**
46 54 * erp订单号
47 55 */
48 56 @TableField(value = "referCode")
  57 + @ApiModelProperty(value = "erp订单号")
49 58 private String referCode;
50 59  
51 60 /**
52 61 * erp订单类型
53 62 */
54 63 @TableField(value = "referCodeType")
  64 + @ApiModelProperty(value = "erp订单类型")
55 65 private String referCodeType;
56 66  
57 67 /**
58 68 * erp订单内部号
59 69 */
60 70 @TableField(value = "referId")
  71 + @ApiModelProperty(value = "erp订单内部号")
61 72 private Integer referId;
62 73  
63 74 /**
64 75 * 订单平台
65 76 */
66 77 @TableField(value = "referPlatform")
  78 + @ApiModelProperty(value = "订单平台")
67 79 private Integer referPlatform;
68 80  
69 81 /**
70 82 * 主状态
71 83 */
72 84 @TableField(value = "firstStatus")
  85 + @ApiModelProperty(value = "主状态")
73 86 private Integer firstStatus;
74 87  
75 88 /**
76 89 * 拖状态
77 90 */
78 91 @TableField(value = "lastStatus")
  92 + @ApiModelProperty(value = "拖状态")
79 93 private Integer lastStatus;
80 94  
81 95 /**
82 96 * 出库单类型
83 97 */
84 98 @TableField(value = "shipmentType")
  99 + @ApiModelProperty(value = "出库单类型")
85 100 private String shipmentType;
86 101  
87 102 /**
88 103 * 路线
89 104 */
90 105 @TableField(value = "route")
  106 + @ApiModelProperty(value = "路线")
91 107 private String route;
92 108  
93 109 /**
94 110 * 客户编号
95 111 */
96 112 @TableField(value = "customerCode")
  113 + @ApiModelProperty(value = "客户编号")
97 114 private String customerCode;
98 115  
99 116 /**
100 117 * 客户名称
101 118 */
102 119 @TableField(value = "customerName")
  120 + @ApiModelProperty(value = "客户名称")
103 121 private String customerName;
104 122  
105 123 /**
106 124 * 优先级
107 125 */
108 126 @TableField(value = "priority")
  127 + @ApiModelProperty(value = "优先级")
109 128 private Integer priority;
110 129  
111 130 /**
112 131 * 要求到货时间
113 132 */
114 133 @TableField(value = "requestedDeliveryDate")
  134 + @ApiModelProperty(value = "要求到货时间")
115 135 private Date requestedDeliveryDate;
116 136  
117 137 /**
118 138 * 要求到货类型
119 139 */
120 140 @TableField(value = "requestedDeliveryType")
  141 + @ApiModelProperty(value = "要求到货类型")
121 142 private String requestedDeliveryType;
122 143  
123 144 /**
124 145 * 计划发车日期
125 146 */
126 147 @TableField(value = "scheduledShipDate")
  148 + @ApiModelProperty(value = "计划发车日期")
127 149 private Date scheduledShipDate;
128 150  
129 151 /**
130 152 * 实际发车时间
131 153 */
132 154 @TableField(value = "actualShipDateTime")
  155 + @ApiModelProperty(value = "实际发车时间")
133 156 private Date actualShipDateTime;
134 157  
135 158 /**
136 159 * 实际到货时间
137 160 */
138 161 @TableField(value = "actualDeliveryDate")
  162 + @ApiModelProperty(value = "实际到货时间")
139 163 private Date actualDeliveryDate;
140 164  
141 165 /**
142 166 * 配送要求
143 167 */
144 168 @TableField(value = "deliveryNote")
  169 + @ApiModelProperty(value = "配送要求")
145 170 private String deliveryNote;
146 171  
147 172 /**
148 173 * 失败原因
149 174 */
150 175 @TableField(value = "rejectionNote")
  176 + @ApiModelProperty(value = "失败原因")
151 177 private String rejectionNote;
152 178  
153 179 /**
154 180 * 波次号
155 181 */
156 182 @TableField(value = "waveId")
  183 + @ApiModelProperty(value = "波次号")
157 184 private Integer waveId;
158 185  
159 186 /**
160 187 * 发货月台
161 188 */
162 189 @TableField(value = "shipDock")
  190 + @ApiModelProperty(value = "发货月台")
163 191 private String shipDock;
164 192  
165 193 /**
166 194 * 分配完成
167 195 */
168 196 @TableField(value = "allocateComplete")
  197 + @ApiModelProperty(value = "分配完成")
169 198 private Integer allocateComplete;
170 199  
171 200 /**
172 201 * 总重量
173 202 */
174 203 @TableField(value = "totalWeight")
  204 + @ApiModelProperty(value = "总重量")
175 205 private BigDecimal totalWeight;
176 206  
177 207 /**
178 208 * 总数量
179 209 */
180 210 @TableField(value = "totalQty")
  211 + @ApiModelProperty(value = "总数量")
181 212 private Integer totalQty;
182 213  
183 214 /**
184 215 * 总体积
185 216 */
186 217 @TableField(value = "totalVolume")
  218 + @ApiModelProperty(value = "总体积")
187 219 private BigDecimal totalVolume;
188 220  
189 221 /**
190 222 * 总行数
191 223 */
192 224 @TableField(value = "totalLines")
  225 + @ApiModelProperty(value = "总行数")
193 226 private Integer totalLines;
194 227  
195 228 /**
196 229 * 总拼箱数
197 230 */
198 231 @TableField(value = "totalContainers")
  232 + @ApiModelProperty(value = "总拼箱数")
199 233 private Integer totalContainers;
200 234  
201 235 /**
202 236 * 总整箱数
203 237 */
204 238 @TableField(value = "totalCases")
  239 + @ApiModelProperty(value = "总整箱数")
205 240 private Integer totalCases;
206 241  
207 242 /**
208 243 * 总价值
209 244 */
210 245 @TableField(value = "totalValue")
  246 + @ApiModelProperty(value = "总价值")
211 247 private BigDecimal totalValue;
212 248  
213 249 /**
214 250 * 处理类型
215 251 */
216 252 @TableField(value = "processType")
  253 + @ApiModelProperty(value = "处理类型")
217 254 private String processType;
218 255  
219 256 /**
220 257 * 上次波次号
221 258 */
222 259 @TableField(value = "lastWaveId")
  260 + @ApiModelProperty(value = "上次波次号")
223 261 private Integer lastWaveId;
224 262  
225 263 /**
226 264 * 特征值
227 265 */
228 266 @TableField(value = "signValue")
  267 + @ApiModelProperty(value = "特征值")
229 268 private String signValue;
230 269  
231 270 /**
232 271 * 承运人
233 272 */
234 273 @TableField(value = "carrierCode")
  274 + @ApiModelProperty(value = "承运人")
235 275 private String carrierCode;
236 276  
237 277 /**
238 278 * 承运人服务商
239 279 */
240 280 @TableField(value = "carrierService")
  281 + @ApiModelProperty(value = "承运人服务商")
241 282 private String carrierService;
242 283  
243 284 /**
244 285 * 订单备注
245 286 */
246 287 @TableField(value = "shipmentNote")
  288 + @ApiModelProperty(value = "订单备注")
247 289 private String shipmentNote;
248 290  
249 291 /**
250 292 * 承运商编码
251 293 */
252 294 @TableField(value = "carrierServer")
  295 + @ApiModelProperty(value = "承运商编码")
253 296 private String carrierServer;
254 297  
255 298 /**
256 299 * 承运商名称
257 300 */
258 301 @TableField(value = "carrierServerName")
  302 + @ApiModelProperty(value = "承运商名称")
259 303 private String carrierServerName;
260 304  
261 305 /**
262 306 * 车牌号
263 307 */
264 308 @TableField(value = "plateNumber")
  309 + @ApiModelProperty(value = "车牌号")
265 310 private String plateNumber;
266 311  
267 312 /**
268 313 * 车型
269 314 */
270 315 @TableField(value = "carModel")
  316 + @ApiModelProperty(value = "车型")
271 317 private String carModel;
272 318  
273 319 /**
274 320 * 司机名称
275 321 */
276 322 @TableField(value = "driverName")
  323 + @ApiModelProperty(value = "司机名称")
277 324 private String driverName;
278 325  
279 326 /**
280 327 * 司机联系方式
281 328 */
282 329 @TableField(value = "driverTel")
  330 + @ApiModelProperty(value = "司机联系方式")
283 331 private String driverTel;
284 332  
285 333 /**
286 334 * 创建时间
287 335 */
288 336 @TableField(value = "created")
  337 + @ApiModelProperty(value = "创建时间")
289 338 private Date created;
290 339  
291 340 /**
292 341 * 创建用户
293 342 */
294 343 @TableField(value = "createdBy")
  344 + @ApiModelProperty(value = "创建用户")
295 345 private String createdBy;
296 346  
297 347 /**
298 348 * 创建时间
299 349 */
300 350 @TableField(value = "lastUpdated")
  351 + @ApiModelProperty(value = "创建时间")
301 352 private Date lastUpdated;
302 353  
303 354 /**
304 355 * 更新用户
305 356 */
306 357 @TableField(value = "lastUpdatedBy")
  358 + @ApiModelProperty(value = "更新用户")
307 359 private String lastUpdatedBy;
308 360  
309 361 /**
310 362 * 数据版本
311 363 */
312 364 @TableField(value = "version")
  365 + @ApiModelProperty(value = "数据版本")
313 366 private Integer version;
314 367  
315 368 /**
316 369 * 自定义字段1
317 370 */
318 371 @TableField(value = "userDef1")
  372 + @ApiModelProperty(value = "自定义字段1")
319 373 private String userDef1;
320 374  
321 375 /**
322 376 * 自定义字段2
323 377 */
324 378 @TableField(value = "userDef2")
  379 + @ApiModelProperty(value = "自定义字段2")
325 380 private String userDef2;
326 381  
327 382 /**
328 383 * 自定义字段3
329 384 */
330 385 @TableField(value = "userDef3")
  386 + @ApiModelProperty(value = "自定义字段3")
331 387 private String userDef3;
332 388  
333 389 /**
334 390 * 自定义字段4
335 391 */
336 392 @TableField(value = "userDef4")
  393 + @ApiModelProperty(value = "自定义字段4")
337 394 private String userDef4;
338 395  
339 396 /**
340 397 * 自定义字段5
341 398 */
342 399 @TableField(value = "userDef5")
  400 + @ApiModelProperty(value = "自定义字段5")
343 401 private String userDef5;
344 402  
345 403 /**
346 404 * 自定义字段6
347 405 */
348 406 @TableField(value = "userDef6")
  407 + @ApiModelProperty(value = "自定义字段6")
349 408 private String userDef6;
350 409  
351 410 /**
352 411 * 自定义字段7
353 412 */
354 413 @TableField(value = "userDef7")
  414 + @ApiModelProperty(value = "自定义字段7")
355 415 private String userDef7;
356 416  
357 417 /**
358 418 * 自定义字段8
359 419 */
360 420 @TableField(value = "userDef8")
  421 + @ApiModelProperty(value = "自定义字段8")
361 422 private String userDef8;
362 423  
363 424 /**
364 425 * 处理标记
365 426 */
366 427 @TableField(value = "processStamp")
  428 + @ApiModelProperty(value = "处理标记")
367 429 private String processStamp;
368 430  
  431 + /**
  432 + * 是否删除
  433 + */
  434 + @TableField(value = "deleted")
  435 + @ApiModelProperty(value = "是否删除")
  436 + private Boolean deleted;
  437 +
369 438 private static final long serialVersionUID = 1L;
370 439  
371 440 public static final String COL_WAREHOUSECODE = "warehouseCode";
... ... @@ -483,4 +552,6 @@ public class ShipmentHeader implements Serializable {
483 552 public static final String COL_USERDEF8 = "userDef8";
484 553  
485 554 public static final String COL_PROCESSSTAMP = "processStamp";
  555 +
  556 + public static final String COL_DELETED = "deleted";
486 557 }
487 558 \ No newline at end of file
... ...
src/main/java/com/huaheng/pc/system/menu/service/MenuServiceImpl.java
... ... @@ -22,6 +22,8 @@ import com.huaheng.pc.system.menu.mapper.MenuMapper;
22 22 import com.huaheng.pc.system.role.domain.Role;
23 23 import com.huaheng.pc.system.role.mapper.RoleMenuMapper;
24 24  
  25 +import javax.annotation.Resource;
  26 +
25 27 /**
26 28 * 菜单 业务层处理
27 29 *
... ... @@ -32,10 +34,10 @@ public class MenuServiceImpl implements IMenuService
32 34 {
33 35 public static final String PREMISSION_STRING = "perms[\"{0}\"]";
34 36  
35   - @Autowired
  37 + @Resource
36 38 private MenuMapper menuMapper;
37 39  
38   - @Autowired
  40 + @Resource
39 41 private RoleMenuMapper roleMenuMapper;
40 42  
41 43 /**
... ...
src/main/java/com/huaheng/pc/system/user/controller/LoginController.java
... ... @@ -65,8 +65,7 @@ public class LoginController extends BaseController
65 65  
66 66 @PostMapping(value = "/login")
67 67 @ResponseBody
68   - public AjaxResult ajaxLogin(String username, String password, String warehouse, String warehouseCode, Boolean rememberMe)
69   - {
  68 + public AjaxResult ajaxLogin(String username, String password, String warehouse, String warehouseCode, Boolean rememberMe) {
70 69 if (StringUtils.isNotEmpty(warehouse))
71 70 {
72 71 String[] warehouseArray = warehouse.split(",");
... ...
src/main/resources/mybatis/config/ContainerTypeMapper.xml 0 → 100644
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  3 +<mapper namespace="com.huaheng.pc.config.containerType.mapper.ContainerTypeMapper">
  4 + <resultMap id="BaseResultMap" type="com.huaheng.pc.config.containerType.domain.ContainerType">
  5 + <!--@mbg.generated-->
  6 + <id column="id" jdbcType="INTEGER" property="id" />
  7 + <result column="code" jdbcType="VARCHAR" property="code" />
  8 + <result column="name" jdbcType="VARCHAR" property="name" />
  9 + <result column="warehouseCode" jdbcType="VARCHAR" property="warehouseCode" />
  10 + <result column="companyCode" jdbcType="VARCHAR" property="companyCode" />
  11 + <result column="enable" jdbcType="INTEGER" property="enable" />
  12 + <result column="sequence" jdbcType="INTEGER" property="sequence" />
  13 + <result column="emptyWeight" jdbcType="DECIMAL" property="emptyWeight" />
  14 + <result column="length" jdbcType="DECIMAL" property="length" />
  15 + <result column="width" jdbcType="DECIMAL" property="width" />
  16 + <result column="height" jdbcType="DECIMAL" property="height" />
  17 + <result column="weight" jdbcType="DECIMAL" property="weight" />
  18 + <result column="maxWeight" jdbcType="DECIMAL" property="maxWeight" />
  19 + <result column="fillPercent" jdbcType="INTEGER" property="fillPercent" />
  20 + <result column="useAsDEFAULT" jdbcType="INTEGER" property="useAsDEFAULT" />
  21 + <result column="status" jdbcType="VARCHAR" property="status" />
  22 + <result column="created" jdbcType="TIMESTAMP" property="created" />
  23 + <result column="createdBy" jdbcType="VARCHAR" property="createdBy" />
  24 + <result column="lastUpdated" jdbcType="TIMESTAMP" property="lastUpdated" />
  25 + <result column="lastUpdatedBy" jdbcType="VARCHAR" property="lastUpdatedBy" />
  26 + <result column="version" jdbcType="INTEGER" property="version" />
  27 + <result column="userDef1" jdbcType="VARCHAR" property="userDef1" />
  28 + <result column="userDef2" jdbcType="VARCHAR" property="userDef2" />
  29 + <result column="userDef3" jdbcType="VARCHAR" property="userDef3" />
  30 + <result column="userDef4" jdbcType="VARCHAR" property="userDef4" />
  31 + <result column="userDef5" jdbcType="VARCHAR" property="userDef5" />
  32 + <result column="userDef6" jdbcType="VARCHAR" property="userDef6" />
  33 + <result column="userDef7" jdbcType="VARCHAR" property="userDef7" />
  34 + <result column="userDef8" jdbcType="VARCHAR" property="userDef8" />
  35 + <result column="processStamp" jdbcType="VARCHAR" property="processStamp" />
  36 + </resultMap>
  37 + <sql id="Base_Column_List">
  38 + <!--@mbg.generated-->
  39 + id, code, `name`, warehouseCode, companyCode, `enable`, `sequence`, emptyWeight,
  40 + `length`, width, height, weight, maxWeight, fillPercent, useAsDEFAULT, `status`,
  41 + created, createdBy, lastUpdated, lastUpdatedBy, version, userDef1, userDef2, userDef3,
  42 + userDef4, userDef5, userDef6, userDef7, userDef8, processStamp
  43 + </sql>
  44 +</mapper>
0 45 \ No newline at end of file
... ...
src/main/resources/mybatis/config/LocationTypeMapper.xml 0 → 100644
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  3 +<mapper namespace="com.huaheng.pc.config.locationType.mapper.LocationTypeMapper">
  4 + <resultMap id="BaseResultMap" type="com.huaheng.pc.config.locationType.domain.LocationType">
  5 + <!--@mbg.generated-->
  6 + <id column="id" jdbcType="INTEGER" property="id" />
  7 + <result column="code" jdbcType="VARCHAR" property="code" />
  8 + <result column="warehouseCode" jdbcType="VARCHAR" property="warehouseCode" />
  9 + <result column="name" jdbcType="VARCHAR" property="name" />
  10 + <result column="length" jdbcType="INTEGER" property="length" />
  11 + <result column="width" jdbcType="INTEGER" property="width" />
  12 + <result column="height" jdbcType="INTEGER" property="height" />
  13 + <result column="maxWeight" jdbcType="INTEGER" property="maxWeight" />
  14 + <result column="minQtyUm" jdbcType="VARCHAR" property="minQtyUm" />
  15 + <result column="checkDigit" jdbcType="VARCHAR" property="checkDigit" />
  16 + <result column="maxMaterials" jdbcType="INTEGER" property="maxMaterials" />
  17 + <result column="maxLots" jdbcType="INTEGER" property="maxLots" />
  18 + <result column="maxContainers" jdbcType="INTEGER" property="maxContainers" />
  19 + <result column="enable" jdbcType="INTEGER" property="enable" />
  20 + <result column="created" jdbcType="TIMESTAMP" property="created" />
  21 + <result column="createdBy" jdbcType="VARCHAR" property="createdBy" />
  22 + <result column="lastUpdated" jdbcType="TIMESTAMP" property="lastUpdated" />
  23 + <result column="lastUpdatedBy" jdbcType="VARCHAR" property="lastUpdatedBy" />
  24 + <result column="processStamp" jdbcType="VARCHAR" property="processStamp" />
  25 + </resultMap>
  26 + <sql id="Base_Column_List">
  27 + <!--@mbg.generated-->
  28 + id, code, warehouseCode, `name`, `length`, width, height, maxWeight, minQtyUm, checkDigit,
  29 + maxMaterials, maxLots, maxContainers, `enable`, created, createdBy, lastUpdated,
  30 + lastUpdatedBy, processStamp
  31 + </sql>
  32 +</mapper>
0 33 \ No newline at end of file
... ...
src/main/resources/mybatis/general/ContainerMapper.xml 0 → 100644
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  3 +<mapper namespace="com.huaheng.pc.general.container.mapper.ContainerMapper">
  4 + <resultMap id="BaseResultMap" type="com.huaheng.pc.general.container.domain.Container">
  5 + <!--@mbg.generated-->
  6 + <id column="id" jdbcType="INTEGER" property="id" />
  7 + <result column="name" jdbcType="VARCHAR" property="name" />
  8 + <result column="code" jdbcType="VARCHAR" property="code" />
  9 + <result column="warehouseCode" jdbcType="VARCHAR" property="warehouseCode" />
  10 + <result column="companyCode" jdbcType="VARCHAR" property="companyCode" />
  11 + <result column="containerType" jdbcType="VARCHAR" property="containerType" />
  12 + <result column="created" jdbcType="TIMESTAMP" property="created" />
  13 + <result column="createdBy" jdbcType="VARCHAR" property="createdBy" />
  14 + <result column="lastUpdated" jdbcType="TIMESTAMP" property="lastUpdated" />
  15 + <result column="lastUpdatedBy" jdbcType="VARCHAR" property="lastUpdatedBy" />
  16 + <result column="status" jdbcType="VARCHAR" property="status" />
  17 + <result column="enable" jdbcType="INTEGER" property="enable" />
  18 + <result column="printNum" jdbcType="INTEGER" property="printNum" />
  19 + <result column="version" jdbcType="INTEGER" property="version" />
  20 + <result column="userDef1" jdbcType="VARCHAR" property="userDef1" />
  21 + <result column="userDef2" jdbcType="VARCHAR" property="userDef2" />
  22 + <result column="userDef3" jdbcType="VARCHAR" property="userDef3" />
  23 + <result column="userDef4" jdbcType="VARCHAR" property="userDef4" />
  24 + <result column="userDef5" jdbcType="VARCHAR" property="userDef5" />
  25 + <result column="userDef6" jdbcType="VARCHAR" property="userDef6" />
  26 + <result column="userDef7" jdbcType="VARCHAR" property="userDef7" />
  27 + <result column="userDef8" jdbcType="VARCHAR" property="userDef8" />
  28 + <result column="processStamp" jdbcType="VARCHAR" property="processStamp" />
  29 + </resultMap>
  30 + <sql id="Base_Column_List">
  31 + <!--@mbg.generated-->
  32 + id, `name`, code, warehouseCode, companyCode, containerType, created, createdBy,
  33 + lastUpdated, lastUpdatedBy, `status`, `enable`, printNum, version, userDef1, userDef2,
  34 + userDef3, userDef4, userDef5, userDef6, userDef7, userDef8, processStamp
  35 + </sql>
  36 +</mapper>
0 37 \ No newline at end of file
... ...
src/main/resources/mybatis/general/CustomerMapper.xml 0 → 100644
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  3 +<mapper namespace="com.huaheng.pc.general.customer.mapper.CustomerMapper">
  4 + <resultMap id="BaseResultMap" type="com.huaheng.pc.general.customer.domain.Customer">
  5 + <!--@mbg.generated-->
  6 + <id column="id" jdbcType="INTEGER" property="id" />
  7 + <result column="code" jdbcType="VARCHAR" property="code" />
  8 + <result column="shipToCode" jdbcType="VARCHAR" property="shipToCode" />
  9 + <result column="warehouseCode" jdbcType="VARCHAR" property="warehouseCode" />
  10 + <result column="companyCode" jdbcType="VARCHAR" property="companyCode" />
  11 + <result column="name" jdbcType="VARCHAR" property="name" />
  12 + <result column="address1" jdbcType="VARCHAR" property="address1" />
  13 + <result column="address2" jdbcType="VARCHAR" property="address2" />
  14 + <result column="city" jdbcType="VARCHAR" property="city" />
  15 + <result column="province" jdbcType="VARCHAR" property="province" />
  16 + <result column="country" jdbcType="VARCHAR" property="country" />
  17 + <result column="postalCode" jdbcType="VARCHAR" property="postalCode" />
  18 + <result column="parent" jdbcType="INTEGER" property="parent" />
  19 + <result column="attentionTo" jdbcType="VARCHAR" property="attentionTo" />
  20 + <result column="phoneNum" jdbcType="VARCHAR" property="phoneNum" />
  21 + <result column="mobile" jdbcType="VARCHAR" property="mobile" />
  22 + <result column="faxNum" jdbcType="VARCHAR" property="faxNum" />
  23 + <result column="email" jdbcType="VARCHAR" property="email" />
  24 + <result column="enable" jdbcType="INTEGER" property="enable" />
  25 + <result column="created" jdbcType="TIMESTAMP" property="created" />
  26 + <result column="createdBy" jdbcType="VARCHAR" property="createdBy" />
  27 + <result column="lastUpdated" jdbcType="TIMESTAMP" property="lastUpdated" />
  28 + <result column="lastUpdatedBy" jdbcType="VARCHAR" property="lastUpdatedBy" />
  29 + <result column="version" jdbcType="INTEGER" property="version" />
  30 + <result column="userDef1" jdbcType="VARCHAR" property="userDef1" />
  31 + <result column="userDef2" jdbcType="VARCHAR" property="userDef2" />
  32 + <result column="userDef3" jdbcType="VARCHAR" property="userDef3" />
  33 + <result column="userDef4" jdbcType="VARCHAR" property="userDef4" />
  34 + <result column="userDef5" jdbcType="VARCHAR" property="userDef5" />
  35 + <result column="userDef6" jdbcType="VARCHAR" property="userDef6" />
  36 + <result column="userDef7" jdbcType="VARCHAR" property="userDef7" />
  37 + <result column="userDef8" jdbcType="VARCHAR" property="userDef8" />
  38 + <result column="processStamp" jdbcType="VARCHAR" property="processStamp" />
  39 + </resultMap>
  40 + <sql id="Base_Column_List">
  41 + <!--@mbg.generated-->
  42 + id, code, shipToCode, warehouseCode, companyCode, `name`, address1, address2, city,
  43 + province, country, postalCode, parent, attentionTo, phoneNum, mobile, faxNum, email,
  44 + `enable`, created, createdBy, lastUpdated, lastUpdatedBy, version, userDef1, userDef2,
  45 + userDef3, userDef4, userDef5, userDef6, userDef7, userDef8, processStamp
  46 + </sql>
  47 +</mapper>
0 48 \ No newline at end of file
... ...
src/main/resources/mybatis/general/LocationMapper.xml 0 → 100644
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  3 +<mapper namespace="com.huaheng.pc.general.location.mapper.LocationMapper">
  4 + <resultMap id="BaseResultMap" type="com.huaheng.pc.general.location.domain.Location">
  5 + <!--@mbg.generated-->
  6 + <id column="id" jdbcType="INTEGER" property="id" />
  7 + <result column="code" jdbcType="VARCHAR" property="code" />
  8 + <result column="warehouseCode" jdbcType="VARCHAR" property="warehouseCode" />
  9 + <result column="zoneCode" jdbcType="VARCHAR" property="zoneCode" />
  10 + <result column="locationType" jdbcType="VARCHAR" property="locationType" />
  11 + <result column="containerCode" jdbcType="VARCHAR" property="containerCode" />
  12 + <result column="iRow" jdbcType="INTEGER" property="iRow" />
  13 + <result column="iColumn" jdbcType="INTEGER" property="iColumn" />
  14 + <result column="iLayer" jdbcType="INTEGER" property="iLayer" />
  15 + <result column="iGrid" jdbcType="INTEGER" property="iGrid" />
  16 + <result column="name" jdbcType="VARCHAR" property="name" />
  17 + <result column="enable" jdbcType="INTEGER" property="enable" />
  18 + <result column="lastCycleCountDate" jdbcType="TIMESTAMP" property="lastCycleCountDate" />
  19 + <result column="created" jdbcType="TIMESTAMP" property="created" />
  20 + <result column="createdBy" jdbcType="VARCHAR" property="createdBy" />
  21 + <result column="lastUpdated" jdbcType="TIMESTAMP" property="lastUpdated" />
  22 + <result column="lastUpdatedBy" jdbcType="VARCHAR" property="lastUpdatedBy" />
  23 + <result column="version" jdbcType="INTEGER" property="version" />
  24 + <result column="userDef1" jdbcType="VARCHAR" property="userDef1" />
  25 + <result column="userDef2" jdbcType="VARCHAR" property="userDef2" />
  26 + <result column="userDef3" jdbcType="VARCHAR" property="userDef3" />
  27 + <result column="userDef4" jdbcType="VARCHAR" property="userDef4" />
  28 + <result column="userDef5" jdbcType="VARCHAR" property="userDef5" />
  29 + <result column="userDef6" jdbcType="VARCHAR" property="userDef6" />
  30 + <result column="userDef7" jdbcType="VARCHAR" property="userDef7" />
  31 + <result column="userDef8" jdbcType="VARCHAR" property="userDef8" />
  32 + <result column="systemCreated" jdbcType="INTEGER" property="systemCreated" />
  33 + </resultMap>
  34 + <sql id="Base_Column_List">
  35 + <!--@mbg.generated-->
  36 + id, code, warehouseCode, zoneCode, locationType, containerCode, iRow, iColumn, iLayer,
  37 + iGrid, `name`, `enable`, lastCycleCountDate, created, createdBy, lastUpdated, lastUpdatedBy,
  38 + version, userDef1, userDef2, userDef3, userDef4, userDef5, userDef6, userDef7, userDef8,
  39 + systemCreated
  40 + </sql>
  41 +</mapper>
0 42 \ No newline at end of file
... ...
src/main/resources/mybatis/general/SupplierMapper.xml 0 → 100644
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  3 +<mapper namespace="com.huaheng.pc.general.supplier.mapper.SupplierMapper">
  4 + <resultMap id="BaseResultMap" type="com.huaheng.pc.general.supplier.domain.Supplier">
  5 + <!--@mbg.generated-->
  6 + <id column="id" jdbcType="INTEGER" property="id" />
  7 + <result column="code" jdbcType="VARCHAR" property="code" />
  8 + <result column="warehouseCode" jdbcType="VARCHAR" property="warehouseCode" />
  9 + <result column="companyCode" jdbcType="VARCHAR" property="companyCode" />
  10 + <result column="name" jdbcType="VARCHAR" property="name" />
  11 + <result column="address1" jdbcType="VARCHAR" property="address1" />
  12 + <result column="address2" jdbcType="VARCHAR" property="address2" />
  13 + <result column="city" jdbcType="VARCHAR" property="city" />
  14 + <result column="state" jdbcType="VARCHAR" property="state" />
  15 + <result column="country" jdbcType="VARCHAR" property="country" />
  16 + <result column="postalCode" jdbcType="VARCHAR" property="postalCode" />
  17 + <result column="parent" jdbcType="INTEGER" property="parent" />
  18 + <result column="attentionTo" jdbcType="VARCHAR" property="attentionTo" />
  19 + <result column="phoneNum" jdbcType="VARCHAR" property="phoneNum" />
  20 + <result column="faxNum" jdbcType="VARCHAR" property="faxNum" />
  21 + <result column="email" jdbcType="VARCHAR" property="email" />
  22 + <result column="enable" jdbcType="INTEGER" property="enable" />
  23 + <result column="carrier" jdbcType="VARCHAR" property="carrier" />
  24 + <result column="created" jdbcType="TIMESTAMP" property="created" />
  25 + <result column="createdBy" jdbcType="VARCHAR" property="createdBy" />
  26 + <result column="lastUpdated" jdbcType="TIMESTAMP" property="lastUpdated" />
  27 + <result column="lastUpdatedBy" jdbcType="VARCHAR" property="lastUpdatedBy" />
  28 + <result column="version" jdbcType="INTEGER" property="version" />
  29 + <result column="userDef1" jdbcType="VARCHAR" property="userDef1" />
  30 + <result column="userDef2" jdbcType="VARCHAR" property="userDef2" />
  31 + <result column="userDef3" jdbcType="VARCHAR" property="userDef3" />
  32 + <result column="userDef4" jdbcType="VARCHAR" property="userDef4" />
  33 + <result column="userDef5" jdbcType="VARCHAR" property="userDef5" />
  34 + <result column="userDef6" jdbcType="VARCHAR" property="userDef6" />
  35 + <result column="userDef7" jdbcType="VARCHAR" property="userDef7" />
  36 + <result column="userDef8" jdbcType="VARCHAR" property="userDef8" />
  37 + <result column="processStamp" jdbcType="VARCHAR" property="processStamp" />
  38 + </resultMap>
  39 + <sql id="Base_Column_List">
  40 + <!--@mbg.generated-->
  41 + id, code, warehouseCode, companyCode, `name`, address1, address2, city, `state`,
  42 + country, postalCode, parent, attentionTo, phoneNum, faxNum, email, `enable`, carrier,
  43 + created, createdBy, lastUpdated, lastUpdatedBy, version, userDef1, userDef2, userDef3,
  44 + userDef4, userDef5, userDef6, userDef7, userDef8, processStamp
  45 + </sql>
  46 +</mapper>
0 47 \ No newline at end of file
... ...
src/main/resources/mybatis/receipt/ReceiptDetailMapper.xml
... ... @@ -12,6 +12,7 @@
12 12 <result column="materialName" jdbcType="VARCHAR" property="materialName" />
13 13 <result column="materialSpec" jdbcType="VARCHAR" property="materialSpec" />
14 14 <result column="materialUnit" jdbcType="VARCHAR" property="materialUnit" />
  15 + <result column="supplierCode" jdbcType="VARCHAR" property="supplierCode" />
15 16 <result column="batch" jdbcType="VARCHAR" property="batch" />
16 17 <result column="lot" jdbcType="VARCHAR" property="lot" />
17 18 <result column="qcCheck" jdbcType="VARCHAR" property="qcCheck" />
... ... @@ -48,16 +49,17 @@
48 49 <result column="userDef7" jdbcType="VARCHAR" property="userDef7" />
49 50 <result column="userDef8" jdbcType="VARCHAR" property="userDef8" />
50 51 <result column="processStamp" jdbcType="VARCHAR" property="processStamp" />
  52 + <result column="deleted" jdbcType="BIT" property="deleted" />
51 53 </resultMap>
52 54 <sql id="Base_Column_List">
53 55 <!--@mbg.generated-->
54 56 id, receiptId, receiptCode, warehouseCode, companyCode, materialCode, materialName,
55   - materialSpec, materialUnit, batch, lot, qcCheck, projectNo, manufactureDate, expirationDate,
56   - agingDate, attributeTemplateCode, attribute1, attribute2, attribute3, attribute4,
57   - totalQty, openQty, referCode, referId, referLineNum, locatingRule, inventorySts,
  57 + materialSpec, materialUnit, supplierCode, batch, lot, qcCheck, projectNo, manufactureDate,
  58 + expirationDate, agingDate, attributeTemplateCode, attribute1, attribute2, attribute3,
  59 + attribute4, totalQty, openQty, referCode, referId, referLineNum, locatingRule, inventorySts,
58 60 itemListPrice, itemNetPrice, isVirtualBom, created, createdBy, lastUpdated, lastUpdatedBy,
59 61 version, userDef1, userDef2, userDef3, userDef4, userDef5, userDef6, userDef7, userDef8,
60   - processStamp
  62 + processStamp, deleted
61 63 </sql>
62 64  
63 65 </mapper>
64 66 \ No newline at end of file
... ...
src/main/resources/mybatis/shipment/ShipmentHeaderMapper.xml
1 1 <?xml version="1.0" encoding="UTF-8"?>
2 2 <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
3   -<mapper namespace="com.huaheng.pc.shipment.shipmentHeader.mapper.ShipmentHeaderMapper">
  3 +<mapper namespace="com.huaheng.pc.general.customer.mapper.ShipmentHeaderMapper">
4 4 <resultMap id="BaseResultMap" type="com.huaheng.pc.shipment.shipmentHeader.domain.ShipmentHeader">
5 5 <!--@mbg.generated-->
6 6 <id column="id" jdbcType="INTEGER" property="id" />
... ... @@ -62,6 +62,7 @@
62 62 <result column="userDef7" jdbcType="VARCHAR" property="userDef7" />
63 63 <result column="userDef8" jdbcType="VARCHAR" property="userDef8" />
64 64 <result column="processStamp" jdbcType="VARCHAR" property="processStamp" />
  65 + <result column="deleted" jdbcType="BIT" property="deleted" />
65 66 </resultMap>
66 67 <sql id="Base_Column_List">
67 68 <!--@mbg.generated-->
... ... @@ -73,7 +74,7 @@
73 74 processType, lastWaveId, signValue, carrierCode, carrierService, shipmentNote, carrierServer,
74 75 carrierServerName, plateNumber, carModel, driverName, driverTel, created, createdBy,
75 76 lastUpdated, lastUpdatedBy, version, userDef1, userDef2, userDef3, userDef4, userDef5,
76   - userDef6, userDef7, userDef8, processStamp
  77 + userDef6, userDef7, userDef8, processStamp, deleted
77 78 </sql>
78 79  
79 80  
... ...
src/main/resources/templates/general/warehouse/warehouse.html
... ... @@ -35,18 +35,18 @@
35 35 </div>
36 36 </form>
37 37 </div>
38   - </div>
39   - <div class="btn-group hidden-xs" id="toolbar" role="group">
40   - <a class="btn btn-outline btn-success btn-rounded" onclick="$.operate.add()" shiro:hasPermission="general:warehouse:add">
41   - <i class="fa fa-plus"></i> 新增
42   - </a>
43   - <!--<a class="btn btn-outline btn-danger btn-rounded" onclick="$.operate.batRemove()" shiro:hasPermission="general:warehouse:remove">
44   - <i class="fa fa-trash-o"></i> 删除
45   - </a>-->
46   - </div>
  38 + <div class="btn-group hidden-xs" id="toolbar" role="group">
  39 + <a class="btn btn-outline btn-success btn-rounded" onclick="$.operate.add()" shiro:hasPermission="general:warehouse:add">
  40 + <i class="fa fa-plus"></i> 新增
  41 + </a>
  42 + <!--<a class="btn btn-outline btn-danger btn-rounded" onclick="$.operate.batRemove()" shiro:hasPermission="general:warehouse:remove">
  43 + <i class="fa fa-trash-o"></i> 删除
  44 + </a>-->
  45 + </div>
47 46  
48   - <div class="col-sm-12 select-info">
49   - <table id="bootstrap-table" data-mobile-responsive="true" class="table table-bordered table-hover"></table>
  47 + <div class="col-sm-12 select-info">
  48 + <table id="bootstrap-table" data-mobile-responsive="true" class="table table-bordered table-hover"></table>
  49 + </div>
50 50 </div>
51 51 </div>
52 52 <div th:include="include :: footer"></div>
... ...