增加状态

This commit is contained in:
rbw 2024-11-18 18:16:21 +08:00
parent b824368435
commit 15167e0adc
3 changed files with 13 additions and 21 deletions

View File

@ -478,7 +478,11 @@ public class PlantuserApi {
if (!("").equals(documentsStatus) && documentsStatus != null) {
params.put("documentsStatus", documentsStatus);
}
if (StringUtil.isNotEmpty(status) && status.contains(",")) {
params.put("statusArr", status);
} else {
params.put("status", status);
}
params.put("keyWords", keyWords);
params.put("plantNo", plantNo);
params.put("plantName", plantName);

View File

@ -154,6 +154,13 @@
<if test="status !=null and status !=''">
and a.status = #{status}
</if>
<if test="statusArr !=null and statusArr !=''">
and a.status in
<foreach collection="statusArr" item="item" open="(" close=")"
separator=",">
#{item}
</foreach>
</if>
<if test="phone !=null and phone !=''">
and a.phone = #{phone}
</if>

View File

@ -1,31 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<module org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule="true" type="JAVA_MODULE" version="4">
<component name="FacetManager">
<facet type="web" name="Web">
<configuration>
<webroots>
<root url="file://$MODULE_DIR$/src/main/webapp" relative="/" />
</webroots>
<sourceRoots>
<root url="file://$MODULE_DIR$/src/main/java" />
<root url="file://$MODULE_DIR$/src/main/resources" />
</sourceRoots>
</configuration>
</facet>
<facet type="Spring" name="Spring">
<configuration />
</facet>
</component>
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_8">
<output url="file://$MODULE_DIR$/target/classes" />
<output-test url="file://$MODULE_DIR$/target/test-classes" />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/main/resources" type="java-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/test/java" isTestSource="true" />
<excludeFolder url="file://$MODULE_DIR$/target" />
</content>
<orderEntry type="jdk" jdkName="1.8" jdkType="JavaSDK" />
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-web:2.4.4" level="project" />
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter:2.4.4" level="project" />