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
0734b057
Commit
0734b057
authored
Feb 24, 2019
by
季圣华
Browse files
更新Mapper的文件结构
parent
1151add2
Changes
48
Show whitespace changes
Inline
Side-by-side
src/main/java/com/jsh/erp/datasource/mappers/MaterialPropertyMapperEx.java
0 → 100644
View file @
0734b057
package
com.jsh.erp.datasource.mappers
;
import
com.jsh.erp.datasource.entities.MaterialProperty
;
import
com.jsh.erp.datasource.entities.MaterialPropertyExample
;
import
org.apache.ibatis.annotations.Param
;
import
java.util.List
;
public
interface
MaterialPropertyMapperEx
{
List
<
MaterialProperty
>
selectByConditionMaterialProperty
(
@Param
(
"name"
)
String
name
,
@Param
(
"offset"
)
Integer
offset
,
@Param
(
"rows"
)
Integer
rows
);
int
countsByMaterialProperty
(
@Param
(
"name"
)
String
name
);
}
\ No newline at end of file
src/main/java/com/jsh/erp/datasource/mappers/PersonMapper.java
View file @
0734b057
...
@@ -93,14 +93,4 @@ public interface PersonMapper {
...
@@ -93,14 +93,4 @@ public interface PersonMapper {
* @mbggenerated
* @mbggenerated
*/
*/
int
updateByPrimaryKey
(
Person
record
);
int
updateByPrimaryKey
(
Person
record
);
List
<
Person
>
selectByConditionPerson
(
@Param
(
"name"
)
String
name
,
@Param
(
"type"
)
String
type
,
@Param
(
"offset"
)
Integer
offset
,
@Param
(
"rows"
)
Integer
rows
);
int
countsByPerson
(
@Param
(
"name"
)
String
name
,
@Param
(
"type"
)
String
type
);
}
}
\ No newline at end of file
src/main/java/com/jsh/erp/datasource/mappers/PersonMapperEx.java
0 → 100644
View file @
0734b057
package
com.jsh.erp.datasource.mappers
;
import
com.jsh.erp.datasource.entities.Person
;
import
com.jsh.erp.datasource.entities.PersonExample
;
import
org.apache.ibatis.annotations.Param
;
import
java.util.List
;
public
interface
PersonMapperEx
{
List
<
Person
>
selectByConditionPerson
(
@Param
(
"name"
)
String
name
,
@Param
(
"type"
)
String
type
,
@Param
(
"offset"
)
Integer
offset
,
@Param
(
"rows"
)
Integer
rows
);
int
countsByPerson
(
@Param
(
"name"
)
String
name
,
@Param
(
"type"
)
String
type
);
}
\ No newline at end of file
src/main/java/com/jsh/erp/datasource/mappers/RoleMapper.java
View file @
0734b057
...
@@ -93,12 +93,4 @@ public interface RoleMapper {
...
@@ -93,12 +93,4 @@ public interface RoleMapper {
* @mbggenerated
* @mbggenerated
*/
*/
int
updateByPrimaryKey
(
Role
record
);
int
updateByPrimaryKey
(
Role
record
);
List
<
Role
>
selectByConditionRole
(
@Param
(
"name"
)
String
name
,
@Param
(
"offset"
)
Integer
offset
,
@Param
(
"rows"
)
Integer
rows
);
int
countsByRole
(
@Param
(
"name"
)
String
name
);
}
}
\ No newline at end of file
src/main/java/com/jsh/erp/datasource/mappers/RoleMapperEx.java
0 → 100644
View file @
0734b057
package
com.jsh.erp.datasource.mappers
;
import
com.jsh.erp.datasource.entities.Role
;
import
com.jsh.erp.datasource.entities.RoleExample
;
import
org.apache.ibatis.annotations.Param
;
import
java.util.List
;
public
interface
RoleMapperEx
{
List
<
Role
>
selectByConditionRole
(
@Param
(
"name"
)
String
name
,
@Param
(
"offset"
)
Integer
offset
,
@Param
(
"rows"
)
Integer
rows
);
int
countsByRole
(
@Param
(
"name"
)
String
name
);
}
\ No newline at end of file
src/main/java/com/jsh/erp/datasource/mappers/SupplierMapper.java
View file @
0734b057
...
@@ -93,27 +93,4 @@ public interface SupplierMapper {
...
@@ -93,27 +93,4 @@ public interface SupplierMapper {
* @mbggenerated
* @mbggenerated
*/
*/
int
updateByPrimaryKey
(
Supplier
record
);
int
updateByPrimaryKey
(
Supplier
record
);
List
<
Supplier
>
selectByConditionSupplier
(
@Param
(
"supplier"
)
String
supplier
,
@Param
(
"type"
)
String
type
,
@Param
(
"phonenum"
)
String
phonenum
,
@Param
(
"telephone"
)
String
telephone
,
@Param
(
"description"
)
String
description
,
@Param
(
"offset"
)
Integer
offset
,
@Param
(
"rows"
)
Integer
rows
);
int
countsBySupplier
(
@Param
(
"supplier"
)
String
supplier
,
@Param
(
"type"
)
String
type
,
@Param
(
"phonenum"
)
String
phonenum
,
@Param
(
"telephone"
)
String
telephone
,
@Param
(
"description"
)
String
description
);
List
<
Supplier
>
findByAll
(
@Param
(
"supplier"
)
String
supplier
,
@Param
(
"type"
)
String
type
,
@Param
(
"phonenum"
)
String
phonenum
,
@Param
(
"telephone"
)
String
telephone
,
@Param
(
"description"
)
String
description
);
}
}
\ No newline at end of file
src/main/java/com/jsh/erp/datasource/mappers/SupplierMapperEx.java
0 → 100644
View file @
0734b057
package
com.jsh.erp.datasource.mappers
;
import
com.jsh.erp.datasource.entities.Supplier
;
import
com.jsh.erp.datasource.entities.SupplierExample
;
import
org.apache.ibatis.annotations.Param
;
import
java.util.List
;
public
interface
SupplierMapperEx
{
List
<
Supplier
>
selectByConditionSupplier
(
@Param
(
"supplier"
)
String
supplier
,
@Param
(
"type"
)
String
type
,
@Param
(
"phonenum"
)
String
phonenum
,
@Param
(
"telephone"
)
String
telephone
,
@Param
(
"description"
)
String
description
,
@Param
(
"offset"
)
Integer
offset
,
@Param
(
"rows"
)
Integer
rows
);
int
countsBySupplier
(
@Param
(
"supplier"
)
String
supplier
,
@Param
(
"type"
)
String
type
,
@Param
(
"phonenum"
)
String
phonenum
,
@Param
(
"telephone"
)
String
telephone
,
@Param
(
"description"
)
String
description
);
List
<
Supplier
>
findByAll
(
@Param
(
"supplier"
)
String
supplier
,
@Param
(
"type"
)
String
type
,
@Param
(
"phonenum"
)
String
phonenum
,
@Param
(
"telephone"
)
String
telephone
,
@Param
(
"description"
)
String
description
);
}
\ No newline at end of file
src/main/java/com/jsh/erp/datasource/mappers/SystemConfigMapper.java
View file @
0734b057
...
@@ -93,10 +93,4 @@ public interface SystemConfigMapper {
...
@@ -93,10 +93,4 @@ public interface SystemConfigMapper {
* @mbggenerated
* @mbggenerated
*/
*/
int
updateByPrimaryKey
(
SystemConfig
record
);
int
updateByPrimaryKey
(
SystemConfig
record
);
List
<
SystemConfig
>
selectByConditionSystemConfig
(
@Param
(
"offset"
)
Integer
offset
,
@Param
(
"rows"
)
Integer
rows
);
int
countsBySystemConfig
();
}
}
\ No newline at end of file
src/main/java/com/jsh/erp/datasource/mappers/SystemConfigMapperEx.java
0 → 100644
View file @
0734b057
package
com.jsh.erp.datasource.mappers
;
import
com.jsh.erp.datasource.entities.SystemConfig
;
import
com.jsh.erp.datasource.entities.SystemConfigExample
;
import
org.apache.ibatis.annotations.Param
;
import
java.util.List
;
public
interface
SystemConfigMapperEx
{
List
<
SystemConfig
>
selectByConditionSystemConfig
(
@Param
(
"offset"
)
Integer
offset
,
@Param
(
"rows"
)
Integer
rows
);
int
countsBySystemConfig
();
}
\ No newline at end of file
src/main/java/com/jsh/erp/datasource/mappers/UnitMapper.java
View file @
0734b057
...
@@ -93,12 +93,4 @@ public interface UnitMapper {
...
@@ -93,12 +93,4 @@ public interface UnitMapper {
* @mbggenerated
* @mbggenerated
*/
*/
int
updateByPrimaryKey
(
Unit
record
);
int
updateByPrimaryKey
(
Unit
record
);
List
<
Unit
>
selectByConditionUnit
(
@Param
(
"name"
)
String
name
,
@Param
(
"offset"
)
Integer
offset
,
@Param
(
"rows"
)
Integer
rows
);
int
countsByUnit
(
@Param
(
"name"
)
String
name
);
}
}
\ No newline at end of file
src/main/java/com/jsh/erp/datasource/mappers/UnitMapperEx.java
0 → 100644
View file @
0734b057
package
com.jsh.erp.datasource.mappers
;
import
com.jsh.erp.datasource.entities.Unit
;
import
com.jsh.erp.datasource.entities.UnitExample
;
import
org.apache.ibatis.annotations.Param
;
import
java.util.List
;
public
interface
UnitMapperEx
{
List
<
Unit
>
selectByConditionUnit
(
@Param
(
"name"
)
String
name
,
@Param
(
"offset"
)
Integer
offset
,
@Param
(
"rows"
)
Integer
rows
);
int
countsByUnit
(
@Param
(
"name"
)
String
name
);
}
\ No newline at end of file
src/main/java/com/jsh/erp/datasource/mappers/UserMapper.java
View file @
0734b057
...
@@ -93,14 +93,4 @@ public interface UserMapper {
...
@@ -93,14 +93,4 @@ public interface UserMapper {
* @mbggenerated
* @mbggenerated
*/
*/
int
updateByPrimaryKey
(
User
record
);
int
updateByPrimaryKey
(
User
record
);
List
<
User
>
selectByConditionUser
(
@Param
(
"userName"
)
String
userName
,
@Param
(
"loginName"
)
String
loginName
,
@Param
(
"offset"
)
Integer
offset
,
@Param
(
"rows"
)
Integer
rows
);
int
countsByUser
(
@Param
(
"userName"
)
String
userName
,
@Param
(
"loginName"
)
String
loginName
);
}
}
\ No newline at end of file
src/main/java/com/jsh/erp/datasource/mappers/UserMapperEx.java
0 → 100644
View file @
0734b057
package
com.jsh.erp.datasource.mappers
;
import
com.jsh.erp.datasource.entities.User
;
import
com.jsh.erp.datasource.entities.UserExample
;
import
org.apache.ibatis.annotations.Param
;
import
java.util.List
;
public
interface
UserMapperEx
{
List
<
User
>
selectByConditionUser
(
@Param
(
"userName"
)
String
userName
,
@Param
(
"loginName"
)
String
loginName
,
@Param
(
"offset"
)
Integer
offset
,
@Param
(
"rows"
)
Integer
rows
);
int
countsByUser
(
@Param
(
"userName"
)
String
userName
,
@Param
(
"loginName"
)
String
loginName
);
}
\ No newline at end of file
src/main/java/com/jsh/erp/service/account/AccountService.java
View file @
0734b057
...
@@ -2,10 +2,7 @@ package com.jsh.erp.service.account;
...
@@ -2,10 +2,7 @@ package com.jsh.erp.service.account;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
import
com.jsh.erp.datasource.entities.*
;
import
com.jsh.erp.datasource.entities.*
;
import
com.jsh.erp.datasource.mappers.AccountHeadMapper
;
import
com.jsh.erp.datasource.mappers.*
;
import
com.jsh.erp.datasource.mappers.AccountItemMapper
;
import
com.jsh.erp.datasource.mappers.AccountMapper
;
import
com.jsh.erp.datasource.mappers.DepotHeadMapper
;
import
com.jsh.erp.datasource.vo.AccountVo4InOutList
;
import
com.jsh.erp.datasource.vo.AccountVo4InOutList
;
import
com.jsh.erp.datasource.vo.AccountVo4List
;
import
com.jsh.erp.datasource.vo.AccountVo4List
;
import
com.jsh.erp.utils.StringUtil
;
import
com.jsh.erp.utils.StringUtil
;
...
@@ -31,6 +28,9 @@ public class AccountService {
...
@@ -31,6 +28,9 @@ public class AccountService {
@Resource
@Resource
private
AccountMapper
accountMapper
;
private
AccountMapper
accountMapper
;
@Resource
private
AccountMapperEx
accountMapperEx
;
@Resource
@Resource
private
DepotHeadMapper
depotHeadMapper
;
private
DepotHeadMapper
depotHeadMapper
;
...
@@ -51,7 +51,7 @@ public class AccountService {
...
@@ -51,7 +51,7 @@ public class AccountService {
public
List
<
AccountVo4List
>
select
(
String
name
,
String
serialNo
,
String
remark
,
int
offset
,
int
rows
)
{
public
List
<
AccountVo4List
>
select
(
String
name
,
String
serialNo
,
String
remark
,
int
offset
,
int
rows
)
{
List
<
AccountVo4List
>
resList
=
new
ArrayList
<
AccountVo4List
>();
List
<
AccountVo4List
>
resList
=
new
ArrayList
<
AccountVo4List
>();
List
<
AccountVo4List
>
list
=
accountMapper
.
selectByConditionAccount
(
name
,
serialNo
,
remark
,
offset
,
rows
);
List
<
AccountVo4List
>
list
=
accountMapper
Ex
.
selectByConditionAccount
(
name
,
serialNo
,
remark
,
offset
,
rows
);
String
timeStr
=
Tools
.
getCurrentMonth
();
String
timeStr
=
Tools
.
getCurrentMonth
();
if
(
null
!=
list
&&
null
!=
timeStr
)
{
if
(
null
!=
list
&&
null
!=
timeStr
)
{
for
(
AccountVo4List
al
:
list
)
{
for
(
AccountVo4List
al
:
list
)
{
...
@@ -71,7 +71,7 @@ public class AccountService {
...
@@ -71,7 +71,7 @@ public class AccountService {
}
}
public
int
countAccount
(
String
name
,
String
serialNo
,
String
remark
)
{
public
int
countAccount
(
String
name
,
String
serialNo
,
String
remark
)
{
return
accountMapper
.
countsByAccount
(
name
,
serialNo
,
remark
);
return
accountMapper
Ex
.
countsByAccount
(
name
,
serialNo
,
remark
);
}
}
@Transactional
(
value
=
"transactionManager"
,
rollbackFor
=
Exception
.
class
)
@Transactional
(
value
=
"transactionManager"
,
rollbackFor
=
Exception
.
class
)
...
@@ -294,11 +294,11 @@ public class AccountService {
...
@@ -294,11 +294,11 @@ public class AccountService {
}
}
public
List
<
AccountVo4InOutList
>
findAccountInOutList
(
Long
accountId
,
Integer
offset
,
Integer
rows
)
{
public
List
<
AccountVo4InOutList
>
findAccountInOutList
(
Long
accountId
,
Integer
offset
,
Integer
rows
)
{
return
accountMapper
.
findAccountInOutList
(
accountId
,
offset
,
rows
);
return
accountMapper
Ex
.
findAccountInOutList
(
accountId
,
offset
,
rows
);
}
}
public
int
findAccountInOutListCount
(
Long
accountId
)
{
public
int
findAccountInOutListCount
(
Long
accountId
)
{
return
accountMapper
.
findAccountInOutListCount
(
accountId
);
return
accountMapper
Ex
.
findAccountInOutListCount
(
accountId
);
}
}
@Transactional
(
value
=
"transactionManager"
,
rollbackFor
=
Exception
.
class
)
@Transactional
(
value
=
"transactionManager"
,
rollbackFor
=
Exception
.
class
)
...
...
src/main/java/com/jsh/erp/service/accountHead/AccountHeadService.java
View file @
0734b057
...
@@ -5,6 +5,7 @@ import com.jsh.erp.datasource.entities.AccountHead;
...
@@ -5,6 +5,7 @@ import com.jsh.erp.datasource.entities.AccountHead;
import
com.jsh.erp.datasource.entities.AccountHeadExample
;
import
com.jsh.erp.datasource.entities.AccountHeadExample
;
import
com.jsh.erp.datasource.entities.AccountHeadVo4ListEx
;
import
com.jsh.erp.datasource.entities.AccountHeadVo4ListEx
;
import
com.jsh.erp.datasource.mappers.AccountHeadMapper
;
import
com.jsh.erp.datasource.mappers.AccountHeadMapper
;
import
com.jsh.erp.datasource.mappers.AccountHeadMapperEx
;
import
com.jsh.erp.utils.StringUtil
;
import
com.jsh.erp.utils.StringUtil
;
import
com.jsh.erp.utils.Tools
;
import
com.jsh.erp.utils.Tools
;
import
org.slf4j.Logger
;
import
org.slf4j.Logger
;
...
@@ -25,6 +26,9 @@ public class AccountHeadService {
...
@@ -25,6 +26,9 @@ public class AccountHeadService {
@Resource
@Resource
private
AccountHeadMapper
accountHeadMapper
;
private
AccountHeadMapper
accountHeadMapper
;
@Resource
private
AccountHeadMapperEx
accountHeadMapperEx
;
public
AccountHead
getAccountHead
(
long
id
)
{
public
AccountHead
getAccountHead
(
long
id
)
{
return
accountHeadMapper
.
selectByPrimaryKey
(
id
);
return
accountHeadMapper
.
selectByPrimaryKey
(
id
);
}
}
...
@@ -36,7 +40,7 @@ public class AccountHeadService {
...
@@ -36,7 +40,7 @@ public class AccountHeadService {
public
List
<
AccountHeadVo4ListEx
>
select
(
String
type
,
String
billNo
,
String
beginTime
,
String
endTime
,
int
offset
,
int
rows
)
{
public
List
<
AccountHeadVo4ListEx
>
select
(
String
type
,
String
billNo
,
String
beginTime
,
String
endTime
,
int
offset
,
int
rows
)
{
List
<
AccountHeadVo4ListEx
>
resList
=
new
ArrayList
<
AccountHeadVo4ListEx
>();
List
<
AccountHeadVo4ListEx
>
resList
=
new
ArrayList
<
AccountHeadVo4ListEx
>();
List
<
AccountHeadVo4ListEx
>
list
=
accountHeadMapper
.
selectByConditionAccountHead
(
type
,
billNo
,
beginTime
,
endTime
,
offset
,
rows
);
List
<
AccountHeadVo4ListEx
>
list
=
accountHeadMapper
Ex
.
selectByConditionAccountHead
(
type
,
billNo
,
beginTime
,
endTime
,
offset
,
rows
);
if
(
null
!=
list
)
{
if
(
null
!=
list
)
{
for
(
AccountHeadVo4ListEx
ah
:
list
)
{
for
(
AccountHeadVo4ListEx
ah
:
list
)
{
if
(
ah
.
getChangeamount
()
!=
null
)
{
if
(
ah
.
getChangeamount
()
!=
null
)
{
...
@@ -52,7 +56,7 @@ public class AccountHeadService {
...
@@ -52,7 +56,7 @@ public class AccountHeadService {
}
}
public
int
countAccountHead
(
String
type
,
String
billNo
,
String
beginTime
,
String
endTime
)
{
public
int
countAccountHead
(
String
type
,
String
billNo
,
String
beginTime
,
String
endTime
)
{
return
accountHeadMapper
.
countsByAccountHead
(
type
,
billNo
,
beginTime
,
endTime
);
return
accountHeadMapper
Ex
.
countsByAccountHead
(
type
,
billNo
,
beginTime
,
endTime
);
}
}
@Transactional
(
value
=
"transactionManager"
,
rollbackFor
=
Exception
.
class
)
@Transactional
(
value
=
"transactionManager"
,
rollbackFor
=
Exception
.
class
)
...
@@ -89,7 +93,7 @@ public class AccountHeadService {
...
@@ -89,7 +93,7 @@ public class AccountHeadService {
}
}
public
Long
getMaxId
()
{
public
Long
getMaxId
()
{
return
accountHeadMapper
.
getMaxId
();
return
accountHeadMapper
Ex
.
getMaxId
();
}
}
public
BigDecimal
findAllMoney
(
Integer
supplierId
,
String
type
,
String
mode
,
String
endTime
)
{
public
BigDecimal
findAllMoney
(
Integer
supplierId
,
String
type
,
String
mode
,
String
endTime
)
{
...
@@ -99,12 +103,12 @@ public class AccountHeadService {
...
@@ -99,12 +103,12 @@ public class AccountHeadService {
}
else
if
(
mode
.
equals
(
"合计"
))
{
}
else
if
(
mode
.
equals
(
"合计"
))
{
modeName
=
"TotalPrice"
;
modeName
=
"TotalPrice"
;
}
}
return
accountHeadMapper
.
findAllMoney
(
supplierId
,
type
,
modeName
,
endTime
);
return
accountHeadMapper
Ex
.
findAllMoney
(
supplierId
,
type
,
modeName
,
endTime
);
}
}
public
List
<
AccountHeadVo4ListEx
>
getDetailByNumber
(
String
billNo
)
{
public
List
<
AccountHeadVo4ListEx
>
getDetailByNumber
(
String
billNo
)
{
List
<
AccountHeadVo4ListEx
>
resList
=
new
ArrayList
<
AccountHeadVo4ListEx
>();
List
<
AccountHeadVo4ListEx
>
resList
=
new
ArrayList
<
AccountHeadVo4ListEx
>();
List
<
AccountHeadVo4ListEx
>
list
=
accountHeadMapper
.
getDetailByNumber
(
billNo
);
List
<
AccountHeadVo4ListEx
>
list
=
accountHeadMapper
Ex
.
getDetailByNumber
(
billNo
);
if
(
null
!=
list
)
{
if
(
null
!=
list
)
{
for
(
AccountHeadVo4ListEx
ah
:
list
)
{
for
(
AccountHeadVo4ListEx
ah
:
list
)
{
if
(
ah
.
getChangeamount
()
!=
null
)
{
if
(
ah
.
getChangeamount
()
!=
null
)
{
...
...
src/main/java/com/jsh/erp/service/accountItem/AccountItemService.java
View file @
0734b057
...
@@ -5,6 +5,7 @@ import com.alibaba.fastjson.JSONObject;
...
@@ -5,6 +5,7 @@ import com.alibaba.fastjson.JSONObject;
import
com.jsh.erp.datasource.entities.AccountItem
;
import
com.jsh.erp.datasource.entities.AccountItem
;
import
com.jsh.erp.datasource.entities.AccountItemExample
;
import
com.jsh.erp.datasource.entities.AccountItemExample
;
import
com.jsh.erp.datasource.mappers.AccountItemMapper
;
import
com.jsh.erp.datasource.mappers.AccountItemMapper
;
import
com.jsh.erp.datasource.mappers.AccountItemMapperEx
;
import
com.jsh.erp.datasource.vo.AccountItemVo4List
;
import
com.jsh.erp.datasource.vo.AccountItemVo4List
;
import
com.jsh.erp.utils.ErpInfo
;
import
com.jsh.erp.utils.ErpInfo
;
import
com.jsh.erp.utils.StringUtil
;
import
com.jsh.erp.utils.StringUtil
;
...
@@ -28,6 +29,9 @@ public class AccountItemService {
...
@@ -28,6 +29,9 @@ public class AccountItemService {
@Resource
@Resource
private
AccountItemMapper
accountItemMapper
;
private
AccountItemMapper
accountItemMapper
;
@Resource
private
AccountItemMapperEx
accountItemMapperEx
;
public
AccountItem
getAccountItem
(
long
id
)
{
public
AccountItem
getAccountItem
(
long
id
)
{
return
accountItemMapper
.
selectByPrimaryKey
(
id
);
return
accountItemMapper
.
selectByPrimaryKey
(
id
);
}
}
...
@@ -38,11 +42,11 @@ public class AccountItemService {
...
@@ -38,11 +42,11 @@ public class AccountItemService {
}
}
public
List
<
AccountItem
>
select
(
String
name
,
Integer
type
,
String
remark
,
int
offset
,
int
rows
)
{
public
List
<
AccountItem
>
select
(
String
name
,
Integer
type
,
String
remark
,
int
offset
,
int
rows
)
{
return
accountItemMapper
.
selectByConditionAccountItem
(
name
,
type
,
remark
,
offset
,
rows
);
return
accountItemMapper
Ex
.
selectByConditionAccountItem
(
name
,
type
,
remark
,
offset
,
rows
);
}
}
public
int
countAccountItem
(
String
name
,
Integer
type
,
String
remark
)
{
public
int
countAccountItem
(
String
name
,
Integer
type
,
String
remark
)
{
return
accountItemMapper
.
countsByAccountItem
(
name
,
type
,
remark
);
return
accountItemMapper
Ex
.
countsByAccountItem
(
name
,
type
,
remark
);
}
}
@Transactional
(
value
=
"transactionManager"
,
rollbackFor
=
Exception
.
class
)
@Transactional
(
value
=
"transactionManager"
,
rollbackFor
=
Exception
.
class
)
...
@@ -89,7 +93,7 @@ public class AccountItemService {
...
@@ -89,7 +93,7 @@ public class AccountItemService {
}
}
public
List
<
AccountItemVo4List
>
getDetailList
(
Long
headerId
)
{
public
List
<
AccountItemVo4List
>
getDetailList
(
Long
headerId
)
{
return
accountItemMapper
.
getDetailList
(
headerId
);
return
accountItemMapper
Ex
.
getDetailList
(
headerId
);
}
}
@Transactional
(
value
=
"transactionManager"
,
rollbackFor
=
Exception
.
class
)
@Transactional
(
value
=
"transactionManager"
,
rollbackFor
=
Exception
.
class
)
public
String
saveDetials
(
String
inserted
,
String
deleted
,
String
updated
,
Long
headerId
,
String
listType
)
throws
DataAccessException
{
public
String
saveDetials
(
String
inserted
,
String
deleted
,
String
updated
,
Long
headerId
,
String
listType
)
throws
DataAccessException
{
...
...
src/main/java/com/jsh/erp/service/app/AppService.java
View file @
0734b057
...
@@ -4,6 +4,7 @@ import com.alibaba.fastjson.JSONObject;
...
@@ -4,6 +4,7 @@ import com.alibaba.fastjson.JSONObject;
import
com.jsh.erp.datasource.entities.App
;
import
com.jsh.erp.datasource.entities.App
;
import
com.jsh.erp.datasource.entities.AppExample
;
import
com.jsh.erp.datasource.entities.AppExample
;
import
com.jsh.erp.datasource.mappers.AppMapper
;
import
com.jsh.erp.datasource.mappers.AppMapper
;
import
com.jsh.erp.datasource.mappers.AppMapperEx
;
import
com.jsh.erp.utils.StringUtil
;
import
com.jsh.erp.utils.StringUtil
;
import
org.slf4j.Logger
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.slf4j.LoggerFactory
;
...
@@ -20,6 +21,8 @@ public class AppService {
...
@@ -20,6 +21,8 @@ public class AppService {
@Resource
@Resource
private
AppMapper
appMapper
;
private
AppMapper
appMapper
;
@Resource
private
AppMapperEx
appMapperEx
;
public
List
<
App
>
findDock
(){
public
List
<
App
>
findDock
(){
AppExample
example
=
new
AppExample
();
AppExample
example
=
new
AppExample
();
...
@@ -54,11 +57,11 @@ public class AppService {
...
@@ -54,11 +57,11 @@ public class AppService {
}
}
public
List
<
App
>
select
(
String
name
,
String
type
,
int
offset
,
int
rows
)
{
public
List
<
App
>
select
(
String
name
,
String
type
,
int
offset
,
int
rows
)
{
return
appMapper
.
selectByConditionApp
(
name
,
type
,
offset
,
rows
);
return
appMapper
Ex
.
selectByConditionApp
(
name
,
type
,
offset
,
rows
);
}
}
public
int
countApp
(
String
name
,
String
type
)
{
public
int
countApp
(
String
name
,
String
type
)
{
return
appMapper
.
countsByApp
(
name
,
type
);
return
appMapper
Ex
.
countsByApp
(
name
,
type
);
}
}
@Transactional
(
value
=
"transactionManager"
,
rollbackFor
=
Exception
.
class
)
@Transactional
(
value
=
"transactionManager"
,
rollbackFor
=
Exception
.
class
)
...
...
src/main/java/com/jsh/erp/service/depot/DepotService.java
View file @
0734b057
...
@@ -4,6 +4,7 @@ import com.alibaba.fastjson.JSONObject;
...
@@ -4,6 +4,7 @@ import com.alibaba.fastjson.JSONObject;
import
com.jsh.erp.datasource.entities.Depot
;
import
com.jsh.erp.datasource.entities.Depot
;
import
com.jsh.erp.datasource.entities.DepotExample
;
import
com.jsh.erp.datasource.entities.DepotExample
;
import
com.jsh.erp.datasource.mappers.DepotMapper
;
import
com.jsh.erp.datasource.mappers.DepotMapper
;
import
com.jsh.erp.datasource.mappers.DepotMapperEx
;
import
com.jsh.erp.utils.StringUtil
;
import
com.jsh.erp.utils.StringUtil
;
import
org.slf4j.Logger
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.slf4j.LoggerFactory
;
...
@@ -21,6 +22,9 @@ public class DepotService {
...
@@ -21,6 +22,9 @@ public class DepotService {
@Resource
@Resource
private
DepotMapper
depotMapper
;
private
DepotMapper
depotMapper
;
@Resource
private
DepotMapperEx
depotMapperEx
;
public
Depot
getDepot
(
long
id
)
{
public
Depot
getDepot
(
long
id
)
{
return
depotMapper
.
selectByPrimaryKey
(
id
);
return
depotMapper
.
selectByPrimaryKey
(
id
);
}
}
...
@@ -37,11 +41,11 @@ public class DepotService {
...
@@ -37,11 +41,11 @@ public class DepotService {
}
}
public
List
<
Depot
>
select
(
String
name
,
Integer
type
,
String
remark
,
int
offset
,
int
rows
)
{
public
List
<
Depot
>
select
(
String
name
,
Integer
type
,
String
remark
,
int
offset
,
int
rows
)
{
return
depotMapper
.
selectByConditionDepot
(
name
,
type
,
remark
,
offset
,
rows
);
return
depotMapper
Ex
.
selectByConditionDepot
(
name
,
type
,
remark
,
offset
,
rows
);
}
}
public
int
countDepot
(
String
name
,
Integer
type
,
String
remark
)
{
public
int
countDepot
(
String
name
,
Integer
type
,
String
remark
)
{
return
depotMapper
.
countsByDepot
(
name
,
type
,
remark
);
return
depotMapper
Ex
.
countsByDepot
(
name
,
type
,
remark
);
}
}
@Transactional
(
value
=
"transactionManager"
,
rollbackFor
=
Exception
.
class
)
@Transactional
(
value
=
"transactionManager"
,
rollbackFor
=
Exception
.
class
)
...
...
src/main/java/com/jsh/erp/service/functions/FunctionsService.java
View file @
0734b057
...
@@ -4,6 +4,7 @@ import com.alibaba.fastjson.JSONObject;
...
@@ -4,6 +4,7 @@ import com.alibaba.fastjson.JSONObject;
import
com.jsh.erp.datasource.entities.Functions
;
import
com.jsh.erp.datasource.entities.Functions
;
import
com.jsh.erp.datasource.entities.FunctionsExample
;
import
com.jsh.erp.datasource.entities.FunctionsExample
;
import
com.jsh.erp.datasource.mappers.FunctionsMapper
;
import
com.jsh.erp.datasource.mappers.FunctionsMapper
;
import
com.jsh.erp.datasource.mappers.FunctionsMapperEx
;
import
com.jsh.erp.utils.StringUtil
;
import
com.jsh.erp.utils.StringUtil
;
import
org.slf4j.Logger
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.slf4j.LoggerFactory
;
...
@@ -21,6 +22,9 @@ public class FunctionsService {
...
@@ -21,6 +22,9 @@ public class FunctionsService {
@Resource
@Resource
private
FunctionsMapper
functionsMapper
;
private
FunctionsMapper
functionsMapper
;
@Resource
private
FunctionsMapperEx
functionsMapperEx
;
public
Functions
getFunctions
(
long
id
)
{
public
Functions
getFunctions
(
long
id
)
{
return
functionsMapper
.
selectByPrimaryKey
(
id
);
return
functionsMapper
.
selectByPrimaryKey
(
id
);
}
}
...
@@ -31,11 +35,11 @@ public class FunctionsService {
...
@@ -31,11 +35,11 @@ public class FunctionsService {
}
}
public
List
<
Functions
>
select
(
String
name
,
String
type
,
int
offset
,
int
rows
)
{
public
List
<
Functions
>
select
(
String
name
,
String
type
,
int
offset
,
int
rows
)
{
return
functionsMapper
.
selectByConditionFunctions
(
name
,
type
,
offset
,
rows
);
return
functionsMapper
Ex
.
selectByConditionFunctions
(
name
,
type
,
offset
,
rows
);
}
}
public
int
countFunctions
(
String
name
,
String
type
)
{
public
int
countFunctions
(
String
name
,
String
type
)
{
return
functionsMapper
.
countsByFunctions
(
name
,
type
);
return
functionsMapper
Ex
.
countsByFunctions
(
name
,
type
);
}
}
@Transactional
(
value
=
"transactionManager"
,
rollbackFor
=
Exception
.
class
)
@Transactional
(
value
=
"transactionManager"
,
rollbackFor
=
Exception
.
class
)
...
...
src/main/java/com/jsh/erp/service/inOutItem/InOutItemService.java
View file @
0734b057
...
@@ -4,6 +4,7 @@ import com.alibaba.fastjson.JSONObject;
...
@@ -4,6 +4,7 @@ import com.alibaba.fastjson.JSONObject;
import
com.jsh.erp.datasource.entities.InOutItem
;
import
com.jsh.erp.datasource.entities.InOutItem
;
import
com.jsh.erp.datasource.entities.InOutItemExample
;
import
com.jsh.erp.datasource.entities.InOutItemExample
;
import
com.jsh.erp.datasource.mappers.InOutItemMapper
;
import
com.jsh.erp.datasource.mappers.InOutItemMapper
;
import
com.jsh.erp.datasource.mappers.InOutItemMapperEx
;
import
com.jsh.erp.utils.StringUtil
;
import
com.jsh.erp.utils.StringUtil
;
import
org.slf4j.Logger
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.slf4j.LoggerFactory
;
...
@@ -21,6 +22,9 @@ public class InOutItemService {
...
@@ -21,6 +22,9 @@ public class InOutItemService {
@Resource
@Resource
private
InOutItemMapper
inOutItemMapper
;
private
InOutItemMapper
inOutItemMapper
;
@Resource
private
InOutItemMapperEx
inOutItemMapperEx
;
public
InOutItem
getInOutItem
(
long
id
)
{
public
InOutItem
getInOutItem
(
long
id
)
{
return
inOutItemMapper
.
selectByPrimaryKey
(
id
);
return
inOutItemMapper
.
selectByPrimaryKey
(
id
);
}
}
...
@@ -31,11 +35,11 @@ public class InOutItemService {
...
@@ -31,11 +35,11 @@ public class InOutItemService {
}
}
public
List
<
InOutItem
>
select
(
String
name
,
String
type
,
String
remark
,
int
offset
,
int
rows
)
{
public
List
<
InOutItem
>
select
(
String
name
,
String
type
,
String
remark
,
int
offset
,
int
rows
)
{
return
inOutItemMapper
.
selectByConditionInOutItem
(
name
,
type
,
remark
,
offset
,
rows
);
return
inOutItemMapper
Ex
.
selectByConditionInOutItem
(
name
,
type
,
remark
,
offset
,
rows
);
}
}
public
int
countInOutItem
(
String
name
,
String
type
,
String
remark
)
{
public
int
countInOutItem
(
String
name
,
String
type
,
String
remark
)
{
return
inOutItemMapper
.
countsByInOutItem
(
name
,
type
,
remark
);
return
inOutItemMapper
Ex
.
countsByInOutItem
(
name
,
type
,
remark
);
}
}
@Transactional
(
value
=
"transactionManager"
,
rollbackFor
=
Exception
.
class
)
@Transactional
(
value
=
"transactionManager"
,
rollbackFor
=
Exception
.
class
)
...
...
Prev
1
2
3
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