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
54bf4897
Commit
54bf4897
authored
Mar 19, 2019
by
季圣华
Browse files
增加租户的功能
parent
d845b9df
Changes
103
Show whitespace changes
Inline
Side-by-side
src/main/java/com/jsh/erp/datasource/mappers/AppMapper.java
View file @
54bf4897
...
@@ -93,5 +93,4 @@ public interface AppMapper {
...
@@ -93,5 +93,4 @@ public interface AppMapper {
* @mbggenerated
* @mbggenerated
*/
*/
int
updateByPrimaryKey
(
App
record
);
int
updateByPrimaryKey
(
App
record
);
}
}
\ No newline at end of file
src/main/java/com/jsh/erp/datasource/mappers/DepotItemMapper.java
View file @
54bf4897
package
com.jsh.erp.datasource.mappers
;
package
com.jsh.erp.datasource.mappers
;
import
com.jsh.erp.datasource.entities.*
;
import
com.jsh.erp.datasource.entities.DepotItem
;
import
com.jsh.erp.datasource.entities.DepotItemExample
;
import
java.math.BigDecimal
;
import
java.util.List
;
import
java.util.List
;
import
org.apache.ibatis.annotations.Param
;
import
org.apache.ibatis.annotations.Param
;
public
interface
DepotItemMapper
{
public
interface
DepotItemMapper
{
...
...
src/main/java/com/jsh/erp/datasource/mappers/LogMapper.java
View file @
54bf4897
...
@@ -3,8 +3,6 @@ package com.jsh.erp.datasource.mappers;
...
@@ -3,8 +3,6 @@ package com.jsh.erp.datasource.mappers;
import
com.jsh.erp.datasource.entities.Log
;
import
com.jsh.erp.datasource.entities.Log
;
import
com.jsh.erp.datasource.entities.LogExample
;
import
com.jsh.erp.datasource.entities.LogExample
;
import
java.util.List
;
import
java.util.List
;
import
com.jsh.erp.datasource.vo.LogVo4List
;
import
org.apache.ibatis.annotations.Param
;
import
org.apache.ibatis.annotations.Param
;
public
interface
LogMapper
{
public
interface
LogMapper
{
...
...
src/main/java/com/jsh/erp/datasource/mappers/MaterialCategoryMapper.java
View file @
54bf4897
src/main/java/com/jsh/erp/datasource/mappers/MaterialMapper.java
View file @
54bf4897
...
@@ -3,8 +3,6 @@ package com.jsh.erp.datasource.mappers;
...
@@ -3,8 +3,6 @@ package com.jsh.erp.datasource.mappers;
import
com.jsh.erp.datasource.entities.Material
;
import
com.jsh.erp.datasource.entities.Material
;
import
com.jsh.erp.datasource.entities.MaterialExample
;
import
com.jsh.erp.datasource.entities.MaterialExample
;
import
java.util.List
;
import
java.util.List
;
import
com.jsh.erp.datasource.entities.MaterialVo4Unit
;
import
org.apache.ibatis.annotations.Param
;
import
org.apache.ibatis.annotations.Param
;
public
interface
MaterialMapper
{
public
interface
MaterialMapper
{
...
@@ -95,6 +93,4 @@ public interface MaterialMapper {
...
@@ -95,6 +93,4 @@ public interface MaterialMapper {
* @mbggenerated
* @mbggenerated
*/
*/
int
updateByPrimaryKey
(
Material
record
);
int
updateByPrimaryKey
(
Material
record
);
}
}
\ No newline at end of file
src/main/java/com/jsh/erp/datasource/mappers/OrgaUserRelMapper.java
View file @
54bf4897
src/main/java/com/jsh/erp/datasource/mappers/OrganizationMapper.java
View file @
54bf4897
src/main/java/com/jsh/erp/datasource/mappers/SerialNumberMapper.java
View file @
54bf4897
...
@@ -93,5 +93,4 @@ public interface SerialNumberMapper {
...
@@ -93,5 +93,4 @@ public interface SerialNumberMapper {
* @mbggenerated
* @mbggenerated
*/
*/
int
updateByPrimaryKey
(
SerialNumber
record
);
int
updateByPrimaryKey
(
SerialNumber
record
);
}
}
\ No newline at end of file
src/main/java/com/jsh/erp/datasource/mappers/SupplierMapper.java
View file @
54bf4897
src/main/java/com/jsh/erp/datasource/vo/AccountItemVo4List.java
View file @
54bf4897
package
com.jsh.erp.datasource.vo
;
package
com.jsh.erp.datasource.vo
;
import
java.math.BigDecimal
;
import
com.jsh.erp.datasource.entities.AccountItem
;
public
class
AccountItemVo4List
{
public
class
AccountItemVo4List
extends
AccountItem
{
private
Long
id
;
private
Long
headerid
;
private
Long
accountid
;
private
Long
inoutitemid
;
private
BigDecimal
eachamount
;
private
String
remark
;
private
String
accountName
;
private
String
accountName
;
private
String
inOutItemName
;
private
String
inOutItemName
;
public
Long
getId
()
{
return
id
;
}
public
void
setId
(
Long
id
)
{
this
.
id
=
id
;
}
public
Long
getHeaderid
()
{
return
headerid
;
}
public
void
setHeaderid
(
Long
headerid
)
{
this
.
headerid
=
headerid
;
}
public
Long
getAccountid
()
{
return
accountid
;
}
public
void
setAccountid
(
Long
accountid
)
{
this
.
accountid
=
accountid
;
}
public
Long
getInoutitemid
()
{
return
inoutitemid
;
}
public
void
setInoutitemid
(
Long
inoutitemid
)
{
this
.
inoutitemid
=
inoutitemid
;
}
public
BigDecimal
getEachamount
()
{
return
eachamount
;
}
public
void
setEachamount
(
BigDecimal
eachamount
)
{
this
.
eachamount
=
eachamount
;
}
public
String
getRemark
()
{
return
remark
;
}
public
void
setRemark
(
String
remark
)
{
this
.
remark
=
remark
;
}
public
String
getAccountName
()
{
public
String
getAccountName
()
{
return
accountName
;
return
accountName
;
}
}
...
...
src/main/java/com/jsh/erp/datasource/vo/AccountVo4InOutList.java
View file @
54bf4897
...
@@ -20,6 +20,8 @@ public class AccountVo4InOutList {
...
@@ -20,6 +20,8 @@ public class AccountVo4InOutList {
private
String
amList
;
private
String
amList
;
private
Long
tenantId
;
public
String
getNumber
()
{
public
String
getNumber
()
{
return
number
;
return
number
;
}
}
...
@@ -83,4 +85,12 @@ public class AccountVo4InOutList {
...
@@ -83,4 +85,12 @@ public class AccountVo4InOutList {
public
void
setAmList
(
String
amList
)
{
public
void
setAmList
(
String
amList
)
{
this
.
amList
=
amList
;
this
.
amList
=
amList
;
}
}
public
Long
getTenantId
()
{
return
tenantId
;
}
public
void
setTenantId
(
Long
tenantId
)
{
this
.
tenantId
=
tenantId
;
}
}
}
\ No newline at end of file
src/main/java/com/jsh/erp/datasource/vo/AccountVo4List.java
View file @
54bf4897
package
com.jsh.erp.datasource.vo
;
package
com.jsh.erp.datasource.vo
;
import
java.math.BigDecimal
;
import
com.jsh.erp.datasource.entities.Account
;
public
class
AccountVo4List
{
public
class
AccountVo4List
extends
Account
{
private
Long
id
;
private
String
name
;
private
String
serialno
;
private
BigDecimal
initialamount
;
private
BigDecimal
currentamount
;
private
String
remark
;
private
Boolean
isdefault
;
private
String
thismonthamount
;
private
String
thismonthamount
;
public
Long
getId
()
{
return
id
;
}
public
void
setId
(
Long
id
)
{
this
.
id
=
id
;
}
public
String
getName
()
{
return
name
;
}
public
void
setName
(
String
name
)
{
this
.
name
=
name
;
}
public
String
getSerialno
()
{
return
serialno
;
}
public
void
setSerialno
(
String
serialno
)
{
this
.
serialno
=
serialno
;
}
public
BigDecimal
getInitialamount
()
{
return
initialamount
;
}
public
void
setInitialamount
(
BigDecimal
initialamount
)
{
this
.
initialamount
=
initialamount
;
}
public
BigDecimal
getCurrentamount
()
{
return
currentamount
;
}
public
void
setCurrentamount
(
BigDecimal
currentamount
)
{
this
.
currentamount
=
currentamount
;
}
public
String
getRemark
()
{
return
remark
;
}
public
void
setRemark
(
String
remark
)
{
this
.
remark
=
remark
;
}
public
Boolean
getIsdefault
()
{
return
isdefault
;
}
public
void
setIsdefault
(
Boolean
isdefault
)
{
this
.
isdefault
=
isdefault
;
}
public
String
getThismonthamount
()
{
public
String
getThismonthamount
()
{
return
thismonthamount
;
return
thismonthamount
;
}
}
...
...
src/main/java/com/jsh/erp/datasource/vo/DepotHeadVo4InDetail.java
View file @
54bf4897
...
@@ -26,6 +26,8 @@ public class DepotHeadVo4InDetail {
...
@@ -26,6 +26,8 @@ public class DepotHeadVo4InDetail {
private
String
NewType
;
private
String
NewType
;
private
Long
tenantId
;
public
String
getNumber
()
{
public
String
getNumber
()
{
return
Number
;
return
Number
;
}
}
...
@@ -105,4 +107,12 @@ public class DepotHeadVo4InDetail {
...
@@ -105,4 +107,12 @@ public class DepotHeadVo4InDetail {
public
void
setNewType
(
String
newType
)
{
public
void
setNewType
(
String
newType
)
{
NewType
=
newType
;
NewType
=
newType
;
}
}
public
Long
getTenantId
()
{
return
tenantId
;
}
public
void
setTenantId
(
Long
tenantId
)
{
this
.
tenantId
=
tenantId
;
}
}
}
\ No newline at end of file
src/main/java/com/jsh/erp/datasource/vo/DepotHeadVo4InOutMCount.java
View file @
54bf4897
...
@@ -17,6 +17,8 @@ public class DepotHeadVo4InOutMCount {
...
@@ -17,6 +17,8 @@ public class DepotHeadVo4InOutMCount {
private
BigDecimal
priceSum
;
private
BigDecimal
priceSum
;
private
Long
tenantId
;
public
Long
getMaterialId
()
{
public
Long
getMaterialId
()
{
return
MaterialId
;
return
MaterialId
;
}
}
...
@@ -64,4 +66,12 @@ public class DepotHeadVo4InOutMCount {
...
@@ -64,4 +66,12 @@ public class DepotHeadVo4InOutMCount {
public
void
setPriceSum
(
BigDecimal
priceSum
)
{
public
void
setPriceSum
(
BigDecimal
priceSum
)
{
this
.
priceSum
=
priceSum
;
this
.
priceSum
=
priceSum
;
}
}
public
Long
getTenantId
()
{
return
tenantId
;
}
public
void
setTenantId
(
Long
tenantId
)
{
this
.
tenantId
=
tenantId
;
}
}
}
\ No newline at end of file
src/main/java/com/jsh/erp/datasource/vo/DepotHeadVo4List.java
View file @
54bf4897
package
com.jsh.erp.datasource.vo
;
package
com.jsh.erp.datasource.vo
;
import
com.jsh.erp.datasource.entities.DepotHead
;
import
java.math.BigDecimal
;
import
java.math.BigDecimal
;
import
java.util.Date
;
import
java.util.Date
;
public
class
DepotHeadVo4List
{
public
class
DepotHeadVo4List
extends
DepotHead
{
private
Long
id
;
private
String
type
;
private
String
subtype
;
private
Long
projectid
;
private
String
defaultnumber
;
private
String
number
;
private
String
operpersonname
;
private
Date
createtime
;
private
Date
opertime
;
private
Long
organid
;
private
Long
handspersonid
;
private
Long
accountid
;
private
BigDecimal
changeamount
;
private
Long
allocationprojectid
;
private
BigDecimal
totalprice
;
private
String
paytype
;
private
String
remark
;
private
String
salesman
;
private
String
accountidlist
;
private
String
accountmoneylist
;
private
BigDecimal
discount
;
private
BigDecimal
discountmoney
;
private
BigDecimal
discountlastmoney
;
private
BigDecimal
othermoney
;
private
String
othermoneylist
;
private
String
othermoneyitem
;
private
Integer
accountday
;
private
String
status
;
private
String
linknumber
;
private
String
projectName
;
private
String
projectName
;
...
@@ -77,238 +21,6 @@ public class DepotHeadVo4List {
...
@@ -77,238 +21,6 @@ public class DepotHeadVo4List {
private
String
opertimeStr
;
private
String
opertimeStr
;
public
Long
getId
()
{
return
id
;
}
public
void
setId
(
Long
id
)
{
this
.
id
=
id
;
}
public
String
getType
()
{
return
type
;
}
public
void
setType
(
String
type
)
{
this
.
type
=
type
;
}
public
String
getSubtype
()
{
return
subtype
;
}
public
void
setSubtype
(
String
subtype
)
{
this
.
subtype
=
subtype
;
}
public
Long
getProjectid
()
{
return
projectid
;
}
public
void
setProjectid
(
Long
projectid
)
{
this
.
projectid
=
projectid
;
}
public
String
getDefaultnumber
()
{
return
defaultnumber
;
}
public
void
setDefaultnumber
(
String
defaultnumber
)
{
this
.
defaultnumber
=
defaultnumber
;
}
public
String
getNumber
()
{
return
number
;
}
public
void
setNumber
(
String
number
)
{
this
.
number
=
number
;
}
public
String
getOperpersonname
()
{
return
operpersonname
;
}
public
void
setOperpersonname
(
String
operpersonname
)
{
this
.
operpersonname
=
operpersonname
;
}
public
Date
getCreatetime
()
{
return
createtime
;
}
public
void
setCreatetime
(
Date
createtime
)
{
this
.
createtime
=
createtime
;
}
public
Date
getOpertime
()
{
return
opertime
;
}
public
void
setOpertime
(
Date
opertime
)
{
this
.
opertime
=
opertime
;
}
public
Long
getOrganid
()
{
return
organid
;
}
public
void
setOrganid
(
Long
organid
)
{
this
.
organid
=
organid
;
}
public
Long
getHandspersonid
()
{
return
handspersonid
;
}
public
void
setHandspersonid
(
Long
handspersonid
)
{
this
.
handspersonid
=
handspersonid
;
}
public
Long
getAccountid
()
{
return
accountid
;
}
public
void
setAccountid
(
Long
accountid
)
{
this
.
accountid
=
accountid
;
}
public
BigDecimal
getChangeamount
()
{
return
changeamount
;
}
public
void
setChangeamount
(
BigDecimal
changeamount
)
{
this
.
changeamount
=
changeamount
;
}
public
Long
getAllocationprojectid
()
{
return
allocationprojectid
;
}
public
void
setAllocationprojectid
(
Long
allocationprojectid
)
{
this
.
allocationprojectid
=
allocationprojectid
;
}
public
BigDecimal
getTotalprice
()
{
return
totalprice
;
}
public
void
setTotalprice
(
BigDecimal
totalprice
)
{
this
.
totalprice
=
totalprice
;
}
public
String
getPaytype
()
{
return
paytype
;
}
public
void
setPaytype
(
String
paytype
)
{
this
.
paytype
=
paytype
;
}
public
String
getRemark
()
{
return
remark
;
}
public
void
setRemark
(
String
remark
)
{
this
.
remark
=
remark
;
}
public
String
getSalesman
()
{
return
salesman
;
}
public
void
setSalesman
(
String
salesman
)
{
this
.
salesman
=
salesman
;
}
public
String
getAccountidlist
()
{
return
accountidlist
;
}
public
void
setAccountidlist
(
String
accountidlist
)
{
this
.
accountidlist
=
accountidlist
;
}
public
String
getAccountmoneylist
()
{
return
accountmoneylist
;
}
public
void
setAccountmoneylist
(
String
accountmoneylist
)
{
this
.
accountmoneylist
=
accountmoneylist
;
}
public
BigDecimal
getDiscount
()
{
return
discount
;
}
public
void
setDiscount
(
BigDecimal
discount
)
{
this
.
discount
=
discount
;
}
public
BigDecimal
getDiscountmoney
()
{
return
discountmoney
;
}
public
void
setDiscountmoney
(
BigDecimal
discountmoney
)
{
this
.
discountmoney
=
discountmoney
;
}
public
BigDecimal
getDiscountlastmoney
()
{
return
discountlastmoney
;
}
public
void
setDiscountlastmoney
(
BigDecimal
discountlastmoney
)
{
this
.
discountlastmoney
=
discountlastmoney
;
}
public
BigDecimal
getOthermoney
()
{
return
othermoney
;
}
public
void
setOthermoney
(
BigDecimal
othermoney
)
{
this
.
othermoney
=
othermoney
;
}
public
String
getOthermoneylist
()
{
return
othermoneylist
;
}
public
void
setOthermoneylist
(
String
othermoneylist
)
{
this
.
othermoneylist
=
othermoneylist
;
}
public
String
getOthermoneyitem
()
{
return
othermoneyitem
;
}
public
void
setOthermoneyitem
(
String
othermoneyitem
)
{
this
.
othermoneyitem
=
othermoneyitem
;
}
public
Integer
getAccountday
()
{
return
accountday
;
}
public
void
setAccountday
(
Integer
accountday
)
{
this
.
accountday
=
accountday
;
}
public
String
getStatus
()
{
return
status
;
}
public
void
setStatus
(
String
status
)
{
this
.
status
=
status
;
}
public
String
getLinknumber
()
{
return
linknumber
;
}
public
void
setLinknumber
(
String
linknumber
)
{
this
.
linknumber
=
linknumber
;
}
public
String
getProjectName
()
{
public
String
getProjectName
()
{
return
projectName
;
return
projectName
;
}
}
...
...
src/main/java/com/jsh/erp/datasource/vo/DepotHeadVo4StatementAccount.java
View file @
54bf4897
...
@@ -19,6 +19,8 @@ public class DepotHeadVo4StatementAccount {
...
@@ -19,6 +19,8 @@ public class DepotHeadVo4StatementAccount {
private
String
oTime
;
private
String
oTime
;
private
Long
tenantId
;
public
String
getNumber
()
{
public
String
getNumber
()
{
return
number
;
return
number
;
}
}
...
@@ -74,4 +76,12 @@ public class DepotHeadVo4StatementAccount {
...
@@ -74,4 +76,12 @@ public class DepotHeadVo4StatementAccount {
public
void
setoTime
(
String
oTime
)
{
public
void
setoTime
(
String
oTime
)
{
this
.
oTime
=
oTime
;
this
.
oTime
=
oTime
;
}
}
public
Long
getTenantId
()
{
return
tenantId
;
}
public
void
setTenantId
(
Long
tenantId
)
{
this
.
tenantId
=
tenantId
;
}
}
}
\ No newline at end of file
src/main/java/com/jsh/erp/datasource/vo/LogVo4List.java
View file @
54bf4897
package
com.jsh.erp.datasource.vo
;
package
com.jsh.erp.datasource.vo
;
import
java.util.Date
;
import
com.jsh.erp.datasource.entities.Log
;
public
class
LogVo4List
{
public
class
LogVo4List
extends
Log
{
private
Long
id
;
private
Long
userid
;
private
String
operation
;
private
String
clientip
;
private
Date
createtime
;
private
Byte
status
;
private
String
contentdetails
;
private
String
remark
;
private
String
username
;
private
String
username
;
public
Long
getId
()
{
return
id
;
}
public
void
setId
(
Long
id
)
{
this
.
id
=
id
;
}
public
Long
getUserid
()
{
return
userid
;
}
public
void
setUserid
(
Long
userid
)
{
this
.
userid
=
userid
;
}
public
String
getOperation
()
{
return
operation
;
}
public
void
setOperation
(
String
operation
)
{
this
.
operation
=
operation
;
}
public
String
getClientip
()
{
return
clientip
;
}
public
void
setClientip
(
String
clientip
)
{
this
.
clientip
=
clientip
;
}
public
Date
getCreatetime
()
{
return
createtime
;
}
public
void
setCreatetime
(
Date
createtime
)
{
this
.
createtime
=
createtime
;
}
public
Byte
getStatus
()
{
return
status
;
}
public
void
setStatus
(
Byte
status
)
{
this
.
status
=
status
;
}
public
String
getContentdetails
()
{
return
contentdetails
;
}
public
void
setContentdetails
(
String
contentdetails
)
{
this
.
contentdetails
=
contentdetails
;
}
public
String
getRemark
()
{
return
remark
;
}
public
void
setRemark
(
String
remark
)
{
this
.
remark
=
remark
;
}
public
String
getUsername
()
{
public
String
getUsername
()
{
return
username
;
return
username
;
}
}
...
...
src/main/java/com/jsh/erp/service/depotItem/DepotItemService.java
View file @
54bf4897
...
@@ -255,7 +255,7 @@ public class DepotItemService {
...
@@ -255,7 +255,7 @@ public class DepotItemService {
if
(
material
==
null
){
if
(
material
==
null
){
continue
;
continue
;
}
}
if
(
BusinessConstants
.
ENABLE_SERIAL_NUMBER_ENABLED
.
equals
(
material
.
getEnable
S
erial
N
umber
())){
if
(
BusinessConstants
.
ENABLE_SERIAL_NUMBER_ENABLED
.
equals
(
material
.
getEnable
s
erial
n
umber
())){
serialNumberMapperEx
.
cancelSerialNumber
(
depotItem
.
getMaterialid
(),
depotItem
.
getHeaderid
(),
depotItem
.
getBasicnumber
().
intValue
(),
serialNumberMapperEx
.
cancelSerialNumber
(
depotItem
.
getMaterialid
(),
depotItem
.
getHeaderid
(),
depotItem
.
getBasicnumber
().
intValue
(),
new
Date
(),
userInfo
==
null
?
null
:
userInfo
.
getId
());
new
Date
(),
userInfo
==
null
?
null
:
userInfo
.
getId
());
}
}
...
@@ -364,7 +364,7 @@ public class DepotItemService {
...
@@ -364,7 +364,7 @@ public class DepotItemService {
/**
/**
* 判断商品是否开启序列号,开启的收回序列号,未开启的跳过
* 判断商品是否开启序列号,开启的收回序列号,未开启的跳过
* */
* */
if
(
BusinessConstants
.
ENABLE_SERIAL_NUMBER_ENABLED
.
equals
(
material
.
getEnable
S
erial
N
umber
()))
{
if
(
BusinessConstants
.
ENABLE_SERIAL_NUMBER_ENABLED
.
equals
(
material
.
getEnable
s
erial
n
umber
()))
{
//查询单据子表中开启序列号的数据列表
//查询单据子表中开启序列号的数据列表
serialNumberService
.
checkAndUpdateSerialNumber
(
depotItem
,
userInfo
);
serialNumberService
.
checkAndUpdateSerialNumber
(
depotItem
,
userInfo
);
}
}
...
@@ -391,7 +391,7 @@ public class DepotItemService {
...
@@ -391,7 +391,7 @@ public class DepotItemService {
/**
/**
* 判断商品是否开启序列号,开启的收回序列号,未开启的跳过
* 判断商品是否开启序列号,开启的收回序列号,未开启的跳过
* */
* */
if
(
BusinessConstants
.
ENABLE_SERIAL_NUMBER_ENABLED
.
equals
(
material
.
getEnable
S
erial
N
umber
()))
{
if
(
BusinessConstants
.
ENABLE_SERIAL_NUMBER_ENABLED
.
equals
(
material
.
getEnable
s
erial
n
umber
()))
{
serialNumberMapperEx
.
cancelSerialNumber
(
depotItem
.
getMaterialid
(),
depotItem
.
getHeaderid
(),
depotItem
.
getBasicnumber
().
intValue
(),
serialNumberMapperEx
.
cancelSerialNumber
(
depotItem
.
getMaterialid
(),
depotItem
.
getHeaderid
(),
depotItem
.
getBasicnumber
().
intValue
(),
new
Date
(),
userInfo
==
null
?
null
:
userInfo
.
getId
());
new
Date
(),
userInfo
==
null
?
null
:
userInfo
.
getId
());
}
}
...
@@ -471,7 +471,7 @@ public class DepotItemService {
...
@@ -471,7 +471,7 @@ public class DepotItemService {
/**
/**
* 判断商品是否开启序列号,开启的收回序列号,未开启的跳过
* 判断商品是否开启序列号,开启的收回序列号,未开启的跳过
* */
* */
if
(
BusinessConstants
.
ENABLE_SERIAL_NUMBER_ENABLED
.
equals
(
material
.
getEnable
S
erial
N
umber
()))
{
if
(
BusinessConstants
.
ENABLE_SERIAL_NUMBER_ENABLED
.
equals
(
material
.
getEnable
s
erial
n
umber
()))
{
//查询单据子表中开启序列号的数据列表
//查询单据子表中开启序列号的数据列表
serialNumberService
.
checkAndUpdateSerialNumber
(
depotItem
,
userInfo
);
serialNumberService
.
checkAndUpdateSerialNumber
(
depotItem
,
userInfo
);
}
}
...
...
src/main/java/com/jsh/erp/service/serialNumber/SerialNumberService.java
View file @
54bf4897
...
@@ -229,7 +229,7 @@ public class SerialNumberService {
...
@@ -229,7 +229,7 @@ public class SerialNumberService {
}
}
//获得唯一商品
//获得唯一商品
if
(
BusinessConstants
.
ENABLE_SERIAL_NUMBER_NOT_ENABLED
.
equals
(
mlist
.
get
(
0
).
getEnable
S
erial
N
umber
()))
{
if
(
BusinessConstants
.
ENABLE_SERIAL_NUMBER_NOT_ENABLED
.
equals
(
mlist
.
get
(
0
).
getEnable
s
erial
n
umber
()))
{
//商品未开启序列号
//商品未开启序列号
throw
new
BusinessRunTimeException
(
ExceptionConstants
.
MATERIAL_NOT_ENABLE_SERIAL_NUMBER_CODE
,
throw
new
BusinessRunTimeException
(
ExceptionConstants
.
MATERIAL_NOT_ENABLE_SERIAL_NUMBER_CODE
,
ExceptionConstants
.
MATERIAL_NOT_ENABLE_SERIAL_NUMBER_MSG
);
ExceptionConstants
.
MATERIAL_NOT_ENABLE_SERIAL_NUMBER_MSG
);
...
...
src/main/resources/application.properties
View file @
54bf4897
...
@@ -23,6 +23,10 @@ pagehelper.pageSizeZero=true
...
@@ -23,6 +23,10 @@ pagehelper.pageSizeZero=true
pagehelper.reasonable
=
false
pagehelper.reasonable
=
false
pagehelper.params
=
pageNum=pageHelperStart;pageSize=pageHelperRows;
pagehelper.params
=
pageNum=pageHelperStart;pageSize=pageHelperRows;
pagehelper.supportMethodsArguments
=
false
pagehelper.supportMethodsArguments
=
false
#mybatis-plus配置
#open开启 close关闭
mybatis-plus.status
=
close
mybatis-plus.mapper-locations
=
classpath:./mapper_xml/*.xml
...
...
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