no message

main
暴炳林 2024-12-23 17:47:42 +08:00
parent ceec3df1f8
commit e7c658b1fa
2 changed files with 2 additions and 2 deletions

View File

@ -135,6 +135,6 @@
<column name="stock" />
</many-to-one>
</class>
</hibernate-mapping>

View File

@ -2379,7 +2379,7 @@ public class DefaultAutoAllocator extends DefaultBaseManager implements AutoAllo
}else {
String bsql=" from BillTypeConfig b where b.billType.id="+pt.getBillType().getId();
if(ptd.getNewLotInfo().getPropC9()!=null&&!ptd.getNewLotInfo().getPropC9().equals("")) {
if(ptd.getNewLotInfo()!=null&&ptd.getNewLotInfo().getPropC9()!=null&&!ptd.getNewLotInfo().getPropC9().equals("")) {
bsql+=" and b.plantCode='"+ptd.getNewLotInfo().getPropC9()+"'";
}
List<BillTypeConfig> bts=commonDao.findByQuery(bsql);