| | |
| | | }); |
| | | return goodsModelList; |
| | | } |
| | | |
| | | @Override |
| | | public List<LWhProcureModel> getModelByForm1(WhBusinessEnum businessType, Long businessId) { |
| | | StringBuilder sql = new StringBuilder("SELECT * FROM L_WH_PROCURE_MODEL WHERE 1=1 "); |
| | | HashMap<String, Object> paramts = new HashMap<>(); |
| | | if (businessType != null) { |
| | | sql.append(" and BUSINESS_TYPE=:businessType "); |
| | | paramts.put("businessType", businessType.getValue()); |
| | | } |
| | | if (businessId != null) { |
| | | sql.append(" and BUSINESS_ID=:businessId "); |
| | | paramts.put("businessId", businessId); |
| | | } |
| | | List<LWhProcureModel> select = select(sql.toString(), paramts, new LWhProcureModel()); |
| | | return select; |
| | | } |
| | | } |