update
This commit is contained in:
@@ -34,4 +34,12 @@ INSERT INTO `document_library` (`id`, `create_by`, `create_time`, `update_by`, `
|
||||
|
||||
INSERT INTO `document_library` (`id`, `create_by`, `create_time`, `update_by`, `update_time`, `sys_org_code`, `title`, `tags`, `content`, `parent_id`, `type`, `file_list`) VALUES
|
||||
('3333333333333333333', 'admin', '2025-02-22 23:24:43', NULL, NULL, 'A01', '辐射效应损伤', NULL, NULL, NULL, 'FOLDER', NULL);
|
||||
```
|
||||
|
||||
#20250324
|
||||
```sql
|
||||
ALTER TABLE `physical-boot`.`experiment_test_process`
|
||||
CHANGE `test_metering_point` `test_metering_point` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '测试计量点',
|
||||
CHANGE `test_fluence_point` `test_fluence_point` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '测试注量点',
|
||||
CHANGE `annealing_duration` `annealing_duration` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '退火时长';
|
||||
```
|
||||
@@ -135,6 +135,9 @@ public class Experiment implements Serializable {
|
||||
@Excel(name = "状态", width = 15)
|
||||
@Schema(description = "状态")
|
||||
private String status;
|
||||
|
||||
@TableField(exist = false)
|
||||
private List<String> statusList;
|
||||
/**
|
||||
* 样品信息
|
||||
*/
|
||||
|
||||
@@ -42,6 +42,18 @@
|
||||
<if test="experiment.status != null and experiment.status != ''">
|
||||
and e.status like concat('%', #{experiment.status}, '%')
|
||||
</if>
|
||||
|
||||
<if test="experiment.status != null and experiment.status != ''">
|
||||
and e.status like concat('%', #{experiment.status}, '%')
|
||||
</if>
|
||||
<if test="experiment.statusList != null and experiment.statusList != ''">
|
||||
and e.status in
|
||||
<foreach item="item" collection="experiment.statusList" index="index" open="(" separator="," close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
</if>
|
||||
|
||||
|
||||
</where>
|
||||
<if test="loginUser.postText != null and loginUser.postText != ''">
|
||||
order by ${loginUser.postText}
|
||||
|
||||
@@ -273,6 +273,10 @@ public class ExperimentServiceImpl extends ServiceImpl<ExperimentMapper, Experim
|
||||
|
||||
@Override
|
||||
public IPage<Experiment> join(Page<Experiment> page, Experiment experiment, SysUser loginUser) {
|
||||
if (StringUtils.contains(experiment.getStatus(), ",")) {
|
||||
experiment.setStatusList(List.of(experiment.getStatus().split(",")));
|
||||
experiment.setStatus(null);
|
||||
}
|
||||
return baseMapper.join(page, experiment, loginUser);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user