Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vehicle-quality-review
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王飞
vehicle-quality-review
Commits
d432c6b3
Commit
d432c6b3
authored
Jan 31, 2024
by
高滢
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
样品下拉框
parent
1b1194ea
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
38 additions
and
1 deletion
+38
-1
SampleManagementMapper.java
...rc/main/java/com/ruoyi/mapper/SampleManagementMapper.java
+6
-0
SampleManagementService.java
.../main/java/com/ruoyi/service/SampleManagementService.java
+5
-0
SampleManagementServiceImpl.java
...a/com/ruoyi/service/impl/SampleManagementServiceImpl.java
+8
-0
SampleManagementController.java
...c/main/java/com/ruoyi/web/SampleManagementController.java
+8
-0
SampleManagementMapper.xml
...view/src/main/resources/mapper/SampleManagementMapper.xml
+11
-1
No files found.
quality-review/src/main/java/com/ruoyi/mapper/SampleManagementMapper.java
View file @
d432c6b3
...
@@ -51,4 +51,10 @@ public interface SampleManagementMapper extends BaseMapper<Sample> {
...
@@ -51,4 +51,10 @@ public interface SampleManagementMapper extends BaseMapper<Sample> {
* 查询样品编号是否重复
* 查询样品编号是否重复
* */
* */
public
int
selectSampleNumberCount
(
Sample
sampleManagement
);
public
int
selectSampleNumberCount
(
Sample
sampleManagement
);
/**
* 根据车辆识别码和样品编号查询样品信息
* */
public
List
<
Sample
>
selectSampleList
(
SampleManagementRequest
sampleManagementRequest
);
}
}
quality-review/src/main/java/com/ruoyi/service/SampleManagementService.java
View file @
d432c6b3
...
@@ -45,4 +45,9 @@ public interface SampleManagementService extends IService<Sample>
...
@@ -45,4 +45,9 @@ public interface SampleManagementService extends IService<Sample>
* @return 结果
* @return 结果
*/
*/
public
int
updateSampleManagement
(
Sample
tSampleManagement
);
public
int
updateSampleManagement
(
Sample
tSampleManagement
);
/**
* 根据车辆识别码和样品编号查询样品信息
* */
public
List
<
Sample
>
selectSampleList
(
SampleManagementRequest
sampleManagementRequest
);
}
}
quality-review/src/main/java/com/ruoyi/service/impl/SampleManagementServiceImpl.java
View file @
d432c6b3
...
@@ -98,4 +98,12 @@ public class SampleManagementServiceImpl extends ServiceImpl<SampleManagementMap
...
@@ -98,4 +98,12 @@ public class SampleManagementServiceImpl extends ServiceImpl<SampleManagementMap
sampleManagement
.
setUpdateTime
(
DateUtils
.
getNowDate
());
sampleManagement
.
setUpdateTime
(
DateUtils
.
getNowDate
());
return
sampleManagementMapper
.
updateSampleManagement
(
sampleManagement
);
return
sampleManagementMapper
.
updateSampleManagement
(
sampleManagement
);
}
}
/**
* 根据车辆识别码和样品编号查询样品信息
* */
@Override
public
List
<
Sample
>
selectSampleList
(
SampleManagementRequest
sampleManagementRequest
){
return
sampleManagementMapper
.
selectSampleList
(
sampleManagementRequest
);
}
}
}
quality-review/src/main/java/com/ruoyi/web/SampleManagementController.java
View file @
d432c6b3
...
@@ -100,4 +100,12 @@ public class SampleManagementController extends BaseController
...
@@ -100,4 +100,12 @@ public class SampleManagementController extends BaseController
{
{
return
toAjax
(
sampleManagementService
.
removeById
(
request
.
getId
()));
return
toAjax
(
sampleManagementService
.
removeById
(
request
.
getId
()));
}
}
@ApiOperation
(
"样品信息下拉框/识别码和编号条件查询"
)
@Trace
@Tags
({
@Tag
(
key
=
"param"
,
value
=
"arg[0]"
),
@Tag
(
key
=
"result"
,
value
=
"returnedObj"
)})
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/sampleList"
)
public
R
<
List
<
Sample
>>
selectSampleList
(
@Validated
@RequestBody
SampleManagementRequest
request
){
return
R
.
ok
(
sampleManagementService
.
selectSampleList
(
request
));
}
}
}
quality-review/src/main/resources/mapper/SampleManagementMapper.xml
View file @
d432c6b3
...
@@ -59,7 +59,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -59,7 +59,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"identificationCode != null and identificationCode != ''"
>
and sm.identification_code like concat('%', #{identificationCode}, '%')
</if>
<if
test=
"identificationCode != null and identificationCode != ''"
>
and sm.identification_code like concat('%', #{identificationCode}, '%')
</if>
<if
test=
"sampleNumber != null and sampleNumber != ''"
>
and sm.sample_number like concat('%', #{sampleNumber}, '%')
</if>
<if
test=
"sampleNumber != null and sampleNumber != ''"
>
and sm.sample_number like concat('%', #{sampleNumber}, '%')
</if>
<if
test=
"sampleName != null and sampleName != ''"
>
and sm.sample_name like concat('%', #{sampleName}, '%')
</if>
<if
test=
"sampleName != null and sampleName != ''"
>
and sm.sample_name like concat('%', #{sampleName}, '%')
</if>
<if
test=
"flag != null and flag != ''"
>
sm.flag = #{flag}
</if>
<if
test=
"flag != null and flag != ''"
>
and
sm.flag = #{flag}
</if>
</where>
</where>
</select>
</select>
...
@@ -155,4 +155,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -155,4 +155,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"id != null and id != ''"
>
and id != #{id}
</if>
<if
test=
"id != null and id != ''"
>
and id != #{id}
</if>
</where>
</where>
</select>
</select>
<select
id=
"selectSampleList"
parameterType=
"com.ruoyi.domain.Sample"
resultMap=
"SampleManagementResult"
>
<include
refid=
"selectTSampleManagementVo"
/>
<where>
sm.deleted = 0
<if
test=
"identificationCode != null and identificationCode != ''"
>
and sm.identification_code = #{identificationCode}
</if>
<if
test=
"sampleNumber != null and sampleNumber != ''"
>
and sm.sample_number = #{sampleNumber}
</if>
<if
test=
"flag != null and flag != ''"
>
and sm.flag = #{flag}
</if>
</where>
</select>
</mapper>
</mapper>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment