Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
张雷
/
skboot-zhongye
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
构建
提交
问题看板
文件
提交
网络
比较
分支
标签
dad7c4d6
由
康伟
编写于
2024-10-28 11:21:27 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
kangwei :采购计划的选择物料,去年数据使用计划表单的计划年参数
1 个父辈
4d6c01ca
显示空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
15 行增加
和
6 行删除
sk-module-biz/src/main/java/com/skua/modules/erp/controller/ErpCommonController.java
sk-module-biz/src/main/java/com/skua/modules/erp/vo/MaterialSearchVO.java
sk-module-equipment/src/main/java/com/skua/modules/supplies/mapper/EquipmentSparepartSuppliesMapper.java
sk-module-equipment/src/main/java/com/skua/modules/supplies/mapper/xml/EquipmentSparepartSuppliesMapper.xml
sk-module-equipment/src/main/java/com/skua/modules/supplies/service/IEquipmentSparepartSuppliesService.java
sk-module-equipment/src/main/java/com/skua/modules/supplies/service/impl/EquipmentSparepartSuppliesServiceImpl.java
sk-module-biz/src/main/java/com/skua/modules/erp/controller/ErpCommonController.java
查看文件 @
dad7c4d
...
...
@@ -8,6 +8,7 @@ import com.skua.core.aspect.annotation.AutoLog;
import
com.skua.core.context.BaseContextHandler
;
import
com.skua.core.query.QueryGenerator
;
import
com.skua.core.util.ConvertUtils
;
import
com.skua.core.util.DateUtils
;
import
com.skua.modules.equipment.service.IEquipmentSparepartService
;
import
com.skua.modules.erp.entity.ApproveRecord
;
import
com.skua.modules.erp.entity.PurchaseMaterial
;
...
...
@@ -15,6 +16,7 @@ import com.skua.modules.erp.service.IDistributMaterialService;
import
com.skua.modules.erp.service.IPurchaseMaterialService
;
import
com.skua.modules.erp.vo.MaterialSearchVO
;
import
com.skua.modules.erp.vo.PurchaseMaterialVO
;
import
com.skua.modules.guest.util.DateUtil
;
import
com.skua.modules.quartz.util.BaseUtil
;
import
com.skua.modules.supplies.entity.EquipmentSparepartSupplies
;
import
com.skua.modules.supplies.entity.EquipmentSparepartType
;
...
...
@@ -64,9 +66,13 @@ public class ErpCommonController {
sparepartTypeStr
=
String
.
join
(
","
,
sparepartTypeSet
);
}
}
Integer
applyYear
=
DateUtils
.
getYear
()
-
1
;
if
(
materialSearchVO
.
getApplyYear
()
!=
null
){
applyYear
=
materialSearchVO
.
getApplyYear
()
-
1
;
}
// String depId = BaseContextHandler.getRealDepartId();//临时参数
// String username = req.getParameter("username");
IPage
<
EquipmentSparepartSupplies
>
pageList
=
sparepartSuppliesService
.
queryPageByOut
(
page
,
materialSearchVO
.
getSparepartName
()
,
sparepartTypeStr
,
materialSearchVO
.
getSparepartCode
());
IPage
<
EquipmentSparepartSupplies
>
pageList
=
sparepartSuppliesService
.
queryPageByOut
(
page
,
materialSearchVO
.
getSparepartName
()
,
sparepartTypeStr
,
materialSearchVO
.
getSparepartCode
()
,
applyYear
);
result
.
setSuccess
(
true
);
result
.
setResult
(
pageList
);
return
result
;
...
...
sk-module-biz/src/main/java/com/skua/modules/erp/vo/MaterialSearchVO.java
查看文件 @
dad7c4d
...
...
@@ -19,6 +19,9 @@ public class MaterialSearchVO {
@ApiModelProperty
(
value
=
"分销合同编号"
)
private
String
distributContractId
;
@ApiModelProperty
(
value
=
"计划年份"
)
private
Integer
applyYear
;
@ApiModelProperty
(
value
=
"物料编号"
)
private
String
sparepartCode
;
...
...
sk-module-equipment/src/main/java/com/skua/modules/supplies/mapper/EquipmentSparepartSuppliesMapper.java
查看文件 @
dad7c4d
...
...
@@ -19,5 +19,5 @@ public interface EquipmentSparepartSuppliesMapper extends BaseMapper<EquipmentSp
* @return
*/
public
IPage
<
EquipmentSparepartSupplies
>
selectPageByOut
(
Page
<
EquipmentSparepartSupplies
>
page
,
@Param
(
"sparepartName"
)
String
sparepartName
,
@Param
(
"sparepartType"
)
String
sparepartType
,
@Param
(
"sparepartCode"
)
String
sparepartCode
);
@Param
(
"sparepartType"
)
String
sparepartType
,
@Param
(
"sparepartCode"
)
String
sparepartCode
,
@Param
(
"applyYear"
)
Integer
applyYear
);
}
...
...
sk-module-equipment/src/main/java/com/skua/modules/supplies/mapper/xml/EquipmentSparepartSuppliesMapper.xml
查看文件 @
dad7c4d
...
...
@@ -9,7 +9,7 @@
left join (
select sum(out_num) out_num ,sparepart_id from equipment_out_child
where
YEAR(create_time) =
YEAR(CURRENT_DATE - INTERVAL 1 YEAR)
YEAR(create_time) =
#{applyYear}
group by sparepart_id
) aaa on aaa.sparepart_id = ss.id
<where>
...
...
sk-module-equipment/src/main/java/com/skua/modules/supplies/service/IEquipmentSparepartSuppliesService.java
查看文件 @
dad7c4d
...
...
@@ -15,5 +15,5 @@ public interface IEquipmentSparepartSuppliesService extends IService<EquipmentSp
* @param depId
* @return
*/
public
IPage
<
EquipmentSparepartSupplies
>
queryPageByOut
(
Page
<
EquipmentSparepartSupplies
>
page
,
String
sparepartName
,
String
sparepartType
,
String
sparepartCode
);
public
IPage
<
EquipmentSparepartSupplies
>
queryPageByOut
(
Page
<
EquipmentSparepartSupplies
>
page
,
String
sparepartName
,
String
sparepartType
,
String
sparepartCode
,
Integer
applyYear
);
}
...
...
sk-module-equipment/src/main/java/com/skua/modules/supplies/service/impl/EquipmentSparepartSuppliesServiceImpl.java
查看文件 @
dad7c4d
...
...
@@ -20,7 +20,7 @@ public class EquipmentSparepartSuppliesServiceImpl extends ServiceImpl<Equipment
* @param
* @return
*/
public
IPage
<
EquipmentSparepartSupplies
>
queryPageByOut
(
Page
<
EquipmentSparepartSupplies
>
page
,
String
sparepartName
,
String
sparepartType
,
String
sparepartCode
){
return
baseMapper
.
selectPageByOut
(
page
,
sparepartName
,
sparepartType
,
sparepartCode
);
public
IPage
<
EquipmentSparepartSupplies
>
queryPageByOut
(
Page
<
EquipmentSparepartSupplies
>
page
,
String
sparepartName
,
String
sparepartType
,
String
sparepartCode
,
Integer
applyYear
){
return
baseMapper
.
selectPageByOut
(
page
,
sparepartName
,
sparepartType
,
sparepartCode
,
applyYear
);
}
}
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论