|
|
@@ -116,7 +116,7 @@ public class StencilServiceImpl implements StencilService{
|
|
|
StateAssert.submitOnlyEntering(status);
|
|
|
//明细行产品编号不允许重复
|
|
|
SqlRowList rs = baseDao.queryForRowSet("select wm_concat(sp_detno) detno from ( select sp_detno from stenilCanUsePro where SP_STID = "+id+" "
|
|
|
- + "and SP_PRODCODE in (select SP_PRODCODE from stenilCanUsePro where SP_STID = "+id+" group by SP_PRODCODE having count(SP_PRODCODE) > 1) order by sp_detno asc ) ");
|
|
|
+ + "and SP_PRODCODE in (select SP_PRODCODE from stenilCanUsePro where SP_STID = "+id+" group by SP_PRODCODE,sp_bm_user having count(SP_PRODCODE) > 1) order by sp_detno asc ) ");
|
|
|
if(rs.next() && StringUtil.hasText(rs.getGeneralString("detno"))){
|
|
|
BaseUtil.showError("行:"+rs.getGeneralString("detno")+",产品重复,不允许提交!");
|
|
|
}
|