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
9c07f55e
"vscode:/vscode.git/clone" did not exist on "149f78d733fd216c22a1cba4c19b28f706395a64"
Commit
9c07f55e
authored
Jun 06, 2019
by
qiankunpingtai
Browse files
从源更新
parents
d4f3f6b6
4b782fab
Changes
40
Show whitespace changes
Inline
Side-by-side
src/main/java/com/jsh/erp/service/functions/FunctionsComponent.java
View file @
9c07f55e
...
@@ -21,8 +21,8 @@ public class FunctionsComponent implements ICommonQuery {
...
@@ -21,8 +21,8 @@ public class FunctionsComponent implements ICommonQuery {
private
FunctionsService
functionsService
;
private
FunctionsService
functionsService
;
@Override
@Override
public
Object
selectOne
(
String
condition
)
throws
Exception
{
public
Object
selectOne
(
Long
id
)
throws
Exception
{
return
null
;
return
functionsService
.
getFunctions
(
id
)
;
}
}
@Override
@Override
...
...
src/main/java/com/jsh/erp/service/inOutItem/InOutItemComponent.java
View file @
9c07f55e
...
@@ -19,8 +19,8 @@ public class InOutItemComponent implements ICommonQuery {
...
@@ -19,8 +19,8 @@ public class InOutItemComponent implements ICommonQuery {
private
InOutItemService
inOutItemService
;
private
InOutItemService
inOutItemService
;
@Override
@Override
public
Object
selectOne
(
String
condition
)
throws
Exception
{
public
Object
selectOne
(
Long
id
)
throws
Exception
{
return
null
;
return
inOutItemService
.
getInOutItem
(
id
)
;
}
}
@Override
@Override
...
...
src/main/java/com/jsh/erp/service/log/LogComponent.java
View file @
9c07f55e
...
@@ -19,8 +19,8 @@ public class LogComponent implements ICommonQuery {
...
@@ -19,8 +19,8 @@ public class LogComponent implements ICommonQuery {
private
LogService
logService
;
private
LogService
logService
;
@Override
@Override
public
Object
selectOne
(
String
condition
)
throws
Exception
{
public
Object
selectOne
(
Long
id
)
throws
Exception
{
return
null
;
return
logService
.
getLog
(
id
)
;
}
}
@Override
@Override
...
...
src/main/java/com/jsh/erp/service/material/MaterialComponent.java
View file @
9c07f55e
...
@@ -21,8 +21,8 @@ public class MaterialComponent implements ICommonQuery {
...
@@ -21,8 +21,8 @@ public class MaterialComponent implements ICommonQuery {
private
MaterialService
materialService
;
private
MaterialService
materialService
;
@Override
@Override
public
Object
selectOne
(
String
condition
)
throws
Exception
{
public
Object
selectOne
(
Long
id
)
throws
Exception
{
return
null
;
return
materialService
.
getMaterial
(
id
)
;
}
}
@Override
@Override
...
...
src/main/java/com/jsh/erp/service/materialCategory/MaterialCategoryComponent.java
View file @
9c07f55e
...
@@ -21,8 +21,8 @@ public class MaterialCategoryComponent implements ICommonQuery {
...
@@ -21,8 +21,8 @@ public class MaterialCategoryComponent implements ICommonQuery {
private
MaterialCategoryService
materialCategoryService
;
private
MaterialCategoryService
materialCategoryService
;
@Override
@Override
public
Object
selectOne
(
String
condition
)
throws
Exception
{
public
Object
selectOne
(
Long
id
)
throws
Exception
{
return
null
;
return
materialCategoryService
.
getMaterialCategory
(
id
)
;
}
}
@Override
@Override
...
...
src/main/java/com/jsh/erp/service/materialProperty/MaterialPropertyComponent.java
View file @
9c07f55e
...
@@ -19,8 +19,8 @@ public class MaterialPropertyComponent implements ICommonQuery {
...
@@ -19,8 +19,8 @@ public class MaterialPropertyComponent implements ICommonQuery {
private
MaterialPropertyService
materialPropertyService
;
private
MaterialPropertyService
materialPropertyService
;
@Override
@Override
public
Object
selectOne
(
String
condition
)
throws
Exception
{
public
Object
selectOne
(
Long
id
)
throws
Exception
{
return
null
;
return
materialPropertyService
.
getMaterialProperty
(
id
)
;
}
}
@Override
@Override
...
...
src/main/java/com/jsh/erp/service/orgaUserRel/OrgaUserRelComponent.java
View file @
9c07f55e
...
@@ -21,9 +21,10 @@ import java.util.Map;
...
@@ -21,9 +21,10 @@ import java.util.Map;
public
class
OrgaUserRelComponent
implements
ICommonQuery
{
public
class
OrgaUserRelComponent
implements
ICommonQuery
{
@Resource
@Resource
private
OrgaUserRelService
orgaUserRelService
;
private
OrgaUserRelService
orgaUserRelService
;
@Override
@Override
public
Object
selectOne
(
String
condition
)
throws
Exception
{
public
Object
selectOne
(
Long
id
)
throws
Exception
{
return
null
;
return
orgaUserRelService
.
getOrgaUserRel
(
id
)
;
}
}
@Override
@Override
...
...
src/main/java/com/jsh/erp/service/orgaUserRel/OrgaUserRelService.java
View file @
9c07f55e
...
@@ -41,6 +41,11 @@ public class OrgaUserRelService {
...
@@ -41,6 +41,11 @@ public class OrgaUserRelService {
private
UserService
userService
;
private
UserService
userService
;
@Resource
@Resource
private
LogService
logService
;
private
LogService
logService
;
public
OrgaUserRel
getOrgaUserRel
(
long
id
)
throws
Exception
{
return
orgaUserRelMapper
.
selectByPrimaryKey
(
id
);
}
@Transactional
(
value
=
"transactionManager"
,
rollbackFor
=
Exception
.
class
)
@Transactional
(
value
=
"transactionManager"
,
rollbackFor
=
Exception
.
class
)
public
int
insertOrgaUserRel
(
String
beanJson
,
HttpServletRequest
request
)
throws
Exception
{
public
int
insertOrgaUserRel
(
String
beanJson
,
HttpServletRequest
request
)
throws
Exception
{
OrgaUserRel
orgaUserRel
=
JSONObject
.
parseObject
(
beanJson
,
OrgaUserRel
.
class
);
OrgaUserRel
orgaUserRel
=
JSONObject
.
parseObject
(
beanJson
,
OrgaUserRel
.
class
);
...
...
src/main/java/com/jsh/erp/service/organization/OrganizationComponent.java
View file @
9c07f55e
...
@@ -22,9 +22,10 @@ import java.util.Map;
...
@@ -22,9 +22,10 @@ import java.util.Map;
public
class
OrganizationComponent
implements
ICommonQuery
{
public
class
OrganizationComponent
implements
ICommonQuery
{
@Resource
@Resource
private
OrganizationService
organizationService
;
private
OrganizationService
organizationService
;
@Override
@Override
public
Object
selectOne
(
String
condition
)
throws
Exception
{
public
Object
selectOne
(
Long
id
)
throws
Exception
{
return
null
;
return
organizationService
.
getOrganization
(
id
)
;
}
}
@Override
@Override
...
...
src/main/java/com/jsh/erp/service/organization/OrganizationService.java
View file @
9c07f55e
...
@@ -44,6 +44,11 @@ public class OrganizationService {
...
@@ -44,6 +44,11 @@ public class OrganizationService {
private
UserService
userService
;
private
UserService
userService
;
@Resource
@Resource
private
LogService
logService
;
private
LogService
logService
;
public
Organization
getOrganization
(
long
id
)
throws
Exception
{
return
organizationMapper
.
selectByPrimaryKey
(
id
);
}
@Transactional
(
value
=
"transactionManager"
,
rollbackFor
=
Exception
.
class
)
@Transactional
(
value
=
"transactionManager"
,
rollbackFor
=
Exception
.
class
)
public
int
insertOrganization
(
String
beanJson
,
HttpServletRequest
request
)
throws
Exception
{
public
int
insertOrganization
(
String
beanJson
,
HttpServletRequest
request
)
throws
Exception
{
Organization
organization
=
JSONObject
.
parseObject
(
beanJson
,
Organization
.
class
);
Organization
organization
=
JSONObject
.
parseObject
(
beanJson
,
Organization
.
class
);
...
...
src/main/java/com/jsh/erp/service/person/PersonComponent.java
View file @
9c07f55e
...
@@ -21,8 +21,8 @@ public class PersonComponent implements ICommonQuery {
...
@@ -21,8 +21,8 @@ public class PersonComponent implements ICommonQuery {
private
PersonService
personService
;
private
PersonService
personService
;
@Override
@Override
public
Object
selectOne
(
String
condition
)
throws
Exception
{
public
Object
selectOne
(
Long
id
)
throws
Exception
{
return
null
;
return
personService
.
getPerson
(
id
)
;
}
}
@Override
@Override
...
...
src/main/java/com/jsh/erp/service/role/RoleComponent.java
View file @
9c07f55e
...
@@ -19,8 +19,8 @@ public class RoleComponent implements ICommonQuery {
...
@@ -19,8 +19,8 @@ public class RoleComponent implements ICommonQuery {
private
RoleService
roleService
;
private
RoleService
roleService
;
@Override
@Override
public
Object
selectOne
(
String
condition
)
throws
Exception
{
public
Object
selectOne
(
Long
id
)
throws
Exception
{
return
null
;
return
roleService
.
getRole
(
id
)
;
}
}
@Override
@Override
...
...
src/main/java/com/jsh/erp/service/serialNumber/SerialNumberComponent.java
View file @
9c07f55e
...
@@ -26,8 +26,8 @@ public class SerialNumberComponent implements ICommonQuery {
...
@@ -26,8 +26,8 @@ public class SerialNumberComponent implements ICommonQuery {
private
SerialNumberService
serialNumberService
;
private
SerialNumberService
serialNumberService
;
@Override
@Override
public
Object
selectOne
(
String
condition
)
throws
Exception
{
public
Object
selectOne
(
Long
id
)
throws
Exception
{
return
null
;
return
serialNumberService
.
getSerialNumber
(
id
)
;
}
}
@Override
@Override
...
...
src/main/java/com/jsh/erp/service/supplier/SupplierComponent.java
View file @
9c07f55e
...
@@ -21,8 +21,8 @@ public class SupplierComponent implements ICommonQuery {
...
@@ -21,8 +21,8 @@ public class SupplierComponent implements ICommonQuery {
private
SupplierService
supplierService
;
private
SupplierService
supplierService
;
@Override
@Override
public
Object
selectOne
(
String
condition
)
throws
Exception
{
public
Object
selectOne
(
Long
id
)
throws
Exception
{
return
null
;
return
supplierService
.
getSupplier
(
id
)
;
}
}
@Override
@Override
...
...
src/main/java/com/jsh/erp/service/systemConfig/SystemConfigComponent.java
View file @
9c07f55e
...
@@ -21,8 +21,8 @@ public class SystemConfigComponent implements ICommonQuery {
...
@@ -21,8 +21,8 @@ public class SystemConfigComponent implements ICommonQuery {
private
SystemConfigService
systemConfigService
;
private
SystemConfigService
systemConfigService
;
@Override
@Override
public
Object
selectOne
(
String
condition
)
throws
Exception
{
public
Object
selectOne
(
Long
id
)
throws
Exception
{
return
null
;
return
systemConfigService
.
getSystemConfig
(
id
)
;
}
}
@Override
@Override
...
...
src/main/java/com/jsh/erp/service/unit/UnitComponent.java
View file @
9c07f55e
...
@@ -20,8 +20,8 @@ public class UnitComponent implements ICommonQuery {
...
@@ -20,8 +20,8 @@ public class UnitComponent implements ICommonQuery {
private
UnitService
unitService
;
private
UnitService
unitService
;
@Override
@Override
public
Object
selectOne
(
String
condition
)
throws
Exception
{
public
Object
selectOne
(
Long
id
)
throws
Exception
{
return
null
;
return
unitService
.
getUnit
(
id
)
;
}
}
@Override
@Override
...
...
src/main/java/com/jsh/erp/service/user/UserComponent.java
View file @
9c07f55e
...
@@ -18,8 +18,8 @@ public class UserComponent implements ICommonQuery {
...
@@ -18,8 +18,8 @@ public class UserComponent implements ICommonQuery {
private
UserService
userService
;
private
UserService
userService
;
@Override
@Override
public
Object
selectOne
(
String
condition
)
throws
Exception
{
public
Object
selectOne
(
Long
id
)
throws
Exception
{
return
null
;
return
userService
.
getUser
(
id
)
;
}
}
@Override
@Override
...
...
src/main/java/com/jsh/erp/service/userBusiness/UserBusinessComponent.java
View file @
9c07f55e
...
@@ -22,8 +22,8 @@ public class UserBusinessComponent implements ICommonQuery {
...
@@ -22,8 +22,8 @@ public class UserBusinessComponent implements ICommonQuery {
private
UserBusinessService
userBusinessService
;
private
UserBusinessService
userBusinessService
;
@Override
@Override
public
Object
selectOne
(
String
condition
)
throws
Exception
{
public
Object
selectOne
(
Long
id
)
throws
Exception
{
return
null
;
return
userBusinessService
.
getUserBusiness
(
id
)
;
}
}
@Override
@Override
...
...
src/main/resources/mapper_xml/DepotHeadMapperEx.xml
View file @
9c07f55e
...
@@ -60,12 +60,6 @@
...
@@ -60,12 +60,6 @@
<bind
name=
"number"
value=
"'%' + _parameter.number + '%'"
/>
<bind
name=
"number"
value=
"'%' + _parameter.number + '%'"
/>
and dh.Number like #{number}
and dh.Number like #{number}
</if>
</if>
<if
test=
"dhIds != null and dhIds != ''"
>
and dh.Id in
<foreach
item=
"dhId"
index=
"index"
collection=
"dhIds.split(',')"
open=
"("
separator=
","
close=
")"
>
#{dhId}
</foreach>
</if>
<if
test=
"beginTime != null and beginTime != ''"
>
<if
test=
"beginTime != null and beginTime != ''"
>
and dh.OperTime >= #{beginTime}
and dh.OperTime >= #{beginTime}
</if>
</if>
...
@@ -93,19 +87,19 @@
...
@@ -93,19 +87,19 @@
<bind
name=
"number"
value=
"'%' + _parameter.number + '%'"
/>
<bind
name=
"number"
value=
"'%' + _parameter.number + '%'"
/>
and Number like #{number}
and Number like #{number}
</if>
</if>
<if
test=
"dhIds != null and dhIds != ''"
>
and Id in
<foreach
item=
"dhId"
index=
"index"
collection=
"dhIds.split(',')"
open=
"("
separator=
","
close=
")"
>
#{dhId}
</foreach>
</if>
<if
test=
"beginTime != null and beginTime != ''"
>
<if
test=
"beginTime != null and beginTime != ''"
>
and OperTime >= #{beginTime}
and OperTime >= #{beginTime}
</if>
</if>
<if
test=
"endTime != null and endTime != ''"
>
<if
test=
"endTime != null and endTime != ''"
>
and OperTime
<
= #{endTime}
and OperTime
<
= #{endTime}
</if>
</if>
and ifnull(delete_Flag,'0') !='1'
<if
test=
"materialParam != null"
>
and (m.`Name` like '%${materialParam}%' or m.Model like '%${materialParam}%')
</if>
<if
test=
"depotIds != null"
>
and di.DepotId in (${depotIds})
</if>
and ifnull(jsh_depothead.delete_Flag,'0') !='1'
</select>
</select>
...
...
src/main/resources/mapper_xml/DepotItemMapperEx.xml
View file @
9c07f55e
...
@@ -2,16 +2,15 @@
...
@@ -2,16 +2,15 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.jsh.erp.datasource.mappers.DepotItemMapperEx"
>
<mapper
namespace=
"com.jsh.erp.datasource.mappers.DepotItemMapperEx"
>
<resultMap
id=
"HeaderIdResultMap"
type=
"com.jsh.erp.datasource.entities.DepotItemVo4HeaderId"
>
<result
column=
"HeaderId"
jdbcType=
"BIGINT"
property=
"headerid"
/>
</resultMap>
<resultMap
id=
"DetailByTypeAndMIdResultMap"
type=
"com.jsh.erp.datasource.entities.DepotItemVo4DetailByTypeAndMId"
>
<resultMap
id=
"DetailByTypeAndMIdResultMap"
type=
"com.jsh.erp.datasource.entities.DepotItemVo4DetailByTypeAndMId"
>
<result
column=
"Number"
jdbcType=
"VARCHAR"
property=
"number"
/>
<result
column=
"Number"
jdbcType=
"VARCHAR"
property=
"number"
/>
<result
column=
"newType"
jdbcType=
"VARCHAR"
property=
"newtype"
/>
<result
column=
"newType"
jdbcType=
"VARCHAR"
property=
"newtype"
/>
<result
column=
"b_num"
jdbcType=
"BIGINT"
property=
"bnum"
/>
<result
column=
"b_num"
jdbcType=
"BIGINT"
property=
"bnum"
/>
<result
column=
"oTime"
jdbcType=
"TIMESTAMP"
property=
"otime"
/>
<result
column=
"oTime"
jdbcType=
"TIMESTAMP"
property=
"otime"
/>
</resultMap>
</resultMap>
<resultMap
id=
"HeaderIdResultMap"
type=
"com.jsh.erp.datasource.entities.DepotItemVo4HeaderId"
>
<result
column=
"HeaderId"
jdbcType=
"BIGINT"
property=
"headerid"
/>
</resultMap>
<resultMap
extends=
"com.jsh.erp.datasource.mappers.DepotItemMapper.BaseResultMap"
id=
"ResultAndMaterialMap"
type=
"com.jsh.erp.datasource.entities.DepotItemVo4Material"
>
<resultMap
extends=
"com.jsh.erp.datasource.mappers.DepotItemMapper.BaseResultMap"
id=
"ResultAndMaterialMap"
type=
"com.jsh.erp.datasource.entities.DepotItemVo4Material"
>
<result
column=
"mName"
jdbcType=
"VARCHAR"
property=
"mname"
/>
<result
column=
"mName"
jdbcType=
"VARCHAR"
property=
"mname"
/>
...
...
Prev
1
2
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