Commit 7cf48bec authored by 高滢's avatar 高滢

Merge branch 'gaoying' into 'dev'

Gaoying

See merge request !165
parents 366a1516 87d109eb
package com.ruoyi.domain.vo; package com.ruoyi.domain.vo;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Data; import lombok.Data;
...@@ -12,7 +15,14 @@ import java.util.List; ...@@ -12,7 +15,14 @@ import java.util.List;
@NoArgsConstructor @NoArgsConstructor
@Data @Data
public class SampleTaskVo { public class SampleTaskVo {
@TableId(type = IdType.ASSIGN_ID)
@JsonFormat(shape = JsonFormat.Shape.STRING)
private Long taskId; private Long taskId;
@TableId(type = IdType.ASSIGN_ID)
@JsonFormat(shape = JsonFormat.Shape.STRING)
private Long SampleId; private Long SampleId;
private String taskNo; private String taskNo;
} }
...@@ -172,8 +172,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -172,8 +172,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="sampleName" column="sample_name" /> <result property="sampleName" column="sample_name" />
<result property="enterpriseId" column="enterprise_id" /> <result property="enterpriseId" column="enterprise_id" />
</resultMap> </resultMap>
<select id="findByIdList" resultMap="SampleListResponse"> <select id="findByIdList" resultMap="SampleManagementResult">
select id,identification_code,sample_number,sample_name,enterprise_id from t_sample select id,identification_code,sample_number,sample_name,enterprise_id,trademark,sample_photos,number_of_samples,delivery_date,sample_sender,manufacturing_enterprise,manufacture_date from t_sample
WHERE id IN WHERE id IN
<foreach collection="relationList" item="relation" open="(" separator="," close=")"> <foreach collection="relationList" item="relation" open="(" separator="," close=")">
#{relation.sampleId} #{relation.sampleId}
......
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