Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
warehouse
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
胡懿
warehouse
Commits
16428bef
Commit
16428bef
authored
Feb 21, 2023
by
zhanglt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
领用人,操作人属性String类型变成User类型。
物资领用接口调整
parent
d8b7e90f
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
104 additions
and
66 deletions
+104
-66
StaticNumSeq.java
...com/jeeplus/modules/warehouse/code/util/StaticNumSeq.java
+5
-1
MaterialLoss.java
...s/modules/warehouse/materialloss/entity/MaterialLoss.java
+4
-3
MaterialLossInfoMapper.xml
...ehouse/materialloss/mapper/xml/MaterialLossInfoMapper.xml
+1
-1
MaterialLossMapper.xml
.../warehouse/materialloss/mapper/xml/MaterialLossMapper.xml
+5
-4
MaterialLossService.java
...s/warehouse/materialloss/service/MaterialLossService.java
+4
-6
MaterialRequisition.java
...house/materialrequisition/entity/MaterialRequisition.java
+4
-3
MaterialRequisitionInfo.java
...e/materialrequisition/entity/MaterialRequisitionInfo.java
+4
-3
MaterialRequisitionInfoMapper.xml
...lrequisition/mapper/xml/MaterialRequisitionInfoMapper.xml
+9
-5
MaterialRequisitionMapper.xml
...erialrequisition/mapper/xml/MaterialRequisitionMapper.xml
+7
-6
MaterialRequisitionService.java
...terialrequisition/service/MaterialRequisitionService.java
+2
-4
Outbound.java
...m/jeeplus/modules/warehouse/outbound/entity/Outbound.java
+4
-3
OutboundInfoMapper.xml
...ules/warehouse/outbound/mapper/xml/OutboundInfoMapper.xml
+1
-1
OutboundMapper.xml
.../modules/warehouse/outbound/mapper/xml/OutboundMapper.xml
+6
-5
ProfitWarehousingService.java
...e/profitwarehousing/service/ProfitWarehousingService.java
+7
-1
ShelvesMapper.xml
...us/modules/warehouse/shelves/mapper/xml/ShelvesMapper.xml
+26
-5
materialLossList.js
...ebpage/modules/warehouse/materialloss/materialLossList.js
+2
-2
materialRequisitionForm.jsp
...warehouse/materialrequisition/materialRequisitionForm.jsp
+6
-2
materialRequisitionList.js
.../warehouse/materialrequisition/materialRequisitionList.js
+3
-3
outboundList.js
...webapp/webpage/modules/warehouse/outbound/outboundList.js
+2
-2
shelvesList.js
...n/webapp/webpage/modules/warehouse/shelves/shelvesList.js
+2
-6
No files found.
src/main/java/com/jeeplus/modules/warehouse/code/util/StaticNumSeq.java
View file @
16428bef
...
@@ -23,9 +23,13 @@ public class StaticNumSeq {
...
@@ -23,9 +23,13 @@ public class StaticNumSeq {
* */
* */
public
final
static
String
CKDH
=
"CKDH"
;
public
final
static
String
CKDH
=
"CKDH"
;
/**
/**
* 出库单号
*
盘亏
出库单号
* */
* */
public
final
static
String
PKDH
=
"PKDH"
;
public
final
static
String
PKDH
=
"PKDH"
;
/**
* 盘盈利入库单号
* */
public
final
static
String
PYDH
=
"PYDH"
;
/**
/**
* 批次号
* 批次号
...
...
src/main/java/com/jeeplus/modules/warehouse/materialloss/entity/MaterialLoss.java
View file @
16428bef
...
@@ -8,6 +8,7 @@ import com.google.common.collect.Lists;
...
@@ -8,6 +8,7 @@ import com.google.common.collect.Lists;
import
com.jeeplus.core.persistence.DataEntity
;
import
com.jeeplus.core.persistence.DataEntity
;
import
com.jeeplus.common.utils.excel.annotation.ExcelField
;
import
com.jeeplus.common.utils.excel.annotation.ExcelField
;
import
com.jeeplus.modules.sys.entity.User
;
import
java.util.Date
;
import
java.util.Date
;
...
@@ -20,7 +21,7 @@ public class MaterialLoss extends DataEntity<MaterialLoss> {
...
@@ -20,7 +21,7 @@ public class MaterialLoss extends DataEntity<MaterialLoss> {
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
private
String
number
;
// 盘亏单号
private
String
number
;
// 盘亏单号
private
String
operator
;
// 操作人
private
User
operator
;
// 操作人
private
Date
time
;
// 盘亏时间
private
Date
time
;
// 盘亏时间
private
String
beginTime
;
// 开始 盘亏时间
private
String
beginTime
;
// 开始 盘亏时间
private
String
endTime
;
// 结束 盘亏时间
private
String
endTime
;
// 结束 盘亏时间
...
@@ -44,11 +45,11 @@ public class MaterialLoss extends DataEntity<MaterialLoss> {
...
@@ -44,11 +45,11 @@ public class MaterialLoss extends DataEntity<MaterialLoss> {
}
}
@ExcelField
(
title
=
"操作人"
,
align
=
2
,
sort
=
2
)
@ExcelField
(
title
=
"操作人"
,
align
=
2
,
sort
=
2
)
public
String
getOperator
()
{
public
User
getOperator
()
{
return
operator
;
return
operator
;
}
}
public
void
setOperator
(
String
operator
)
{
public
void
setOperator
(
User
operator
)
{
this
.
operator
=
operator
;
this
.
operator
=
operator
;
}
}
...
...
src/main/java/com/jeeplus/modules/warehouse/materialloss/mapper/xml/MaterialLossInfoMapper.xml
View file @
16428bef
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
</sql>
</sql>
<sql
id=
"materialLossInfoJoins"
>
<sql
id=
"materialLossInfoJoins"
>
left join t_wh_ledger_info ledgerInfo on a.ledger_info_id = ledgerInfo.id
</sql>
</sql>
...
...
src/main/java/com/jeeplus/modules/warehouse/materialloss/mapper/xml/MaterialLossMapper.xml
View file @
16428bef
...
@@ -5,18 +5,19 @@
...
@@ -5,18 +5,19 @@
<sql
id=
"materialLossColumns"
>
<sql
id=
"materialLossColumns"
>
a.id AS "id",
a.id AS "id",
a.number AS "number",
a.number AS "number",
a.operator AS "operator",
a.operator AS "operator
.id
",
a.time AS "time",
a.time AS "time",
a.remarks AS "remarks",
a.remarks AS "remarks",
a.create_by AS "createBy.id",
a.create_by AS "createBy.id",
a.create_date AS "createDate",
a.create_date AS "createDate",
a.update_by AS "updateBy.id",
a.update_by AS "updateBy.id",
a.update_date AS "updateDate",
a.update_date AS "updateDate",
operator.name AS "operator.name",
a.del_flag AS "delFlag"
a.del_flag AS "delFlag"
</sql>
</sql>
<sql
id=
"materialLossJoins"
>
<sql
id=
"materialLossJoins"
>
LEFT JOIN sys_user operator ON operator.id = a.operator
</sql>
</sql>
...
@@ -85,7 +86,7 @@
...
@@ -85,7 +86,7 @@
) VALUES (
) VALUES (
#{id},
#{id},
#{number},
#{number},
#{operator},
#{operator
.id
},
#{time},
#{time},
#{remarks},
#{remarks},
#{createBy.id},
#{createBy.id},
...
@@ -99,7 +100,7 @@
...
@@ -99,7 +100,7 @@
<update
id=
"update"
>
<update
id=
"update"
>
UPDATE t_wh_material_loss SET
UPDATE t_wh_material_loss SET
number = #{number},
number = #{number},
operator = #{operator},
operator = #{operator
.id
},
time = #{time},
time = #{time},
remarks = #{remarks},
remarks = #{remarks},
update_by = #{updateBy.id},
update_by = #{updateBy.id},
...
...
src/main/java/com/jeeplus/modules/warehouse/materialloss/service/MaterialLossService.java
View file @
16428bef
...
@@ -92,7 +92,7 @@ public class MaterialLossService extends CrudService<MaterialLossMapper, Materia
...
@@ -92,7 +92,7 @@ public class MaterialLossService extends CrudService<MaterialLossMapper, Materia
materialLossInfoMapper
.
delete
(
new
MaterialLossInfo
(
materialLoss
));
materialLossInfoMapper
.
delete
(
new
MaterialLossInfo
(
materialLoss
));
}
}
@Transactional
(
readOnly
=
false
)
@Transactional
(
readOnly
=
false
)
public
String
create
LY
DH
()
{
public
String
create
PK
DH
()
{
String
pkdh
=
CodeUtil
.
code
(
"PKDH"
,
StaticNumSeq
.
PKDH
);
String
pkdh
=
CodeUtil
.
code
(
"PKDH"
,
StaticNumSeq
.
PKDH
);
return
pkdh
;
return
pkdh
;
}
}
...
@@ -100,7 +100,7 @@ public class MaterialLossService extends CrudService<MaterialLossMapper, Materia
...
@@ -100,7 +100,7 @@ public class MaterialLossService extends CrudService<MaterialLossMapper, Materia
@Transactional
(
readOnly
=
false
)
@Transactional
(
readOnly
=
false
)
public
void
delivery
(
MaterialLoss
materialLoss
)
{
public
void
delivery
(
MaterialLoss
materialLoss
)
{
if
(
materialLoss
.
getNumber
()
==
null
||
Objects
.
equals
(
materialLoss
.
getNumber
(),
""
)){
if
(
materialLoss
.
getNumber
()
==
null
||
Objects
.
equals
(
materialLoss
.
getNumber
(),
""
)){
materialLoss
.
setNumber
(
this
.
create
LY
DH
());
materialLoss
.
setNumber
(
this
.
create
PK
DH
());
}
}
this
.
save
(
materialLoss
);
this
.
save
(
materialLoss
);
Outbound
outbound
=
new
Outbound
();
Outbound
outbound
=
new
Outbound
();
...
@@ -132,16 +132,14 @@ public class MaterialLossService extends CrudService<MaterialLossMapper, Materia
...
@@ -132,16 +132,14 @@ public class MaterialLossService extends CrudService<MaterialLossMapper, Materia
}
catch
(
Exception
e
){
}
catch
(
Exception
e
){
System
.
out
.
println
(
e
.
getMessage
());
System
.
out
.
println
(
e
.
getMessage
());
}
}
String
sql1
=
"UPDATE t_wh_ledger SET num = num - 1, sum = "
+
ledger
.
getSum
()+
" WHERE id = "
+
ledger
.
getId
()
;
ledgerService
.
save
(
ledger
);
this
.
executeUpdateSql
(
sql1
);
}
}
}
}
String
sql
=
"UPDATE t_wh_ledger_info SET del_flag = 1 WHERE id = "
+
ledgerInfoId
;
ledgerInfoMapper
.
deleteByLogic
(
ledgerInfoId
)
;
outboundInfo
.
setId
(
""
);
outboundInfo
.
setId
(
""
);
outboundInfo
.
setOutbound
(
outbound
);
outboundInfo
.
setOutbound
(
outbound
);
outboundInfo
.
setLedgerInfo
(
one
.
getLedgerInfo
());
outboundInfo
.
setLedgerInfo
(
one
.
getLedgerInfo
());
outboundInfoList
.
add
(
outboundInfo
);
outboundInfoList
.
add
(
outboundInfo
);
this
.
executeUpdateSql
(
sql
);
}
}
outbound
.
setOutboundInfoList
(
outboundInfoList
);
outbound
.
setOutboundInfoList
(
outboundInfoList
);
outboundService
.
save
(
outbound
);
outboundService
.
save
(
outbound
);
...
...
src/main/java/com/jeeplus/modules/warehouse/materialrequisition/entity/MaterialRequisition.java
View file @
16428bef
...
@@ -11,6 +11,7 @@ import com.google.common.collect.Lists;
...
@@ -11,6 +11,7 @@ import com.google.common.collect.Lists;
import
com.jeeplus.core.persistence.DataEntity
;
import
com.jeeplus.core.persistence.DataEntity
;
import
com.jeeplus.common.utils.excel.annotation.ExcelField
;
import
com.jeeplus.common.utils.excel.annotation.ExcelField
;
import
com.jeeplus.modules.sys.entity.User
;
/**
/**
* 物资领用Entity
* 物资领用Entity
...
@@ -21,7 +22,7 @@ public class MaterialRequisition extends DataEntity<MaterialRequisition> {
...
@@ -21,7 +22,7 @@ public class MaterialRequisition extends DataEntity<MaterialRequisition> {
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
private
String
number
;
// 领用单号
private
String
number
;
// 领用单号
private
String
operator
;
// 操作人
private
User
operator
;
// 操作人
// private String receiver; // 领用人
// private String receiver; // 领用人
private
Office
office
;
// 领用机构
private
Office
office
;
// 领用机构
private
Date
time
;
// 领用时间
private
Date
time
;
// 领用时间
...
@@ -45,11 +46,11 @@ public class MaterialRequisition extends DataEntity<MaterialRequisition> {
...
@@ -45,11 +46,11 @@ public class MaterialRequisition extends DataEntity<MaterialRequisition> {
}
}
@ExcelField
(
title
=
"操作人"
,
align
=
2
,
sort
=
2
)
@ExcelField
(
title
=
"操作人"
,
align
=
2
,
sort
=
2
)
public
String
getOperator
()
{
public
User
getOperator
()
{
return
operator
;
return
operator
;
}
}
public
void
setOperator
(
String
operator
)
{
public
void
setOperator
(
User
operator
)
{
this
.
operator
=
operator
;
this
.
operator
=
operator
;
}
}
...
...
src/main/java/com/jeeplus/modules/warehouse/materialrequisition/entity/MaterialRequisitionInfo.java
View file @
16428bef
...
@@ -6,6 +6,7 @@ package com.jeeplus.modules.warehouse.materialrequisition.entity;
...
@@ -6,6 +6,7 @@ package com.jeeplus.modules.warehouse.materialrequisition.entity;
import
com.jeeplus.core.persistence.DataEntity
;
import
com.jeeplus.core.persistence.DataEntity
;
import
com.jeeplus.common.utils.excel.annotation.ExcelField
;
import
com.jeeplus.common.utils.excel.annotation.ExcelField
;
import
com.jeeplus.modules.sys.entity.User
;
import
com.jeeplus.modules.warehouse.ledger.entity.LedgerInfo
;
import
com.jeeplus.modules.warehouse.ledger.entity.LedgerInfo
;
/**
/**
...
@@ -17,7 +18,7 @@ public class MaterialRequisitionInfo extends DataEntity<MaterialRequisitionInfo>
...
@@ -17,7 +18,7 @@ public class MaterialRequisitionInfo extends DataEntity<MaterialRequisitionInfo>
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
private
MaterialRequisition
materialRequisition
;
// 物资领用主表ID
private
MaterialRequisition
materialRequisition
;
// 物资领用主表ID
private
String
receiver
;
// 领用人
private
User
receiver
;
// 领用人
private
LedgerInfo
ledgerInfo
;
// 物资台账明细ID
private
LedgerInfo
ledgerInfo
;
// 物资台账明细ID
public
MaterialRequisitionInfo
()
{
public
MaterialRequisitionInfo
()
{
...
@@ -46,11 +47,11 @@ public class MaterialRequisitionInfo extends DataEntity<MaterialRequisitionInfo>
...
@@ -46,11 +47,11 @@ public class MaterialRequisitionInfo extends DataEntity<MaterialRequisitionInfo>
return
ledgerInfo
;
return
ledgerInfo
;
}
}
@ExcelField
(
title
=
"领用人"
,
align
=
2
,
sort
=
3
)
@ExcelField
(
title
=
"领用人"
,
align
=
2
,
sort
=
3
)
public
String
getReceiver
()
{
public
User
getReceiver
()
{
return
receiver
;
return
receiver
;
}
}
public
void
setReceiver
(
String
receiver
)
{
public
void
setReceiver
(
User
receiver
)
{
this
.
receiver
=
receiver
;
this
.
receiver
=
receiver
;
}
}
...
...
src/main/java/com/jeeplus/modules/warehouse/materialrequisition/mapper/xml/MaterialRequisitionInfoMapper.xml
View file @
16428bef
...
@@ -6,17 +6,18 @@
...
@@ -6,17 +6,18 @@
a.id AS "id",
a.id AS "id",
a.material_requisition_id AS "materialRequisition.id",
a.material_requisition_id AS "materialRequisition.id",
a.ledger_info_id AS "ledgerInfo.id",
a.ledger_info_id AS "ledgerInfo.id",
a.receiver AS "receiver",
a.receiver AS "receiver
.id
",
a.create_by AS "createBy.id",
a.create_by AS "createBy.id",
a.create_date AS "createDate",
a.create_date AS "createDate",
a.update_by AS "updateBy.id",
a.update_by AS "updateBy.id",
a.update_date AS "updateDate",
a.update_date AS "updateDate",
a.remarks AS "remarks",
a.remarks AS "remarks",
a.del_flag AS "delFlag"
a.del_flag AS "delFlag",
receiver.name AS "receiver.name"
</sql>
</sql>
<sql
id=
"materialRequisitionInfoJoins"
>
<sql
id=
"materialRequisitionInfoJoins"
>
LEFT JOIN sys_user receiver ON receiver.id = a.receiver
</sql>
</sql>
...
@@ -39,6 +40,9 @@
...
@@ -39,6 +40,9 @@
<if
test=
"materialRequisition != null and materialRequisition.id != null and materialRequisition.id != ''"
>
<if
test=
"materialRequisition != null and materialRequisition.id != null and materialRequisition.id != ''"
>
AND a.material_requisition_id = #{materialRequisition.id}
AND a.material_requisition_id = #{materialRequisition.id}
</if>
</if>
<if
test=
"receiver != null and receiver.id != null and receiver.id != ''"
>
AND a.receiver = #{receiver.id}
</if>
</where>
</where>
<choose>
<choose>
<when
test=
"page !=null and page.orderBy != null and page.orderBy != ''"
>
<when
test=
"page !=null and page.orderBy != null and page.orderBy != ''"
>
...
@@ -88,7 +92,7 @@
...
@@ -88,7 +92,7 @@
) VALUES (
) VALUES (
#{id},
#{id},
#{materialRequisition.id},
#{materialRequisition.id},
#{receiver},
#{receiver
.id
},
#{ledgerInfo.id},
#{ledgerInfo.id},
#{createBy.id},
#{createBy.id},
#{createDate},
#{createDate},
...
@@ -103,7 +107,7 @@
...
@@ -103,7 +107,7 @@
UPDATE t_wh_material_requisition_info SET
UPDATE t_wh_material_requisition_info SET
material_requisition_id = #{materialRequisition.id},
material_requisition_id = #{materialRequisition.id},
ledger_info_id = #{ledgerInfo.id},
ledger_info_id = #{ledgerInfo.id},
receiver = #{receiver},
receiver = #{receiver
.id
},
update_by = #{updateBy.id},
update_by = #{updateBy.id},
update_date = #{updateDate},
update_date = #{updateDate},
remarks = #{remarks}
remarks = #{remarks}
...
...
src/main/java/com/jeeplus/modules/warehouse/materialrequisition/mapper/xml/MaterialRequisitionMapper.xml
View file @
16428bef
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<sql
id=
"materialRequisitionColumns"
>
<sql
id=
"materialRequisitionColumns"
>
a.id AS "id",
a.id AS "id",
a.number AS "number",
a.number AS "number",
a.operator AS "operator",
a.operator AS "operator
.id
",
a.collecting_office_id AS "office.id",
a.collecting_office_id AS "office.id",
a.time AS "time",
a.time AS "time",
a.create_by AS "createBy.id",
a.create_by AS "createBy.id",
...
@@ -14,11 +14,12 @@
...
@@ -14,11 +14,12 @@
a.update_date AS "updateDate",
a.update_date AS "updateDate",
a.del_flag AS "delFlag",
a.del_flag AS "delFlag",
a.remarks AS "remarks",
a.remarks AS "remarks",
operator.name AS "operator.name",
office.name AS "office.name"
office.name AS "office.name"
</sql>
</sql>
<sql
id=
"materialRequisitionJoins"
>
<sql
id=
"materialRequisitionJoins"
>
LEFT JOIN sys_user operator ON operator.id = a.operator
LEFT JOIN sys_office office ON office.id = a.collecting_office_id
LEFT JOIN sys_office office ON office.id = a.collecting_office_id
</sql>
</sql>
...
@@ -42,8 +43,8 @@
...
@@ -42,8 +43,8 @@
<if
test=
"number != null and number != ''"
>
<if
test=
"number != null and number != ''"
>
AND a.number = #{number}
AND a.number = #{number}
</if>
</if>
<if
test=
"operator != null and operator != ''"
>
<if
test=
"operator != null and operator
.id != null and operator.id
!= ''"
>
AND a.operator = #{operator}
AND a.operator = #{operator
.id
}
</if>
</if>
</where>
</where>
<choose>
<choose>
...
@@ -91,7 +92,7 @@
...
@@ -91,7 +92,7 @@
) VALUES (
) VALUES (
#{id},
#{id},
#{number},
#{number},
#{operator},
#{operator
.id
},
#{office.id},
#{office.id},
#{time},
#{time},
#{createBy.id},
#{createBy.id},
...
@@ -106,7 +107,7 @@
...
@@ -106,7 +107,7 @@
<update
id=
"update"
>
<update
id=
"update"
>
UPDATE t_wh_material_requisition SET
UPDATE t_wh_material_requisition SET
number = #{number},
number = #{number},
operator = #{operator},
operator = #{operator
.id
},
collecting_office_id = #{office.id},
collecting_office_id = #{office.id},
time = #{time},
time = #{time},
update_by = #{updateBy.id},
update_by = #{updateBy.id},
...
...
src/main/java/com/jeeplus/modules/warehouse/materialrequisition/service/MaterialRequisitionService.java
View file @
16428bef
...
@@ -131,16 +131,14 @@ public class MaterialRequisitionService extends CrudService<MaterialRequisitionM
...
@@ -131,16 +131,14 @@ public class MaterialRequisitionService extends CrudService<MaterialRequisitionM
}
catch
(
Exception
e
){
}
catch
(
Exception
e
){
System
.
out
.
println
(
e
.
getMessage
());
System
.
out
.
println
(
e
.
getMessage
());
}
}
String
sql1
=
"UPDATE t_wh_ledger SET num = num - 1, sum = "
+
ledger
.
getSum
()+
" WHERE id = "
+
ledger
.
getId
()
;
ledgerService
.
save
(
ledger
);
this
.
executeUpdateSql
(
sql1
);
}
}
}
}
String
sql
=
"UPDATE t_wh_ledger_info SET del_flag = 1 WHERE id = "
+
ledgerInfoId
;
ledgerInfoMapper
.
deleteByLogic
(
ledgerInfoId
)
;
outboundInfo
.
setId
(
""
);
outboundInfo
.
setId
(
""
);
outboundInfo
.
setOutbound
(
outbound
);
outboundInfo
.
setOutbound
(
outbound
);
outboundInfo
.
setLedgerInfo
(
one
.
getLedgerInfo
());
outboundInfo
.
setLedgerInfo
(
one
.
getLedgerInfo
());
outboundInfoList
.
add
(
outboundInfo
);
outboundInfoList
.
add
(
outboundInfo
);
this
.
executeUpdateSql
(
sql
);
}
}
outbound
.
setOutboundInfoList
(
outboundInfoList
);
outbound
.
setOutboundInfoList
(
outboundInfoList
);
outboundService
.
save
(
outbound
);
outboundService
.
save
(
outbound
);
...
...
src/main/java/com/jeeplus/modules/warehouse/outbound/entity/Outbound.java
View file @
16428bef
...
@@ -10,6 +10,7 @@ import com.google.common.collect.Lists;
...
@@ -10,6 +10,7 @@ import com.google.common.collect.Lists;
import
com.jeeplus.core.persistence.DataEntity
;
import
com.jeeplus.core.persistence.DataEntity
;
import
com.jeeplus.common.utils.excel.annotation.ExcelField
;
import
com.jeeplus.common.utils.excel.annotation.ExcelField
;
import
com.jeeplus.modules.sys.entity.User
;
/**
/**
* 出库信息Entity
* 出库信息Entity
...
@@ -23,7 +24,7 @@ public class Outbound extends DataEntity<Outbound> {
...
@@ -23,7 +24,7 @@ public class Outbound extends DataEntity<Outbound> {
private
String
relationId
;
// 相关表单ID
private
String
relationId
;
// 相关表单ID
private
Date
outboundTime
;
// 出库时间
private
Date
outboundTime
;
// 出库时间
private
String
type
;
// 出库分类
private
String
type
;
// 出库分类
private
String
operator
;
// 操作人
private
User
operator
;
// 操作人
private
Date
beginOutboundTime
;
// 开始 出库时间
private
Date
beginOutboundTime
;
// 开始 出库时间
private
Date
endOutboundTime
;
// 结束 出库时间
private
Date
endOutboundTime
;
// 结束 出库时间
private
List
<
OutboundInfo
>
outboundInfoList
=
Lists
.
newArrayList
();
// 子表列表
private
List
<
OutboundInfo
>
outboundInfoList
=
Lists
.
newArrayList
();
// 子表列表
...
@@ -74,11 +75,11 @@ public class Outbound extends DataEntity<Outbound> {
...
@@ -74,11 +75,11 @@ public class Outbound extends DataEntity<Outbound> {
}
}
@ExcelField
(
title
=
"操作人"
,
align
=
2
,
sort
=
5
)
@ExcelField
(
title
=
"操作人"
,
align
=
2
,
sort
=
5
)
public
String
getOperator
()
{
public
User
getOperator
()
{
return
operator
;
return
operator
;
}
}
public
void
setOperator
(
String
operator
)
{
public
void
setOperator
(
User
operator
)
{
this
.
operator
=
operator
;
this
.
operator
=
operator
;
}
}
...
...
src/main/java/com/jeeplus/modules/warehouse/outbound/mapper/xml/OutboundInfoMapper.xml
View file @
16428bef
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
</sql>
</sql>
<sql
id=
"outboundInfoJoins"
>
<sql
id=
"outboundInfoJoins"
>
left join t_wh_ledger_info ledgerInfo on a.ledger_info_id = ledgerInfo.id
</sql>
</sql>
...
...
src/main/java/com/jeeplus/modules/warehouse/outbound/mapper/xml/OutboundMapper.xml
View file @
16428bef
...
@@ -8,17 +8,18 @@
...
@@ -8,17 +8,18 @@
a.relation_id AS "relationId",
a.relation_id AS "relationId",
a.outbound_time AS "outboundTime",
a.outbound_time AS "outboundTime",
a.type AS "type",
a.type AS "type",
a.operator AS "operator",
a.operator AS "operator
.id
",
a.create_by AS "createBy.id",
a.create_by AS "createBy.id",
a.create_date AS "createDate",
a.create_date AS "createDate",
a.update_by AS "updateBy.id",
a.update_by AS "updateBy.id",
a.update_date AS "updateDate",
a.update_date AS "updateDate",
a.remarks AS "remarks",
a.remarks AS "remarks",
operator.name AS "operator.name",
a.del_flag AS "delFlag"
a.del_flag AS "delFlag"
</sql>
</sql>
<sql
id=
"outboundJoins"
>
<sql
id=
"outboundJoins"
>
LEFT JOIN sys_user operator ON operator.id = a.operator
</sql>
</sql>
...
@@ -103,7 +104,7 @@
...
@@ -103,7 +104,7 @@
#{relationId},
#{relationId},
#{outboundTime},
#{outboundTime},
#{type},
#{type},
#{operator},
#{operator
.id
},
#{createBy.id},
#{createBy.id},
#{createDate},
#{createDate},
#{updateBy.id},
#{updateBy.id},
...
@@ -119,7 +120,7 @@
...
@@ -119,7 +120,7 @@
relation_id = #{relationId},
relation_id = #{relationId},
outbound_time = #{outboundTime},
outbound_time = #{outboundTime},
type = #{type},
type = #{type},
operator = #{operator},
operator = #{operator
.id
},
update_by = #{updateBy.id},
update_by = #{updateBy.id},
update_date = #{updateDate},
update_date = #{updateDate},
remarks = #{remarks}
remarks = #{remarks}
...
...
src/main/java/com/jeeplus/modules/warehouse/profitwarehousing/service/ProfitWarehousingService.java
View file @
16428bef
...
@@ -5,6 +5,8 @@ package com.jeeplus.modules.warehouse.profitwarehousing.service;
...
@@ -5,6 +5,8 @@ package com.jeeplus.modules.warehouse.profitwarehousing.service;
import
java.util.List
;
import
java.util.List
;
import
com.jeeplus.modules.warehouse.code.util.CodeUtil
;
import
com.jeeplus.modules.warehouse.code.util.StaticNumSeq
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.annotation.Transactional
;
...
@@ -42,7 +44,11 @@ public class ProfitWarehousingService extends CrudService<ProfitWarehousingMappe
...
@@ -42,7 +44,11 @@ public class ProfitWarehousingService extends CrudService<ProfitWarehousingMappe
public
Page
<
ProfitWarehousing
>
findPage
(
Page
<
ProfitWarehousing
>
page
,
ProfitWarehousing
profitWarehousing
)
{
public
Page
<
ProfitWarehousing
>
findPage
(
Page
<
ProfitWarehousing
>
page
,
ProfitWarehousing
profitWarehousing
)
{
return
super
.
findPage
(
page
,
profitWarehousing
);
return
super
.
findPage
(
page
,
profitWarehousing
);
}
}
@Transactional
(
readOnly
=
false
)
public
String
createPYDH
()
{
String
pydh
=
CodeUtil
.
code
(
"PYDH"
,
StaticNumSeq
.
PYDH
);
return
pydh
;
}
@Transactional
(
readOnly
=
false
)
@Transactional
(
readOnly
=
false
)
public
void
save
(
ProfitWarehousing
profitWarehousing
)
{
public
void
save
(
ProfitWarehousing
profitWarehousing
)
{
super
.
save
(
profitWarehousing
);
super
.
save
(
profitWarehousing
);
...
...
src/main/java/com/jeeplus/modules/warehouse/shelves/mapper/xml/ShelvesMapper.xml
View file @
16428bef
...
@@ -13,11 +13,11 @@
...
@@ -13,11 +13,11 @@
a.update_by AS "updateBy.id",
a.update_by AS "updateBy.id",
a.update_date AS "updateDate",
a.update_date AS "updateDate",
a.del_flag AS "delFlag",
a.del_flag AS "delFlag",
w.name AS "warehouse.name"
w
arehouse
.name AS "warehouse.name"
</sql>
</sql>
<sql
id=
"shelvesJoins"
>
<sql
id=
"shelvesJoins"
>
left join t_wh_warehouse w
on a.warehouse_id = w
.id
left join t_wh_warehouse w
arehouse on a.warehouse_id = warehouse
.id
</sql>
</sql>
...
@@ -30,14 +30,35 @@
...
@@ -30,14 +30,35 @@
</select>
</select>
<select
id=
"findList"
resultType=
"Shelves"
>
<select
id=
"findList"
resultType=
"Shelves"
>
SELECT
SELECT
<include
refid=
"shelvesColumns"
/>
a.id AS "id",
a.name AS "name",
a.number AS "number",
a.warehouse_id AS "warehouse.id",
a.remarks AS "remarks",
a.create_by AS "createBy.id",
a.create_date AS "createDate",
a.update_by AS "updateBy.id",
a.update_date AS "updateDate",
a.del_flag AS "delFlag",
warehouse.name AS "warehouse.name"
FROM t_wh_shelves a
FROM t_wh_shelves a
<include
refid=
"shelvesJoins"
/>
<include
refid=
"shelvesJoins"
/>
<where>
<where>
a.del_flag = #{DEL_FLAG_NORMAL}
a.del_flag = #{DEL_FLAG_NORMAL}
${dataScope}
${dataScope}
<if
test=
"number != null and number != ''"
>
AND a.number = #{number}
</if>
<if
test=
"warehouse != null and warehouse.id != null and warehouse.id != ''"
>
AND a.warehouse_id = #{warehouse.id}
</if>
<if
test=
"name != null and name != ''"
>
AND a.name LIKE
<if
test=
"dbName == 'oracle'"
>
'%'||#{name}||'%'
</if>
<if
test=
"dbName == 'mssql'"
>
'%'+#{name}+'%'
</if>
<if
test=
"dbName == 'mysql'"
>
concat('%',#{name},'%')
</if>
</if>
</where>
</where>
<choose>
<choose>
<when
test=
"page !=null and page.orderBy != null and page.orderBy != ''"
>
<when
test=
"page !=null and page.orderBy != null and page.orderBy != ''"
>
...
...
src/main/webapp/webpage/modules/warehouse/materialloss/materialLossList.js
View file @
16428bef
...
@@ -110,10 +110,10 @@ $(document).ready(function() {
...
@@ -110,10 +110,10 @@ $(document).ready(function() {
}
}
,{
,{
field
:
'operator'
,
field
:
'operator
.name
'
,
title
:
'操作人'
,
title
:
'操作人'
,
sortable
:
true
,
sortable
:
true
,
sortName
:
'operator'
sortName
:
'operator
.name
'
}
}
,{
,{
...
...
src/main/webapp/webpage/modules/warehouse/materialrequisition/materialRequisitionForm.jsp
View file @
16428bef
...
@@ -82,7 +82,11 @@
...
@@ -82,7 +82,11 @@
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<label
class=
"col-sm-2 control-label"
>
操作人:
</label>
<label
class=
"col-sm-2 control-label"
>
操作人:
</label>
<div
class=
"col-sm-10"
>
<div
class=
"col-sm-10"
>
<form:input
path=
"operator"
htmlEscape=
"false"
class=
"form-control "
/>
<div
class=
"col-sm-10"
>
<sys:userselect
id=
"operator"
name=
"operator.id"
value=
"${materialRequisition.operator.id}"
labelName=
"operator.name"
labelValue=
"${materialRequisition.operator.name}"
cssClass=
"form-control "
/>
</div>
<
%
--
<
form:input
path=
"operator"
htmlEscape=
"false"
class=
"form-control "
/>
--%>
</div>
</div>
</div>
</div>
...
@@ -149,7 +153,7 @@
...
@@ -149,7 +153,7 @@
<
/td
>
<
/td
>
<
td
>
<
td
>
<
input
id
=
"materialRequisitionInfoList{{idx}}_receiver"
name
=
"materialRequisitionInfoList[{{idx}}].receiver"
type
=
"text"
value
=
"{{row.receiver}}"
class
=
"form-control "
/>
<
input
id
=
"materialRequisitionInfoList{{idx}}_receiver"
name
=
"materialRequisitionInfoList[{{idx}}].receiver"
type
=
"text"
value
=
"{{row.receiver
.id
}}"
class
=
"form-control "
/>
<
/td
>
<
/td
>
<
td
>
<
td
>
...
...
src/main/webapp/webpage/modules/warehouse/materialrequisition/materialRequisitionList.js
View file @
16428bef
...
@@ -110,10 +110,10 @@ $(document).ready(function() {
...
@@ -110,10 +110,10 @@ $(document).ready(function() {
}
}
,{
,{
field
:
'operator'
,
field
:
'operator
.name
'
,
title
:
'操作人'
,
title
:
'操作人'
,
sortable
:
true
,
sortable
:
true
,
sortName
:
'operator'
sortName
:
'operator
.name
'
}
}
,{
,{
...
@@ -321,7 +321,7 @@ $(document).ready(function() {
...
@@ -321,7 +321,7 @@ $(document).ready(function() {
{{
row
.
ledgerInfo
.
id
}}
{{
row
.
ledgerInfo
.
id
}}
<
/td
>
<
/td
>
<
td
>
<
td
>
{{
row
.
receiver
}}
{{
row
.
receiver
.
name
}}
<
/td
>
<
/td
>
<
td
>
<
td
>
{{
row
.
remarks
}}
{{
row
.
remarks
}}
...
...
src/main/webapp/webpage/modules/warehouse/outbound/outboundList.js
View file @
16428bef
...
@@ -134,10 +134,10 @@ $(document).ready(function() {
...
@@ -134,10 +134,10 @@ $(document).ready(function() {
}
}
,{
,{
field
:
'operator'
,
field
:
'operator
.name
'
,
title
:
'操作人'
,
title
:
'操作人'
,
sortable
:
true
,
sortable
:
true
,
sortName
:
'operator'
sortName
:
'operator
.name
'
}
}
,{
,{
...
...
src/main/webapp/webpage/modules/warehouse/shelves/shelvesList.js
View file @
16428bef
...
@@ -113,14 +113,10 @@ $(document).ready(function() {
...
@@ -113,14 +113,10 @@ $(document).ready(function() {
}
}
,{
,{
field
:
'warehouse.
id
'
,
field
:
'warehouse.
name
'
,
title
:
'仓库id'
,
title
:
'仓库id'
,
sortable
:
true
,
sortable
:
true
,
sortName
:
'warehouse.id'
,
sortName
:
'warehouse.name'
formatter
:
function
(
value
,
row
,
index
){
return
jp
.
getDictLabel
(
$
{
fns
:
toJson
(
fns
:
getDictList
(
''
))},
value
,
"-"
);
}
}
}
,{
,{
field
:
'remarks'
,
field
:
'remarks'
,
...
...
Write
Preview
Markdown
is supported
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