Commit 5b5ed993 authored by 温志超's avatar 温志超

生产版本 : 增加上传等

parent 0fbc8942
...@@ -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);
}
/** /**
* 查询工作单元列表 * 查询工作单元列表
*/ */
......
...@@ -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);
} }
...@@ -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);
} }
...@@ -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);
}
} }
...@@ -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());
......
...@@ -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;
} }
...@@ -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;
} }
...@@ -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;
} }
...@@ -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
......
...@@ -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>
......
...@@ -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>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment