Commit a155e034 by liuyang

2024-10-24 打包单

parent 2fcef0eb
......@@ -195,6 +195,9 @@ public class HGConstant {
//采购询价单号
public static final String INQUIRY_NUMBER = "INQUIRY_NUMBER";
//打包单号
public static final String PACK_CODE = "PACK_CODE";
}
/**
......
......@@ -59,4 +59,27 @@ public class HgKcConst {
public static final Integer S3 = 3;
}
}
/**
* HGKC014 定义
*
* @author:songx
* @date:2024/1/20,16:45
*/
public static class HgKc017 {
/**
* 提交状态
*
* @author:songx
* @date:2024/5/15,15:18
*/
public static class Status {
// 未提交
public static final Integer S0 = 0;
// 已提交
public static final Integer S1 = 1;
}
}
}
......@@ -331,13 +331,14 @@
LENGTH as "length", <!-- 长度 -->
WIDTH as "width", <!-- 宽度 -->
THICK as "thick", <!-- 厚度 -->
INV_QTY as "invQty", <!-- 库存数量 -->
SUM(INV_QTY) as "invQty", <!-- 库存数量 -->
INV_UNIT_WEIGHT as "invUnitWeight", <!-- 库存单重 -->
INV_WEIGHT as "invWeight", <!-- 库存重量 -->
SUM(INV_WEIGHT) as "invWeight", <!-- 库存重量 -->
INVENT_TYPE_DETAIL as "inventTypeDetail"
FROM ${hggpSchema}.HGKC010
WHERE 1=1
<include refid="condition"/>
group by INVENT_TYPE, INVENT_CODE, INVENT_NAME, SPEC_ID, SPEC, LENGTH, WIDTH, THICK, INV_UNIT_WEIGHT, INVENT_TYPE_DETAIL
</select>
<!--规格下拉框-->
......
......@@ -11,27 +11,7 @@ import com.baosight.hggp.hg.constant.HGConstant;
import com.baosight.hggp.hg.constant.HGSqlConstant;
import com.baosight.hggp.hg.kc.constant.HgKcSqlConst;
import com.baosight.hggp.hg.kc.constant.HgKcSqlConstant;
import com.baosight.hggp.hg.kc.domain.HGKC001;
import com.baosight.hggp.hg.kc.domain.HGKC002;
import com.baosight.hggp.hg.kc.domain.HGKC003;
import com.baosight.hggp.hg.kc.domain.HGKC004;
import com.baosight.hggp.hg.kc.domain.HGKC004A;
import com.baosight.hggp.hg.kc.domain.HGKC005;
import com.baosight.hggp.hg.kc.domain.HGKC006;
import com.baosight.hggp.hg.kc.domain.HGKC006A;
import com.baosight.hggp.hg.kc.domain.HGKC007;
import com.baosight.hggp.hg.kc.domain.HGKC007A;
import com.baosight.hggp.hg.kc.domain.HGKC008;
import com.baosight.hggp.hg.kc.domain.HGKC008A;
import com.baosight.hggp.hg.kc.domain.HGKC010;
import com.baosight.hggp.hg.kc.domain.HGKC010A;
import com.baosight.hggp.hg.kc.domain.HGKC011;
import com.baosight.hggp.hg.kc.domain.HGKC013;
import com.baosight.hggp.hg.kc.domain.HGKC013A;
import com.baosight.hggp.hg.kc.domain.HGKC014;
import com.baosight.hggp.hg.kc.domain.HGKC014A;
import com.baosight.hggp.hg.kc.domain.HGKC015;
import com.baosight.hggp.hg.kc.domain.HGKC015A;
import com.baosight.hggp.hg.kc.domain.*;
import com.baosight.hggp.hg.kc.utils.HGKCUtils;
import com.baosight.hggp.hg.pz.domain.HGPZ005;
import com.baosight.hggp.hg.pz.domain.HGPZ005A;
......@@ -1786,5 +1766,97 @@ public class HGKCTools {
}
}
}
public static class HgKc016 {
public static HGKC016 getById(Long id) {
AssertUtils.isEmpty(Collections.singleton(id), "打包库存ID不能为空");
Map<String, Object> paramMap = new HashMap<>();
paramMap.put("id", id);
paramMap.put("deleteFlag", 0);
List<HGKC016> list = DaoBase.getInstance().query(HGKC016.QUERY, paramMap);
return CollectionUtils.isEmpty(list) ? null : list.get(0);
}
public static List<HGKC016> getById(List<Long> ids) {
if (Objects.isNull(ids)) {
return new ArrayList<>();
}
Map<String, Object> paramMap = new HashMap<>();
paramMap.put("ids", ids);
paramMap.put("deleteFlag", 0);
List<HGKC016> list = DaoBase.getInstance().query(HGKC016.QUERY, paramMap);
return CollectionUtils.isEmpty(list) ? null : list;
}
}
public static class HgKc016a {
public static List<HGKC016A> getByParentId(Long parentId) {
if (Objects.isNull(parentId)) {
return new ArrayList<>();
}
Map<String, Object> paramMap = new HashMap<>();
paramMap.put("parentId", parentId);
paramMap.put("deleteFlag", 0);
List<HGKC016A> list = DaoBase.getInstance().query(HGKC016A.QUERY, paramMap);
return CollectionUtils.isEmpty(list) ? null : list;
}
public static List<HGKC016A> getByParentId(List<Long> parentIds) {
if (Objects.isNull(parentIds)) {
return new ArrayList<>();
}
Map<String, Object> paramMap = new HashMap<>();
paramMap.put("parentIds", parentIds);
paramMap.put("deleteFlag", 0);
List<HGKC016A> list = DaoBase.getInstance().query(HGKC016A.QUERY, paramMap);
return CollectionUtils.isEmpty(list) ? null : list;
}
}
public static class HgKc017 {
public static HGKC017 getById(Long id) {
AssertUtils.isEmpty(Collections.singleton(id), "打包单ID不能为空!");
Map<String, Object> paramMap = new HashMap<>();
paramMap.put("parentId", id);
paramMap.put("deleteFlag", 0);
List<HGKC017> list = DaoBase.getInstance().query(HGKC017.QUERY, paramMap);
return CollectionUtils.isEmpty(list) ? null : list.get(0);
}
public static List<HGKC017> getById(List<Long> ids) {
if (Objects.isNull(ids)) {
return new ArrayList<>();
}
Map<String, Object> paramMap = new HashMap<>();
paramMap.put("ids", ids);
paramMap.put("deleteFlag", 0);
List<HGKC017> list = DaoBase.getInstance().query(HGKC017.QUERY, paramMap);
return CollectionUtils.isEmpty(list) ? null : list;
}
}
public static class HgKc017a {
public static List<HGKC017A> getByParentId(Long parentId) {
if (Objects.isNull(parentId)) {
return new ArrayList<>();
}
Map<String, Object> paramMap = new HashMap<>();
paramMap.put("parentId", parentId);
paramMap.put("deleteFlag", 0);
List<HGKC017A> list = DaoBase.getInstance().query(HGKC017A.QUERY, paramMap);
return CollectionUtils.isEmpty(list) ? null : list;
}
public static List<HGKC017A> getByParentId(List<Long> parentIds) {
if (Objects.isNull(parentIds)) {
return new ArrayList<>();
}
Map<String, Object> paramMap = new HashMap<>();
paramMap.put("parentIds", parentIds);
paramMap.put("deleteFlag", 0);
List<HGKC017A> list = DaoBase.getInstance().query(HGKC017A.QUERY, paramMap);
return CollectionUtils.isEmpty(list) ? null : list;
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment