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
a07c71fd
Commit
a07c71fd
authored
Feb 28, 2019
by
乾坤平台
Committed by
季圣华
Feb 28, 2019
Browse files
!30 修改新增采购订单、销售订单的功能数据插入方式
Merge pull request !30 from 乾坤平台/master
parents
01feda93
92b3d21d
Changes
104
Hide whitespace changes
Inline
Side-by-side
src/main/java/com/jsh/erp/service/accountHead/AccountHeadService.java
View file @
a07c71fd
...
@@ -55,7 +55,7 @@ public class AccountHeadService {
...
@@ -55,7 +55,7 @@ public class AccountHeadService {
return
resList
;
return
resList
;
}
}
public
int
countAccountHead
(
String
type
,
String
billNo
,
String
beginTime
,
String
endTime
)
{
public
Long
countAccountHead
(
String
type
,
String
billNo
,
String
beginTime
,
String
endTime
)
{
return
accountHeadMapperEx
.
countsByAccountHead
(
type
,
billNo
,
beginTime
,
endTime
);
return
accountHeadMapperEx
.
countsByAccountHead
(
type
,
billNo
,
beginTime
,
endTime
);
}
}
...
...
src/main/java/com/jsh/erp/service/accountItem/AccountItemComponent.java
View file @
a07c71fd
...
@@ -38,7 +38,7 @@ public class AccountItemComponent implements ICommonQuery {
...
@@ -38,7 +38,7 @@ public class AccountItemComponent implements ICommonQuery {
}
}
@Override
@Override
public
int
counts
(
Map
<
String
,
String
>
map
)
{
public
Long
counts
(
Map
<
String
,
String
>
map
)
{
String
search
=
map
.
get
(
Constants
.
SEARCH
);
String
search
=
map
.
get
(
Constants
.
SEARCH
);
String
name
=
StringUtil
.
getInfo
(
search
,
"name"
);
String
name
=
StringUtil
.
getInfo
(
search
,
"name"
);
Integer
type
=
StringUtil
.
parseInteger
(
StringUtil
.
getInfo
(
search
,
"type"
));
Integer
type
=
StringUtil
.
parseInteger
(
StringUtil
.
getInfo
(
search
,
"type"
));
...
...
src/main/java/com/jsh/erp/service/accountItem/AccountItemService.java
View file @
a07c71fd
...
@@ -45,7 +45,7 @@ public class AccountItemService {
...
@@ -45,7 +45,7 @@ public class AccountItemService {
return
accountItemMapperEx
.
selectByConditionAccountItem
(
name
,
type
,
remark
,
offset
,
rows
);
return
accountItemMapperEx
.
selectByConditionAccountItem
(
name
,
type
,
remark
,
offset
,
rows
);
}
}
public
int
countAccountItem
(
String
name
,
Integer
type
,
String
remark
)
{
public
Long
countAccountItem
(
String
name
,
Integer
type
,
String
remark
)
{
return
accountItemMapperEx
.
countsByAccountItem
(
name
,
type
,
remark
);
return
accountItemMapperEx
.
countsByAccountItem
(
name
,
type
,
remark
);
}
}
...
...
src/main/java/com/jsh/erp/service/app/AppComponent.java
View file @
a07c71fd
...
@@ -37,7 +37,7 @@ public class AppComponent implements ICommonQuery {
...
@@ -37,7 +37,7 @@ public class AppComponent implements ICommonQuery {
}
}
@Override
@Override
public
int
counts
(
Map
<
String
,
String
>
map
)
{
public
Long
counts
(
Map
<
String
,
String
>
map
)
{
String
search
=
map
.
get
(
Constants
.
SEARCH
);
String
search
=
map
.
get
(
Constants
.
SEARCH
);
String
name
=
StringUtil
.
getInfo
(
search
,
"name"
);
String
name
=
StringUtil
.
getInfo
(
search
,
"name"
);
String
type
=
StringUtil
.
getInfo
(
search
,
"type"
);
String
type
=
StringUtil
.
getInfo
(
search
,
"type"
);
...
...
src/main/java/com/jsh/erp/service/app/AppService.java
View file @
a07c71fd
...
@@ -60,7 +60,7 @@ public class AppService {
...
@@ -60,7 +60,7 @@ public class AppService {
return
appMapperEx
.
selectByConditionApp
(
name
,
type
,
offset
,
rows
);
return
appMapperEx
.
selectByConditionApp
(
name
,
type
,
offset
,
rows
);
}
}
public
int
countApp
(
String
name
,
String
type
)
{
public
Long
countApp
(
String
name
,
String
type
)
{
return
appMapperEx
.
countsByApp
(
name
,
type
);
return
appMapperEx
.
countsByApp
(
name
,
type
);
}
}
...
...
src/main/java/com/jsh/erp/service/depot/DepotComponent.java
View file @
a07c71fd
...
@@ -39,7 +39,7 @@ public class DepotComponent implements ICommonQuery {
...
@@ -39,7 +39,7 @@ public class DepotComponent implements ICommonQuery {
}
}
@Override
@Override
public
int
counts
(
Map
<
String
,
String
>
map
)
{
public
Long
counts
(
Map
<
String
,
String
>
map
)
{
String
search
=
map
.
get
(
Constants
.
SEARCH
);
String
search
=
map
.
get
(
Constants
.
SEARCH
);
String
name
=
StringUtil
.
getInfo
(
search
,
"name"
);
String
name
=
StringUtil
.
getInfo
(
search
,
"name"
);
Integer
type
=
StringUtil
.
parseInteger
(
StringUtil
.
getInfo
(
search
,
"type"
));
Integer
type
=
StringUtil
.
parseInteger
(
StringUtil
.
getInfo
(
search
,
"type"
));
...
...
src/main/java/com/jsh/erp/service/depot/DepotService.java
View file @
a07c71fd
...
@@ -2,6 +2,7 @@ package com.jsh.erp.service.depot;
...
@@ -2,6 +2,7 @@ package com.jsh.erp.service.depot;
import
com.alibaba.fastjson.JSONObject
;
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.DepotEx
;
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.datasource.mappers.DepotMapperEx
;
...
@@ -14,6 +15,7 @@ import org.springframework.transaction.annotation.Transactional;
...
@@ -14,6 +15,7 @@ import org.springframework.transaction.annotation.Transactional;
import
javax.annotation.Resource
;
import
javax.annotation.Resource
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletRequest
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
@Service
@Service
public
class
DepotService
{
public
class
DepotService
{
...
@@ -44,7 +46,7 @@ public class DepotService {
...
@@ -44,7 +46,7 @@ public class DepotService {
return
depotMapperEx
.
selectByConditionDepot
(
name
,
type
,
remark
,
offset
,
rows
);
return
depotMapperEx
.
selectByConditionDepot
(
name
,
type
,
remark
,
offset
,
rows
);
}
}
public
int
countDepot
(
String
name
,
Integer
type
,
String
remark
)
{
public
Long
countDepot
(
String
name
,
Integer
type
,
String
remark
)
{
return
depotMapperEx
.
countsByDepot
(
name
,
type
,
remark
);
return
depotMapperEx
.
countsByDepot
(
name
,
type
,
remark
);
}
}
...
@@ -97,4 +99,8 @@ public class DepotService {
...
@@ -97,4 +99,8 @@ public class DepotService {
return
list
;
return
list
;
}
}
public
List
<
DepotEx
>
getDepotList
(
Map
<
String
,
Object
>
parameterMap
)
{
return
depotMapperEx
.
getDepotList
(
parameterMap
);
}
}
}
src/main/java/com/jsh/erp/service/depotHead/DepotHeadComponent.java
View file @
a07c71fd
...
@@ -41,7 +41,7 @@ public class DepotHeadComponent implements ICommonQuery {
...
@@ -41,7 +41,7 @@ public class DepotHeadComponent implements ICommonQuery {
}
}
@Override
@Override
public
int
counts
(
Map
<
String
,
String
>
map
)
{
public
Long
counts
(
Map
<
String
,
String
>
map
)
{
String
search
=
map
.
get
(
Constants
.
SEARCH
);
String
search
=
map
.
get
(
Constants
.
SEARCH
);
String
type
=
StringUtil
.
getInfo
(
search
,
"type"
);
String
type
=
StringUtil
.
getInfo
(
search
,
"type"
);
String
subType
=
StringUtil
.
getInfo
(
search
,
"subType"
);
String
subType
=
StringUtil
.
getInfo
(
search
,
"subType"
);
...
...
src/main/java/com/jsh/erp/service/depotHead/DepotHeadService.java
View file @
a07c71fd
...
@@ -95,7 +95,7 @@ public class DepotHeadService {
...
@@ -95,7 +95,7 @@ public class DepotHeadService {
public
int
countDepotHead
(
String
type
,
String
subType
,
String
number
,
String
beginTime
,
String
endTime
,
String
dhIds
)
{
public
Long
countDepotHead
(
String
type
,
String
subType
,
String
number
,
String
beginTime
,
String
endTime
,
String
dhIds
)
{
return
depotHeadMapperEx
.
countsByDepotHead
(
type
,
subType
,
number
,
beginTime
,
endTime
,
dhIds
);
return
depotHeadMapperEx
.
countsByDepotHead
(
type
,
subType
,
number
,
beginTime
,
endTime
,
dhIds
);
}
}
...
...
src/main/java/com/jsh/erp/service/depotItem/DepotItemComponent.java
View file @
a07c71fd
...
@@ -38,7 +38,7 @@ public class DepotItemComponent implements ICommonQuery {
...
@@ -38,7 +38,7 @@ public class DepotItemComponent implements ICommonQuery {
}
}
@Override
@Override
public
int
counts
(
Map
<
String
,
String
>
map
)
{
public
Long
counts
(
Map
<
String
,
String
>
map
)
{
String
search
=
map
.
get
(
Constants
.
SEARCH
);
String
search
=
map
.
get
(
Constants
.
SEARCH
);
String
name
=
StringUtil
.
getInfo
(
search
,
"name"
);
String
name
=
StringUtil
.
getInfo
(
search
,
"name"
);
Integer
type
=
StringUtil
.
parseInteger
(
StringUtil
.
getInfo
(
search
,
"type"
));
Integer
type
=
StringUtil
.
parseInteger
(
StringUtil
.
getInfo
(
search
,
"type"
));
...
...
src/main/java/com/jsh/erp/service/depotItem/DepotItemService.java
View file @
a07c71fd
...
@@ -68,7 +68,7 @@ public class DepotItemService {
...
@@ -68,7 +68,7 @@ public class DepotItemService {
return
depotItemMapperEx
.
selectByConditionDepotItem
(
name
,
type
,
remark
,
offset
,
rows
);
return
depotItemMapperEx
.
selectByConditionDepotItem
(
name
,
type
,
remark
,
offset
,
rows
);
}
}
public
int
countDepotItem
(
String
name
,
Integer
type
,
String
remark
)
{
public
Long
countDepotItem
(
String
name
,
Integer
type
,
String
remark
)
{
return
depotItemMapperEx
.
countsByDepotItem
(
name
,
type
,
remark
);
return
depotItemMapperEx
.
countsByDepotItem
(
name
,
type
,
remark
);
}
}
...
@@ -118,7 +118,7 @@ public class DepotItemService {
...
@@ -118,7 +118,7 @@ public class DepotItemService {
return
depotItemMapperEx
.
findDetailByTypeAndMaterialIdList
(
mId
,
QueryUtils
.
offset
(
map
),
QueryUtils
.
rows
(
map
));
return
depotItemMapperEx
.
findDetailByTypeAndMaterialIdList
(
mId
,
QueryUtils
.
offset
(
map
),
QueryUtils
.
rows
(
map
));
}
}
public
int
findDetailByTypeAndMaterialIdCounts
(
Map
<
String
,
String
>
map
)
{
public
Long
findDetailByTypeAndMaterialIdCounts
(
Map
<
String
,
String
>
map
)
{
String
mIdStr
=
map
.
get
(
"mId"
);
String
mIdStr
=
map
.
get
(
"mId"
);
Long
mId
=
null
;
Long
mId
=
null
;
if
(!
StringUtil
.
isEmpty
(
mIdStr
))
{
if
(!
StringUtil
.
isEmpty
(
mIdStr
))
{
...
@@ -137,7 +137,7 @@ public class DepotItemService {
...
@@ -137,7 +137,7 @@ public class DepotItemService {
return
depotItemMapperEx
.
findStockNumByMaterialIdList
(
mId
,
monthTime
,
QueryUtils
.
offset
(
map
),
QueryUtils
.
rows
(
map
));
return
depotItemMapperEx
.
findStockNumByMaterialIdList
(
mId
,
monthTime
,
QueryUtils
.
offset
(
map
),
QueryUtils
.
rows
(
map
));
}
}
public
int
findStockNumByMaterialIdCounts
(
Map
<
String
,
String
>
map
)
{
public
Long
findStockNumByMaterialIdCounts
(
Map
<
String
,
String
>
map
)
{
String
mIdStr
=
map
.
get
(
"mId"
);
String
mIdStr
=
map
.
get
(
"mId"
);
Long
mId
=
null
;
Long
mId
=
null
;
if
(!
StringUtil
.
isEmpty
(
mIdStr
))
{
if
(!
StringUtil
.
isEmpty
(
mIdStr
))
{
...
...
src/main/java/com/jsh/erp/service/functions/FunctionsComponent.java
View file @
a07c71fd
...
@@ -39,7 +39,7 @@ public class FunctionsComponent implements ICommonQuery {
...
@@ -39,7 +39,7 @@ public class FunctionsComponent implements ICommonQuery {
}
}
@Override
@Override
public
int
counts
(
Map
<
String
,
String
>
map
)
{
public
Long
counts
(
Map
<
String
,
String
>
map
)
{
String
search
=
map
.
get
(
Constants
.
SEARCH
);
String
search
=
map
.
get
(
Constants
.
SEARCH
);
String
name
=
StringUtil
.
getInfo
(
search
,
"name"
);
String
name
=
StringUtil
.
getInfo
(
search
,
"name"
);
String
type
=
StringUtil
.
getInfo
(
search
,
"type"
);
String
type
=
StringUtil
.
getInfo
(
search
,
"type"
);
...
...
src/main/java/com/jsh/erp/service/functions/FunctionsService.java
View file @
a07c71fd
...
@@ -38,7 +38,7 @@ public class FunctionsService {
...
@@ -38,7 +38,7 @@ public class FunctionsService {
return
functionsMapperEx
.
selectByConditionFunctions
(
name
,
type
,
offset
,
rows
);
return
functionsMapperEx
.
selectByConditionFunctions
(
name
,
type
,
offset
,
rows
);
}
}
public
int
countFunctions
(
String
name
,
String
type
)
{
public
Long
countFunctions
(
String
name
,
String
type
)
{
return
functionsMapperEx
.
countsByFunctions
(
name
,
type
);
return
functionsMapperEx
.
countsByFunctions
(
name
,
type
);
}
}
...
...
src/main/java/com/jsh/erp/service/inOutItem/InOutItemComponent.java
View file @
a07c71fd
...
@@ -38,7 +38,7 @@ public class InOutItemComponent implements ICommonQuery {
...
@@ -38,7 +38,7 @@ public class InOutItemComponent implements ICommonQuery {
}
}
@Override
@Override
public
int
counts
(
Map
<
String
,
String
>
map
)
{
public
Long
counts
(
Map
<
String
,
String
>
map
)
{
String
search
=
map
.
get
(
Constants
.
SEARCH
);
String
search
=
map
.
get
(
Constants
.
SEARCH
);
String
name
=
StringUtil
.
getInfo
(
search
,
"name"
);
String
name
=
StringUtil
.
getInfo
(
search
,
"name"
);
String
type
=
StringUtil
.
getInfo
(
search
,
"type"
);
String
type
=
StringUtil
.
getInfo
(
search
,
"type"
);
...
...
src/main/java/com/jsh/erp/service/inOutItem/InOutItemService.java
View file @
a07c71fd
...
@@ -38,7 +38,7 @@ public class InOutItemService {
...
@@ -38,7 +38,7 @@ public class InOutItemService {
return
inOutItemMapperEx
.
selectByConditionInOutItem
(
name
,
type
,
remark
,
offset
,
rows
);
return
inOutItemMapperEx
.
selectByConditionInOutItem
(
name
,
type
,
remark
,
offset
,
rows
);
}
}
public
int
countInOutItem
(
String
name
,
String
type
,
String
remark
)
{
public
Long
countInOutItem
(
String
name
,
String
type
,
String
remark
)
{
return
inOutItemMapperEx
.
countsByInOutItem
(
name
,
type
,
remark
);
return
inOutItemMapperEx
.
countsByInOutItem
(
name
,
type
,
remark
);
}
}
...
...
src/main/java/com/jsh/erp/service/log/LogComponent.java
View file @
a07c71fd
...
@@ -43,7 +43,7 @@ public class LogComponent implements ICommonQuery {
...
@@ -43,7 +43,7 @@ public class LogComponent implements ICommonQuery {
}
}
@Override
@Override
public
int
counts
(
Map
<
String
,
String
>
map
)
{
public
Long
counts
(
Map
<
String
,
String
>
map
)
{
String
search
=
map
.
get
(
Constants
.
SEARCH
);
String
search
=
map
.
get
(
Constants
.
SEARCH
);
String
operation
=
StringUtil
.
getInfo
(
search
,
"operation"
);
String
operation
=
StringUtil
.
getInfo
(
search
,
"operation"
);
Integer
usernameID
=
StringUtil
.
parseInteger
(
StringUtil
.
getInfo
(
search
,
"usernameID"
));
Integer
usernameID
=
StringUtil
.
parseInteger
(
StringUtil
.
getInfo
(
search
,
"usernameID"
));
...
...
src/main/java/com/jsh/erp/service/log/LogService.java
View file @
a07c71fd
...
@@ -44,7 +44,7 @@ public class LogService {
...
@@ -44,7 +44,7 @@ public class LogService {
contentdetails
,
offset
,
rows
);
contentdetails
,
offset
,
rows
);
}
}
public
int
countLog
(
String
operation
,
Integer
usernameID
,
String
clientIp
,
Integer
status
,
String
beginTime
,
String
endTime
,
public
Long
countLog
(
String
operation
,
Integer
usernameID
,
String
clientIp
,
Integer
status
,
String
beginTime
,
String
endTime
,
String
contentdetails
)
{
String
contentdetails
)
{
return
logMapperEx
.
countsByLog
(
operation
,
usernameID
,
clientIp
,
status
,
beginTime
,
endTime
,
contentdetails
);
return
logMapperEx
.
countsByLog
(
operation
,
usernameID
,
clientIp
,
status
,
beginTime
,
endTime
,
contentdetails
);
}
}
...
...
src/main/java/com/jsh/erp/service/material/MaterialComponent.java
View file @
a07c71fd
...
@@ -42,7 +42,7 @@ public class MaterialComponent implements ICommonQuery {
...
@@ -42,7 +42,7 @@ public class MaterialComponent implements ICommonQuery {
}
}
@Override
@Override
public
int
counts
(
Map
<
String
,
String
>
map
)
{
public
Long
counts
(
Map
<
String
,
String
>
map
)
{
String
search
=
map
.
get
(
Constants
.
SEARCH
);
String
search
=
map
.
get
(
Constants
.
SEARCH
);
String
name
=
StringUtil
.
getInfo
(
search
,
"name"
);
String
name
=
StringUtil
.
getInfo
(
search
,
"name"
);
String
model
=
StringUtil
.
getInfo
(
search
,
"model"
);
String
model
=
StringUtil
.
getInfo
(
search
,
"model"
);
...
...
src/main/java/com/jsh/erp/service/material/MaterialService.java
View file @
a07c71fd
...
@@ -73,7 +73,7 @@ public class MaterialService {
...
@@ -73,7 +73,7 @@ public class MaterialService {
return
resList
;
return
resList
;
}
}
public
int
countMaterial
(
String
name
,
String
model
,
Long
categoryId
,
String
categoryIds
,
String
mpList
)
{
public
Long
countMaterial
(
String
name
,
String
model
,
Long
categoryId
,
String
categoryIds
,
String
mpList
)
{
return
materialMapperEx
.
countsByMaterial
(
name
,
model
,
categoryId
,
categoryIds
,
mpList
);
return
materialMapperEx
.
countsByMaterial
(
name
,
model
,
categoryId
,
categoryIds
,
mpList
);
}
}
...
...
src/main/java/com/jsh/erp/service/materialCategory/MaterialCategoryComponent.java
View file @
a07c71fd
...
@@ -39,7 +39,7 @@ public class MaterialCategoryComponent implements ICommonQuery {
...
@@ -39,7 +39,7 @@ public class MaterialCategoryComponent implements ICommonQuery {
}
}
@Override
@Override
public
int
counts
(
Map
<
String
,
String
>
map
)
{
public
Long
counts
(
Map
<
String
,
String
>
map
)
{
String
search
=
map
.
get
(
Constants
.
SEARCH
);
String
search
=
map
.
get
(
Constants
.
SEARCH
);
String
name
=
StringUtil
.
getInfo
(
search
,
"name"
);
String
name
=
StringUtil
.
getInfo
(
search
,
"name"
);
Integer
parentId
=
StringUtil
.
parseInteger
(
StringUtil
.
getInfo
(
search
,
"parentId"
));
Integer
parentId
=
StringUtil
.
parseInteger
(
StringUtil
.
getInfo
(
search
,
"parentId"
));
...
...
Prev
1
2
3
4
5
6
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