Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cloud-fb
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
王衍超
cloud-fb
Commits
7c3611f1
Commit
7c3611f1
authored
Dec 14, 2021
by
高晓磊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
销售记录保存新增一个 返回余额的字段.合同 需用计划 临时销售计划中车牌号字段长度修改为800
parent
a38de63d
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
14 additions
and
10 deletions
+14
-10
Contract.mk
.../main/model/com/xyst/dinas/contract/datamodel/Contract.mk
+1
-1
Contract.jmx
.../resources/com/xyst/dinas/contract/datamodel/Contract.jmx
+1
-1
Contract.hbm.xml
...dinas.contract/src/main/resources/config/Contract.hbm.xml
+1
-1
SalesRecordServiceImpl.java
.../dinas/sales/internal/service/SalesRecordServiceImpl.java
+5
-0
NeedPlan.mk
...src/main/model/com/xyst/dinas/sales/datamodel/NeedPlan.mk
+1
-1
SalesPlanTemp.mk
...ain/model/com/xyst/dinas/sales/datamodel/SalesPlanTemp.mk
+1
-1
NeedPlan.jmx
...ain/resources/com/xyst/dinas/sales/datamodel/NeedPlan.jmx
+1
-1
SalesPlanTemp.jmx
...esources/com/xyst/dinas/sales/datamodel/SalesPlanTemp.jmx
+1
-1
NeedPlan.hbm.xml
...st.dinas.sales/src/main/resources/config/NeedPlan.hbm.xml
+1
-1
SalesPlanTemp.hbm.xml
...nas.sales/src/main/resources/config/SalesPlanTemp.hbm.xml
+1
-1
WeighbridgeSyncController.java
...m/xyst/dinas/transport/web/WeighbridgeSyncController.java
+0
-1
No files found.
backend/xyst.dinas.contract/src/main/model/com/xyst/dinas/contract/datamodel/Contract.mk
View file @
7c3611f1
...
...
@@ -94,7 +94,7 @@
<annotation id='c7541b9d-4e81-4d58-8c37-f4c610cda822' attributeId='f154b68d-97da-4761-bc1f-3d17a99e6324' name='scale' value='4'></annotation>
</attribute>
<attribute id='0933ceb1-f327-4372-a316-cffa1c80991a' name='carInfo' columnName='car_info' title='车辆信息' type='string' default='' precision='' isArray='false'>
<annotation id='6f08f4ca-1f77-4ed4-a627-0fb8843959fa' attributeId='dfbeaa83-63dc-4638-b55a-8dda62d74dd4' name='length' value='
3
00'></annotation>
<annotation id='6f08f4ca-1f77-4ed4-a627-0fb8843959fa' attributeId='dfbeaa83-63dc-4638-b55a-8dda62d74dd4' name='length' value='
8
00'></annotation>
</attribute>
<attribute id='0933ceb1-f327-4372-a316-cffa1c80991a' name='memo' columnName='memo' title='备注' type='string' default='' precision='' isArray='false'>
<annotation id='6f08f4ca-1f77-4ed4-a627-0fb8843959fa' attributeId='dfbeaa83-63dc-4638-b55a-8dda62d74dd4' name='length' value='500'></annotation>
...
...
backend/xyst.dinas.contract/src/main/resources/com/xyst/dinas/contract/datamodel/Contract.jmx
View file @
7c3611f1
...
...
@@ -572,7 +572,7 @@
<m:annotations>
<m:annotation>
<m:type>
bcp.type.constraint.StringLength
</m:type>
<m:value>
3
00
</m:value>
<m:value>
8
00
</m:value>
</m:annotation>
<m:annotation>
<m:type>
javax.persistence.Column
</m:type>
...
...
backend/xyst.dinas.contract/src/main/resources/config/Contract.hbm.xml
View file @
7c3611f1
...
...
@@ -106,7 +106,7 @@
<column
name=
"dinas_amount"
precision=
"12"
scale=
"4"
></column>
</property>
<property
name=
"carInfo"
type=
"nstring"
not-null=
"false"
>
<column
name=
"car_info"
length=
"
3
00"
></column>
<column
name=
"car_info"
length=
"
8
00"
></column>
</property>
<property
name=
"memo"
type=
"nstring"
not-null=
"false"
>
<column
name=
"memo"
length=
"500"
></column>
...
...
backend/xyst.dinas.sales/src/main/java/com/xyst/dinas/sales/internal/service/SalesRecordServiceImpl.java
View file @
7c3611f1
...
...
@@ -79,6 +79,7 @@ public class SalesRecordServiceImpl implements SalesRecordService {
logger
.
info
(
"开始同步地磅记录,传输参数为:"
+
JsonUtil
.
beanToJson
(
salesRecordInfo
));
HashMap
<
String
,
Object
>
returnMap
=
new
HashMap
<>(
12
);
try
{
BigDecimal
advanceBalance1
=
new
BigDecimal
(
0
);
Date
thentime
=
new
Date
();
// 获取砂石类型
KObject
dinasType
;
...
...
@@ -183,9 +184,11 @@ public class SalesRecordServiceImpl implements SalesRecordService {
returnMap
.
put
(
"message"
,
"余额不足:"
+
advanceBalance
);
return
returnMap
;
}
advanceBalance1
=
advanceBalance
.
subtract
(
salesRecord
.
getBigDecimal
(
SalesRecordConstant
.
DEALAMOUNT
));
// 更新合同子表合同砂石余量(吨)-更新合同表付款余额、销售总量信息
contractService
.
modifyInventory
(
UUID
.
fromString
(
salesRecordInfo
.
getContractId
()),
UUID
.
fromString
(
salesRecordInfo
.
getDinasTypeId
()),
dealAmount
,
amount
);
//添加预付款记录
}
//根据销售类型判断修改需用计划还是临时销售计划
...
...
@@ -243,6 +246,8 @@ public class SalesRecordServiceImpl implements SalesRecordService {
}
returnMap
.
put
(
"code"
,
200
);
returnMap
.
put
(
"id"
,
salesRecordId
.
toString
());
returnMap
.
put
(
"advanceBalance"
,
advanceBalance1
);
returnMap
.
put
(
"message"
,
"新增成功"
);
return
returnMap
;
...
...
backend/xyst.dinas.sales/src/main/model/com/xyst/dinas/sales/datamodel/NeedPlan.mk
View file @
7c3611f1
...
...
@@ -56,7 +56,7 @@
</annotation>
</attribute>
<attribute id='2e29930f-7250-4714-b41c-5bd3ffee2c4e' name='transportLicensePlateNumber' columnName='transport_license_plate_number' title='运输车牌号' type='string' default='' precision='' isArray='false'>
<annotation id='14f073bb-ea3a-4ab3-971c-223040cbe678' attributeId='59d25e8c-9537-4c27-8846-8c58eedc098f' name='length' value='
3
00'>
<annotation id='14f073bb-ea3a-4ab3-971c-223040cbe678' attributeId='59d25e8c-9537-4c27-8846-8c58eedc098f' name='length' value='
8
00'>
</annotation>
</attribute>
<attribute id='a52906e5-5b99-48c2-8b65-411f32ffa90f' name='needPlanTotalAmount' columnName='need_plan_total_amount' title='需用计划总量' type='fixnum' default='' precision='' isArray='false'>
...
...
backend/xyst.dinas.sales/src/main/model/com/xyst/dinas/sales/datamodel/SalesPlanTemp.mk
View file @
7c3611f1
...
...
@@ -37,7 +37,7 @@
<annotation id='e6ba6d4e-4430-45d5-9630-38e243786605' attributeId='2981edad-6163-4fac-9f51-d8aace3c9562' name='length' value='30'></annotation>
</attribute>
<attribute id='2e29930f-7250-4714-b41c-5bd3ffee2c4e' name='carNumber' columnName='car_number' title='车牌号' type='string' default='' precision='' isArray='false'>
<annotation id='14f073bb-ea3a-4ab3-971c-223040cbe678' attributeId='59d25e8c-9537-4c27-8846-8c58eedc098f' name='length' value='
3
00'>
<annotation id='14f073bb-ea3a-4ab3-971c-223040cbe678' attributeId='59d25e8c-9537-4c27-8846-8c58eedc098f' name='length' value='
8
00'>
</annotation>
</attribute>
<attribute id='a52906e5-5b99-48c2-8b65-411f32ffa90f' name='totalPlanAmount' columnName='total_plan_amount' title='销售计划总量' type='fixnum' default='' precision='' isArray='false'>
...
...
backend/xyst.dinas.sales/src/main/resources/com/xyst/dinas/sales/datamodel/NeedPlan.jmx
View file @
7c3611f1
...
...
@@ -257,7 +257,7 @@
<m:annotations>
<m:annotation>
<m:type>
bcp.type.constraint.StringLength
</m:type>
<m:value>
3
00
</m:value>
<m:value>
8
00
</m:value>
</m:annotation>
<m:annotation>
<m:type>
javax.persistence.Column
</m:type>
...
...
backend/xyst.dinas.sales/src/main/resources/com/xyst/dinas/sales/datamodel/SalesPlanTemp.jmx
View file @
7c3611f1
...
...
@@ -201,7 +201,7 @@
<m:annotations>
<m:annotation>
<m:type>
bcp.type.constraint.StringLength
</m:type>
<m:value>
3
00
</m:value>
<m:value>
8
00
</m:value>
</m:annotation>
<m:annotation>
<m:type>
javax.persistence.Column
</m:type>
...
...
backend/xyst.dinas.sales/src/main/resources/config/NeedPlan.hbm.xml
View file @
7c3611f1
...
...
@@ -64,7 +64,7 @@
<column
name=
"submit_state"
length=
"100"
></column>
</property>
<property
name=
"transportLicensePlateNumber"
type=
"nstring"
not-null=
"false"
>
<column
name=
"transport_license_plate_number"
length=
"
1
00"
></column>
<column
name=
"transport_license_plate_number"
length=
"
3
00"
></column>
</property>
<property
name=
"needPlanTotalAmount"
type=
"big_decimal"
not-null=
"false"
>
<column
name=
"need_plan_total_amount"
precision=
"12"
scale=
"4"
></column>
...
...
backend/xyst.dinas.sales/src/main/resources/config/SalesPlanTemp.hbm.xml
View file @
7c3611f1
...
...
@@ -66,7 +66,7 @@
<column
name=
"transport_mode"
length=
"30"
></column>
</property>
<property
name=
"carNumber"
type=
"nstring"
not-null=
"false"
>
<column
name=
"car_number"
length=
"
1
00"
></column>
<column
name=
"car_number"
length=
"
8
00"
></column>
</property>
<property
name=
"totalPlanAmount"
type=
"big_decimal"
not-null=
"false"
>
<column
name=
"total_plan_amount"
precision=
"12"
scale=
"4"
></column>
...
...
backend/xyst.dinas.transport/src/main/java/com/xyst/dinas/transport/web/WeighbridgeSyncController.java
View file @
7c3611f1
...
...
@@ -8,7 +8,6 @@ import com.beecode.bap.attachment.service.AttachmentService;
import
com.beecode.bcp.type.KObject
;
import
com.beecode.inz.basis.team.pojo.ResponseObj
;
import
com.xyst.dinas.biz.service.StationService
;
import
com.xyst.dinas.sales.entity.StationDinasTypeRelation
;
import
com.xyst.dinas.sales.service.InventoryService
;
import
com.xyst.dinas.sales.service.SalesPlanService
;
import
com.xyst.dinas.sales.service.SalesRecordService
;
...
...
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