|
|
@@ -154,9 +154,11 @@ public class STKServiceImpl implements STKService {
|
|
|
if(bo_mothercode==null){
|
|
|
return Result.error("BOM母件编号不存在!");
|
|
|
}
|
|
|
- baseDao.procedure("SP_COSTCOUNT", new Object[] { bomId, bo_mothercode, "最新采购单价" });
|
|
|
- bomPrint(Integer.valueOf(bomId),"BOM!BOMCostDetail!Print");
|
|
|
-
|
|
|
+ int count = baseDao.getCount("select count(1) from bomcostMsgLog where trunc(costcountdate_)=trunc(sysdate) and bomid_=" + bomId);
|
|
|
+ if (count==0) {
|
|
|
+ baseDao.procedure("SP_COSTCOUNT", new Object[] { bomId, bo_mothercode, "最新采购单价" });
|
|
|
+ bomPrint(Integer.valueOf(bomId),"BOM!BOMCostDetail!Print");
|
|
|
+ }
|
|
|
int pageNum = 1;
|
|
|
int pageSize = 20;
|
|
|
if (bomReq !=null){
|
|
|
@@ -366,7 +368,7 @@ public class STKServiceImpl implements STKService {
|
|
|
SQLStr = "update BomStruct set bs_m=0 where bs_topbomid=" + id + " and bs_m is null ";
|
|
|
baseDao.execute(SQLStr);
|
|
|
//调用存储过程每个客户特殊的代码更新
|
|
|
- baseDao.procedure("SP_COSTCOUNT_AFTER", new Object[] { id});
|
|
|
+ baseDao.procedure("SP_COSTCOUNT_AFTER_MSG", new Object[] { id});
|
|
|
|
|
|
}
|
|
|
|