Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
doc_wei
Skyeye
提交
ed695625
S
Skyeye
项目概览
doc_wei
/
Skyeye
通知
1173
Star
154
Fork
127
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
Skyeye
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
ed695625
编写于
12月 01, 2021
作者:
doc_wei
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
表信息修改
上级
91174647
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
26 addition
and
26 deletion
+26
-26
skyeye-erp/src/main/java/com/skyeye/factory/ErpOrderFactory.java
...erp/src/main/java/com/skyeye/factory/ErpOrderFactory.java
+1
-1
skyeye-erp/src/main/resources/mapper/erp/ErpCommonMapper.xml
skyeye-erp/src/main/resources/mapper/erp/ErpCommonMapper.xml
+1
-1
skyeye-ifs/src/main/resources/mapper/ifs/AccountMapper.xml
skyeye-ifs/src/main/resources/mapper/ifs/AccountMapper.xml
+13
-13
skyeye-ifs/src/main/resources/mapper/ifs/IfsCommonMapper.xml
skyeye-ifs/src/main/resources/mapper/ifs/IfsCommonMapper.xml
+11
-11
未找到文件。
skyeye-erp/src/main/java/com/skyeye/factory/ErpOrderFactory.java
浏览文件 @
ed695625
...
...
@@ -354,7 +354,7 @@ public abstract class ErpOrderFactory {
if
(
orderMation
!=
null
&&
!
orderMation
.
isEmpty
()){
String
status
=
orderMation
.
get
(
"status"
).
toString
();
if
(
ErpConstants
.
ERP_HEADER_STATUS_IS_NOT_APPROVED
.
equals
(
status
)
||
ErpConstants
.
ERP_HEADER_STATUS_IS_APPROVED_NOT_PASS
.
equals
(
status
)){
||
ErpConstants
.
ERP_HEADER_STATUS_IS_APPROVED_NOT_PASS
.
equals
(
status
)){
// 未提交审核或者审核拒绝的可以删除
erpCommonDao
.
deleteOrderParentMationById
(
orderId
,
orderType
);
// 删除子单据信息
...
...
skyeye-erp/src/main/resources/mapper/erp/ErpCommonMapper.xml
浏览文件 @
ed695625
...
...
@@ -44,7 +44,7 @@
FROM
erp_depothead a
LEFT JOIN erp_supplier b ON a.organ_id = b.id
LEFT JOIN
erp
_account c ON a.account_id = c.id
LEFT JOIN
ifs
_account c ON a.account_id = c.id
LEFT JOIN crm_customer d ON a.organ_id = d.id
<!-- 生产计划单信息 -->
LEFT JOIN erp_production_purchase e ON a.id = e.purchase_order_id
...
...
skyeye-ifs/src/main/resources/mapper/ifs/AccountMapper.xml
浏览文件 @
ed695625
...
...
@@ -12,7 +12,7 @@
a.is_default isDefault,
CONVERT (a.create_time, CHAR) createTime
FROM
erp
_account a
ifs
_account a
LEFT JOIN erp_depothead b ON a.id = b.account_id AND b.sub_type NOT IN(10, 11) AND b.delete_flag = '0'
WHERE
a.delete_flag = 0
...
...
@@ -25,15 +25,15 @@
<if
test=
"remark != '' and remark != null"
>
AND a.remark LIKE '%${remark}%'
</if>
GROUP BY a.id
ORDER BY a.create_time DESC
GROUP BY a.id
</select>
<select
id=
"queryAccountByName"
parameterType=
"java.util.Map"
resultType=
"java.util.Map"
>
SELECT
a.id
FROM
erp
_account a
ifs
_account a
WHERE
a.delete_flag = 0
AND a.name = #{accountName}
...
...
@@ -41,7 +41,7 @@
</select>
<insert
id=
"insertAccount"
parameterType=
"java.util.Map"
>
INSERT INTO
erp
_account(
INSERT INTO
ifs
_account(
id, name, serial_no, initial_amount, current_amount, remark, is_default, delete_flag, create_time
) values (#{id}, #{accountName}, #{serialNo}, #{initialAmount}, #{currentAmount}, #{remark}, #{isDefault}, #{deleteFlag}, #{createTime})
</insert>
...
...
@@ -57,7 +57,7 @@
a.is_default isDefault,
CONVERT (a.create_time, CHAR) createTime
FROM
erp
_account a
ifs
_account a
WHERE
a.delete_flag = 0
AND a.id = #{id}
...
...
@@ -65,7 +65,7 @@
</select>
<update
id=
"editAccountByDeleteFlag"
parameterType=
"java.util.Map"
>
UPDATE
erp
_account
UPDATE
ifs
_account
<set>
delete_flag = #{deleteFlag}
</set>
...
...
@@ -77,7 +77,7 @@
SELECT
a.id
FROM
erp
_account a
ifs
_account a
WHERE
a.delete_flag = 0
AND a.id != #{id}
...
...
@@ -86,7 +86,7 @@
</select>
<update
id=
"editAccountById"
parameterType=
"java.util.Map"
>
UPDATE
erp
_account
UPDATE
ifs
_account
<set>
name = #{accountName},
serial_no = #{serialNo},
...
...
@@ -103,7 +103,7 @@
SELECT
a.id
FROM
erp
_account a
ifs
_account a
WHERE
a.delete_flag = 0
AND a.is_default = 1
...
...
@@ -112,14 +112,14 @@
</select>
<update
id=
"editAccountByIsNotDefault"
parameterType=
"java.util.Map"
>
UPDATE
erp
_account
UPDATE
ifs
_account
<set>
is_default = #{isDefault}
</set>
</update>
<update
id=
"editAccountByIdAndIsDefault"
parameterType=
"java.util.Map"
>
UPDATE
erp
_account
UPDATE
ifs
_account
<set>
is_default = #{isDefault}
</set>
...
...
@@ -138,7 +138,7 @@
a.is_default isDefault,
CONVERT (a.create_time, CHAR) createTime
FROM
erp
_account a
ifs
_account a
WHERE
a.delete_flag = 0
AND a.id = #{id}
...
...
@@ -177,7 +177,7 @@
a.id,
a.`name`
FROM
erp
_account a
ifs
_account a
WHERE
a.delete_flag = '0'
ORDER BY a.is_default ASC
...
...
skyeye-ifs/src/main/resources/mapper/ifs/IfsCommonMapper.xml
浏览文件 @
ed695625
...
...
@@ -14,7 +14,7 @@
s.supplier supplierName,
d.`name` customerName
FROM
erp_account
head a
ifs_order_
head a
LEFT JOIN erp_supplier s ON a.organ_id = s.id
LEFT JOIN crm_customer d ON a.organ_id = d.id
WHERE a.delete_flag = '0'
...
...
@@ -29,14 +29,14 @@
</select>
<insert
id=
"insertIfsOrderMation"
parameterType=
"java.util.Map"
>
INSERT INTO
erp_account
head
INSERT INTO
ifs_order_
head
(id, type, organ_id, hands_person_id, change_amount, total_price, account_id, bill_no, bill_time, remark, delete_flag)
VALUES
(#{id}, #{type}, #{organId}, #{handsPersonId}, #{changeAmount}, #{totalPrice}, #{accountId}, #{billNo}, #{operTime}, #{remark}, #{deleteFlag})
</insert>
<insert
id=
"insertIfsOrderItemMation"
parameterType=
"java.util.Map"
>
INSERT INTO
erp_account
item
INSERT INTO
ifs_order_
item
(id, header_id, in_out_item_id, each_amount, remark, delete_flag)
VALUES
<foreach
collection=
"list"
item=
"item"
index=
"index"
separator=
","
>
...
...
@@ -59,7 +59,7 @@
s.supplier supplierName,
b.`name` customName
FROM
erp_account
head a
ifs_order_
head a
LEFT JOIN erp_supplier s ON a.organ_id = s.id
LEFT JOIN crm_customer b ON a.organ_id = b.id
WHERE
...
...
@@ -75,13 +75,13 @@
CONVERT(a.each_amount , decimal(24, 2)) initemMoney,
a.remark
FROM
erp_account
item a
ifs_order_
item a
WHERE
a.header_id = #{orderId}
</select>
<update
id=
"editIfsOrderMation"
parameterType=
"java.util.Map"
>
UPDATE
erp_account
head
UPDATE
ifs_order_
head
<set>
organ_id = #{organId},
hands_person_id = #{handsPersonId},
...
...
@@ -98,7 +98,7 @@
<delete
id=
"deleteIfsOrderMationById"
>
DELETE
FROM
erp_account
head
ifs_order_
head
WHERE
id = #{orderId}
</delete>
...
...
@@ -106,7 +106,7 @@
<delete
id=
"deleteIfsOrderItemMationByOrderId"
>
DELETE
FROM
erp_account
item
ifs_order_
item
WHERE
header_id = #{orderId}
</delete>
...
...
@@ -124,10 +124,10 @@
group_concat(distinct b.user_name) hansPersonName,
t.`name` accountName
FROM
erp_account
head a
ifs_order_
head a
LEFT JOIN erp_supplier s ON a.organ_id = s.id
LEFT JOIN crm_customer d ON a.organ_id = d.id
LEFT JOIN
erp
_account t ON a.account_id = t.id
LEFT JOIN
ifs
_account t ON a.account_id = t.id
LEFT JOIN sys_eve_user_staff b ON INSTR(CONCAT(',', a.hands_person_id, ','), CONCAT(',', b.user_id, ','))
WHERE
a.delete_flag = '0'
...
...
@@ -142,7 +142,7 @@
a.remark,
c.`name` inoutitemName
FROM
erp_account
item a
ifs_order_
item a
LEFT JOIN erp_inoutitem c ON a.in_out_item_id = c.id
WHERE
a.header_id = #{orderId}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录