@Table("products_repertory")
public class ProductsRepertory {
@Id
@Column
private long id;
// 库房id
@Column
private long warehouse_id;
//产品id 对应一种医疗商品
@Column
private long mp_id;
//类型id
@Column
private long type_id;
//生成日期
@Column
private Date make_date;
//有效期
@Column
private Date invalid_date;
//批号
@Column
private String lot_number;
//入库日期
@Column
private String inbound_date;
//基本单位
@Column
private String base_unit;
//基本单位数量
@Column
private String base_count;
//包装单位
@Column
private String packing_unit;
//包装数量
@Column
private String count;
@One(field = "type_id")
private ProductsType productsType;
@One(field = "id")
private Warehouse warehouse;
@One(field = "products_id")
private MedicalProducts products;
org.nutz.dao.DaoException: Invalid @One(field=products_id) 'products' : class com.liqi.supplychain.repertory.bean.ProductsRepertory<=>class com.liqi.supplychain.repertory.bean.MedicalProducts
at org.nutz.dao.impl.entity.field.OneLinkField.<init>(OneLinkField.java:38)
at org.nutz.dao.impl.entity.AnnotationEntityMaker.make(AnnotationEntityMaker.java:271)
at org.nutz.dao.impl.EntityHolder.getEntity(EntityHolder.java:72)
at org.nutz.dao.impl.NutDao.count(NutDao.java:685)
at com.liqi.supplychain.repertory.module.ProductsManageModule.loadProduList(ProductsManageModule.java:92)
at com.liqi.supplychain.repertory.module.ProductsManageModule$FM$loadProduList$f602476a31a7553b6183200fcee95599.invoke(ProductsManageModule.java)
at org.nutz.mvc.impl.processor.MethodInvokeProcessor.process(MethodInvokeProcessor.java:31)
at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
at org.nutz.mvc.impl.processor.AdaptorProcessor.process(AdaptorProcessor.java:33)
at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
at org.nutz.mvc.impl.processor.ActionFiltersProcessor.process(ActionFiltersProcessor.java:58)
at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
at org.nutz.integration.shiro.NutShiroProcessor.process(NutShiroProcessor.java:126)
at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
at org.nutz.mvc.impl.processor.ModuleProcessor.process(ModuleProcessor.java:123)
at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
at org.nutz.mvc.impl.processor.EncodingProcessor.process(EncodingProcessor.java:27)
at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
at org.nutz.mvc.impl.processor.UpdateRequestAttributesProcessor.process(UpdateRequestAttributesProcessor.java:15)
at org.nutz.mvc.impl.NutActionChain.doChain(NutActionChain.java:44)
at org.nutz.mvc.impl.ActionInvoker.invoke(ActionInvoker.java:67)
at org.nutz.mvc.ActionHandler.handle(ActionHandler.java:31)
at org.nutz.mvc.NutFilter.doFilter(NutFilter.java:202)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)
at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)
at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)
at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)
at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at com.liqi.supplychain.system.filter.EncodingFilter.doFilter(EncodingFilter.java:30)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:957)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:423)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1079)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:620)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:318)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
2017-10-23 17:40:07,434 [Timer-0] DEBUG com.mchange.v2.resourcepool.BasicResourcePool - Checking for expired resources - Mon Oct 23 17:40:07 CST 2017 [com.mchange.v2.resourcepool.BasicResourcePool@282e10bc]
2017-10-23 17:40:07,434 [Timer-0] DEBUG com.mchange.v2.resourcepool.BasicResourcePool - BEGIN check for expired resources. [com.mchange.v2.resourcepool.BasicResourcePool@282e10bc]
2017-10-23 17:40:07,435 [Timer-0] DEBUG com.mchange.v2.resourcepool.BasicResourcePool - FINISHED check for expired resources. [com.mchange.v2.resourcepool.BasicResourcePool@282e10bc]
@Table("medical_products")
public class MedicalProducts {
@Id
@Column()
private long products_id;
//产品编码
@Column
private String code;
// 产品内部编码
@Column
private String internal_code;
//助记码
@Column
private String mnemonic_code;
//通用名
@Column
private String general_name;
//别名
@Column
private String alias;
//是否GSP 管控
@Column("is_GSP")
private int isGSP;
//基本单位
@Column
private String basic_unit;
//基本单位规格
@Column
private String spec;
// 参考库存
@Column
private int reference_repertory;
//参看入库价格
@Column
private int reference_price;
//产地
@Column
private String origin;
// 条码
@Column
private String barcode;
//平台
@Column
private String brand;
//生产厂商名
@Column
private String manufacturer;
//供应商id
@Column
private long supplier_id;
//供应商名称
@Column
private String supplier;
//批准文号
@Column
private String approval_number;
//包装规格
@Column
private String packing_spec;
//包装总数量
@Column
private String packing_amount;
//药品剂型
@Column
private String dosage_form;
//是否是处方药
@Column
private int is_Rx_drug;
//药品类别ID
@Column
private long type_id;
// 一对一关联产品分类
@One(target = ProductsType.class, field = "type_id")
private ProductsType classify;
//审批状态
@Column
private int approval_status;