Commit 99131737 by wuwenlong

判断存货档案是否存在,如果存在返回存货档案,否则新增并返回存货档案

parent f1faf702
......@@ -147,8 +147,8 @@ public class HPPZTools {
/**
* 判断存货名称是否存在,如果存在返回编码,否则新增并返回编码
* @param inventType
* @param inventName
* @param inventType 存货类型
* @param inventName 存货名称
*/
public static String checkAndSavePZ04(Integer inventType, String inventName) {
if(Objects.isNull(inventType)){
......@@ -171,11 +171,17 @@ public class HPPZTools {
/**
* 判断存货档案是否存在,如果存在返回存货档案,否则新增并返回存货档案
* @param inventType
* @param inventName
* @param inventType 存货类型
* @param inventName 存货名称
* @param length 长
* @param width 宽
* @param thick 厚
* @param coefficient 系数
* @param material 材质
* @param unit 单位
*/
public static HPPZ006 checkAndSavePZ06(Integer inventType, String inventCode, String inventName
, BigDecimal length, BigDecimal width, BigDecimal thick, BigDecimal coefficient, String unit) {
public static HPPZ006 checkAndSavePZ06(Integer inventType, String inventName
, BigDecimal length, BigDecimal width, BigDecimal thick, BigDecimal coefficient, String material, String unit) {
if(Objects.isNull(inventType)){
throw new PlatException("存货类型不能为空!");
}
......@@ -192,6 +198,7 @@ public class HPPZTools {
inInfo.set("length", length);
inInfo.set("width", width);
inInfo.set("thick", thick);
inInfo.set("material", material);
inInfo.set("coefficient", coefficient);
inInfo.set("unit", unit);
inInfo.set(EiConstant.serviceName, "HPPZ006");
......
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