| | |
| | | //PLC版本 |
| | | @JSONField(name = "PLCVersion") |
| | | private String PLCVersion; |
| | | @JSONField(name = "AI1") |
| | | private String AI1; |
| | | @JSONField(name = "AI2") |
| | | private String AI2; |
| | | |
| | | //备注 |
| | | private String remark; |
| | |
| | | package org.jeecg.modules.mdc.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.jeecg.modules.mdc.entity.MdcFeedback; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @Description: 问题反馈 |
| | |
| | | */ |
| | | public interface MdcFeedbackMapper extends BaseMapper<MdcFeedback> { |
| | | |
| | | List<MdcFeedback> getFeedbackList(@Param("productionId") String key); |
| | | } |
| | |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="org.jeecg.modules.mdc.mapper.MdcFeedbackMapper"> |
| | | |
| | | <select id="getFeedbackList" resultType="org.jeecg.modules.mdc.entity.MdcFeedback"> |
| | | SELECT |
| | | t1.* |
| | | FROM |
| | | mdc_feedback t1 |
| | | LEFT JOIN mdc_production t2 ON t1.production_id = t2.id |
| | | WHERE |
| | | (t2.id = #{ productionId } OR t2.parent_id = #{ productionId }) |
| | | </select> |
| | | </mapper> |
| | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import org.jeecg.modules.mdc.entity.MdcFeedback; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @Description: 问题反馈 |
| | | * @Author: Lius |
| | |
| | | */ |
| | | public interface IMdcFeedbackService extends IService<MdcFeedback> { |
| | | |
| | | List<MdcFeedback> getFeedbackList(String key); |
| | | } |
| | |
| | | |
| | | @Override |
| | | public List<MdcFeedback> getFeedbackList(String key) { |
| | | return mdcFeedbackService.list(new LambdaQueryWrapper<MdcFeedback>().eq(MdcFeedback::getProductionId, key).orderByDesc(MdcFeedback::getCreateTime)); |
| | | return mdcFeedbackService.getFeedbackList(key); |
| | | } |
| | | } |
| | |
| | | if (!a.getStatus().equals(b.getStatus()) && a.getEndTime().equals(b.getStartTime())) { |
| | | result.add(dtos.get(dtos.size() - 1)); |
| | | } |
| | | } else if (dtos.size() == 1){ |
| | | result.addAll(dtos); |
| | | } |
| | | |
| | | return result; |
| | |
| | | import org.jeecg.modules.mdc.service.IMdcFeedbackService; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @Description: 问题反馈 |
| | | * @Author: Lius |
| | |
| | | @Service |
| | | public class MdcFeedbackServiceImpl extends ServiceImpl<MdcFeedbackMapper, MdcFeedback> implements IMdcFeedbackService { |
| | | |
| | | @Override |
| | | public List<MdcFeedback> getFeedbackList(String key) { |
| | | return this.baseMapper.getFeedbackList(key); |
| | | } |
| | | } |