-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
苗利涛
committed
Jul 4, 2018
1 parent
481688c
commit 6a598ed
Showing
7 changed files
with
578 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE generatorConfiguration | ||
PUBLIC "-//mybatis.org//DTD MyBatis Generator Configuration 1.0//EN" | ||
"http://mybatis.org/dtd/mybatis-generator-config_1_0.dtd"> | ||
<generatorConfiguration> | ||
<!-- 配置mysql 驱动jar包路径.路径 --> | ||
<classPathEntry location="mysql-connector-java-5.1.35.jar"/> | ||
<context id="mysql"> | ||
<!-- 为了防止生成的代码中有很多注释,比较难看,加入下面的配置控制 --> | ||
<commentGenerator> | ||
<property name="suppressDate" value="true"/> | ||
<property name="suppressAllComments" value="true"/> | ||
</commentGenerator> | ||
<!-- 注释控制完毕 --> | ||
|
||
<!-- 数据库连接 --> | ||
<jdbcConnection driverClass="com.mysql.jdbc.Driver" connectionURL="jdbc:mysql://rm-bp116802eans1qf74.mysql.rds.aliyuncs.com:3306/xyy_saas_zhl?characterEncoding=utf8" userId="wang_zhenyu" password="ADEMRzNJD25uKOq9CbmkYWRxLpaxb5"> | ||
</jdbcConnection> | ||
<javaTypeResolver> | ||
<property name="forceBigDecimals" value="false"/> | ||
</javaTypeResolver> | ||
|
||
<!-- 数据表对应的model 层 --> | ||
<javaModelGenerator targetPackage="com.xyy.saas.web.schedule.po" targetProject="src/main/java"> | ||
<property name="enableSubPackages" value="true"/> | ||
<property name="trimStrings" value="true"/> | ||
</javaModelGenerator> | ||
<!-- sql mapper 隐射配置文件 --> | ||
<sqlMapGenerator targetPackage="mapper.schedule" targetProject="src/main/resources"> | ||
<property name="enableSubPackages" value="true"/> | ||
</sqlMapGenerator> | ||
<!-- 在ibatis2 中是dao层,但在mybatis3中,其实就是mapper接口 --> | ||
<javaClientGenerator type="XMLMAPPER" targetPackage="com.xyy.saas.web.schedule.dao" targetProject="src/main/java"> | ||
<property name="enableSubPackages" value="true"/> | ||
</javaClientGenerator> | ||
<!-- 要对那些数据表进行生成操作,必须要有一个. --> | ||
<table tableName="saas_sale_out_detail" domainObjectName="SaleOutDetailPo" enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false"></table> | ||
</context> | ||
</generatorConfiguration> |
Binary file not shown.
Binary file not shown.
17 changes: 17 additions & 0 deletions
17
src/main/java/com/xyy/saas/web/schedule/dao/SaleOutDetailPoMapper.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package com.xyy.saas.web.schedule.dao; | ||
|
||
import com.xyy.saas.web.schedule.po.SaleOutDetailPo; | ||
|
||
public interface SaleOutDetailPoMapper { | ||
int deleteByPrimaryKey(Long id); | ||
|
||
int insert(SaleOutDetailPo record); | ||
|
||
int insertSelective(SaleOutDetailPo record); | ||
|
||
SaleOutDetailPo selectByPrimaryKey(Long id); | ||
|
||
int updateByPrimaryKeySelective(SaleOutDetailPo record); | ||
|
||
int updateByPrimaryKey(SaleOutDetailPo record); | ||
} |
225 changes: 225 additions & 0 deletions
225
src/main/java/com/xyy/saas/web/schedule/po/SaleOutDetailPo.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,225 @@ | ||
package com.xyy.saas.web.schedule.po; | ||
|
||
import java.math.BigDecimal; | ||
|
||
public class SaleOutDetailPo { | ||
private Long id; | ||
|
||
private Long saleOutId; | ||
|
||
private String businessId; | ||
|
||
private String drugNumber; | ||
|
||
private String drugSpecification; | ||
|
||
private String unitName; | ||
|
||
private String manufacturerName; | ||
|
||
private String approvalNumber; | ||
|
||
private String producingArea; | ||
|
||
private BigDecimal receiveNumber; | ||
|
||
private BigDecimal confirmNumber; | ||
|
||
private Integer pullYn; | ||
|
||
private BigDecimal taxPrice; | ||
|
||
private BigDecimal totalTaxAmount; | ||
|
||
private String batchNumber; | ||
|
||
private String producedDate; | ||
|
||
private String expiredDate; | ||
|
||
private String drugStoreId; | ||
|
||
private Long productId; | ||
|
||
private String productNumber; | ||
|
||
private String productName; | ||
|
||
private BigDecimal discountAmount; | ||
|
||
public Long getId() { | ||
return id; | ||
} | ||
|
||
public void setId(Long id) { | ||
this.id = id; | ||
} | ||
|
||
public Long getSaleOutId() { | ||
return saleOutId; | ||
} | ||
|
||
public void setSaleOutId(Long saleOutId) { | ||
this.saleOutId = saleOutId; | ||
} | ||
|
||
public String getBusinessId() { | ||
return businessId; | ||
} | ||
|
||
public void setBusinessId(String businessId) { | ||
this.businessId = businessId == null ? null : businessId.trim(); | ||
} | ||
|
||
public String getDrugNumber() { | ||
return drugNumber; | ||
} | ||
|
||
public void setDrugNumber(String drugNumber) { | ||
this.drugNumber = drugNumber == null ? null : drugNumber.trim(); | ||
} | ||
|
||
public String getDrugSpecification() { | ||
return drugSpecification; | ||
} | ||
|
||
public void setDrugSpecification(String drugSpecification) { | ||
this.drugSpecification = drugSpecification == null ? null : drugSpecification.trim(); | ||
} | ||
|
||
public String getUnitName() { | ||
return unitName; | ||
} | ||
|
||
public void setUnitName(String unitName) { | ||
this.unitName = unitName == null ? null : unitName.trim(); | ||
} | ||
|
||
public String getManufacturerName() { | ||
return manufacturerName; | ||
} | ||
|
||
public void setManufacturerName(String manufacturerName) { | ||
this.manufacturerName = manufacturerName == null ? null : manufacturerName.trim(); | ||
} | ||
|
||
public String getApprovalNumber() { | ||
return approvalNumber; | ||
} | ||
|
||
public void setApprovalNumber(String approvalNumber) { | ||
this.approvalNumber = approvalNumber == null ? null : approvalNumber.trim(); | ||
} | ||
|
||
public String getProducingArea() { | ||
return producingArea; | ||
} | ||
|
||
public void setProducingArea(String producingArea) { | ||
this.producingArea = producingArea == null ? null : producingArea.trim(); | ||
} | ||
|
||
public BigDecimal getReceiveNumber() { | ||
return receiveNumber; | ||
} | ||
|
||
public void setReceiveNumber(BigDecimal receiveNumber) { | ||
this.receiveNumber = receiveNumber; | ||
} | ||
|
||
public BigDecimal getConfirmNumber() { | ||
return confirmNumber; | ||
} | ||
|
||
public void setConfirmNumber(BigDecimal confirmNumber) { | ||
this.confirmNumber = confirmNumber; | ||
} | ||
|
||
public Integer getPullYn() { | ||
return pullYn; | ||
} | ||
|
||
public void setPullYn(Integer pullYn) { | ||
this.pullYn = pullYn; | ||
} | ||
|
||
public BigDecimal getTaxPrice() { | ||
return taxPrice; | ||
} | ||
|
||
public void setTaxPrice(BigDecimal taxPrice) { | ||
this.taxPrice = taxPrice; | ||
} | ||
|
||
public BigDecimal getTotalTaxAmount() { | ||
return totalTaxAmount; | ||
} | ||
|
||
public void setTotalTaxAmount(BigDecimal totalTaxAmount) { | ||
this.totalTaxAmount = totalTaxAmount; | ||
} | ||
|
||
public String getBatchNumber() { | ||
return batchNumber; | ||
} | ||
|
||
public void setBatchNumber(String batchNumber) { | ||
this.batchNumber = batchNumber == null ? null : batchNumber.trim(); | ||
} | ||
|
||
public String getProducedDate() { | ||
return producedDate; | ||
} | ||
|
||
public void setProducedDate(String producedDate) { | ||
this.producedDate = producedDate == null ? null : producedDate.trim(); | ||
} | ||
|
||
public String getExpiredDate() { | ||
return expiredDate; | ||
} | ||
|
||
public void setExpiredDate(String expiredDate) { | ||
this.expiredDate = expiredDate == null ? null : expiredDate.trim(); | ||
} | ||
|
||
public String getDrugStoreId() { | ||
return drugStoreId; | ||
} | ||
|
||
public void setDrugStoreId(String drugStoreId) { | ||
this.drugStoreId = drugStoreId == null ? null : drugStoreId.trim(); | ||
} | ||
|
||
public Long getProductId() { | ||
return productId; | ||
} | ||
|
||
public void setProductId(Long productId) { | ||
this.productId = productId; | ||
} | ||
|
||
public String getProductNumber() { | ||
return productNumber; | ||
} | ||
|
||
public void setProductNumber(String productNumber) { | ||
this.productNumber = productNumber == null ? null : productNumber.trim(); | ||
} | ||
|
||
public String getProductName() { | ||
return productName; | ||
} | ||
|
||
public void setProductName(String productName) { | ||
this.productName = productName == null ? null : productName.trim(); | ||
} | ||
|
||
public BigDecimal getDiscountAmount() { | ||
return discountAmount; | ||
} | ||
|
||
public void setDiscountAmount(BigDecimal discountAmount) { | ||
this.discountAmount = discountAmount; | ||
} | ||
} |
Oops, something went wrong.