Authored by qianjun

update

... ... @@ -19,21 +19,21 @@
### 例如,根据品牌id获取jit供应商,筛选有效合同
```sql
<select id="selectValidJitSupplierBySupplierId" resultMap="BaseResultMap">
<bind name="size" value="@com.yohobuy.platform.common.util.SqlUtils@getSize(supplierIds)" />
<select id="selectValidJitSupplierByAgreementId" resultMap="BaseResultMap">
<bind name="size" value="@com.yohobuy.platform.common.util.SqlUtils@getSize(agreementIds)" />
select <include refid="Base_Column_List" />
from agreement
<where>
<if test="supplierIds !=null and size!=0">
supplier_id in
<foreach collection="supplierIds" item="supplierId" open="(" separator="," close=")">
#{supplierId}
<if test="agreementIds !=null and size!=0">
agreement_id in
<foreach collection="agreementIds" item="agreementId" open="(" separator="," close=")">
#{agreementId}
</foreach>
</if>
and agreement_end_time > FROM_UNIXTIME(UNIX_TIMESTAMP(),'%Y-%m-%d') and
operations != 3 and `status` in (200,500,900) and end_agreement = 'N' and business_model = 7
</where>
</select>
</select>
```
## 根据品牌id获取可用分类或根据品牌id和JIT供应商ID获取可用分类
... ...