Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mes
Project
Project
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
ximai
mes
Commits
5b5ed993
Commit
5b5ed993
authored
Oct 24, 2024
by
温志超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
生产版本 : 增加上传等
parent
0fbc8942
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
94 additions
and
4 deletions
+94
-4
MdWorkunitWorkerController.java
...m/ximai/mes/md/controller/MdWorkunitWorkerController.java
+16
-0
MdWorkunitWorkerMapper.java
.../java/com/ximai/mes/md/mapper/MdWorkunitWorkerMapper.java
+2
-0
IMdWorkunitWorkerService.java
...va/com/ximai/mes/md/service/IMdWorkunitWorkerService.java
+2
-0
MdWorkunitWorkerServiceImpl.java
...imai/mes/md/service/impl/MdWorkunitWorkerServiceImpl.java
+16
-0
ProFeedback.java
mes/src/main/java/com/ximai/mes/pro/domain/ProFeedback.java
+10
-0
ProProductionSolution.java
.../pro/domain/productionSolution/ProProductionSolution.java
+7
-0
ProFeedbackVo.java
.../main/java/com/ximai/mes/pro/domain/vo/ProFeedbackVo.java
+8
-0
ProProductionSolutionVo.java
.../com/ximai/mes/pro/domain/vo/ProProductionSolutionVo.java
+6
-2
MdWorkunitWorkerMapper.xml
mes/src/main/resources/mapper/md/MdWorkunitWorkerMapper.xml
+7
-0
ProFeedbackMapper.xml
mes/src/main/resources/mapper/pro/ProFeedbackMapper.xml
+13
-1
ProProductionSolutionMapper.xml
...er/pro/productionSolution/ProProductionSolutionMapper.xml
+7
-1
No files found.
mes/src/main/java/com/ximai/mes/md/controller/MdWorkunitWorkerController.java
View file @
5b5ed993
...
@@ -60,6 +60,22 @@ public class MdWorkunitWorkerController extends BaseController {
...
@@ -60,6 +60,22 @@ public class MdWorkunitWorkerController extends BaseController {
List
<
MdWorkunitWorker
>
list
=
mdWorkunitWorkerService
.
selectMdWorkunitWorkerList
(
mdWorkunitWorker
);
List
<
MdWorkunitWorker
>
list
=
mdWorkunitWorkerService
.
selectMdWorkunitWorkerList
(
mdWorkunitWorker
);
return
getDataTable
(
list
);
return
getDataTable
(
list
);
}
}
/**
* 查询岗位资源列表
*/
@PreAuthorize
(
"@ss.hasPermi('md:worker:list')"
)
@GetMapping
(
"/getMdWorkunitWorkerByUserName"
)
public
AjaxResult
getMdWorkunitWorkerByUserName
(
MdWorkunitWorker
mdWorkunitWorker
)
{
MdWorkunitWorker
list
=
mdWorkunitWorkerService
.
getMdWorkunitWorkerByUserName
(
mdWorkunitWorker
);
return
AjaxResult
.
success
(
"查询成功"
,
list
);
}
/**
/**
* 查询工作单元列表
* 查询工作单元列表
*/
*/
...
...
mes/src/main/java/com/ximai/mes/md/mapper/MdWorkunitWorkerMapper.java
View file @
5b5ed993
...
@@ -65,4 +65,6 @@ public interface MdWorkunitWorkerMapper extends BaseMapper<MdWorkunitWorker> {
...
@@ -65,4 +65,6 @@ public interface MdWorkunitWorkerMapper extends BaseMapper<MdWorkunitWorker> {
* @return 结果
* @return 结果
*/
*/
int
deleteMdWorkunitWorkerByIds
(
Long
[]
ids
);
int
deleteMdWorkunitWorkerByIds
(
Long
[]
ids
);
MdWorkunitWorker
getMdWorkunitWorkerByUserName
(
MdWorkunitWorker
mdWorkunitWorker
);
}
}
mes/src/main/java/com/ximai/mes/md/service/IMdWorkunitWorkerService.java
View file @
5b5ed993
...
@@ -62,4 +62,6 @@ public interface IMdWorkunitWorkerService {
...
@@ -62,4 +62,6 @@ public interface IMdWorkunitWorkerService {
int
insertObj
(
MdWorkunitWorker
mdWorkunitWorker
);
int
insertObj
(
MdWorkunitWorker
mdWorkunitWorker
);
int
updateObj
(
MdWorkunitWorker
mdWorkunitWorker
);
int
updateObj
(
MdWorkunitWorker
mdWorkunitWorker
);
MdWorkunitWorker
getMdWorkunitWorkerByUserName
(
MdWorkunitWorker
mdWorkunitWorker
);
}
}
mes/src/main/java/com/ximai/mes/md/service/impl/MdWorkunitWorkerServiceImpl.java
View file @
5b5ed993
...
@@ -4,15 +4,18 @@ import com.ximai.common.core.domain.entity.SysDept;
...
@@ -4,15 +4,18 @@ import com.ximai.common.core.domain.entity.SysDept;
import
com.ximai.common.core.domain.entity.SysUser
;
import
com.ximai.common.core.domain.entity.SysUser
;
import
com.ximai.common.utils.MessageUtils
;
import
com.ximai.common.utils.MessageUtils
;
import
com.ximai.common.utils.data.ExceptionUtil
;
import
com.ximai.common.utils.data.ExceptionUtil
;
import
com.ximai.common.utils.data.StringUtils
;
import
com.ximai.mes.md.domain.MdWorkunitWorker
;
import
com.ximai.mes.md.domain.MdWorkunitWorker
;
import
com.ximai.mes.md.mapper.MdWorkunitWorkerMapper
;
import
com.ximai.mes.md.mapper.MdWorkunitWorkerMapper
;
import
com.ximai.mes.md.service.IMdWorkunitWorkerService
;
import
com.ximai.mes.md.service.IMdWorkunitWorkerService
;
import
com.ximai.system.mapper.SysDeptMapper
;
import
com.ximai.system.mapper.SysDeptMapper
;
import
com.ximai.system.service.ISysUserService
;
import
com.ximai.system.service.ISysUserService
;
import
io.swagger.annotations.ApiModelProperty
;
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
javax.annotation.Resource
;
import
javax.annotation.Resource
;
import
java.math.BigDecimal
;
import
java.util.List
;
import
java.util.List
;
/**
/**
...
@@ -53,6 +56,11 @@ public class MdWorkunitWorkerServiceImpl implements IMdWorkunitWorkerService {
...
@@ -53,6 +56,11 @@ public class MdWorkunitWorkerServiceImpl implements IMdWorkunitWorkerService {
return
mdWorkunitWorkerMapper
.
selectMdWorkunitWorkerList
(
mdWorkunitWorker
);
return
mdWorkunitWorkerMapper
.
selectMdWorkunitWorkerList
(
mdWorkunitWorker
);
}
}
/**
/**
* 新增岗位资源
* 新增岗位资源
*
*
...
@@ -126,4 +134,12 @@ public class MdWorkunitWorkerServiceImpl implements IMdWorkunitWorkerService {
...
@@ -126,4 +134,12 @@ public class MdWorkunitWorkerServiceImpl implements IMdWorkunitWorkerService {
}
}
return
this
.
updateMdWorkunitWorker
(
mdWorkunitWorker
);
return
this
.
updateMdWorkunitWorker
(
mdWorkunitWorker
);
}
}
@Override
public
MdWorkunitWorker
getMdWorkunitWorkerByUserName
(
MdWorkunitWorker
mdWorkunitWorker
)
{
ExceptionUtil
.
checkTrueThrowException
(
mdWorkunitWorker
.
getWorkunitId
()
==
null
||
StringUtils
.
isEmpty
(
mdWorkunitWorker
.
getUserName
()),
"用户名和工作单元ID不能为空"
);
return
mdWorkunitWorkerMapper
.
getMdWorkunitWorkerByUserName
(
mdWorkunitWorker
);
}
}
}
mes/src/main/java/com/ximai/mes/pro/domain/ProFeedback.java
View file @
5b5ed993
...
@@ -313,6 +313,16 @@ public class ProFeedback extends BaseEntity {
...
@@ -313,6 +313,16 @@ public class ProFeedback extends BaseEntity {
private
String
sapRequestParam
;
private
String
sapRequestParam
;
private
String
sapResponse
;
private
String
sapResponse
;
private
Long
abnormalId
;
/** 异常类型 */
private
String
abnormalType
;
/** 异常原因 */
private
String
abnormalReason
;
public
void
initValue
(
ProWorkorder
workorder
)
{
public
void
initValue
(
ProWorkorder
workorder
)
{
this
.
setWorkorderCode
(
workorder
.
getWorkorderCode
());
this
.
setWorkorderCode
(
workorder
.
getWorkorderCode
());
this
.
setWorkorderName
(
workorder
.
getWorkorderName
());
this
.
setWorkorderName
(
workorder
.
getWorkorderName
());
...
...
mes/src/main/java/com/ximai/mes/pro/domain/productionSolution/ProProductionSolution.java
View file @
5b5ed993
...
@@ -203,4 +203,11 @@ public class ProProductionSolution extends BaseEntity {
...
@@ -203,4 +203,11 @@ public class ProProductionSolution extends BaseEntity {
*/
*/
@ApiModelProperty
(
"超报"
)
@ApiModelProperty
(
"超报"
)
private
Boolean
surpassState
;
private
Boolean
surpassState
;
@ApiModelProperty
(
"主档文件上传URL"
)
private
String
url
;
@ApiModelProperty
(
"主档文件上传地址"
)
private
String
filePath
;
@ApiModelProperty
(
"主档文件名称"
)
private
String
originalFilename
;
}
}
mes/src/main/java/com/ximai/mes/pro/domain/vo/ProFeedbackVo.java
View file @
5b5ed993
...
@@ -277,4 +277,12 @@ public class ProFeedbackVo {
...
@@ -277,4 +277,12 @@ public class ProFeedbackVo {
@ApiModelProperty
(
"包装标签二维码"
)
@ApiModelProperty
(
"包装标签二维码"
)
private
String
qrcode
;
private
String
qrcode
;
private
Long
abnormalId
;
/** 异常类型 */
private
String
abnormalType
;
/** 异常原因 */
private
String
abnormalReason
;
}
}
mes/src/main/java/com/ximai/mes/pro/domain/vo/ProProductionSolutionVo.java
View file @
5b5ed993
...
@@ -235,6 +235,10 @@ public class ProProductionSolutionVo implements Serializable {
...
@@ -235,6 +235,10 @@ public class ProProductionSolutionVo implements Serializable {
@ApiModelProperty
(
"规格书"
)
@ApiModelProperty
(
"规格书"
)
private
ProProductionSolutionSpecificationSheet
specificationSheet
;
private
ProProductionSolutionSpecificationSheet
specificationSheet
;
@ApiModelProperty
(
"主档文件上传URL"
)
private
String
url
;
@ApiModelProperty
(
"主档文件上传地址"
)
private
String
filePath
;
@ApiModelProperty
(
"主档文件名称"
)
private
String
originalFilename
;
}
}
mes/src/main/resources/mapper/md/MdWorkunitWorkerMapper.xml
View file @
5b5ed993
...
@@ -54,6 +54,13 @@
...
@@ -54,6 +54,13 @@
<include
refid=
"selectMdWorkunitWorkerVo"
/>
<include
refid=
"selectMdWorkunitWorkerVo"
/>
where id = #{id}
where id = #{id}
</select>
</select>
<select
id=
"getMdWorkunitWorkerByUserName"
resultType=
"com.ximai.mes.md.domain.MdWorkunitWorker"
>
<include
refid=
"selectMdWorkunitWorkerVo"
/>
<where>
<if
test=
"workunitId != null "
>
and t1.workunit_id = #{workunitId}
</if>
<if
test=
"userName != null and userName != ''"
>
and user_name = #{userName}
</if>
</where>
</select>
<insert
id=
"insertMdWorkunitWorker"
parameterType=
"MdWorkunitWorker"
useGeneratedKeys=
"true"
keyProperty=
"id"
>
<insert
id=
"insertMdWorkunitWorker"
parameterType=
"MdWorkunitWorker"
useGeneratedKeys=
"true"
keyProperty=
"id"
>
insert into md_workunit_worker
insert into md_workunit_worker
...
...
mes/src/main/resources/mapper/pro/ProFeedbackMapper.xml
View file @
5b5ed993
...
@@ -109,7 +109,10 @@
...
@@ -109,7 +109,10 @@
f.qrcode,
f.qrcode,
-- ptap.assist_process_code,
-- ptap.assist_process_code,
f.update_time,
f.update_time,
it.sap_item_code
it.sap_item_code,
f.abnormal_id,
f.abnormal_type,
f.abnormal_reason
from pro_feedback f
from pro_feedback f
-- left join pro_task_assist_process ptap on f.task_workunit_id = ptap.task_workunit_id
-- left join pro_task_assist_process ptap on f.task_workunit_id = ptap.task_workunit_id
left join pro_task pt on f.task_id = pt.task_id
left join pro_task pt on f.task_id = pt.task_id
...
@@ -221,6 +224,9 @@
...
@@ -221,6 +224,9 @@
<if
test=
"createTime != null"
>
create_time,
</if>
<if
test=
"createTime != null"
>
create_time,
</if>
<if
test=
"updateBy != null"
>
update_by,
</if>
<if
test=
"updateBy != null"
>
update_by,
</if>
<if
test=
"updateTime != null"
>
update_time,
</if>
<if
test=
"updateTime != null"
>
update_time,
</if>
<if
test=
"abnormalId != null"
>
abnormal_id,
</if>
<if
test=
"abnormalType != null"
>
abnormal_type,
</if>
<if
test=
"abnormalReason != null"
>
abnormal_reason,
</if>
</trim>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"feedbackType !=null "
>
#{feedbackType},
</if>
<if
test=
"feedbackType !=null "
>
#{feedbackType},
</if>
...
@@ -276,6 +282,9 @@
...
@@ -276,6 +282,9 @@
<if
test=
"createTime != null"
>
#{createTime},
</if>
<if
test=
"createTime != null"
>
#{createTime},
</if>
<if
test=
"updateBy != null"
>
#{updateBy},
</if>
<if
test=
"updateBy != null"
>
#{updateBy},
</if>
<if
test=
"updateTime != null"
>
#{updateTime},
</if>
<if
test=
"updateTime != null"
>
#{updateTime},
</if>
<if
test=
"abnormalId != null"
>
#{abnormalId},
</if>
<if
test=
"abnormalType != null"
>
#{abnormalType},
</if>
<if
test=
"abnormalReason != null"
>
#{abnormalReason},
</if>
</trim>
</trim>
</insert>
</insert>
...
@@ -333,6 +342,9 @@
...
@@ -333,6 +342,9 @@
<if
test=
"createTime != null"
>
create_time = #{createTime},
</if>
<if
test=
"createTime != null"
>
create_time = #{createTime},
</if>
<if
test=
"updateBy != null"
>
update_by = #{updateBy},
</if>
<if
test=
"updateBy != null"
>
update_by = #{updateBy},
</if>
<if
test=
"updateTime != null"
>
update_time = #{updateTime},
</if>
<if
test=
"updateTime != null"
>
update_time = #{updateTime},
</if>
<if
test=
"abnormalId != null"
>
abnormal_id = #{abnormalId},
</if>
<if
test=
"abnormalType != null"
>
abnormal_type = #{abnormalType},
</if>
<if
test=
"abnormalReason != null"
>
abnormal_reason = #{abnormalReason},
</if>
</trim>
</trim>
where record_id = #{recordId}
where record_id = #{recordId}
</update>
</update>
...
...
mes/src/main/resources/mapper/pro/productionSolution/ProProductionSolutionMapper.xml
View file @
5b5ed993
...
@@ -73,7 +73,10 @@
...
@@ -73,7 +73,10 @@
pps.ecn_code,
pps.ecn_code,
pps.sap_usage_id,
pps.sap_usage_id,
pps.unit_Price,
pps.unit_Price,
pps.surpass_state
pps.surpass_state,
pps.url,
pps.file_path,
pps.original_filename
from pro_production_solution pps
from pro_production_solution pps
left join md_item mi on pps.item_id = mi.item_id
left join md_item mi on pps.item_id = mi.item_id
left join pro_route pr on pr.route_id = pps.route_id
left join pro_route pr on pr.route_id = pps.route_id
...
@@ -225,6 +228,9 @@
...
@@ -225,6 +228,9 @@
<if
test=
"sapPrototypeMakeCode != null"
>
sap_prototype_make_code = #{sapPrototypeMakeCode},
</if>
<if
test=
"sapPrototypeMakeCode != null"
>
sap_prototype_make_code = #{sapPrototypeMakeCode},
</if>
<if
test=
"unitPrice != null"
>
unit_price = #{unitPrice},
</if>
<if
test=
"unitPrice != null"
>
unit_price = #{unitPrice},
</if>
<if
test=
"surpassState != null"
>
surpass_state = #{surpassState},
</if>
<if
test=
"surpassState != null"
>
surpass_state = #{surpassState},
</if>
url = #{url},
file_path = #{filePath},
original_filename = #{originalFilename}
</trim>
</trim>
where production_solution_id = #{productionSolutionId}
where production_solution_id = #{productionSolutionId}
</update>
</update>
...
...
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