使用实体类作为参数新增的时候要注意点

在sql.xml文件中给实体类取别名采用以下方法 alias是别名的意思type为实体类的路径
<typeAlias alias="xhhSale_veg_info" type="com.zhdtech.web.salemarket.model.SaleMarVegEntryInfo"/>
新增类型要与实体类中的字段名称对应

猜你喜欢

转载自sunny-xhh.iteye.com/blog/2216764