Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
JSH ERP
Commits
2aaad2bc
Commit
2aaad2bc
authored
Nov 26, 2016
by
季圣华
Browse files
新增收支项目和结算账户功能
parent
55135aca
Changes
62
Hide whitespace changes
Inline
Side-by-side
src/com/jsh/dao/basic/AccountDAO.java
0 → 100644
View file @
2aaad2bc
package
com.jsh.dao.basic
;
import
com.jsh.base.BaseDAO
;
import
com.jsh.model.po.Account
;
public
class
AccountDAO
extends
BaseDAO
<
Account
>
implements
AccountIDAO
{
/**
* 设置dao映射基类
* @return
*/
@Override
public
Class
<
Account
>
getEntityClass
()
{
return
Account
.
class
;
}
}
src/com/jsh/dao/basic/AccountIDAO.java
0 → 100644
View file @
2aaad2bc
package
com.jsh.dao.basic
;
import
com.jsh.base.BaseIDAO
;
import
com.jsh.model.po.Account
;
public
interface
AccountIDAO
extends
BaseIDAO
<
Account
>
{
}
src/com/jsh/dao/basic/InOutItemDAO.java
0 → 100644
View file @
2aaad2bc
package
com.jsh.dao.basic
;
import
com.jsh.base.BaseDAO
;
import
com.jsh.model.po.InOutItem
;
public
class
InOutItemDAO
extends
BaseDAO
<
InOutItem
>
implements
InOutItemIDAO
{
/**
* 设置dao映射基类
* @return
*/
@Override
public
Class
<
InOutItem
>
getEntityClass
()
{
return
InOutItem
.
class
;
}
}
src/com/jsh/dao/basic/InOutItemIDAO.java
0 → 100644
View file @
2aaad2bc
package
com.jsh.dao.basic
;
import
com.jsh.base.BaseIDAO
;
import
com.jsh.model.po.InOutItem
;
public
interface
InOutItemIDAO
extends
BaseIDAO
<
InOutItem
>
{
}
src/com/jsh/dao/materials/DepotItemDAO.java
View file @
2aaad2bc
...
...
@@ -36,24 +36,4 @@ public class DepotItemDAO extends BaseDAO<DepotItem> implements DepotItemIDAO
pageUtil
.
setTotalCount
(
query
.
list
().
size
());
pageUtil
.
setPageList
(
query
.
list
());
}
@SuppressWarnings
(
"unchecked"
)
@Override
public
void
findOrderByMaterial
(
PageUtil
<
DepotItem
>
pageUtil
)
throws
JshException
{
//多表联查,多表连查,此处用到了createSQLQuery,可以随便写sql语句,很方便
Query
query
=
this
.
getHibernateTemplate
().
getSessionFactory
().
getCurrentSession
().
createSQLQuery
(
"select * from jsh_depotitem where 1=1 "
+
SearchConditionUtil
.
getCondition
(
pageUtil
.
getAdvSearch
()));
pageUtil
.
setTotalCount
(
query
.
list
().
size
());
// 分页查询
int
pageNo
=
pageUtil
.
getCurPage
();
int
pageSize
=
pageUtil
.
getPageSize
();
if
(
0
!=
pageNo
&&
0
!=
pageSize
)
{
query
.
setFirstResult
((
pageNo
-
1
)
*
pageSize
);
query
.
setMaxResults
(
pageSize
);
}
pageUtil
.
setPageList
(
query
.
list
());
}
}
src/com/jsh/dao/materials/DepotItemIDAO.java
View file @
2aaad2bc
...
...
@@ -8,7 +8,5 @@ import com.jsh.util.common.PageUtil;
public
interface
DepotItemIDAO
extends
BaseIDAO
<
DepotItem
>
{
void
findByType
(
PageUtil
<
DepotItem
>
pageUtil
,
String
type
,
Long
MId
,
String
MonthTime
,
Boolean
isPrev
)
throws
JshException
;
void
findOrderByMaterial
(
PageUtil
<
DepotItem
>
pageUtil
)
throws
JshException
;
void
findByType
(
PageUtil
<
DepotItem
>
pageUtil
,
String
type
,
Long
MId
,
String
MonthTime
,
Boolean
isPrev
)
throws
JshException
;
}
src/com/jsh/filter/common/OpenSessionInViewFilterExtend.java
View file @
2aaad2bc
package
com.jsh.filter.common
;
import
org.hibernate.FlushMode
;
import
org.hibernate.Session
;
import
org.hibernate.SessionFactory
;
import
org.springframework.dao.DataAccessResourceFailureException
;
import
org.springframework.orm.hibernate3.support.OpenSessionInViewFilter
;
public
class
OpenSessionInViewFilterExtend
extends
OpenSessionInViewFilter
{
@Override
protected
Session
getSession
(
SessionFactory
sessionFactory
)
throws
DataAccessResourceFailureException
{
this
.
setFlushMode
(
FlushMode
.
AUTO
);
return
super
.
getSession
(
sessionFactory
);
}
@Override
protected
void
closeSession
(
Session
session
,
SessionFactory
sessionFactory
)
{
session
.
flush
();
super
.
closeSession
(
session
,
sessionFactory
);
}
}
package
com.jsh.filter.common
;
import
org.hibernate.FlushMode
;
import
org.hibernate.Session
;
import
org.hibernate.SessionFactory
;
import
org.springframework.dao.DataAccessResourceFailureException
;
import
org.springframework.orm.hibernate3.support.OpenSessionInViewFilter
;
public
class
OpenSessionInViewFilterExtend
extends
OpenSessionInViewFilter
{
@Override
protected
Session
getSession
(
SessionFactory
sessionFactory
)
throws
DataAccessResourceFailureException
{
this
.
setFlushMode
(
FlushMode
.
AUTO
);
return
super
.
getSession
(
sessionFactory
);
}
@Override
protected
void
closeSession
(
Session
session
,
SessionFactory
sessionFactory
)
{
session
.
flush
();
super
.
closeSession
(
session
,
sessionFactory
);
}
}
src/com/jsh/model/po/Account.hbm.xml
0 → 100644
View file @
2aaad2bc
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping>
<class
name=
"com.jsh.model.po.Account"
table=
"jsh_account"
>
<id
name=
"Id"
type=
"java.lang.Long"
>
<column
name=
"Id"
/>
<generator
class=
"native"
/>
</id>
<property
generated=
"never"
lazy=
"false"
name=
"Name"
type=
"java.lang.String"
>
<column
length=
"50"
name=
"Name"
>
<comment>
名称
</comment>
</column>
</property>
<property
generated=
"never"
lazy=
"false"
name=
"SerialNo"
type=
"java.lang.String"
>
<column
length=
"50"
name=
"SerialNo"
>
<comment>
编号
</comment>
</column>
</property>
<property
generated=
"never"
lazy=
"false"
name=
"InitialAmount"
type=
"java.lang.Double"
>
<column
name=
"InitialAmount"
precision=
"22"
scale=
"3"
>
<comment>
期初金额
</comment>
</column>
</property>
<property
generated=
"never"
lazy=
"false"
name=
"CurrentAmount"
type=
"java.lang.Double"
>
<column
name=
"CurrentAmount"
precision=
"22"
scale=
"3"
>
<comment>
当前余额
</comment>
</column>
</property>
<property
generated=
"never"
lazy=
"false"
name=
"Remark"
type=
"java.lang.String"
>
<column
length=
"100"
name=
"Remark"
>
<comment>
备注
</comment>
</column>
</property>
</class>
</hibernate-mapping>
src/com/jsh/model/po/Account.java
0 → 100644
View file @
2aaad2bc
package
com.jsh.model.po
;
@SuppressWarnings
(
"serial"
)
public
class
Account
implements
java
.
io
.
Serializable
{
private
Long
Id
;
private
String
Name
;
private
String
SerialNo
;
private
Double
InitialAmount
;
private
Double
CurrentAmount
;
private
String
Remark
;
public
Account
()
{
}
public
Account
(
Long
Id
)
{
this
.
Id
=
Id
;
}
public
Account
(
String
name
,
String
serialNo
,
Double
initialAmount
,
Double
currentAmount
,
String
remark
)
{
Name
=
name
;
SerialNo
=
serialNo
;
InitialAmount
=
initialAmount
;
CurrentAmount
=
currentAmount
;
Remark
=
remark
;
}
public
void
setId
(
Long
id
)
{
Id
=
id
;
}
public
Long
getId
()
{
return
Id
;
}
public
void
setName
(
String
name
)
{
Name
=
name
;
}
public
String
getName
()
{
return
Name
;
}
public
void
setSerialNo
(
String
serialNo
)
{
SerialNo
=
serialNo
;
}
public
String
getSerialNo
()
{
return
SerialNo
;
}
public
void
setInitialAmount
(
Double
initialAmount
)
{
InitialAmount
=
initialAmount
;
}
public
Double
getInitialAmount
()
{
return
InitialAmount
;
}
public
void
setCurrentAmount
(
Double
currentAmount
)
{
CurrentAmount
=
currentAmount
;
}
public
Double
getCurrentAmount
()
{
return
CurrentAmount
;
}
public
void
setRemark
(
String
remark
)
{
Remark
=
remark
;
}
public
String
getRemark
()
{
return
Remark
;
}
}
src/com/jsh/model/po/DepotItem.java
View file @
2aaad2bc
package
com.jsh.model.po
;
@SuppressWarnings
(
"serial"
)
public
class
DepotItem
implements
java
.
io
.
Serializable
{
private
Long
Id
;
private
DepotHead
HeaderId
;
private
Material
MaterialId
;
private
Double
OperNumber
;
private
Double
UnitPrice
;
private
Double
Incidentals
;
private
String
Remark
;
private
String
Img
;
public
DepotItem
()
{
}
public
DepotItem
(
Long
Id
)
{
this
.
Id
=
Id
;
}
public
DepotItem
(
DepotHead
headerId
,
Material
materialId
,
Double
operNumber
,
Double
unitPrice
,
Double
incidentals
,
String
remark
,
String
img
)
{
super
();
HeaderId
=
headerId
;
MaterialId
=
materialId
;
OperNumber
=
operNumber
;
UnitPrice
=
unitPrice
;
Incidentals
=
incidentals
;
Remark
=
remark
;
Img
=
img
;
}
public
Long
getId
()
{
return
Id
;
}
public
void
setId
(
Long
id
)
{
Id
=
id
;
}
public
DepotHead
getHeaderId
()
{
return
HeaderId
;
}
public
void
setHeaderId
(
DepotHead
headerId
)
{
HeaderId
=
headerId
;
}
public
Material
getMaterialId
()
{
return
MaterialId
;
}
public
void
setMaterialId
(
Material
materialId
)
{
MaterialId
=
materialId
;
}
public
Double
getOperNumber
()
{
return
OperNumber
;
}
public
void
setOperNumber
(
Double
operNumber
)
{
OperNumber
=
operNumber
;
}
public
Double
getUnitPrice
()
{
return
UnitPrice
;
}
public
void
setUnitPrice
(
Double
unitPrice
)
{
UnitPrice
=
unitPrice
;
}
public
Double
getIncidentals
()
{
return
Incidentals
;
}
public
void
setIncidentals
(
Double
incidentals
)
{
Incidentals
=
incidentals
;
}
public
String
getRemark
()
{
return
Remark
;
}
public
void
setRemark
(
String
remark
)
{
Remark
=
remark
;
}
public
String
getImg
()
{
return
Img
;
}
public
void
setImg
(
String
img
)
{
Img
=
img
;
}
}
\ No newline at end of file
package
com.jsh.model.po
;
@SuppressWarnings
(
"serial"
)
public
class
DepotItem
implements
java
.
io
.
Serializable
{
private
Long
Id
;
private
DepotHead
HeaderId
;
private
Material
MaterialId
;
private
Double
OperNumber
;
private
Double
UnitPrice
;
private
Double
Incidentals
;
private
String
Remark
;
private
String
Img
;
public
DepotItem
()
{
}
public
DepotItem
(
Long
Id
)
{
this
.
Id
=
Id
;
}
public
DepotItem
(
DepotHead
headerId
,
Material
materialId
,
Double
operNumber
,
Double
unitPrice
,
Double
incidentals
,
String
remark
,
String
img
)
{
super
();
HeaderId
=
headerId
;
MaterialId
=
materialId
;
OperNumber
=
operNumber
;
UnitPrice
=
unitPrice
;
Incidentals
=
incidentals
;
Remark
=
remark
;
Img
=
img
;
}
public
Long
getId
()
{
return
Id
;
}
public
void
setId
(
Long
id
)
{
Id
=
id
;
}
public
DepotHead
getHeaderId
()
{
return
HeaderId
;
}
public
void
setHeaderId
(
DepotHead
headerId
)
{
HeaderId
=
headerId
;
}
public
Material
getMaterialId
()
{
return
MaterialId
;
}
public
void
setMaterialId
(
Material
materialId
)
{
MaterialId
=
materialId
;
}
public
Double
getOperNumber
()
{
return
OperNumber
;
}
public
void
setOperNumber
(
Double
operNumber
)
{
OperNumber
=
operNumber
;
}
public
Double
getUnitPrice
()
{
return
UnitPrice
;
}
public
void
setUnitPrice
(
Double
unitPrice
)
{
UnitPrice
=
unitPrice
;
}
public
Double
getIncidentals
()
{
return
Incidentals
;
}
public
void
setIncidentals
(
Double
incidentals
)
{
Incidentals
=
incidentals
;
}
public
String
getRemark
()
{
return
Remark
;
}
public
void
setRemark
(
String
remark
)
{
Remark
=
remark
;
}
public
String
getImg
()
{
return
Img
;
}
public
void
setImg
(
String
img
)
{
Img
=
img
;
}
}
src/com/jsh/model/po/InOutItem.hbm.xml
0 → 100644
View file @
2aaad2bc
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping>
<class
name=
"com.jsh.model.po.InOutItem"
table=
"jsh_inoutitem"
>
<id
name=
"Id"
type=
"java.lang.Long"
>
<column
name=
"Id"
/>
<generator
class=
"native"
/>
</id>
<property
generated=
"never"
lazy=
"false"
name=
"Name"
type=
"java.lang.String"
>
<column
length=
"50"
name=
"Name"
>
<comment>
名称
</comment>
</column>
</property>
<property
generated=
"never"
lazy=
"false"
name=
"Type"
type=
"java.lang.String"
>
<column
length=
"20"
name=
"Type"
>
<comment>
类型
</comment>
</column>
</property>
<property
generated=
"never"
lazy=
"false"
name=
"Remark"
type=
"java.lang.String"
>
<column
length=
"100"
name=
"Remark"
>
<comment>
备注
</comment>
</column>
</property>
</class>
</hibernate-mapping>
src/com/jsh/model/po/InOutItem.java
0 → 100644
View file @
2aaad2bc
package
com.jsh.model.po
;
@SuppressWarnings
(
"serial"
)
public
class
InOutItem
implements
java
.
io
.
Serializable
{
private
Long
Id
;
private
String
Name
;
private
String
Type
;
private
String
Remark
;
public
InOutItem
()
{
}
public
InOutItem
(
Long
Id
)
{
this
.
Id
=
Id
;
}
public
InOutItem
(
String
name
,
String
type
,
String
remark
)
{
Name
=
name
;
Type
=
type
;
Remark
=
remark
;
}
public
void
setId
(
Long
id
)
{
Id
=
id
;
}
public
Long
getId
()
{
return
Id
;
}
public
void
setName
(
String
name
)
{
Name
=
name
;
}
public
String
getName
()
{
return
Name
;
}
public
void
setType
(
String
type
)
{
Type
=
type
;
}
public
String
getType
()
{
return
Type
;
}
public
void
setRemark
(
String
remark
)
{
Remark
=
remark
;
}
public
String
getRemark
()
{
return
Remark
;
}
}
src/com/jsh/model/vo/basic/AccountModel.java
0 → 100644
View file @
2aaad2bc
package
com.jsh.model.vo.basic
;
import
java.io.Serializable
;
@SuppressWarnings
(
"serial"
)
public
class
AccountModel
implements
Serializable
{
private
AccountShowModel
showModel
=
new
AccountShowModel
();
/**======开始接受页面参数=================**/
/**
* 名称
*/
private
String
name
=
""
;
/**
* 编号
*/
private
String
serialNo
=
""
;
/**
* 期初金额
*/
private
Double
initialAmount
;
/**
* 当前余额
*/
private
Double
currentAmount
;
/**
* 备注
*/
private
String
remark
=
""
;
/**
* 分类ID
*/
private
Long
accountID
=
0
l
;
/**
* 分类IDs 批量操作使用
*/
private
String
accountIDs
=
""
;
/**
* 每页显示的个数
*/
private
int
pageSize
=
10
;
/**
* 当前页码
*/
private
int
pageNo
=
1
;
/**
* 用户IP,用户记录操作日志
*/
private
String
clientIp
=
""
;
public
void
setShowModel
(
AccountShowModel
showModel
)
{
this
.
showModel
=
showModel
;
}
public
AccountShowModel
getShowModel
()
{
return
showModel
;
}
public
void
setName
(
String
name
)
{
this
.
name
=
name
;
}
public
String
getName
()
{
return
name
;
}
public
void
setSerialNo
(
String
serialNo
)
{
this
.
serialNo
=
serialNo
;
}
public
String
getSerialNo
()
{
return
serialNo
;
}
public
void
setInitialAmount
(
Double
initialAmount
)
{
this
.
initialAmount
=
initialAmount
;
}
public
Double
getInitialAmount
()
{
return
initialAmount
;
}
public
void
setCurrentAmount
(
Double
currentAmount
)
{
this
.
currentAmount
=
currentAmount
;
}
public
Double
getCurrentAmount
()
{
return
currentAmount
;
}
public
void
setRemark
(
String
remark
)
{
this
.
remark
=
remark
;
}
public
String
getRemark
()
{
return
remark
;
}
public
void
setAccountID
(
Long
accountID
)
{
this
.
accountID
=
accountID
;
}
public
Long
getAccountID
()
{
return
accountID
;
}
public
void
setAccountIDs
(
String
accountIDs
)
{
this
.
accountIDs
=
accountIDs
;
}
public
String
getAccountIDs
()
{
return
accountIDs
;
}
public
void
setPageSize
(
int
pageSize
)
{
this
.
pageSize
=
pageSize
;
}
public
int
getPageSize
()
{
return
pageSize
;
}
public
void
setPageNo
(
int
pageNo
)
{
this
.
pageNo
=
pageNo
;
}
public
int
getPageNo
()
{
return
pageNo
;
}
public
void
setClientIp
(
String
clientIp
)
{
this
.
clientIp
=
clientIp
;
}
public
String
getClientIp
()
{
return
clientIp
;
}
}
src/com/jsh/model/vo/basic/AccountShowModel.java
0 → 100644
View file @
2aaad2bc
package
com.jsh.model.vo.basic
;
import
java.io.Serializable
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
@SuppressWarnings
(
"serial"
)
public
class
AccountShowModel
implements
Serializable
{
/**
* 提示信息
*/
private
String
msgTip
=
""
;
/**
* 系统数据
*/
@SuppressWarnings
(
"rawtypes"
)
private
Map
<
String
,
List
>
map
=
new
HashMap
<
String
,
List
>();
public
String
getMsgTip
()
{
return
msgTip
;
}
public
void
setMsgTip
(
String
msgTip
)
{
this
.
msgTip
=
msgTip
;
}
@SuppressWarnings
(
"rawtypes"
)
public
Map
<
String
,
List
>
getMap
()
{
return
map
;
}
@SuppressWarnings
(
"rawtypes"
)
public
void
setMap
(
Map
<
String
,
List
>
map
)
{
this
.
map
=
map
;
}
}
src/com/jsh/model/vo/basic/InOutItemModel.java
0 → 100644
View file @
2aaad2bc
package
com.jsh.model.vo.basic
;
import
java.io.Serializable
;
@SuppressWarnings
(
"serial"
)
public
class
InOutItemModel
implements
Serializable
{
private
InOutItemShowModel
showModel
=
new
InOutItemShowModel
();
/**======开始接受页面参数=================**/
/**
* 名称
*/
private
String
name
=
""
;
/**
* 类型
*/
private
String
type
=
""
;
/**
* 备注
*/
private
String
remark
=
""
;
/**
* 分类ID
*/
private
Long
inOutItemID
=
0
l
;
/**
* 分类IDs 批量操作使用
*/
private
String
inOutItemIDs
=
""
;
/**
* 每页显示的个数
*/
private
int
pageSize
=
10
;
/**
* 当前页码
*/
private
int
pageNo
=
1
;
/**
* 用户IP,用户记录操作日志
*/
private
String
clientIp
=
""
;
public
void
setShowModel
(
InOutItemShowModel
showModel
)
{
this
.
showModel
=
showModel
;
}
public
InOutItemShowModel
getShowModel
()
{
return
showModel
;
}
public
void
setName
(
String
name
)
{
this
.
name
=
name
;
}
public
String
getName
()
{
return
name
;
}
public
void
setType
(
String
type
)
{
this
.
type
=
type
;
}
public
String
getType
()
{
return
type
;
}
public
void
setRemark
(
String
remark
)
{
this
.
remark
=
remark
;
}
public
String
getRemark
()
{
return
remark
;
}
public
void
setInOutItemID
(
Long
inOutItemID
)
{
this
.
inOutItemID
=
inOutItemID
;
}
public
Long
getInOutItemID
()
{
return
inOutItemID
;
}
public
void
setInOutItemIDs
(
String
inOutItemIDs
)
{
this
.
inOutItemIDs
=
inOutItemIDs
;
}
public
String
getInOutItemIDs
()
{
return
inOutItemIDs
;
}
public
void
setPageSize
(
int
pageSize
)
{
this
.
pageSize
=
pageSize
;
}
public
int
getPageSize
()
{
return
pageSize
;
}
public
void
setPageNo
(
int
pageNo
)
{
this
.
pageNo
=
pageNo
;
}
public
int
getPageNo
()
{
return
pageNo
;
}
public
void
setClientIp
(
String
clientIp
)
{
this
.
clientIp
=
clientIp
;
}
public
String
getClientIp
()
{
return
clientIp
;
}
}
src/com/jsh/model/vo/basic/InOutItemShowModel.java
0 → 100644
View file @
2aaad2bc
package
com.jsh.model.vo.basic
;
import
java.io.Serializable
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
@SuppressWarnings
(
"serial"
)
public
class
InOutItemShowModel
implements
Serializable
{
/**
* 提示信息
*/
private
String
msgTip
=
""
;
/**
* 系统数据
*/
@SuppressWarnings
(
"rawtypes"
)
private
Map
<
String
,
List
>
map
=
new
HashMap
<
String
,
List
>();
public
String
getMsgTip
()
{
return
msgTip
;
}
public
void
setMsgTip
(
String
msgTip
)
{
this
.
msgTip
=
msgTip
;
}
@SuppressWarnings
(
"rawtypes"
)
public
Map
<
String
,
List
>
getMap
()
{
return
map
;
}
@SuppressWarnings
(
"rawtypes"
)
public
void
setMap
(
Map
<
String
,
List
>
map
)
{
this
.
map
=
map
;
}
}
src/com/jsh/service/basic/AccountIService.java
0 → 100644
View file @
2aaad2bc
package
com.jsh.service.basic
;
import
com.jsh.base.BaseIService
;
import
com.jsh.model.po.Account
;
public
interface
AccountIService
extends
BaseIService
<
Account
>
{
}
src/com/jsh/service/basic/AccountService.java
0 → 100644
View file @
2aaad2bc
package
com.jsh.service.basic
;
import
com.jsh.base.BaseService
;
import
com.jsh.dao.basic.AccountIDAO
;
import
com.jsh.model.po.Account
;
public
class
AccountService
extends
BaseService
<
Account
>
implements
AccountIService
{
@SuppressWarnings
(
"unused"
)
private
AccountIDAO
accountDao
;
public
void
setAccountDao
(
AccountIDAO
accountDao
)
{
this
.
accountDao
=
accountDao
;
}
@Override
protected
Class
<
Account
>
getEntityClass
()
{
return
Account
.
class
;
}
}
src/com/jsh/service/basic/InOutItemIService.java
0 → 100644
View file @
2aaad2bc
package
com.jsh.service.basic
;
import
com.jsh.base.BaseIService
;
import
com.jsh.model.po.InOutItem
;
public
interface
InOutItemIService
extends
BaseIService
<
InOutItem
>
{
}
src/com/jsh/service/basic/InOutItemService.java
0 → 100644
View file @
2aaad2bc
package
com.jsh.service.basic
;
import
com.jsh.base.BaseService
;
import
com.jsh.dao.basic.InOutItemIDAO
;
import
com.jsh.model.po.InOutItem
;
public
class
InOutItemService
extends
BaseService
<
InOutItem
>
implements
InOutItemIService
{
@SuppressWarnings
(
"unused"
)
private
InOutItemIDAO
inOutItemDao
;
public
void
setInOutItemDao
(
InOutItemIDAO
inOutItemDao
)
{
this
.
inOutItemDao
=
inOutItemDao
;
}
@Override
protected
Class
<
InOutItem
>
getEntityClass
()
{
return
InOutItem
.
class
;
}
}
Prev
1
2
3
4
Next
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment