md
This commit is contained in:
parent
2f316317e7
commit
7ad11bc782
@ -117,10 +117,10 @@ public interface EmisWaybillMapper extends BaseMapper<EmisWaybill>
|
|||||||
public int updateTransferInfo(EmisWaybill emisWaybill);
|
public int updateTransferInfo(EmisWaybill emisWaybill);
|
||||||
|
|
||||||
// 检查子单是否存在
|
// 检查子单是否存在
|
||||||
public int checkSubBillIsExists(@Param("billCode")String billCode,@Param("subNum") Integer subNum);
|
public int checkDbSubBillIsExists(@Param("billCode")String billCode,@Param("subNum") Integer subNum);
|
||||||
|
|
||||||
// 检查主单是否存在
|
// 检查主单是否存在
|
||||||
public int checkWaybillIsExists(@Param("billCode")String billCode);
|
public int checkDbWaybillIsExists(@Param("billCode")String billCode);
|
||||||
|
|
||||||
public int checkWaybillIsSign(@Param("billCode")String billCode);
|
public int checkWaybillIsSign(@Param("billCode")String billCode);
|
||||||
|
|
||||||
|
|||||||
@ -172,7 +172,7 @@ public class EmisBaseService {
|
|||||||
*/
|
*/
|
||||||
public String getMainBillCode(String billCode){
|
public String getMainBillCode(String billCode){
|
||||||
// 查询数据看下是否主单,如果不是则同样剔除4位
|
// 查询数据看下是否主单,如果不是则同样剔除4位
|
||||||
boolean isExists=checkWaybillIsExists(billCode);
|
boolean isExists=emisWaybillMapper.checkDbWaybillIsExists(billCode)==1;
|
||||||
if(isExists){
|
if(isExists){
|
||||||
return billCode;
|
return billCode;
|
||||||
}
|
}
|
||||||
@ -1405,7 +1405,7 @@ public class EmisBaseService {
|
|||||||
String queryBillCode=billCode.trim();
|
String queryBillCode=billCode.trim();
|
||||||
|
|
||||||
// 查询数据看下是否主单,如果不是则同样剔除4位
|
// 查询数据看下是否主单,如果不是则同样剔除4位
|
||||||
boolean isExists=emisWaybillMapper.checkWaybillIsExists(queryBillCode)==1;
|
boolean isExists=emisWaybillMapper.checkDbWaybillIsExists(queryBillCode)==1;
|
||||||
if(isExists){
|
if(isExists){
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@ -1419,7 +1419,7 @@ public class EmisBaseService {
|
|||||||
String mainBillCode=queryBillCode.substring(0,len-4);
|
String mainBillCode=queryBillCode.substring(0,len-4);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
return emisWaybillMapper.checkSubBillIsExists(mainBillCode,Integer.valueOf(subNumStr))==1;
|
return emisWaybillMapper.checkDbSubBillIsExists(mainBillCode,Integer.valueOf(subNumStr))==1;
|
||||||
}catch (Exception ex){
|
}catch (Exception ex){
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -2069,7 +2069,7 @@ public class EmisBaseService {
|
|||||||
// System.out.println(packageWJC);
|
// System.out.println(packageWJC);
|
||||||
// System.out.println(package3dm);
|
// System.out.println(package3dm);
|
||||||
|
|
||||||
String billCode="T7080300200ab";
|
String billCode="T70803000037160001";
|
||||||
|
|
||||||
boolean isSubBill=false;
|
boolean isSubBill=false;
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user