5 changed files with 203 additions and 0 deletions
-
49src/main/java/com/xujie/sys/modules/pms/controller/EamController.java
-
87src/main/java/com/xujie/sys/modules/pms/entity/EamFeedMatterEntity.java
-
10src/main/java/com/xujie/sys/modules/pms/mapper/EamFeedMatterMapper.java
-
15src/main/java/com/xujie/sys/modules/pms/service/EamFeedMatterService.java
-
42src/main/java/com/xujie/sys/modules/pms/service/Impl/EamFeedMatterServiceImpl.java
@ -0,0 +1,87 @@ |
|||
package com.xujie.sys.modules.pms.entity; |
|||
|
|||
import com.baomidou.mybatisplus.annotation.*; |
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
import com.xujie.sys.common.utils.QueryPage; |
|||
import com.xujie.sys.modules.part.entity.AgentInformationEntity; |
|||
import lombok.Data; |
|||
import org.springframework.format.annotation.DateTimeFormat; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
import java.util.List; |
|||
|
|||
@Data |
|||
@TableName("eam_feed_matter_record") |
|||
public class EamFeedMatterEntity extends QueryPage implements Serializable { |
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* ID |
|||
*/ |
|||
@TableId(type= IdType.AUTO) |
|||
private Long id; |
|||
/** |
|||
* 工厂 |
|||
**/ |
|||
private String site; |
|||
/** |
|||
* BU |
|||
*/ |
|||
private String buNo; |
|||
/** |
|||
* 维修反馈编码 |
|||
**/ |
|||
private String feedBackId; |
|||
/** |
|||
* 事项描述 |
|||
**/ |
|||
private String eventDesc; |
|||
/** |
|||
* 状态 |
|||
**/ |
|||
private String status; |
|||
/** |
|||
* 计划完成日期 |
|||
*/ |
|||
@DateTimeFormat(pattern = "yyyy-MM-dd") |
|||
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") |
|||
private Date plannedExecutionDate; |
|||
/** |
|||
* 实际完成日期 |
|||
*/ |
|||
@DateTimeFormat(pattern = "yyyy-MM-dd") |
|||
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") |
|||
private Date actualExecutionDate; |
|||
/** |
|||
* 跟踪人员 |
|||
*/ |
|||
private String trackingPersonnel; |
|||
/** |
|||
* 创建时间 |
|||
**/ |
|||
@TableField(fill = FieldFill.INSERT) |
|||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
|||
private Date createDate; |
|||
/** |
|||
* 创建人 |
|||
**/ |
|||
private String createBy; |
|||
/** |
|||
* 更新时间 |
|||
**/ |
|||
@TableField(fill = FieldFill.UPDATE) |
|||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
|||
private Date updateDate; |
|||
/** |
|||
* 更新人 |
|||
**/ |
|||
private String updateBy; |
|||
/** |
|||
* 数据集 |
|||
*/ |
|||
@TableField(exist = false) |
|||
private List<EamFeedMatterEntity> informationList; |
|||
} |
|||
@ -0,0 +1,10 @@ |
|||
package com.xujie.sys.modules.pms.mapper; |
|||
|
|||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
|||
import com.xujie.sys.modules.part.entity.PartInformationEntity; |
|||
import com.xujie.sys.modules.pms.entity.EamFeedMatterEntity; |
|||
import org.apache.ibatis.annotations.Mapper; |
|||
|
|||
@Mapper |
|||
public interface EamFeedMatterMapper extends BaseMapper<EamFeedMatterEntity> { |
|||
} |
|||
@ -0,0 +1,15 @@ |
|||
package com.xujie.sys.modules.pms.service; |
|||
|
|||
import com.xujie.sys.modules.pms.entity.EamFeedMatterEntity; |
|||
|
|||
import java.util.List; |
|||
|
|||
public interface EamFeedMatterService { |
|||
List<EamFeedMatterEntity> searchFeedMatterRecord(EamFeedMatterEntity data); |
|||
|
|||
void saveFeedMatter(EamFeedMatterEntity inData); |
|||
|
|||
void updateFeedMatter(EamFeedMatterEntity inData); |
|||
|
|||
void deleteFeedMatter(EamFeedMatterEntity inData); |
|||
} |
|||
@ -0,0 +1,42 @@ |
|||
package com.xujie.sys.modules.pms.service.Impl; |
|||
|
|||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
|||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
|||
import com.xujie.sys.modules.pms.entity.EamFeedMatterEntity; |
|||
import com.xujie.sys.modules.pms.mapper.EamFeedMatterMapper; |
|||
import com.xujie.sys.modules.pms.service.EamFeedMatterService; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.stereotype.Service; |
|||
|
|||
import java.util.List; |
|||
|
|||
@Service |
|||
public class EamFeedMatterServiceImpl extends ServiceImpl<EamFeedMatterMapper, EamFeedMatterEntity> implements EamFeedMatterService { |
|||
|
|||
@Autowired |
|||
private EamFeedMatterMapper eamFeedMatterMapper; |
|||
|
|||
@Override |
|||
public List<EamFeedMatterEntity> searchFeedMatterRecord(EamFeedMatterEntity data) { |
|||
List<EamFeedMatterEntity> list = eamFeedMatterMapper.selectList(new LambdaQueryWrapper<EamFeedMatterEntity>() |
|||
.eq(EamFeedMatterEntity::getSite, data.getSite()) |
|||
.eq(EamFeedMatterEntity::getBuNo, data.getBuNo()) |
|||
.eq(EamFeedMatterEntity::getFeedBackId, data.getFeedBackId())); |
|||
return list; |
|||
} |
|||
|
|||
@Override |
|||
public void saveFeedMatter(EamFeedMatterEntity inData) { |
|||
eamFeedMatterMapper.insert(inData); |
|||
} |
|||
|
|||
@Override |
|||
public void updateFeedMatter(EamFeedMatterEntity inData) { |
|||
eamFeedMatterMapper.updateById(inData); |
|||
} |
|||
|
|||
@Override |
|||
public void deleteFeedMatter(EamFeedMatterEntity inData) { |
|||
eamFeedMatterMapper.deleteById(inData); |
|||
} |
|||
} |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue