Merge branch 'master' of https://gitee.com/forever_win/mesnac.biz
commit
0a6c5d44b2
@ -1,16 +1,14 @@
|
||||
package com.foreverwin.mesnac.quality.controller;
|
||||
package com.foreverwin.mesnac.common.controller;
|
||||
|
||||
import com.foreverwin.modular.core.util.R;
|
||||
import com.foreverwin.modular.core.util.FrontPage;
|
||||
import com.foreverwin.modular.core.util.CommonMethods;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import com.foreverwin.mesnac.common.model.InspectionItemAddition;
|
||||
import com.foreverwin.mesnac.common.service.InspectionItemAdditionService;
|
||||
import com.foreverwin.modular.core.util.FrontPage;
|
||||
import com.foreverwin.modular.core.util.R;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import com.foreverwin.mesnac.quality.service.InspectionItemAdditionService;
|
||||
import com.foreverwin.mesnac.quality.model.InspectionItemAddition;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
@ -1,27 +1,24 @@
|
||||
package com.foreverwin.mesnac.quality.controller;
|
||||
package com.foreverwin.mesnac.common.controller;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.foreverwin.mesnac.common.enums.HandleEnum;
|
||||
import com.foreverwin.mesnac.common.mapper.InspectionItemAdditionMapper;
|
||||
import com.foreverwin.mesnac.common.mapper.InspectionItemDetailMapper;
|
||||
import com.foreverwin.mesnac.common.model.InspectionItem;
|
||||
import com.foreverwin.mesnac.common.model.InspectionItemAddition;
|
||||
import com.foreverwin.mesnac.common.model.InspectionItemDetail;
|
||||
import com.foreverwin.mesnac.common.service.InspectionItemService;
|
||||
import com.foreverwin.mesnac.common.util.StringUtil;
|
||||
import com.foreverwin.mesnac.quality.mapper.InspectionItemAdditionMapper;
|
||||
import com.foreverwin.mesnac.quality.mapper.InspectionItemDetailMapper;
|
||||
import com.foreverwin.mesnac.quality.model.*;
|
||||
import com.foreverwin.modular.core.util.R;
|
||||
import com.foreverwin.modular.core.util.FrontPage;
|
||||
import com.foreverwin.modular.core.util.CommonMethods;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.sap.me.sampling.InspectionData;
|
||||
import com.foreverwin.modular.core.util.FrontPage;
|
||||
import com.foreverwin.modular.core.util.R;
|
||||
import com.visiprise.common.exception.BaseException;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import com.foreverwin.mesnac.quality.service.InspectionItemService;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
*
|
@ -1,16 +1,14 @@
|
||||
package com.foreverwin.mesnac.quality.controller;
|
||||
package com.foreverwin.mesnac.common.controller;
|
||||
|
||||
import com.foreverwin.modular.core.util.R;
|
||||
import com.foreverwin.modular.core.util.FrontPage;
|
||||
import com.foreverwin.modular.core.util.CommonMethods;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import com.foreverwin.mesnac.common.model.InspectionItemDetail;
|
||||
import com.foreverwin.mesnac.common.service.InspectionItemDetailService;
|
||||
import com.foreverwin.modular.core.util.FrontPage;
|
||||
import com.foreverwin.modular.core.util.R;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import com.foreverwin.mesnac.quality.service.InspectionItemDetailService;
|
||||
import com.foreverwin.mesnac.quality.model.InspectionItemDetail;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
@ -1,7 +1,7 @@
|
||||
package com.foreverwin.mesnac.quality.mapper;
|
||||
package com.foreverwin.mesnac.common.mapper;
|
||||
|
||||
import com.foreverwin.mesnac.quality.model.InspectionItemAddition;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.foreverwin.mesnac.common.model.InspectionItemAddition;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
/**
|
@ -1,7 +1,7 @@
|
||||
package com.foreverwin.mesnac.quality.mapper;
|
||||
package com.foreverwin.mesnac.common.mapper;
|
||||
|
||||
import com.foreverwin.mesnac.quality.model.InspectionItemDetail;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.foreverwin.mesnac.common.model.InspectionItemDetail;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
/**
|
@ -1,7 +1,7 @@
|
||||
package com.foreverwin.mesnac.quality.mapper;
|
||||
package com.foreverwin.mesnac.common.mapper;
|
||||
|
||||
import com.foreverwin.mesnac.quality.model.InspectionItem;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.foreverwin.mesnac.common.model.InspectionItem;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
/**
|
@ -1,17 +1,15 @@
|
||||
package com.foreverwin.mesnac.quality.model;
|
||||
|
||||
import java.io.Serializable;
|
||||
package com.foreverwin.mesnac.common.model;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.extension.activerecord.Model;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import java.time.LocalDateTime;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.List;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 检验项目维护主表
|
@ -1,7 +1,7 @@
|
||||
package com.foreverwin.mesnac.quality.service;
|
||||
package com.foreverwin.mesnac.common.service;
|
||||
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.foreverwin.mesnac.quality.model.InspectionItemAddition;
|
||||
import com.foreverwin.mesnac.common.model.InspectionItemAddition;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.foreverwin.modular.core.util.FrontPage;
|
||||
|
@ -1,7 +1,7 @@
|
||||
package com.foreverwin.mesnac.quality.service;
|
||||
package com.foreverwin.mesnac.common.service;
|
||||
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.foreverwin.mesnac.quality.model.InspectionItemDetail;
|
||||
import com.foreverwin.mesnac.common.model.InspectionItemDetail;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.foreverwin.modular.core.util.FrontPage;
|
||||
|
@ -1,9 +1,8 @@
|
||||
package com.foreverwin.mesnac.quality.service;
|
||||
package com.foreverwin.mesnac.common.service;
|
||||
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.foreverwin.mesnac.quality.model.InspectionItem;
|
||||
import com.foreverwin.mesnac.common.model.InspectionItem;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.foreverwin.mesnac.quality.model.InspectionProject;
|
||||
import com.foreverwin.modular.core.util.FrontPage;
|
||||
|
||||
import java.util.List;
|
@ -1,11 +1,11 @@
|
||||
package com.foreverwin.mesnac.quality.service.impl;
|
||||
package com.foreverwin.mesnac.common.service.impl;
|
||||
|
||||
import com.foreverwin.modular.core.util.FrontPage;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.foreverwin.mesnac.quality.model.InspectionItemAddition;
|
||||
import com.foreverwin.mesnac.quality.mapper.InspectionItemAdditionMapper;
|
||||
import com.foreverwin.mesnac.quality.service.InspectionItemAdditionService;
|
||||
import com.foreverwin.mesnac.common.model.InspectionItemAddition;
|
||||
import com.foreverwin.mesnac.common.mapper.InspectionItemAdditionMapper;
|
||||
import com.foreverwin.mesnac.common.service.InspectionItemAdditionService;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
@ -1,14 +1,14 @@
|
||||
package com.foreverwin.mesnac.quality.service.impl;
|
||||
package com.foreverwin.mesnac.common.service.impl;
|
||||
|
||||
import com.foreverwin.modular.core.util.FrontPage;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.foreverwin.mesnac.quality.model.InspectionItemDetail;
|
||||
import com.foreverwin.mesnac.quality.mapper.InspectionItemDetailMapper;
|
||||
import com.foreverwin.mesnac.quality.service.InspectionItemDetailService;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.foreverwin.mesnac.common.mapper.InspectionItemDetailMapper;
|
||||
import com.foreverwin.mesnac.common.model.InspectionItemDetail;
|
||||
import com.foreverwin.mesnac.common.service.InspectionItemDetailService;
|
||||
import com.foreverwin.modular.core.util.FrontPage;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import java.util.List;
|
@ -1,27 +1,24 @@
|
||||
package com.foreverwin.mesnac.quality.service.impl;
|
||||
package com.foreverwin.mesnac.common.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.Wrapper;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.injector.methods.SelectOne;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.foreverwin.mesnac.common.constant.Constants;
|
||||
import com.foreverwin.mesnac.common.enums.HandleEnum;
|
||||
import com.foreverwin.mesnac.common.mapper.InspectionItemMapper;
|
||||
import com.foreverwin.mesnac.common.model.InspectionItem;
|
||||
import com.foreverwin.mesnac.common.model.InspectionItemAddition;
|
||||
import com.foreverwin.mesnac.common.model.InspectionItemDetail;
|
||||
import com.foreverwin.mesnac.common.service.InspectionItemAdditionService;
|
||||
import com.foreverwin.mesnac.common.service.InspectionItemDetailService;
|
||||
import com.foreverwin.mesnac.common.service.InspectionItemService;
|
||||
import com.foreverwin.mesnac.common.util.StringUtil;
|
||||
import com.foreverwin.mesnac.quality.model.InspectionItemAddition;
|
||||
import com.foreverwin.mesnac.quality.model.InspectionItemDetail;
|
||||
import com.foreverwin.mesnac.quality.model.InspectionProject;
|
||||
import com.foreverwin.mesnac.quality.service.InspectionItemAdditionService;
|
||||
import com.foreverwin.mesnac.quality.service.InspectionItemDetailService;
|
||||
import com.foreverwin.mesnac.common.constant.Constants;
|
||||
import com.foreverwin.modular.core.util.CommonMethods;
|
||||
import com.foreverwin.modular.core.util.FrontPage;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.foreverwin.mesnac.quality.model.InspectionItem;
|
||||
import com.foreverwin.mesnac.quality.mapper.InspectionItemMapper;
|
||||
import com.foreverwin.mesnac.quality.service.InspectionItemService;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.visiprise.common.exception.BaseException;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import java.time.LocalDateTime;
|
@ -0,0 +1,136 @@
|
||||
package com.foreverwin.mesnac.dispatch.controller;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.foreverwin.mesnac.dispatch.model.UserResource;
|
||||
import com.foreverwin.mesnac.dispatch.service.UserResourceService;
|
||||
import com.foreverwin.modular.core.util.FrontPage;
|
||||
import com.foreverwin.modular.core.util.R;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author robert
|
||||
* @since 2021-06-16
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/Z-USER-RESOURCE")
|
||||
public class UserResourceController {
|
||||
|
||||
@Autowired
|
||||
public UserResourceService userResourceService;
|
||||
|
||||
/**
|
||||
* 根据id查询
|
||||
*
|
||||
* @param id 主键
|
||||
* @return
|
||||
*/
|
||||
@ResponseBody
|
||||
@GetMapping("/{id:.+}")
|
||||
public R getZUserResourceById(@PathVariable String id) {
|
||||
return R.ok( userResourceService.getById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询所有数据
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@ResponseBody
|
||||
@GetMapping("")
|
||||
public R getZUserResourceList(UserResource userResource){
|
||||
List<UserResource> result;
|
||||
QueryWrapper<UserResource> queryWrapper = new QueryWrapper<>();
|
||||
queryWrapper.setEntity(userResource);
|
||||
result = userResourceService.list(queryWrapper);
|
||||
return R.ok(result);
|
||||
}
|
||||
|
||||
/**
|
||||
* 分页查询数据
|
||||
*
|
||||
* @param frontPage 分页信息
|
||||
* @return
|
||||
*/
|
||||
@ResponseBody
|
||||
@GetMapping("/page")
|
||||
public R page(FrontPage<UserResource> frontPage, UserResource zUserResource){
|
||||
IPage result;
|
||||
QueryWrapper<UserResource> queryWrapper = new QueryWrapper<>();
|
||||
queryWrapper.setEntity(zUserResource);
|
||||
if (frontPage.getGlobalQuery() != null && !"".equals(frontPage.getGlobalQuery().trim())) {
|
||||
//TODO modify global query
|
||||
queryWrapper.lambda().and(wrapper -> wrapper
|
||||
.like(UserResource::getHandle, frontPage.getGlobalQuery())
|
||||
.or().like(UserResource::getSite, frontPage.getGlobalQuery())
|
||||
.or().like(UserResource::getResourceBo, frontPage.getGlobalQuery())
|
||||
.or().like(UserResource::getResrce, frontPage.getGlobalQuery())
|
||||
.or().like(UserResource::getUserId, frontPage.getGlobalQuery())
|
||||
.or().like(UserResource::getTemporaryUser, frontPage.getGlobalQuery())
|
||||
.or().like(UserResource::getStatus, frontPage.getGlobalQuery())
|
||||
.or().like(UserResource::getCreateUser, frontPage.getGlobalQuery())
|
||||
.or().like(UserResource::getModifyUser, frontPage.getGlobalQuery())
|
||||
);
|
||||
}
|
||||
result = userResourceService.page(frontPage.getPagePlus(), queryWrapper);
|
||||
return R.ok(result);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增
|
||||
* @param zUserResource 传递的实体
|
||||
* @return null 失败 实体成功
|
||||
*/
|
||||
@PostMapping
|
||||
public R save(@RequestBody UserResource zUserResource) {
|
||||
return R.ok(userResourceService.save(zUserResource));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改
|
||||
* @param zUserResource 传递的实体
|
||||
* @return null 失败 实体成功
|
||||
*/
|
||||
@PutMapping
|
||||
public R updateById(@RequestBody UserResource zUserResource) {
|
||||
return R.ok(userResourceService.updateById(zUserResource));
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据id删除对象
|
||||
* @param id 实体ID
|
||||
* @return 0 失败 1 成功
|
||||
*/
|
||||
@ResponseBody
|
||||
@RequestMapping(method = RequestMethod.DELETE, value = "/{id:.+}")
|
||||
public R removeById(@PathVariable("id") String id){
|
||||
return R.ok(userResourceService.removeById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除对象
|
||||
* @param ids 实体集合ID
|
||||
* @return 0 失败 1 成功
|
||||
*/
|
||||
@ResponseBody
|
||||
@RequestMapping(method = RequestMethod.POST, value = "/delete-batch")
|
||||
public R removeByIds(List<String> ids){
|
||||
return R.ok(userResourceService.removeByIds(ids));
|
||||
}
|
||||
|
||||
@GetMapping("/findAll")
|
||||
public R findAll(String resource,String user){
|
||||
return R.ok(userResourceService.findAll(resource,user));
|
||||
}
|
||||
|
||||
@PostMapping("saveAll")
|
||||
public R saveAll(@RequestBody HashMap<String,Object> map){
|
||||
userResourceService.saveAll(map);
|
||||
return R.ok();
|
||||
}
|
||||
}
|
@ -1,216 +0,0 @@
|
||||
<?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 />
|
||||
<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="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
<orderEntry type="library" name="Maven: cn.hutool:hutool-all:5.0.6" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.foreverwin.modular:modular-core:1.0-SNAPSHOT.standlone-hana" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-web:1.5.22.RELEASE" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: org.springframework.boot:spring-boot-starter-tomcat:1.5.22.RELEASE" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: org.apache.tomcat.embed:tomcat-embed-core:8.5.43" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: org.apache.tomcat:tomcat-annotations-api:8.5.43" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: org.apache.tomcat.embed:tomcat-embed-el:8.5.43" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: org.apache.tomcat.embed:tomcat-embed-websocket:8.5.43" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.hibernate:hibernate-validator:5.3.6.Final" level="project" />
|
||||
<orderEntry type="library" name="Maven: javax.validation:validation-api:1.1.0.Final" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.jboss.logging:jboss-logging:3.3.2.Final" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.fasterxml:classmate:1.3.4" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.fasterxml.jackson.core:jackson-databind:2.8.11.3" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework:spring-web:4.3.25.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework:spring-webmvc:4.3.25.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework:spring-expression:4.3.25.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-log4j2:1.5.22.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.logging.log4j:log4j-slf4j-impl:2.7" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.logging.log4j:log4j-api:2.7" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.logging.log4j:log4j-core:2.7" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.slf4j:jcl-over-slf4j:1.7.26" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.slf4j:jul-to-slf4j:1.7.26" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-test:1.5.22.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-test:1.5.22.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-test-autoconfigure:1.5.22.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.jayway.jsonpath:json-path:2.2.0" level="project" />
|
||||
<orderEntry type="library" name="Maven: net.minidev:json-smart:2.2.1" level="project" />
|
||||
<orderEntry type="library" name="Maven: net.minidev:accessors-smart:1.1" level="project" />
|
||||
<orderEntry type="library" name="Maven: junit:junit:4.12" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.assertj:assertj-core:2.6.0" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.mockito:mockito-core:1.10.19" level="project" />
|
||||
<orderEntry type="library" scope="RUNTIME" name="Maven: org.objenesis:objenesis:2.1" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.hamcrest:hamcrest-core:1.3" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.hamcrest:hamcrest-library:1.3" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.skyscreamer:jsonassert:1.4.0" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.vaadin.external.google:android-json:0.0.20131108.vaadin1" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework:spring-core:4.3.25.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework:spring-test:4.3.25.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.baomidou:dynamic-datasource-spring-boot-starter:2.5.6" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-jdbc:1.5.1.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework:spring-jdbc:4.3.25.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-aop:1.5.22.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.aspectj:aspectjweaver:1.8.14" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.mybatis:mybatis:3.4.2" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.baomidou:mybatis-plus-boot-starter:3.1.0" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.baomidou:mybatis-plus:3.1.0" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.baomidou:mybatis-plus-extension:3.1.0" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.baomidou:mybatis-plus-core:3.1.0" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.baomidou:mybatis-plus-annotation:3.1.0" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.github.jsqlparser:jsqlparser:1.4" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.mybatis:mybatis-spring:2.0.0" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.zaxxer:HikariCP:2.5.1" level="project" />
|
||||
<orderEntry type="library" name="Maven: mysql:mysql-connector-java:5.1.48" level="project" />
|
||||
<orderEntry type="library" name="Maven: ojdbc6:ojdbc6:11.2.0.4" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.sap:ngdbc:2.5.52" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.sap:sapdbc:7.9.09" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-legacy:1.1.0.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.mybatis:mybatis-typehandlers-jsr310:1.0.2" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.8.11" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.fasterxml.jackson.core:jackson-annotations:2.8.0" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.fasterxml.jackson.core:jackson-core:2.8.11" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.cxf:cxf-rt-frontend-jaxws:3.1.12" level="project" />
|
||||
<orderEntry type="library" name="Maven: xml-resolver:xml-resolver:1.2" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.ow2.asm:asm:5.0.4" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.cxf:cxf-core:3.1.12" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.codehaus.woodstox:woodstox-core-asl:4.4.1" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.codehaus.woodstox:stax2-api:3.1.4" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.ws.xmlschema:xmlschema-core:2.2.2" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.cxf:cxf-rt-bindings-soap:3.1.12" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.cxf:cxf-rt-wsdl:3.1.12" level="project" />
|
||||
<orderEntry type="library" name="Maven: wsdl4j:wsdl4j:1.6.3" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.cxf:cxf-rt-databinding-jaxb:3.1.12" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.sun.xml.bind:jaxb-impl:2.2.11" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.sun.xml.bind:jaxb-core:2.2.11" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.cxf:cxf-rt-bindings-xml:3.1.12" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.cxf:cxf-rt-frontend-simple:3.1.12" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.cxf:cxf-rt-ws-addr:3.1.12" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.cxf:cxf-rt-ws-policy:3.1.12" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.neethi:neethi:3.0.3" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.cxf:cxf-rt-transports-http:3.1.12" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.sap:sapjco:NTAMD64-3.0.6" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.eclipse.jetty:jetty-continuation:9.4.19.v20190610" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.eclipse.jetty:jetty-http:9.4.19.v20190610" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.eclipse.jetty:jetty-io:9.4.19.v20190610" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.eclipse.jetty:jetty-server:9.4.19.v20190610" level="project" />
|
||||
<orderEntry type="library" name="Maven: javax.servlet:javax.servlet-api:3.1.0" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.eclipse.jetty:jetty-util:9.4.19.v20190610" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.eclipse.jetty:jetty-websocket:8.2.0.v20160908" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.alibaba:fastjson:1.2.73" level="project" />
|
||||
<orderEntry type="library" name="Maven: commons-fileupload:commons-fileupload:1.4" level="project" />
|
||||
<orderEntry type="library" name="Maven: commons-io:commons-io:2.2" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.geronimo.specs:geronimo-jta_1.0.1B_spec:1.0.1" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: com.foreverwin.modular:modular-melib:15.4.0.2.RELEASE" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: com.sap:me.activity.api:154.0.2" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: com.sap:me.annotation.api:154.0.2" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: com.sap:me.appconfig.api:154.0.2" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: com.sap:me.backgroundprocess.api:154.0.2" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: com.sap:me.browse.api:154.0.2" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: com.sap:me.certification.api:154.0.2" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: com.sap:me.collaboration.api:154.0.2" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: com.sap:me.common.api:154.0.2" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: com.sap:me.container.api:154.0.2" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: com.sap:me.customdata.api:154.0.2" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: com.sap:me.datacollection.api:154.0.2" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: com.sap:me.dataformat.api:154.0.2" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: com.sap:me.datatransfer.api:154.0.2" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: com.sap:me.datatype.api:154.0.2" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: com.sap:me.demand.api:154.0.2" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: com.sap:me.document.api:154.0.2" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: com.sap:me.extension.api:154.0.2" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: com.sap:me.framework.api:154.0.2" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: com.sap:me.framework.api-internal:154.0.2" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: com.sap:me.framework.globalization:154.0.2" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: com.sap:me.integration.api:154.0.2" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: com.sap:me.integration.cncdnc.api:154.0.2" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: com.sap:me.integration.erp.api:154.0.2" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: com.sap:me.inventory.api:154.0.2" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: com.sap:me.labor.api:154.0.2" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: com.sap:me.legacy.api:154.0.2" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: com.sap:me.messaging.api:154.0.2" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: com.sap:me.nonconformance.api:154.0.2" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: com.sap:me.numbering.api:154.0.2" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: com.sap:me.plant.api:154.0.2" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: com.sap:me.productdefinition.api:154.0.2" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: com.sap:me.production.api:154.0.2" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: com.sap:me.productiondate.api:154.0.2" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: com.sap:me.reasoncode.api:154.0.2" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: com.sap:me.reporting.api:154.0.2" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: com.sap:me.resourcetracking.api:154.0.2" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: com.sap:me.sampling.api:154.0.2" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: com.sap:me.schedulingstandards.api:154.0.2" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: com.sap:me.script.api:154.0.2" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: com.sap:me.security.api:154.0.2" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: com.sap:me.setpoint.api:154.0.2" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: com.sap:me.status.api:154.0.2" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: com.sap:me.timeelement.api:154.0.2" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: com.sap:me.tooling.api:154.0.2" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: com.sap:me.uom.api:154.0.2" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: com.sap:me.user.api:154.0.2" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: com.sap:service-core.api:3.4.0" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: com.sap:common-libs:3.0" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: com.sap:sap-usermanagement-api:1.0" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: com.sap:me.common.domain:154.0.2" level="project" />
|
||||
<orderEntry type="module" module-name="common" />
|
||||
<orderEntry type="library" name="Maven: javax.mail:mail:1.4.7" level="project" />
|
||||
<orderEntry type="library" name="Maven: javax.activation:activation:1.1.1" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.jsoup:jsoup:1.11.3" level="project" />
|
||||
<orderEntry type="module" module-name="meapi" />
|
||||
<orderEntry type="library" name="Maven: org.apache.poi:poi:3.8" level="project" />
|
||||
<orderEntry type="library" name="Maven: commons-codec:commons-codec:1.10" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.poi:poi-ooxml:3.8" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.poi:poi-ooxml-schemas:3.8" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.xmlbeans:xmlbeans:2.3.0" level="project" />
|
||||
<orderEntry type="library" name="Maven: stax:stax-api:1.0.1" level="project" />
|
||||
<orderEntry type="library" name="Maven: dom4j:dom4j:1.6.1" level="project" />
|
||||
<orderEntry type="library" name="Maven: xml-apis:xml-apis:1.4.01" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-activemq:2.1.3.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter:1.5.22.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot:1.5.22.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-autoconfigure:1.5.22.RELEASE" level="project" />
|
||||
<orderEntry type="library" scope="RUNTIME" name="Maven: org.yaml:snakeyaml:1.17" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework:spring-jms:4.3.25.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework:spring-aop:4.3.25.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework:spring-beans:4.3.25.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework:spring-context:4.3.25.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework:spring-messaging:4.3.25.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework:spring-tx:4.3.25.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.activemq:activemq-broker:5.14.5" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.activemq:activemq-openwire-legacy:5.14.5" level="project" />
|
||||
<orderEntry type="library" name="Maven: javax.jms:javax.jms-api:2.0.1" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.activemq:activemq-pool:5.13.4" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.slf4j:slf4j-api:1.7.26" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.activemq:activemq-jms-pool:5.14.5" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.geronimo.specs:geronimo-jms_1.1_spec:1.1.1" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.activemq:activemq-client:5.14.5" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.fusesource.hawtbuf:hawtbuf:1.11" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.geronimo.specs:geronimo-j2ee-management_1.1_spec:1.0.1" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.commons:commons-pool2:2.4.3" level="project" />
|
||||
<orderEntry type="library" name="Maven: commons-lang:commons-lang:2.4" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.google.guava:guava:28.0-jre" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.google.guava:failureaccess:1.0.1" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.google.code.findbugs:jsr305:3.0.2" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.checkerframework:checker-qual:2.8.1" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.google.errorprone:error_prone_annotations:2.3.2" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.google.j2objc:j2objc-annotations:1.3" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.codehaus.mojo:animal-sniffer-annotations:1.17" level="project" />
|
||||
</component>
|
||||
</module>
|
@ -0,0 +1,146 @@
|
||||
package com.foreverwin.mesnac.meapi.controller;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.foreverwin.mesnac.meapi.model.NwaUser;
|
||||
import com.foreverwin.mesnac.meapi.service.NwaUserService;
|
||||
import com.foreverwin.modular.core.util.CommonMethods;
|
||||
import com.foreverwin.modular.core.util.FrontPage;
|
||||
import com.foreverwin.modular.core.util.R;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author robert
|
||||
* @since 2021-06-16
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/Z-NWA-USER")
|
||||
public class NwaUserController {
|
||||
|
||||
@Autowired
|
||||
public NwaUserService nwaUserService;
|
||||
|
||||
/**
|
||||
* 根据id查询
|
||||
*
|
||||
* @param id 主键
|
||||
* @return
|
||||
*/
|
||||
@ResponseBody
|
||||
@GetMapping("/{id:.+}")
|
||||
public R getNwaUserById(@PathVariable String id)
|
||||
{
|
||||
return R.ok( nwaUserService.getById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询所有数据
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@ResponseBody
|
||||
@GetMapping("")
|
||||
public R getNwaUserList(NwaUser nwaUser){
|
||||
List<NwaUser> result;
|
||||
QueryWrapper<NwaUser> queryWrapper = new QueryWrapper<>();
|
||||
queryWrapper.setEntity(nwaUser);
|
||||
result = nwaUserService.list(queryWrapper);
|
||||
return R.ok(result);
|
||||
}
|
||||
|
||||
/**
|
||||
* 分页查询数据
|
||||
*
|
||||
* @param frontPage 分页信息
|
||||
* @return
|
||||
*/
|
||||
@ResponseBody
|
||||
@GetMapping("/page")
|
||||
public R page(FrontPage<NwaUser> frontPage, NwaUser nwaUser){
|
||||
IPage result;
|
||||
QueryWrapper<NwaUser> queryWrapper = new QueryWrapper<>();
|
||||
String site = CommonMethods.getSite();
|
||||
nwaUser.setSite(site);
|
||||
queryWrapper.setEntity(nwaUser);
|
||||
if (frontPage.getGlobalQuery() != null && !"".equals(frontPage.getGlobalQuery().trim())) {
|
||||
//TODO modify global query
|
||||
queryWrapper.lambda().and(wrapper -> wrapper
|
||||
.like(NwaUser::getHandle, frontPage.getGlobalQuery())
|
||||
.or().like(NwaUser::getUserName, frontPage.getGlobalQuery())
|
||||
.or().like(NwaUser::getFirstName, frontPage.getGlobalQuery())
|
||||
.or().like(NwaUser::getLastName, frontPage.getGlobalQuery())
|
||||
.or().like(NwaUser::getFullName, frontPage.getGlobalQuery())
|
||||
.or().like(NwaUser::getPassword, frontPage.getGlobalQuery())
|
||||
.or().like(NwaUser::getSalt, frontPage.getGlobalQuery())
|
||||
.or().like(NwaUser::getPhone, frontPage.getGlobalQuery())
|
||||
.or().like(NwaUser::getAvatar, frontPage.getGlobalQuery())
|
||||
.or().like(NwaUser::getDeptId, frontPage.getGlobalQuery())
|
||||
.or().like(NwaUser::getLockFlag, frontPage.getGlobalQuery())
|
||||
.or().like(NwaUser::getDelFlag, frontPage.getGlobalQuery())
|
||||
.or().like(NwaUser::getSite, frontPage.getGlobalQuery())
|
||||
.or().like(NwaUser::getDeptDesc, frontPage.getGlobalQuery())
|
||||
.or().like(NwaUser::getJobTitle, frontPage.getGlobalQuery())
|
||||
.or().like(NwaUser::getEmail, frontPage.getGlobalQuery())
|
||||
);
|
||||
}
|
||||
result = nwaUserService.page(frontPage.getPagePlus(), queryWrapper);
|
||||
return R.ok(result);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增
|
||||
* @param nwaUser 传递的实体
|
||||
* @return null 失败 实体成功
|
||||
*/
|
||||
@PostMapping
|
||||
public R save(@RequestBody NwaUser nwaUser) {
|
||||
LocalDateTime now = LocalDateTime.now();
|
||||
nwaUser.setCreateTime(now);
|
||||
nwaUser.setUpdateTime(now);
|
||||
return R.ok(nwaUserService.save(nwaUser));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改
|
||||
* @param nwaUser 传递的实体
|
||||
* @return null 失败 实体成功
|
||||
*/
|
||||
@PutMapping
|
||||
public R updateById(@RequestBody NwaUser nwaUser) {
|
||||
LocalDateTime now = LocalDateTime.now();
|
||||
nwaUser.setUpdateTime(now);
|
||||
return R.ok(nwaUserService.updateById(nwaUser));
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据id删除对象
|
||||
* @param id 实体ID
|
||||
* @return 0 失败 1 成功
|
||||
*/
|
||||
@ResponseBody
|
||||
@RequestMapping(method = RequestMethod.DELETE, value = "/{id:.+}")
|
||||
public R removeById(@PathVariable("id") String id){
|
||||
return R.ok(nwaUserService.removeById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除对象
|
||||
* @param ids 实体集合ID
|
||||
* @return 0 失败 1 成功
|
||||
*/
|
||||
@ResponseBody
|
||||
@RequestMapping(method = RequestMethod.POST, value = "/delete-batch")
|
||||
public R removeByIds(List<String> ids){
|
||||
return R.ok(nwaUserService.removeByIds(ids));
|
||||
}
|
||||
|
||||
@GetMapping("findUserById")
|
||||
public R findUserById(String user){
|
||||
return R.ok(nwaUserService.findUserByUserName(user));
|
||||
}
|
||||
}
|
@ -0,0 +1,19 @@
|
||||
package com.foreverwin.mesnac.meapi.mapper;
|
||||
|
||||
import com.foreverwin.mesnac.meapi.model.NwaUser;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author robert
|
||||
* @since 2021-06-16
|
||||
*/
|
||||
@Repository
|
||||
public interface NwaUserMapper extends BaseMapper<NwaUser> {
|
||||
NwaUser findUserByUserName(@Param("site")String site, @Param("user")String user);
|
||||
}
|
@ -0,0 +1,300 @@
|
||||
package com.foreverwin.mesnac.meapi.model;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.extension.activerecord.Model;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
*
|
||||
* </p>
|
||||
*
|
||||
* @author robert
|
||||
* @since 2021-06-16
|
||||
*/
|
||||
|
||||
@TableName("Z_NWA_USER")
|
||||
|
||||
public class NwaUser extends Model<NwaUser> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@TableId(value = "HANDLE", type = IdType.INPUT)
|
||||
private String handle;
|
||||
@TableField("USER_NAME")
|
||||
private String userName;
|
||||
@TableField("FIRST_NAME")
|
||||
private String firstName;
|
||||
@TableField("LAST_NAME")
|
||||
private String lastName;
|
||||
@TableField("FULL_NAME")
|
||||
private String fullName;
|
||||
@TableField("PASSWORD")
|
||||
private String password;
|
||||
@TableField("SALT")
|
||||
private String salt;
|
||||
@TableField("PHONE")
|
||||
private String phone;
|
||||
@TableField("AVATAR")
|
||||
private String avatar;
|
||||
@TableField("DEPT_ID")
|
||||
private String deptId;
|
||||
@TableField("CREATE_TIME")
|
||||
private LocalDateTime createTime;
|
||||
@TableField("UPDATE_TIME")
|
||||
private LocalDateTime updateTime;
|
||||
@TableField("LOCK_FLAG")
|
||||
private String lockFlag;
|
||||
@TableField("DEL_FLAG")
|
||||
private String delFlag;
|
||||
@TableField("SITE")
|
||||
private String site;
|
||||
@TableField("DEPT_DESC")
|
||||
private String deptDesc;
|
||||
@TableField("VALID_FROM")
|
||||
private LocalDateTime validFrom;
|
||||
@TableField("VALID_TO")
|
||||
private LocalDateTime validTo;
|
||||
@TableField("JOB_TITLE")
|
||||
private String jobTitle;
|
||||
@TableField("EMAIL")
|
||||
private String email;
|
||||
|
||||
|
||||
public String getHandle() {
|
||||
return handle;
|
||||
}
|
||||
|
||||
public void setHandle(String handle) {
|
||||
this.handle = handle;
|
||||
}
|
||||
|
||||
public String getUserName() {
|
||||
return userName;
|
||||
}
|
||||
|
||||
public void setUserName(String userName) {
|
||||
this.userName = userName;
|
||||
}
|
||||
|
||||
public String getFirstName() {
|
||||
return firstName;
|
||||
}
|
||||
|
||||
public void setFirstName(String firstName) {
|
||||
this.firstName = firstName;
|
||||
}
|
||||
|
||||
public String getLastName() {
|
||||
return lastName;
|
||||
}
|
||||
|
||||
public void setLastName(String lastName) {
|
||||
this.lastName = lastName;
|
||||
}
|
||||
|
||||
public String getFullName() {
|
||||
return fullName;
|
||||
}
|
||||
|
||||
public void setFullName(String fullName) {
|
||||
this.fullName = fullName;
|
||||
}
|
||||
|
||||
public String getPassword() {
|
||||
return password;
|
||||
}
|
||||
|
||||
public void setPassword(String password) {
|
||||
this.password = password;
|
||||
}
|
||||
|
||||
public String getSalt() {
|
||||
return salt;
|
||||
}
|
||||
|
||||
public void setSalt(String salt) {
|
||||
this.salt = salt;
|
||||
}
|
||||
|
||||
public String getPhone() {
|
||||
return phone;
|
||||
}
|
||||
|
||||
public void setPhone(String phone) {
|
||||
this.phone = phone;
|
||||
}
|
||||
|
||||
public String getAvatar() {
|
||||
return avatar;
|
||||
}
|
||||
|
||||
public void setAvatar(String avatar) {
|
||||
this.avatar = avatar;
|
||||
}
|
||||
|
||||
public String getDeptId() {
|
||||
return deptId;
|
||||
}
|
||||
|
||||
public void setDeptId(String deptId) {
|
||||
this.deptId = deptId;
|
||||
}
|
||||
|
||||
public LocalDateTime getCreateTime() {
|
||||
return createTime;
|
||||
}
|
||||
|
||||
public void setCreateTime(LocalDateTime createTime) {
|
||||
this.createTime = createTime;
|
||||
}
|
||||
|
||||
public LocalDateTime getUpdateTime() {
|
||||
return updateTime;
|
||||
}
|
||||
|
||||
public void setUpdateTime(LocalDateTime updateTime) {
|
||||
this.updateTime = updateTime;
|
||||
}
|
||||
|
||||
public String getLockFlag() {
|
||||
return lockFlag;
|
||||
}
|
||||
|
||||
public void setLockFlag(String lockFlag) {
|
||||
this.lockFlag = lockFlag;
|
||||
}
|
||||
|
||||
public String getDelFlag() {
|
||||
return delFlag;
|
||||
}
|
||||
|
||||
public void setDelFlag(String delFlag) {
|
||||
this.delFlag = delFlag;
|
||||
}
|
||||
|
||||
public String getSite() {
|
||||
return site;
|
||||
}
|
||||
|
||||
public void setSite(String site) {
|
||||
this.site = site;
|
||||
}
|
||||
|
||||
public String getDeptDesc() {
|
||||
return deptDesc;
|
||||
}
|
||||
|
||||
public void setDeptDesc(String deptDesc) {
|
||||
this.deptDesc = deptDesc;
|
||||
}
|
||||
|
||||
public LocalDateTime getValidFrom() {
|
||||
return validFrom;
|
||||
}
|
||||
|
||||
public void setValidFrom(LocalDateTime validFrom) {
|
||||
this.validFrom = validFrom;
|
||||
}
|
||||
|
||||
public LocalDateTime getValidTo() {
|
||||
return validTo;
|
||||
}
|
||||
|
||||
public void setValidTo(LocalDateTime validTo) {
|
||||
this.validTo = validTo;
|
||||
}
|
||||
|
||||
public String getJobTitle() {
|
||||
return jobTitle;
|
||||
}
|
||||
|
||||
public void setJobTitle(String jobTitle) {
|
||||
this.jobTitle = jobTitle;
|
||||
}
|
||||
|
||||
public String getEmail() {
|
||||
return email;
|
||||
}
|
||||
|
||||
public void setEmail(String email) {
|
||||
this.email = email;
|
||||
}
|
||||
|
||||
public static final String HANDLE = "HANDLE";
|
||||
|
||||
public static final String USER_NAME = "USER_NAME";
|
||||
|
||||
public static final String FIRST_NAME = "FIRST_NAME";
|
||||
|
||||
public static final String LAST_NAME = "LAST_NAME";
|
||||
|
||||
public static final String FULL_NAME = "FULL_NAME";
|
||||
|
||||
public static final String PASSWORD = "PASSWORD";
|
||||
|
||||
public static final String SALT = "SALT";
|
||||
|
||||
public static final String PHONE = "PHONE";
|
||||
|
||||
public static final String AVATAR = "AVATAR";
|
||||
|
||||
public static final String DEPT_ID = "DEPT_ID";
|
||||
|
||||
public static final String CREATE_TIME = "CREATE_TIME";
|
||||
|
||||
public static final String UPDATE_TIME = "UPDATE_TIME";
|
||||
|
||||
public static final String LOCK_FLAG = "LOCK_FLAG";
|
||||
|
||||
public static final String DEL_FLAG = "DEL_FLAG";
|
||||
|
||||
public static final String SITE = "SITE";
|
||||
|
||||
public static final String DEPT_DESC = "DEPT_DESC";
|
||||
|
||||
public static final String VALID_FROM = "VALID_FROM";
|
||||
|
||||
public static final String VALID_TO = "VALID_TO";
|
||||
|
||||
public static final String JOB_TITLE = "JOB_TITLE";
|
||||
|
||||
public static final String EMAIL = "EMAIL";
|
||||
|
||||
|
||||
@Override
|
||||
protected Serializable pkVal() {
|
||||
return this.handle;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "NwaUser{" +
|
||||
"handle = " + handle +
|
||||
", userName = " + userName +
|
||||
", firstName = " + firstName +
|
||||
", lastName = " + lastName +
|
||||
", fullName = " + fullName +
|
||||
", password = " + password +
|
||||
", salt = " + salt +
|
||||
", phone = " + phone +
|
||||
", avatar = " + avatar +
|
||||
", deptId = " + deptId +
|
||||
", createTime = " + createTime +
|
||||
", updateTime = " + updateTime +
|
||||
", lockFlag = " + lockFlag +
|
||||
", delFlag = " + delFlag +
|
||||
", site = " + site +
|
||||
", deptDesc = " + deptDesc +
|
||||
", validFrom = " + validFrom +
|
||||
", validTo = " + validTo +
|
||||
", jobTitle = " + jobTitle +
|
||||
", email = " + email +
|
||||
"}";
|
||||
}
|
||||
}
|
@ -0,0 +1,30 @@
|
||||
package com.foreverwin.mesnac.meapi.service;
|
||||
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.foreverwin.mesnac.meapi.model.NwaUser;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.foreverwin.modular.core.util.FrontPage;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 服务类
|
||||
* </p>
|
||||
*
|
||||
* @author robert
|
||||
* @since 2021-06-16
|
||||
*/
|
||||
public interface NwaUserService extends IService<NwaUser> {
|
||||
|
||||
/**
|
||||
* 分页查询
|
||||
* @param frontPage
|
||||
* @return
|
||||
*/
|
||||
IPage<NwaUser> selectPage(FrontPage<NwaUser> frontPage, NwaUser nwaUser);
|
||||
|
||||
List<NwaUser> selectList(NwaUser nwaUser);
|
||||
|
||||
NwaUser findUserByUserName(String id);
|
||||
}
|
@ -0,0 +1,570 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.foreverwin.mesnac.meapi.mapper.NwaUserMapper">
|
||||
|
||||
<!-- 通用查询映射结果 -->
|
||||
<resultMap id="BaseResultMap" type="com.foreverwin.mesnac.meapi.model.NwaUser">
|
||||
<id column="HANDLE" property="handle" />
|
||||
<result column="USER_NAME" property="userName" />
|
||||
<result column="FIRST_NAME" property="firstName" />
|
||||
<result column="LAST_NAME" property="lastName" />
|
||||
<result column="FULL_NAME" property="fullName" />
|
||||
<result column="PASSWORD" property="password" />
|
||||
<result column="SALT" property="salt" />
|
||||
<result column="PHONE" property="phone" />
|
||||
<result column="AVATAR" property="avatar" />
|
||||
<result column="DEPT_ID" property="deptId" />
|
||||
<result column="CREATE_TIME" property="createTime" />
|
||||
<result column="UPDATE_TIME" property="updateTime" />
|
||||
<result column="LOCK_FLAG" property="lockFlag" />
|
||||
<result column="DEL_FLAG" property="delFlag" />
|
||||
<result column="SITE" property="site" />
|
||||
<result column="DEPT_DESC" property="deptDesc" />
|
||||
<result column="VALID_FROM" property="validFrom" />
|
||||
<result column="VALID_TO" property="validTo" />
|
||||
<result column="JOB_TITLE" property="jobTitle" />
|
||||
<result column="EMAIL" property="email" />
|
||||
</resultMap>
|
||||
|
||||
<!-- 通用查询结果列 -->
|
||||
<sql id="Base_Column_List">
|
||||
HANDLE, USER_NAME, FIRST_NAME, LAST_NAME, FULL_NAME, PASSWORD, SALT, PHONE, AVATAR, DEPT_ID, CREATE_TIME, UPDATE_TIME, LOCK_FLAG, DEL_FLAG, SITE, DEPT_DESC, VALID_FROM, VALID_TO, JOB_TITLE, EMAIL
|
||||
</sql>
|
||||
|
||||
<!-- BaseMapper标准查询/修改/删除 -->
|
||||
<select id="selectById" resultMap="BaseResultMap">
|
||||
SELECT <include refid="Base_Column_List"></include> FROM Z_NWA_USER WHERE HANDLE=#{handle}
|
||||
</select>
|
||||
|
||||
<select id="selectByMap" resultMap="BaseResultMap">
|
||||
SELECT <include refid="Base_Column_List"></include>
|
||||
FROM Z_NWA_USER
|
||||
<if test="cm!=null and !cm.isEmpty">
|
||||
<where>
|
||||
<foreach collection="cm.keys" item="k" separator="AND">
|
||||
<if test="cm[k] != null">
|
||||
${k} = #{cm[${k}]}
|
||||
</if>
|
||||
</foreach>
|
||||
</where>
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<select id="selectBatchIds" resultMap="BaseResultMap">
|
||||
SELECT <include refid="Base_Column_List"></include>
|
||||
FROM Z_NWA_USER WHERE HANDLE IN (
|
||||
<foreach item="item" index="index" collection="coll" separator=",">#{item}
|
||||
</foreach>)
|
||||
</select>
|
||||
|
||||
<select id="selectOne" resultMap="BaseResultMap">
|
||||
SELECT <include refid="Base_Column_List"></include> FROM Z_NWA_USER
|
||||
<where>
|
||||
<if test="ew.entity.handle!=null">
|
||||
HANDLE=#{ew.handle}
|
||||
</if>
|
||||
<if test="ew.entity.userName!=null"> AND USER_NAME=#{ew.entity.userName}</if>
|
||||
<if test="ew.entity.firstName!=null"> AND FIRST_NAME=#{ew.entity.firstName}</if>
|
||||
<if test="ew.entity.lastName!=null"> AND LAST_NAME=#{ew.entity.lastName}</if>
|
||||
<if test="ew.entity.fullName!=null"> AND FULL_NAME=#{ew.entity.fullName}</if>
|
||||
<if test="ew.entity.password!=null"> AND PASSWORD=#{ew.entity.password}</if>
|
||||
<if test="ew.entity.salt!=null"> AND SALT=#{ew.entity.salt}</if>
|
||||
<if test="ew.entity.phone!=null"> AND PHONE=#{ew.entity.phone}</if>
|
||||
<if test="ew.entity.avatar!=null"> AND AVATAR=#{ew.entity.avatar}</if>
|
||||
<if test="ew.entity.deptId!=null"> AND DEPT_ID=#{ew.entity.deptId}</if>
|
||||
<if test="ew.entity.createTime!=null"> AND CREATE_TIME=#{ew.entity.createTime}</if>
|
||||
<if test="ew.entity.updateTime!=null"> AND UPDATE_TIME=#{ew.entity.updateTime}</if>
|
||||
<if test="ew.entity.lockFlag!=null"> AND LOCK_FLAG=#{ew.entity.lockFlag}</if>
|
||||
<if test="ew.entity.delFlag!=null"> AND DEL_FLAG=#{ew.entity.delFlag}</if>
|
||||
<if test="ew.entity.site!=null"> AND SITE=#{ew.entity.site}</if>
|
||||
<if test="ew.entity.deptDesc!=null"> AND DEPT_DESC=#{ew.entity.deptDesc}</if>
|
||||
<if test="ew.entity.validFrom!=null"> AND VALID_FROM=#{ew.entity.validFrom}</if>
|
||||
<if test="ew.entity.validTo!=null"> AND VALID_TO=#{ew.entity.validTo}</if>
|
||||
<if test="ew.entity.jobTitle!=null"> AND JOB_TITLE=#{ew.entity.jobTitle}</if>
|
||||
<if test="ew.entity.email!=null"> AND EMAIL=#{ew.entity.email}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectCount" resultType="Integer">
|
||||
SELECT COUNT(1) FROM Z_NWA_USER
|
||||
<where>
|
||||
<if test="ew!=null">
|
||||
<if test="ew.entity!=null">
|
||||
<if test="ew.entity.handle!=null">
|
||||
HANDLE=#{ew.entity.handle}
|
||||
</if>
|
||||
<if test="ew.entity.userName!=null"> AND USER_NAME=#{ew.entity.userName}</if>
|
||||
<if test="ew.entity.firstName!=null"> AND FIRST_NAME=#{ew.entity.firstName}</if>
|
||||
<if test="ew.entity.lastName!=null"> AND LAST_NAME=#{ew.entity.lastName}</if>
|
||||
<if test="ew.entity.fullName!=null"> AND FULL_NAME=#{ew.entity.fullName}</if>
|
||||
<if test="ew.entity.password!=null"> AND PASSWORD=#{ew.entity.password}</if>
|
||||
<if test="ew.entity.salt!=null"> AND SALT=#{ew.entity.salt}</if>
|
||||
<if test="ew.entity.phone!=null"> AND PHONE=#{ew.entity.phone}</if>
|
||||
<if test="ew.entity.avatar!=null"> AND AVATAR=#{ew.entity.avatar}</if>
|
||||
<if test="ew.entity.deptId!=null"> AND DEPT_ID=#{ew.entity.deptId}</if>
|
||||
<if test="ew.entity.createTime!=null"> AND CREATE_TIME=#{ew.entity.createTime}</if>
|
||||
<if test="ew.entity.updateTime!=null"> AND UPDATE_TIME=#{ew.entity.updateTime}</if>
|
||||
<if test="ew.entity.lockFlag!=null"> AND LOCK_FLAG=#{ew.entity.lockFlag}</if>
|
||||
<if test="ew.entity.delFlag!=null"> AND DEL_FLAG=#{ew.entity.delFlag}</if>
|
||||
<if test="ew.entity.site!=null"> AND SITE=#{ew.entity.site}</if>
|
||||
<if test="ew.entity.deptDesc!=null"> AND DEPT_DESC=#{ew.entity.deptDesc}</if>
|
||||
<if test="ew.entity.validFrom!=null"> AND VALID_FROM=#{ew.entity.validFrom}</if>
|
||||
<if test="ew.entity.validTo!=null"> AND VALID_TO=#{ew.entity.validTo}</if>
|
||||
<if test="ew.entity.jobTitle!=null"> AND JOB_TITLE=#{ew.entity.jobTitle}</if>
|
||||
<if test="ew.entity.email!=null"> AND EMAIL=#{ew.entity.email}</if>
|
||||
</if>
|
||||
<if test="ew!=null and ew.sqlSegment!=null and ew.nonEmptyOfWhere">
|
||||
${ew.sqlSegment}
|
||||
</if>
|
||||
</if>
|
||||
</where>
|
||||
<if test="ew!=null and ew.sqlSegment!=null and ew.emptyOfWhere">
|
||||
${ew.sqlSegment}
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<select id="selectList" resultMap="BaseResultMap">
|
||||
SELECT <choose><when test="ew != null and ew.sqlSelect != null">${ew.sqlSelect}</when><otherwise><include refid="Base_Column_List"></include></otherwise></choose> FROM Z_NWA_USER
|
||||
<where>
|
||||
<if test="ew!=null">
|
||||
<if test="ew.entity!=null">
|
||||
<if test="ew.entity.handle!=null">
|
||||
HANDLE=#{ew.entity.handle}
|
||||
</if>
|
||||
<if test="ew.entity.userName!=null"> AND USER_NAME=#{ew.entity.userName}</if>
|
||||
<if test="ew.entity.firstName!=null"> AND FIRST_NAME=#{ew.entity.firstName}</if>
|
||||
<if test="ew.entity.lastName!=null"> AND LAST_NAME=#{ew.entity.lastName}</if>
|
||||
<if test="ew.entity.fullName!=null"> AND FULL_NAME=#{ew.entity.fullName}</if>
|
||||
<if test="ew.entity.password!=null"> AND PASSWORD=#{ew.entity.password}</if>
|
||||
<if test="ew.entity.salt!=null"> AND SALT=#{ew.entity.salt}</if>
|
||||
<if test="ew.entity.phone!=null"> AND PHONE=#{ew.entity.phone}</if>
|
||||
<if test="ew.entity.avatar!=null"> AND AVATAR=#{ew.entity.avatar}</if>
|
||||
<if test="ew.entity.deptId!=null"> AND DEPT_ID=#{ew.entity.deptId}</if>
|
||||
<if test="ew.entity.createTime!=null"> AND CREATE_TIME=#{ew.entity.createTime}</if>
|
||||
<if test="ew.entity.updateTime!=null"> AND UPDATE_TIME=#{ew.entity.updateTime}</if>
|
||||
<if test="ew.entity.lockFlag!=null"> AND LOCK_FLAG=#{ew.entity.lockFlag}</if>
|
||||
<if test="ew.entity.delFlag!=null"> AND DEL_FLAG=#{ew.entity.delFlag}</if>
|
||||
<if test="ew.entity.site!=null"> AND SITE=#{ew.entity.site}</if>
|
||||
<if test="ew.entity.deptDesc!=null"> AND DEPT_DESC=#{ew.entity.deptDesc}</if>
|
||||
<if test="ew.entity.validFrom!=null"> AND VALID_FROM=#{ew.entity.validFrom}</if>
|
||||
<if test="ew.entity.validTo!=null"> AND VALID_TO=#{ew.entity.validTo}</if>
|
||||
<if test="ew.entity.jobTitle!=null"> AND JOB_TITLE=#{ew.entity.jobTitle}</if>
|
||||
<if test="ew.entity.email!=null"> AND EMAIL=#{ew.entity.email}</if>
|
||||
</if>
|
||||
<if test="ew!=null and ew.sqlSegment!=null and ew.nonEmptyOfWhere">
|
||||
${ew.sqlSegment}
|
||||
</if>
|
||||
</if>
|
||||
</where>
|
||||
<if test="ew!=null and ew.sqlSegment!=null and ew.emptyOfWhere">
|
||||
${ew.sqlSegment}
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<select id="selectMaps" resultType="HashMap">
|
||||
SELECT <choose><when test="ew != null and ew.sqlSelect != null">${ew.sqlSelect}</when><otherwise><include refid="Base_Column_List"></include></otherwise></choose> FROM Z_NWA_USER
|
||||
<where>
|
||||
<if test="ew!=null">
|
||||
<if test="ew.entity!=null">
|
||||
<if test="ew.entity.handle!=null">
|
||||
HANDLE=#{ew.entity.handle}
|
||||
</if>
|
||||
<if test="ew.entity.userName!=null"> AND USER_NAME=#{ew.entity.userName}</if>
|
||||
<if test="ew.entity.firstName!=null"> AND FIRST_NAME=#{ew.entity.firstName}</if>
|
||||
<if test="ew.entity.lastName!=null"> AND LAST_NAME=#{ew.entity.lastName}</if>
|
||||
<if test="ew.entity.fullName!=null"> AND FULL_NAME=#{ew.entity.fullName}</if>
|
||||
<if test="ew.entity.password!=null"> AND PASSWORD=#{ew.entity.password}</if>
|
||||
<if test="ew.entity.salt!=null"> AND SALT=#{ew.entity.salt}</if>
|
||||
<if test="ew.entity.phone!=null"> AND PHONE=#{ew.entity.phone}</if>
|
||||
<if test="ew.entity.avatar!=null"> AND AVATAR=#{ew.entity.avatar}</if>
|
||||
<if test="ew.entity.deptId!=null"> AND DEPT_ID=#{ew.entity.deptId}</if>
|
||||
<if test="ew.entity.createTime!=null"> AND CREATE_TIME=#{ew.entity.createTime}</if>
|
||||
<if test="ew.entity.updateTime!=null"> AND UPDATE_TIME=#{ew.entity.updateTime}</if>
|
||||
<if test="ew.entity.lockFlag!=null"> AND LOCK_FLAG=#{ew.entity.lockFlag}</if>
|
||||
<if test="ew.entity.delFlag!=null"> AND DEL_FLAG=#{ew.entity.delFlag}</if>
|
||||
<if test="ew.entity.site!=null"> AND SITE=#{ew.entity.site}</if>
|
||||
<if test="ew.entity.deptDesc!=null"> AND DEPT_DESC=#{ew.entity.deptDesc}</if>
|
||||
<if test="ew.entity.validFrom!=null"> AND VALID_FROM=#{ew.entity.validFrom}</if>
|
||||
<if test="ew.entity.validTo!=null"> AND VALID_TO=#{ew.entity.validTo}</if>
|
||||
<if test="ew.entity.jobTitle!=null"> AND JOB_TITLE=#{ew.entity.jobTitle}</if>
|
||||
<if test="ew.entity.email!=null"> AND EMAIL=#{ew.entity.email}</if>
|
||||
</if>
|
||||
<if test="ew!=null and ew.sqlSegment!=null and ew.nonEmptyOfWhere">
|
||||
${ew.sqlSegment}
|
||||
</if>
|
||||
</if>
|
||||
</where>
|
||||
<if test="ew!=null and ew.sqlSegment!=null and ew.emptyOfWhere">
|
||||
${ew.sqlSegment}
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<select id="selectObjs" resultType="Object">
|
||||
SELECT <choose><when test="ew != null and ew.sqlSelect != null">${ew.sqlSelect}</when><otherwise><include refid="Base_Column_List"></include></otherwise></choose> FROM Z_NWA_USER
|
||||
<where>
|
||||
<if test="ew!=null">
|
||||
<if test="ew.entity!=null">
|
||||
<if test="ew.entity.handle!=null">
|
||||
HANDLE=#{ew.entity.handle}
|
||||
</if>
|
||||
<if test="ew.entity.userName!=null"> AND USER_NAME=#{ew.entity.userName}</if>
|
||||
<if test="ew.entity.firstName!=null"> AND FIRST_NAME=#{ew.entity.firstName}</if>
|
||||
<if test="ew.entity.lastName!=null"> AND LAST_NAME=#{ew.entity.lastName}</if>
|
||||
<if test="ew.entity.fullName!=null"> AND FULL_NAME=#{ew.entity.fullName}</if>
|
||||
<if test="ew.entity.password!=null"> AND PASSWORD=#{ew.entity.password}</if>
|
||||
<if test="ew.entity.salt!=null"> AND SALT=#{ew.entity.salt}</if>
|
||||
<if test="ew.entity.phone!=null"> AND PHONE=#{ew.entity.phone}</if>
|
||||
<if test="ew.entity.avatar!=null"> AND AVATAR=#{ew.entity.avatar}</if>
|
||||
<if test="ew.entity.deptId!=null"> AND DEPT_ID=#{ew.entity.deptId}</if>
|
||||
<if test="ew.entity.createTime!=null"> AND CREATE_TIME=#{ew.entity.createTime}</if>
|
||||
<if test="ew.entity.updateTime!=null"> AND UPDATE_TIME=#{ew.entity.updateTime}</if>
|
||||
<if test="ew.entity.lockFlag!=null"> AND LOCK_FLAG=#{ew.entity.lockFlag}</if>
|
||||
<if test="ew.entity.delFlag!=null"> AND DEL_FLAG=#{ew.entity.delFlag}</if>
|
||||
<if test="ew.entity.site!=null"> AND SITE=#{ew.entity.site}</if>
|
||||
<if test="ew.entity.deptDesc!=null"> AND DEPT_DESC=#{ew.entity.deptDesc}</if>
|
||||
<if test="ew.entity.validFrom!=null"> AND VALID_FROM=#{ew.entity.validFrom}</if>
|
||||
<if test="ew.entity.validTo!=null"> AND VALID_TO=#{ew.entity.validTo}</if>
|
||||
<if test="ew.entity.jobTitle!=null"> AND JOB_TITLE=#{ew.entity.jobTitle}</if>
|
||||
<if test="ew.entity.email!=null"> AND EMAIL=#{ew.entity.email}</if>
|
||||
</if>
|
||||
<if test="ew!=null and ew.sqlSegment!=null and ew.nonEmptyOfWhere">
|
||||
${ew.sqlSegment}
|
||||
</if>
|
||||
</if>
|
||||
</where>
|
||||
<if test="ew!=null and ew.sqlSegment!=null and ew.emptyOfWhere">
|
||||
${ew.sqlSegment}
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<select id="selectPage" resultMap="BaseResultMap">
|
||||
SELECT <choose><when test="ew != null and ew.sqlSelect != null">${ew.sqlSelect}</when><otherwise><include refid="Base_Column_List"></include></otherwise></choose> FROM Z_NWA_USER
|
||||
<where>
|
||||
<if test="ew!=null">
|
||||
<if test="ew.entity!=null">
|
||||
<if test="ew.entity.handle!=null">
|
||||
HANDLE=#{ew.entity.handle}
|
||||
</if>
|
||||
<if test="ew.entity.userName!=null"> AND USER_NAME=#{ew.entity.userName}</if>
|
||||
<if test="ew.entity.firstName!=null"> AND FIRST_NAME=#{ew.entity.firstName}</if>
|
||||
<if test="ew.entity.lastName!=null"> AND LAST_NAME=#{ew.entity.lastName}</if>
|
||||
<if test="ew.entity.fullName!=null"> AND FULL_NAME=#{ew.entity.fullName}</if>
|
||||
<if test="ew.entity.password!=null"> AND PASSWORD=#{ew.entity.password}</if>
|
||||
<if test="ew.entity.salt!=null"> AND SALT=#{ew.entity.salt}</if>
|
||||
<if test="ew.entity.phone!=null"> AND PHONE=#{ew.entity.phone}</if>
|
||||
<if test="ew.entity.avatar!=null"> AND AVATAR=#{ew.entity.avatar}</if>
|
||||
<if test="ew.entity.deptId!=null"> AND DEPT_ID=#{ew.entity.deptId}</if>
|
||||
<if test="ew.entity.createTime!=null"> AND CREATE_TIME=#{ew.entity.createTime}</if>
|
||||
<if test="ew.entity.updateTime!=null"> AND UPDATE_TIME=#{ew.entity.updateTime}</if>
|
||||
<if test="ew.entity.lockFlag!=null"> AND LOCK_FLAG=#{ew.entity.lockFlag}</if>
|
||||
<if test="ew.entity.delFlag!=null"> AND DEL_FLAG=#{ew.entity.delFlag}</if>
|
||||
<if test="ew.entity.site!=null"> AND SITE=#{ew.entity.site}</if>
|
||||
<if test="ew.entity.deptDesc!=null"> AND DEPT_DESC=#{ew.entity.deptDesc}</if>
|
||||
<if test="ew.entity.validFrom!=null"> AND VALID_FROM=#{ew.entity.validFrom}</if>
|
||||
<if test="ew.entity.validTo!=null"> AND VALID_TO=#{ew.entity.validTo}</if>
|
||||
<if test="ew.entity.jobTitle!=null"> AND JOB_TITLE=#{ew.entity.jobTitle}</if>
|
||||
<if test="ew.entity.email!=null"> AND EMAIL=#{ew.entity.email}</if>
|
||||
</if>
|
||||
<if test="ew!=null and ew.sqlSegment!=null and ew.nonEmptyOfWhere">
|
||||
${ew.sqlSegment}
|
||||
</if>
|
||||
</if>
|
||||
</where>
|
||||
<if test="ew!=null and ew.sqlSegment!=null and ew.emptyOfWhere">
|
||||
${ew.sqlSegment}
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<select id="selectMapsPage" resultType="HashMap">
|
||||
SELECT <choose><when test="ew != null and ew.sqlSelect != null">${ew.sqlSelect}</when><otherwise><include refid="Base_Column_List"></include></otherwise></choose> FROM Z_NWA_USER
|
||||
<where>
|
||||
<if test="ew!=null">
|
||||
<if test="ew.entity!=null">
|
||||
<if test="ew.entity.handle!=null">
|
||||
HANDLE=#{ew.entity.handle}
|
||||
</if>
|
||||
<if test="ew.entity.userName!=null"> AND USER_NAME=#{ew.entity.userName}</if>
|
||||
<if test="ew.entity.firstName!=null"> AND FIRST_NAME=#{ew.entity.firstName}</if>
|
||||
<if test="ew.entity.lastName!=null"> AND LAST_NAME=#{ew.entity.lastName}</if>
|
||||
<if test="ew.entity.fullName!=null"> AND FULL_NAME=#{ew.entity.fullName}</if>
|
||||
<if test="ew.entity.password!=null"> AND PASSWORD=#{ew.entity.password}</if>
|
||||
<if test="ew.entity.salt!=null"> AND SALT=#{ew.entity.salt}</if>
|
||||
<if test="ew.entity.phone!=null"> AND PHONE=#{ew.entity.phone}</if>
|
||||
<if test="ew.entity.avatar!=null"> AND AVATAR=#{ew.entity.avatar}</if>
|
||||
<if test="ew.entity.deptId!=null"> AND DEPT_ID=#{ew.entity.deptId}</if>
|
||||
<if test="ew.entity.createTime!=null"> AND CREATE_TIME=#{ew.entity.createTime}</if>
|
||||
<if test="ew.entity.updateTime!=null"> AND UPDATE_TIME=#{ew.entity.updateTime}</if>
|
||||
<if test="ew.entity.lockFlag!=null"> AND LOCK_FLAG=#{ew.entity.lockFlag}</if>
|
||||
<if test="ew.entity.delFlag!=null"> AND DEL_FLAG=#{ew.entity.delFlag}</if>
|
||||
<if test="ew.entity.site!=null"> AND SITE=#{ew.entity.site}</if>
|
||||
<if test="ew.entity.deptDesc!=null"> AND DEPT_DESC=#{ew.entity.deptDesc}</if>
|
||||
<if test="ew.entity.validFrom!=null"> AND VALID_FROM=#{ew.entity.validFrom}</if>
|
||||
<if test="ew.entity.validTo!=null"> AND VALID_TO=#{ew.entity.validTo}</if>
|
||||
<if test="ew.entity.jobTitle!=null"> AND JOB_TITLE=#{ew.entity.jobTitle}</if>
|
||||
<if test="ew.entity.email!=null"> AND EMAIL=#{ew.entity.email}</if>
|
||||
</if>
|
||||
<if test="ew!=null and ew.sqlSegment!=null and ew.nonEmptyOfWhere">
|
||||
${ew.sqlSegment}
|
||||
</if>
|
||||
</if>
|
||||
</where>
|
||||
<if test="ew!=null and ew.sqlSegment!=null and ew.emptyOfWhere">
|
||||
${ew.sqlSegment}
|
||||
</if>
|
||||
</select>
|
||||
<select id="findUserByUserName" resultType="com.foreverwin.mesnac.meapi.model.NwaUser">
|
||||
SELECT USER_NAME
|
||||
FROM Z_NWA_USER
|
||||
WHERE SITE = #{site}
|
||||
<if test="user != null and user != ''">
|
||||
AND USER_NAME = #{user}
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<insert id="insert" parameterType="com.foreverwin.mesnac.meapi.model.NwaUser">
|
||||
INSERT INTO Z_NWA_USER
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
HANDLE,
|
||||
<if test="userName!=null">USER_NAME,</if>
|
||||
<if test="firstName!=null">FIRST_NAME,</if>
|
||||
<if test="lastName!=null">LAST_NAME,</if>
|
||||
<if test="fullName!=null">FULL_NAME,</if>
|
||||
<if test="password!=null">PASSWORD,</if>
|
||||
<if test="salt!=null">SALT,</if>
|
||||
<if test="phone!=null">PHONE,</if>
|
||||
<if test="avatar!=null">AVATAR,</if>
|
||||
<if test="deptId!=null">DEPT_ID,</if>
|
||||
<if test="createTime!=null">CREATE_TIME,</if>
|
||||
<if test="updateTime!=null">UPDATE_TIME,</if>
|
||||
<if test="lockFlag!=null">LOCK_FLAG,</if>
|
||||
<if test="delFlag!=null">DEL_FLAG,</if>
|
||||
<if test="site!=null">SITE,</if>
|
||||
<if test="deptDesc!=null">DEPT_DESC,</if>
|
||||
<if test="validFrom!=null">VALID_FROM,</if>
|
||||
<if test="validTo!=null">VALID_TO,</if>
|
||||
<if test="jobTitle!=null">JOB_TITLE,</if>
|
||||
<if test="email!=null">EMAIL,</if>
|
||||
</trim> VALUES
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
#{handle},
|
||||
<if test="userName!=null">#{userName},</if>
|
||||
<if test="firstName!=null">#{firstName},</if>
|
||||
<if test="lastName!=null">#{lastName},</if>
|
||||
<if test="fullName!=null">#{fullName},</if>
|
||||
<if test="password!=null">#{password},</if>
|
||||
<if test="salt!=null">#{salt},</if>
|
||||
<if test="phone!=null">#{phone},</if>
|
||||
<if test="avatar!=null">#{avatar},</if>
|
||||
<if test="deptId!=null">#{deptId},</if>
|
||||
<if test="createTime!=null">#{createTime},</if>
|
||||
<if test="updateTime!=null">#{updateTime},</if>
|
||||
<if test="lockFlag!=null">#{lockFlag},</if>
|
||||
<if test="delFlag!=null">#{delFlag},</if>
|
||||
<if test="site!=null">#{site},</if>
|
||||
<if test="deptDesc!=null">#{deptDesc},</if>
|
||||
<if test="validFrom!=null">#{validFrom},</if>
|
||||
<if test="validTo!=null">#{validTo},</if>
|
||||
<if test="jobTitle!=null">#{jobTitle},</if>
|
||||
<if test="email!=null">#{email},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<insert id="insertAllColumn" parameterType="com.foreverwin.mesnac.meapi.model.NwaUser">
|
||||
INSERT INTO Z_NWA_USER
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<include refid="Base_Column_List"></include>
|
||||
</trim> VALUES
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
#{handle},
|
||||
#{userName},
|
||||
#{firstName},
|
||||
#{lastName},
|
||||
#{fullName},
|
||||
#{password},
|
||||
#{salt},
|
||||
#{phone},
|
||||
#{avatar},
|
||||
#{deptId},
|
||||
#{createTime},
|
||||
#{updateTime},
|
||||
#{lockFlag},
|
||||
#{delFlag},
|
||||
#{site},
|
||||
#{deptDesc},
|
||||
#{validFrom},
|
||||
#{validTo},
|
||||
#{jobTitle},
|
||||
#{email},
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
|
||||
<update id="updateById">
|
||||
UPDATE Z_NWA_USER <trim prefix="SET" suffixOverrides=",">
|
||||
<if test="et.userName!=null">USER_NAME=#{et.userName},</if>
|
||||
<if test="et.firstName!=null">FIRST_NAME=#{et.firstName},</if>
|
||||
<if test="et.lastName!=null">LAST_NAME=#{et.lastName},</if>
|
||||
<if test="et.fullName!=null">FULL_NAME=#{et.fullName},</if>
|
||||
<if test="et.password!=null">PASSWORD=#{et.password},</if>
|
||||
<if test="et.salt!=null">SALT=#{et.salt},</if>
|
||||
<if test="et.phone!=null">PHONE=#{et.phone},</if>
|
||||
<if test="et.avatar!=null">AVATAR=#{et.avatar},</if>
|
||||
<if test="et.deptId!=null">DEPT_ID=#{et.deptId},</if>
|
||||
<if test="et.createTime!=null">CREATE_TIME=#{et.createTime},</if>
|
||||
<if test="et.updateTime!=null">UPDATE_TIME=#{et.updateTime},</if>
|
||||
<if test="et.lockFlag!=null">LOCK_FLAG=#{et.lockFlag},</if>
|
||||
<if test="et.delFlag!=null">DEL_FLAG=#{et.delFlag},</if>
|
||||
<if test="et.site!=null">SITE=#{et.site},</if>
|
||||
<if test="et.deptDesc!=null">DEPT_DESC=#{et.deptDesc},</if>
|
||||
<if test="et.validFrom!=null">VALID_FROM=#{et.validFrom},</if>
|
||||
<if test="et.validTo!=null">VALID_TO=#{et.validTo},</if>
|
||||
<if test="et.jobTitle!=null">JOB_TITLE=#{et.jobTitle},</if>
|
||||
<if test="et.email!=null">EMAIL=#{et.email},</if>
|
||||
</trim> WHERE HANDLE=#{et.handle} <if test="et instanceof java.util.Map"><if test="et.MP_OPTLOCK_VERSION_ORIGINAL!=null">and ${et.MP_OPTLOCK_VERSION_COLUMN}=#{et.MP_OPTLOCK_VERSION_ORIGINAL}</if></if>
|
||||
</update>
|
||||
|
||||
|
||||
<update id="updateAllColumnById">
|
||||
UPDATE Z_NWA_USER <trim prefix="SET" suffixOverrides=",">
|
||||
USER_NAME=#{et.userName},
|
||||
FIRST_NAME=#{et.firstName},
|
||||
LAST_NAME=#{et.lastName},
|
||||
FULL_NAME=#{et.fullName},
|
||||
PASSWORD=#{et.password},
|
||||
SALT=#{et.salt},
|
||||
PHONE=#{et.phone},
|
||||
AVATAR=#{et.avatar},
|
||||
DEPT_ID=#{et.deptId},
|
||||
CREATE_TIME=#{et.createTime},
|
||||
UPDATE_TIME=#{et.updateTime},
|
||||
LOCK_FLAG=#{et.lockFlag},
|
||||
DEL_FLAG=#{et.delFlag},
|
||||
SITE=#{et.site},
|
||||
DEPT_DESC=#{et.deptDesc},
|
||||
VALID_FROM=#{et.validFrom},
|
||||
VALID_TO=#{et.validTo},
|
||||
JOB_TITLE=#{et.jobTitle},
|
||||
EMAIL=#{et.email},
|
||||
</trim> WHERE HANDLE=#{et.handle} <if test="et instanceof java.util.Map"><if test="et.MP_OPTLOCK_VERSION_ORIGINAL!=null">and ${et.MP_OPTLOCK_VERSION_COLUMN}=#{et.MP_OPTLOCK_VERSION_ORIGINAL}</if></if>
|
||||
</update>
|
||||
|
||||
|
||||
<update id="update">
|
||||
UPDATE Z_NWA_USER <trim prefix="SET" suffixOverrides=",">
|
||||
<if test="et.userName!=null">USER_NAME=#{et.userName},</if>
|
||||
<if test="et.firstName!=null">FIRST_NAME=#{et.firstName},</if>
|
||||
<if test="et.lastName!=null">LAST_NAME=#{et.lastName},</if>
|
||||
<if test="et.fullName!=null">FULL_NAME=#{et.fullName},</if>
|
||||
<if test="et.password!=null">PASSWORD=#{et.password},</if>
|
||||
<if test="et.salt!=null">SALT=#{et.salt},</if>
|
||||
<if test="et.phone!=null">PHONE=#{et.phone},</if>
|
||||
<if test="et.avatar!=null">AVATAR=#{et.avatar},</if>
|
||||
<if test="et.deptId!=null">DEPT_ID=#{et.deptId},</if>
|
||||
<if test="et.createTime!=null">CREATE_TIME=#{et.createTime},</if>
|
||||
<if test="et.updateTime!=null">UPDATE_TIME=#{et.updateTime},</if>
|
||||
<if test="et.lockFlag!=null">LOCK_FLAG=#{et.lockFlag},</if>
|
||||
<if test="et.delFlag!=null">DEL_FLAG=#{et.delFlag},</if>
|
||||
<if test="et.site!=null">SITE=#{et.site},</if>
|
||||
<if test="et.deptDesc!=null">DEPT_DESC=#{et.deptDesc},</if>
|
||||
<if test="et.validFrom!=null">VALID_FROM=#{et.validFrom},</if>
|
||||
<if test="et.validTo!=null">VALID_TO=#{et.validTo},</if>
|
||||
<if test="et.jobTitle!=null">JOB_TITLE=#{et.jobTitle},</if>
|
||||
<if test="et.email!=null">EMAIL=#{et.email},</if>
|
||||
</trim>
|
||||
<where>
|
||||
<if test="ew!=null">
|
||||
<if test="ew.entity!=null">
|
||||
HANDLE=#{ew.entity.handle}
|
||||
<if test="ew.entity.userName!=null"> AND USER_NAME=#{ew.entity.userName}</if>
|
||||
<if test="ew.entity.firstName!=null"> AND FIRST_NAME=#{ew.entity.firstName}</if>
|
||||
<if test="ew.entity.lastName!=null"> AND LAST_NAME=#{ew.entity.lastName}</if>
|
||||
<if test="ew.entity.fullName!=null"> AND FULL_NAME=#{ew.entity.fullName}</if>
|
||||
<if test="ew.entity.password!=null"> AND PASSWORD=#{ew.entity.password}</if>
|
||||
<if test="ew.entity.salt!=null"> AND SALT=#{ew.entity.salt}</if>
|
||||
<if test="ew.entity.phone!=null"> AND PHONE=#{ew.entity.phone}</if>
|
||||
<if test="ew.entity.avatar!=null"> AND AVATAR=#{ew.entity.avatar}</if>
|
||||
<if test="ew.entity.deptId!=null"> AND DEPT_ID=#{ew.entity.deptId}</if>
|
||||
<if test="ew.entity.createTime!=null"> AND CREATE_TIME=#{ew.entity.createTime}</if>
|
||||
<if test="ew.entity.updateTime!=null"> AND UPDATE_TIME=#{ew.entity.updateTime}</if>
|
||||
<if test="ew.entity.lockFlag!=null"> AND LOCK_FLAG=#{ew.entity.lockFlag}</if>
|
||||
<if test="ew.entity.delFlag!=null"> AND DEL_FLAG=#{ew.entity.delFlag}</if>
|
||||
<if test="ew.entity.site!=null"> AND SITE=#{ew.entity.site}</if>
|
||||
<if test="ew.entity.deptDesc!=null"> AND DEPT_DESC=#{ew.entity.deptDesc}</if>
|
||||
<if test="ew.entity.validFrom!=null"> AND VALID_FROM=#{ew.entity.validFrom}</if>
|
||||
<if test="ew.entity.validTo!=null"> AND VALID_TO=#{ew.entity.validTo}</if>
|
||||
<if test="ew.entity.jobTitle!=null"> AND JOB_TITLE=#{ew.entity.jobTitle}</if>
|
||||
<if test="ew.entity.email!=null"> AND EMAIL=#{ew.entity.email}</if>
|
||||
</if>
|
||||
<if test="ew!=null and ew.sqlSegment!=null and ew.nonEmptyOfWhere">
|
||||
${ew.sqlSegment}
|
||||
</if>
|
||||
</if>
|
||||
</where>
|
||||
<if test="ew!=null and ew.sqlSegment!=null and ew.emptyOfWhere">
|
||||
${ew.sqlSegment}
|
||||
</if>
|
||||
</update>
|
||||
|
||||
<delete id="deleteById">
|
||||
DELETE FROM Z_NWA_USER WHERE HANDLE=#{handle}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteByMap">
|
||||
DELETE FROM Z_NWA_USER
|
||||
<if test="cm!=null and !cm.isEmpty">
|
||||
<where>
|
||||
<foreach collection="cm.keys" item="k" separator="AND">
|
||||
<if test="cm[k] != null">
|
||||
${k} = #{cm[${k}]}
|
||||
</if>
|
||||
</foreach>
|
||||
</where>
|
||||
</if>
|
||||
</delete>
|
||||
|
||||
<delete id="delete">
|
||||
DELETE FROM Z_NWA_USER
|
||||
<where>
|
||||
<if test="ew!=null">
|
||||
<if test="ew.entity!=null">
|
||||
<if test="ew.entity.handle!=null">
|
||||
HANDLE=#{ew.entity.handle}
|
||||
</if>
|
||||
<if test="ew.entity.userName!=null"> AND USER_NAME=#{ew.entity.userName}</if>
|
||||
<if test="ew.entity.firstName!=null"> AND FIRST_NAME=#{ew.entity.firstName}</if>
|
||||
<if test="ew.entity.lastName!=null"> AND LAST_NAME=#{ew.entity.lastName}</if>
|
||||
<if test="ew.entity.fullName!=null"> AND FULL_NAME=#{ew.entity.fullName}</if>
|
||||
<if test="ew.entity.password!=null"> AND PASSWORD=#{ew.entity.password}</if>
|
||||
<if test="ew.entity.salt!=null"> AND SALT=#{ew.entity.salt}</if>
|
||||
<if test="ew.entity.phone!=null"> AND PHONE=#{ew.entity.phone}</if>
|
||||
<if test="ew.entity.avatar!=null"> AND AVATAR=#{ew.entity.avatar}</if>
|
||||
<if test="ew.entity.deptId!=null"> AND DEPT_ID=#{ew.entity.deptId}</if>
|
||||
<if test="ew.entity.createTime!=null"> AND CREATE_TIME=#{ew.entity.createTime}</if>
|
||||
<if test="ew.entity.updateTime!=null"> AND UPDATE_TIME=#{ew.entity.updateTime}</if>
|
||||
<if test="ew.entity.lockFlag!=null"> AND LOCK_FLAG=#{ew.entity.lockFlag}</if>
|
||||
<if test="ew.entity.delFlag!=null"> AND DEL_FLAG=#{ew.entity.delFlag}</if>
|
||||
<if test="ew.entity.site!=null"> AND SITE=#{ew.entity.site}</if>
|
||||
<if test="ew.entity.deptDesc!=null"> AND DEPT_DESC=#{ew.entity.deptDesc}</if>
|
||||
<if test="ew.entity.validFrom!=null"> AND VALID_FROM=#{ew.entity.validFrom}</if>
|
||||
<if test="ew.entity.validTo!=null"> AND VALID_TO=#{ew.entity.validTo}</if>
|
||||
<if test="ew.entity.jobTitle!=null"> AND JOB_TITLE=#{ew.entity.jobTitle}</if>
|
||||
<if test="ew.entity.email!=null"> AND EMAIL=#{ew.entity.email}</if>
|
||||
</if>
|
||||
<if test="ew!=null and ew.sqlSegment!=null and ew.nonEmptyOfWhere">
|
||||
${ew.sqlSegment}
|
||||
</if>
|
||||
</if>
|
||||
</where>
|
||||
<if test="ew!=null and ew.sqlSegment!=null and ew.emptyOfWhere">
|
||||
${ew.sqlSegment}
|
||||
</if>
|
||||
</delete>
|
||||
|
||||
<delete id="deleteBatchIds">
|
||||
DELETE FROM Z_NWA_USER WHERE HANDLE IN (
|
||||
<foreach item="item" index="index" collection="coll" separator=",">#{item}
|
||||
</foreach>)
|
||||
</delete>
|
||||
<!-- BaseMapper标准查询/修改/删除 -->
|
||||
|
||||
</mapper>
|
Loading…
Reference in New Issue