- 说来也简单
- 就是创建一个string切片
- type a []string
- var query []a
- 然后将a,b append到type a中
- 然后在将type a append到query中
type codeQuery []string
var querys []codeQuery
//1、遍历Input获得itemcode
orm := core.Db.Begin()
for _, v := range argIn.List {
var codeq codeQuery
codeq = append(codeq, v.ItemCode)
codeq = append(codeq, v.ParentCode)
querys = append(querys, codeq)
}
rs := orm.Where("store_group_id=?", argIn.List[0].StoreGroupID).Where("(item_code,parent_code) not in (?)", querys).Delete(&entity.PhysicalExaminationType{})