提交 58029906 编写于 作者: ibizdev's avatar ibizdev

ibizdev提交

上级 9d812313
*target
.settings
*node_modules
*bin
*.project
*.classpath
......
......@@ -40,14 +40,14 @@
mvn install
cd ..
mvn install
cd ps-app/ps-app-web
mvn clean package -Pprod
cd ps-boot
mvn clean package
echo 'echo "$para1"' > apppasswd.sh
chmod -R 777 *
setsid env SSH_ASKPASS='./apppasswd.sh' DISPLAY='none:0' ssh root@172.16.102.61 "mkdir -p /ibiz/nodes/node1/7B163728-8A01-45A9-862D-13C620F053F6"
setsid env SSH_ASKPASS='./apppasswd.sh' DISPLAY='none:0' scp -r ./target/ps-app-web.jar root@172.16.102.61:/ibiz/nodes/node1/7B163728-8A01-45A9-862D-13C620F053F6
setsid env SSH_ASKPASS='./apppasswd.sh' DISPLAY='none:0' ssh root@172.16.102.61 "ps -ef | grep '/ibiz/nodes/node1/7B163728-8A01-45A9-862D-13C620F053F6'| tr -s ' '|cut -d' ' -f2,8,9 | grep -v grep | grep 'jar' | cut -d' ' -f1|xargs --no-run-if-empty kill -9"
setsid env SSH_ASKPASS='./apppasswd.sh' DISPLAY='none:0' ssh root@172.16.102.61 "source /etc/profile;source ~/.bash_profile; nohup java -jar -Xms512m -Xmx1024m -XX:PermSize=128M -XX:MaxPermSize=128m /ibiz/nodes/node1/7B163728-8A01-45A9-862D-13C620F053F6/ps-app-web.jar >>/ibiz/nodes/node1/7B163728-8A01-45A9-862D-13C620F053F6/ps_appps 应用-`date --date='0 days ago' +%Y-%m-%d`.log 2>&1 &"
setsid env SSH_ASKPASS='./apppasswd.sh' DISPLAY='none:0' ssh root@172.16.102.61 "mkdir -p /ibiz/nodes/node1/F2F47711-2592-4F2B-9C54-F0722AEA90D5"
setsid env SSH_ASKPASS='./apppasswd.sh' DISPLAY='none:0' scp -r ./target/ps.jar root@172.16.102.61:/ibiz/nodes/node1/F2F47711-2592-4F2B-9C54-F0722AEA90D5
setsid env SSH_ASKPASS='./apppasswd.sh' DISPLAY='none:0' ssh root@172.16.102.61 "ps -ef | grep '/ibiz/nodes/node1/F2F47711-2592-4F2B-9C54-F0722AEA90D5'| tr -s ' '|cut -d' ' -f2,8,9 | grep -v grep | grep 'jar' | cut -d' ' -f1|xargs --no-run-if-empty kill -9"
setsid env SSH_ASKPASS='./apppasswd.sh' DISPLAY='none:0' ssh root@172.16.102.61 "source /etc/profile;source ~/.bash_profile; nohup java -jar -Xms512m -Xmx1024m -XX:PermSize=128M -XX:MaxPermSize=128m /ibiz/nodes/node1/F2F47711-2592-4F2B-9C54-F0722AEA90D5/ps.jar >>/ibiz/nodes/node1/F2F47711-2592-4F2B-9C54-F0722AEA90D5/ps_apips 服务-`date --date='0 days ago' +%Y-%m-%d`.log 2>&1 &"
</command>
</hudson.tasks.Shell>
</builders>
......
......@@ -19,8 +19,6 @@
<modules>
<!-- dependencies -->
<module>ps-dependencies</module>
<!-- ext libs -->
<module>ps-ext-libs</module>
<!-- utils -->
<module>ps-util</module>
<!-- comenpents -->
......
......@@ -19,11 +19,7 @@
</modules>
<dependencies>
<dependency>
<groupId>com.ibiz</groupId>
<artifactId>ps-ext-libs</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
</project>
......@@ -23,7 +23,7 @@
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-commons</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-security</artifactId>
......@@ -40,18 +40,12 @@
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-cas</artifactId>
</dependency>
<dependency>
<groupId>com.ibiz</groupId>
<artifactId>ps-util</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.ibiz</groupId>
<artifactId>ps-ext-libs</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
</project>
......@@ -2,10 +2,6 @@ package com.ibiz.web;
import java.util.List;
import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration;
import org.springframework.boot.builder.SpringApplicationBuilder;
......@@ -23,12 +19,13 @@ import org.springframework.http.converter.json.MappingJackson2HttpMessageConvert
import org.springframework.web.method.support.HandlerMethodArgumentResolver;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.ibiz.util.web.SearchContextHandlerMethodArgumentResolver;
import com.ibiz.util.serialize.DomainSerializerProvider;
import lombok.Data;
@Slf4j
@SpringBootApplication(exclude = {
})
@Import({
FeignClientsConfiguration.class
......
......@@ -4,9 +4,6 @@ import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import lombok.extern.slf4j.Slf4j;
import com.alibaba.fastjson.JSONObject;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.security.core.Authentication;
......@@ -15,6 +12,8 @@ import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import com.alibaba.fastjson.JSONObject;
import com.ibiz.util.helper.SpringContextHolder;
import com.ibiz.util.security.userdetail.LoginUser;
import com.ibiz.util.web.SessionConstants;
......@@ -49,4 +48,4 @@ public class WebAppController {
return ResponseEntity.status(HttpStatus.OK).body(appData);
}
}
}
\ No newline at end of file
......@@ -3,15 +3,13 @@ package com.ibiz.web.module.controller;
import java.util.ArrayList;
import java.util.List;
import lombok.extern.slf4j.Slf4j;
import javax.servlet.http.HttpServletRequest;
import com.alibaba.fastjson.JSONObject;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
import com.alibaba.fastjson.JSONObject;
import io.seata.spring.annotation.GlobalTransactional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl;
......@@ -20,11 +18,7 @@ import org.springframework.data.domain.PageRequest;
import com.ibiz.web.module.service.PSService;
import com.ibiz.web.module.domain.PS;
import com.ibiz.web.module.filter.*;
import com.ibiz.util.log.IBIZLog;
@Slf4j
@IBIZLog
@RestController
@RequestMapping(value = "")
public class PSController {
......@@ -32,8 +26,6 @@ public class PSController {
PSService psservice;
//@GlobalTransactional
//@GlobalTransactional
@RequestMapping(method = RequestMethod.DELETE, value = "/ps/{ps_id}")
@PreAuthorize("@ps_pms.check(#ps_id,'DELETE')")
public ResponseEntity<Boolean> remove(@PathVariable("ps_id") String ps_id) {
......@@ -41,7 +33,6 @@ public class PSController {
return ResponseEntity.status(HttpStatus.OK).body(b);
}
//@GlobalTransactional
@RequestMapping(method = RequestMethod.POST, value = "/ps")
@PreAuthorize("@ps_pms.check('CREATE')")
public ResponseEntity<PS> create(@RequestBody PS ps) {
......@@ -49,7 +40,6 @@ public class PSController {
return ResponseEntity.status(HttpStatus.OK).body(ps2);
}
//@GlobalTransactional
@RequestMapping(method = RequestMethod.GET, value = "/ps/{ps_id}")
@PreAuthorize("@ps_pms.check(#ps_id,'READ')")
public ResponseEntity<PS> get(@PathVariable("ps_id") String ps_id) {
......@@ -57,7 +47,6 @@ public class PSController {
return ResponseEntity.status(HttpStatus.OK).body(ps);
}
//@GlobalTransactional
@RequestMapping(method = RequestMethod.POST, value = "/ps/{ps_id}/xd")
@PreAuthorize("@ps_pms.check(#ps_id,'')")
public ResponseEntity<PS> xD(@PathVariable("ps_id") String ps_id, @RequestBody PS ps) {
......@@ -65,7 +54,6 @@ public class PSController {
return ResponseEntity.status(HttpStatus.OK).body(ps2);
}
//@GlobalTransactional
@RequestMapping(method = RequestMethod.GET, value = "/ps/getdraft")
@PreAuthorize("@ps_pms.check('CREATE')")
public ResponseEntity<PS> getDraft() {
......@@ -73,7 +61,6 @@ public class PSController {
return ResponseEntity.status(HttpStatus.OK).body(new PS());
}
//@GlobalTransactional
@RequestMapping(method = RequestMethod.POST, value = "/ps/{ps_id}/save")
@PreAuthorize("@ps_pms.check(#ps_id,'')")
public ResponseEntity<PS> save(@PathVariable("ps_id") String ps_id, @RequestBody PS ps) {
......@@ -81,7 +68,6 @@ public class PSController {
return ResponseEntity.status(HttpStatus.OK).body(ps2);
}
//@GlobalTransactional
@RequestMapping(method = RequestMethod.PUT, value = "/ps/{ps_id}")
@PreAuthorize("@ps_pms.check(#ps_id,'UPDATE')")
public ResponseEntity<PS> update(@PathVariable("ps_id") String ps_id, @RequestBody PS ps) {
......@@ -96,7 +82,6 @@ public class PSController {
return ResponseEntity.status(HttpStatus.OK).body(ps2);
}
//@GlobalTransactional
@RequestMapping(method = RequestMethod.POST, value = "/ps/{ps_id}/createandstartim")
@PreAuthorize("@ps_pms.check(#ps_id,'CREATE')")
public ResponseEntity<PS> createAndStartIM(@PathVariable("ps_id") String ps_id, @RequestBody PS ps) {
......@@ -104,7 +89,6 @@ public class PSController {
return ResponseEntity.status(HttpStatus.OK).body(ps2);
}
//@GlobalTransactional
@RequestMapping(method = RequestMethod.POST, value = "/ps/checkkey")
@PreAuthorize("@ps_pms.check('')")
public ResponseEntity<Boolean> checkKey(@RequestBody PS ps) {
......@@ -112,7 +96,6 @@ public class PSController {
return ResponseEntity.status(HttpStatus.OK).body(b);
}
//@GlobalTransactional
@RequestMapping(method= RequestMethod.GET , value="/ps/fetchdefault")
@PreAuthorize("@ps_pms.check('READ')")
public ResponseEntity<List<PS>> fetchDefault(PSSearchContext searchContext,Pageable pageable) {
......@@ -125,12 +108,5 @@ public class PSController {
.body(page.getContent());
}
//@GlobalTransactional
//@GlobalTransactional
//@GlobalTransactional
//@GlobalTransactional
//@GlobalTransactional
//@GlobalTransactional
//@GlobalTransactional
}
......@@ -7,10 +7,8 @@ import java.util.List;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ibiz.util.SearchContext;
import com.ibiz.util.log.IBIZLog;
@Data
@IBIZLog
public class PSSearchContext extends SearchContext implements Serializable {
public String n_psname_like;//[采购单名称]
......
package com.ibiz.web.module.service;
import java.util.ArrayList;
import java.util.List;
import lombok.extern.slf4j.Slf4j;
import com.alibaba.fastjson.JSONObject;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.openfeign.ribbon.LoadBalancerFeignClient;
import org.springframework.stereotype.Service;
import feign.Client;
import feign.Contract;
......@@ -12,14 +13,13 @@ import feign.Feign;
import feign.codec.Decoder;
import feign.codec.Encoder;
import com.alibaba.fastjson.JSONObject;
import org.springframework.util.DigestUtils;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.security.core.Authentication;
import org.springframework.security.core.context.SecurityContextHolder;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.openfeign.ribbon.LoadBalancerFeignClient;
import org.springframework.stereotype.Service;
import com.ibiz.util.feign.suport.SearchContextFeignEncode;
import com.ibiz.web.module.domain.PS;
......@@ -27,10 +27,7 @@ import com.ibiz.web.module.filter.*;
import com.ibiz.web.module.feign.PSFeignClient;
import com.ibiz.web.WebApplication.WebClientProperties;
import com.ibiz.util.feign.FeignRequestInterceptor;
import com.ibiz.util.log.IBIZLog;
@Slf4j
@IBIZLog
@Service
public class PSService {
......
......@@ -3,15 +3,13 @@ package com.ibiz.web.r7rt_org.controller;
import java.util.ArrayList;
import java.util.List;
import lombok.extern.slf4j.Slf4j;
import javax.servlet.http.HttpServletRequest;
import com.alibaba.fastjson.JSONObject;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
import com.alibaba.fastjson.JSONObject;
import io.seata.spring.annotation.GlobalTransactional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl;
......@@ -20,11 +18,7 @@ import org.springframework.data.domain.PageRequest;
import com.ibiz.web.r7rt_org.service.OrgService;
import com.ibiz.web.r7rt_org.domain.Org;
import com.ibiz.web.r7rt_org.filter.*;
import com.ibiz.util.log.IBIZLog;
@Slf4j
@IBIZLog
@RestController
@RequestMapping(value = "")
public class OrgController {
......@@ -32,7 +26,6 @@ public class OrgController {
OrgService orgservice;
//@GlobalTransactional
@RequestMapping(method = RequestMethod.GET, value = "/orgs/getdraft")
@PreAuthorize("@org_pms.check('CREATE')")
public ResponseEntity<Org> getDraft() {
......@@ -40,7 +33,6 @@ public class OrgController {
return ResponseEntity.status(HttpStatus.OK).body(new Org());
}
//@GlobalTransactional
@RequestMapping(method = RequestMethod.GET, value = "/orgs/{org_id}/getorgprent")
@PreAuthorize("@org_pms.check(#org_id,'READ')")
public ResponseEntity<Org> getOrgPrent(@PathVariable("org_id") String org_id, @RequestBody Org org) {
......@@ -48,7 +40,6 @@ public class OrgController {
return ResponseEntity.status(HttpStatus.OK).body(org2);
}
//@GlobalTransactional
@RequestMapping(method = RequestMethod.DELETE, value = "/orgs/{org_id}")
@PreAuthorize("@org_pms.check(#org_id,'DELETE')")
public ResponseEntity<Boolean> remove(@PathVariable("org_id") String org_id) {
......@@ -56,7 +47,6 @@ public class OrgController {
return ResponseEntity.status(HttpStatus.OK).body(b);
}
//@GlobalTransactional
@RequestMapping(method = RequestMethod.PUT, value = "/orgs/{org_id}")
@PreAuthorize("@org_pms.check(#org_id,'UPDATE')")
public ResponseEntity<Org> update(@PathVariable("org_id") String org_id, @RequestBody Org org) {
......@@ -71,7 +61,6 @@ public class OrgController {
return ResponseEntity.status(HttpStatus.OK).body(org2);
}
//@GlobalTransactional
@RequestMapping(method = RequestMethod.GET, value = "/orgs/{org_id}")
@PreAuthorize("@org_pms.check(#org_id,'READ')")
public ResponseEntity<Org> get(@PathVariable("org_id") String org_id) {
......@@ -79,7 +68,6 @@ public class OrgController {
return ResponseEntity.status(HttpStatus.OK).body(org);
}
//@GlobalTransactional
@RequestMapping(method = RequestMethod.POST, value = "/orgs")
@PreAuthorize("@org_pms.check('CREATE')")
public ResponseEntity<Org> create(@RequestBody Org org) {
......@@ -87,7 +75,6 @@ public class OrgController {
return ResponseEntity.status(HttpStatus.OK).body(org2);
}
//@GlobalTransactional
@RequestMapping(method = RequestMethod.POST, value = "/orgs/{org_id}/save")
@PreAuthorize("@org_pms.check(#org_id,'')")
public ResponseEntity<Org> save(@PathVariable("org_id") String org_id, @RequestBody Org org) {
......@@ -95,7 +82,6 @@ public class OrgController {
return ResponseEntity.status(HttpStatus.OK).body(org2);
}
//@GlobalTransactional
@RequestMapping(method = RequestMethod.POST, value = "/orgs/{org_id}/synctousergroup")
@PreAuthorize("@org_pms.check(#org_id,'')")
public ResponseEntity<Org> syncToUserGroup(@PathVariable("org_id") String org_id, @RequestBody Org org) {
......@@ -103,7 +89,6 @@ public class OrgController {
return ResponseEntity.status(HttpStatus.OK).body(org2);
}
//@GlobalTransactional
@RequestMapping(method = RequestMethod.POST, value = "/orgs/checkkey")
@PreAuthorize("@org_pms.check('')")
public ResponseEntity<Boolean> checkKey(@RequestBody Org org) {
......@@ -111,7 +96,6 @@ public class OrgController {
return ResponseEntity.status(HttpStatus.OK).body(b);
}
//@GlobalTransactional
@RequestMapping(method = RequestMethod.GET, value = "/orgs/{org_id}/getorgchild")
@PreAuthorize("@org_pms.check(#org_id,'READ')")
public ResponseEntity<Org> getOrgChild(@PathVariable("org_id") String org_id, @RequestBody Org org) {
......@@ -119,7 +103,6 @@ public class OrgController {
return ResponseEntity.status(HttpStatus.OK).body(org2);
}
//@GlobalTransactional
@RequestMapping(method= RequestMethod.GET , value="/orgs/fetchdefault")
@PreAuthorize("@org_pms.check('READ')")
public ResponseEntity<List<Org>> fetchDefault(OrgSearchContext searchContext,Pageable pageable) {
......@@ -132,12 +115,5 @@ public class OrgController {
.body(page.getContent());
}
//@GlobalTransactional
//@GlobalTransactional
//@GlobalTransactional
//@GlobalTransactional
//@GlobalTransactional
//@GlobalTransactional
//@GlobalTransactional
}
......@@ -3,15 +3,13 @@ package com.ibiz.web.r7rt_org.controller;
import java.util.ArrayList;
import java.util.List;
import lombok.extern.slf4j.Slf4j;
import javax.servlet.http.HttpServletRequest;
import com.alibaba.fastjson.JSONObject;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
import com.alibaba.fastjson.JSONObject;
import io.seata.spring.annotation.GlobalTransactional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl;
......@@ -20,11 +18,7 @@ import org.springframework.data.domain.PageRequest;
import com.ibiz.web.r7rt_org.service.OrgDeptService;
import com.ibiz.web.r7rt_org.domain.OrgDept;
import com.ibiz.web.r7rt_org.filter.*;
import com.ibiz.util.log.IBIZLog;
@Slf4j
@IBIZLog
@RestController
@RequestMapping(value = "")
public class OrgDeptController {
......@@ -32,7 +26,6 @@ public class OrgDeptController {
OrgDeptService orgdeptservice;
//@GlobalTransactional
@RequestMapping(method = RequestMethod.POST, value = "/orgdepts/{orgdept_id}/save")
@PreAuthorize("@orgdept_pms.check(#orgdept_id,'')")
public ResponseEntity<OrgDept> save(@PathVariable("orgdept_id") String orgdept_id, @RequestBody OrgDept orgdept) {
......@@ -40,7 +33,6 @@ public class OrgDeptController {
return ResponseEntity.status(HttpStatus.OK).body(orgdept2);
}
//@GlobalTransactional
@RequestMapping(method = RequestMethod.POST, value = "/orgdepts/{orgdept_id}/synctousergroup")
@PreAuthorize("@orgdept_pms.check(#orgdept_id,'')")
public ResponseEntity<OrgDept> syncToUserGroup(@PathVariable("orgdept_id") String orgdept_id, @RequestBody OrgDept orgdept) {
......@@ -48,7 +40,6 @@ public class OrgDeptController {
return ResponseEntity.status(HttpStatus.OK).body(orgdept2);
}
//@GlobalTransactional
@RequestMapping(method = RequestMethod.GET, value = "/orgdepts/{orgdept_id}/getorgdeptchild")
@PreAuthorize("@orgdept_pms.check(#orgdept_id,'READ')")
public ResponseEntity<OrgDept> getOrgDeptChild(@PathVariable("orgdept_id") String orgdept_id, @RequestBody OrgDept orgdept) {
......@@ -56,7 +47,6 @@ public class OrgDeptController {
return ResponseEntity.status(HttpStatus.OK).body(orgdept2);
}
//@GlobalTransactional
@RequestMapping(method = RequestMethod.DELETE, value = "/orgdepts/{orgdept_id}")
@PreAuthorize("@orgdept_pms.check(#orgdept_id,'DELETE')")
public ResponseEntity<Boolean> remove(@PathVariable("orgdept_id") String orgdept_id) {
......@@ -64,7 +54,6 @@ public class OrgDeptController {
return ResponseEntity.status(HttpStatus.OK).body(b);
}
//@GlobalTransactional
@RequestMapping(method = RequestMethod.GET, value = "/orgdepts/{orgdept_id}")
@PreAuthorize("@orgdept_pms.check(#orgdept_id,'READ')")
public ResponseEntity<OrgDept> get(@PathVariable("orgdept_id") String orgdept_id) {
......@@ -72,7 +61,6 @@ public class OrgDeptController {
return ResponseEntity.status(HttpStatus.OK).body(orgdept);
}
//@GlobalTransactional
@RequestMapping(method = RequestMethod.PUT, value = "/orgdepts/{orgdept_id}")
@PreAuthorize("@orgdept_pms.check(#orgdept_id,'UPDATE')")
public ResponseEntity<OrgDept> update(@PathVariable("orgdept_id") String orgdept_id, @RequestBody OrgDept orgdept) {
......@@ -87,7 +75,6 @@ public class OrgDeptController {
return ResponseEntity.status(HttpStatus.OK).body(orgdept2);
}
//@GlobalTransactional
@RequestMapping(method = RequestMethod.GET, value = "/orgdepts/getdraft")
@PreAuthorize("@orgdept_pms.check('CREATE')")
public ResponseEntity<OrgDept> getDraft() {
......@@ -95,7 +82,6 @@ public class OrgDeptController {
return ResponseEntity.status(HttpStatus.OK).body(new OrgDept());
}
//@GlobalTransactional
@RequestMapping(method = RequestMethod.POST, value = "/orgdepts")
@PreAuthorize("@orgdept_pms.check('CREATE')")
public ResponseEntity<OrgDept> create(@RequestBody OrgDept orgdept) {
......@@ -103,7 +89,6 @@ public class OrgDeptController {
return ResponseEntity.status(HttpStatus.OK).body(orgdept2);
}
//@GlobalTransactional
@RequestMapping(method = RequestMethod.POST, value = "/orgdepts/checkkey")
@PreAuthorize("@orgdept_pms.check('')")
public ResponseEntity<Boolean> checkKey(@RequestBody OrgDept orgdept) {
......@@ -111,7 +96,6 @@ public class OrgDeptController {
return ResponseEntity.status(HttpStatus.OK).body(b);
}
//@GlobalTransactional
@RequestMapping(method = RequestMethod.GET, value = "/orgdepts/{orgdept_id}/getorgdeptprent")
@PreAuthorize("@orgdept_pms.check(#orgdept_id,'READ')")
public ResponseEntity<OrgDept> getOrgDeptPrent(@PathVariable("orgdept_id") String orgdept_id, @RequestBody OrgDept orgdept) {
......@@ -119,7 +103,6 @@ public class OrgDeptController {
return ResponseEntity.status(HttpStatus.OK).body(orgdept2);
}
//@GlobalTransactional
@RequestMapping(method= RequestMethod.GET , value="/orgdepts/fetchdefault")
@PreAuthorize("@orgdept_pms.check('READ')")
public ResponseEntity<List<OrgDept>> fetchDefault(OrgDeptSearchContext searchContext,Pageable pageable) {
......@@ -132,7 +115,6 @@ public class OrgDeptController {
.body(page.getContent());
}
//@GlobalTransactional
@RequestMapping(method= RequestMethod.GET , value="/orgdepts/fetchcur_org")
@PreAuthorize("@orgdept_pms.check('READ')")
public ResponseEntity<List<OrgDept>> fetchCUR_ORG(OrgDeptSearchContext searchContext,Pageable pageable) {
......@@ -145,12 +127,5 @@ public class OrgDeptController {
.body(page.getContent());
}
//@GlobalTransactional
//@GlobalTransactional
//@GlobalTransactional
//@GlobalTransactional
//@GlobalTransactional
//@GlobalTransactional
//@GlobalTransactional
}
......@@ -3,15 +3,13 @@ package com.ibiz.web.r7rt_org.controller;
import java.util.ArrayList;
import java.util.List;
import lombok.extern.slf4j.Slf4j;
import javax.servlet.http.HttpServletRequest;
import com.alibaba.fastjson.JSONObject;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
import com.alibaba.fastjson.JSONObject;
import io.seata.spring.annotation.GlobalTransactional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl;
......@@ -20,11 +18,7 @@ import org.springframework.data.domain.PageRequest;
import com.ibiz.web.r7rt_org.service.OrgDeptUserService;
import com.ibiz.web.r7rt_org.domain.OrgDeptUser;
import com.ibiz.web.r7rt_org.filter.*;
import com.ibiz.util.log.IBIZLog;
@Slf4j
@IBIZLog
@RestController
@RequestMapping(value = "")
public class OrgDeptUserController {
......@@ -32,7 +26,6 @@ public class OrgDeptUserController {
OrgDeptUserService orgdeptuserservice;
//@GlobalTransactional
@RequestMapping(method = RequestMethod.GET, value = "/orgdeptusers/getdraft")
@PreAuthorize("@orgdeptuser_pms.check('CREATE')")
public ResponseEntity<OrgDeptUser> getDraft() {
......@@ -40,7 +33,6 @@ public class OrgDeptUserController {
return ResponseEntity.status(HttpStatus.OK).body(new OrgDeptUser());
}
//@GlobalTransactional
@RequestMapping(method = RequestMethod.GET, value = "/orgdeptusers/{orgdeptuser_id}")
@PreAuthorize("@orgdeptuser_pms.check(#orgdeptuser_id,'READ')")
public ResponseEntity<OrgDeptUser> get(@PathVariable("orgdeptuser_id") String orgdeptuser_id) {
......@@ -48,7 +40,6 @@ public class OrgDeptUserController {
return ResponseEntity.status(HttpStatus.OK).body(orgdeptuser);
}
//@GlobalTransactional
@RequestMapping(method = RequestMethod.POST, value = "/orgdeptusers/{orgdeptuser_id}/save")
@PreAuthorize("@orgdeptuser_pms.check(#orgdeptuser_id,'')")
public ResponseEntity<OrgDeptUser> save(@PathVariable("orgdeptuser_id") String orgdeptuser_id, @RequestBody OrgDeptUser orgdeptuser) {
......@@ -56,7 +47,6 @@ public class OrgDeptUserController {
return ResponseEntity.status(HttpStatus.OK).body(orgdeptuser2);
}
//@GlobalTransactional
@RequestMapping(method = RequestMethod.POST, value = "/orgdeptusers")
@PreAuthorize("@orgdeptuser_pms.check('CREATE')")
public ResponseEntity<OrgDeptUser> create(@RequestBody OrgDeptUser orgdeptuser) {
......@@ -64,7 +54,6 @@ public class OrgDeptUserController {
return ResponseEntity.status(HttpStatus.OK).body(orgdeptuser2);
}
//@GlobalTransactional
@RequestMapping(method = RequestMethod.DELETE, value = "/orgdeptusers/{orgdeptuser_id}")
@PreAuthorize("@orgdeptuser_pms.check(#orgdeptuser_id,'DELETE')")
public ResponseEntity<Boolean> remove(@PathVariable("orgdeptuser_id") String orgdeptuser_id) {
......@@ -72,7 +61,6 @@ public class OrgDeptUserController {
return ResponseEntity.status(HttpStatus.OK).body(b);
}
//@GlobalTransactional
@RequestMapping(method = RequestMethod.PUT, value = "/orgdeptusers/{orgdeptuser_id}")
@PreAuthorize("@orgdeptuser_pms.check(#orgdeptuser_id,'UPDATE')")
public ResponseEntity<OrgDeptUser> update(@PathVariable("orgdeptuser_id") String orgdeptuser_id, @RequestBody OrgDeptUser orgdeptuser) {
......@@ -87,7 +75,6 @@ public class OrgDeptUserController {
return ResponseEntity.status(HttpStatus.OK).body(orgdeptuser2);
}
//@GlobalTransactional
@RequestMapping(method = RequestMethod.POST, value = "/orgdeptusers/checkkey")
@PreAuthorize("@orgdeptuser_pms.check('')")
public ResponseEntity<Boolean> checkKey(@RequestBody OrgDeptUser orgdeptuser) {
......@@ -95,7 +82,6 @@ public class OrgDeptUserController {
return ResponseEntity.status(HttpStatus.OK).body(b);
}
//@GlobalTransactional
@RequestMapping(method= RequestMethod.GET , value="/orgdeptusers/fetchgetorgdeptuser")
@PreAuthorize("@orgdeptuser_pms.check('READ')")
public ResponseEntity<List<OrgDeptUser>> fetchGetorgdeptuser(OrgDeptUserSearchContext searchContext,Pageable pageable) {
......@@ -108,7 +94,6 @@ public class OrgDeptUserController {
.body(page.getContent());
}
//@GlobalTransactional
@RequestMapping(method= RequestMethod.GET , value="/orgdeptusers/fetchdefault")
@PreAuthorize("@orgdeptuser_pms.check('READ')")
public ResponseEntity<List<OrgDeptUser>> fetchDefault(OrgDeptUserSearchContext searchContext,Pageable pageable) {
......@@ -121,12 +106,5 @@ public class OrgDeptUserController {
.body(page.getContent());
}
//@GlobalTransactional
//@GlobalTransactional
//@GlobalTransactional
//@GlobalTransactional
//@GlobalTransactional
//@GlobalTransactional
//@GlobalTransactional
}
......@@ -3,15 +3,13 @@ package com.ibiz.web.r7rt_org.controller;
import java.util.ArrayList;
import java.util.List;
import lombok.extern.slf4j.Slf4j;
import javax.servlet.http.HttpServletRequest;
import com.alibaba.fastjson.JSONObject;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
import com.alibaba.fastjson.JSONObject;
import io.seata.spring.annotation.GlobalTransactional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl;
......@@ -20,11 +18,7 @@ import org.springframework.data.domain.PageRequest;
import com.ibiz.web.r7rt_org.service.OrgUserService;
import com.ibiz.web.r7rt_org.domain.OrgUser;
import com.ibiz.web.r7rt_org.filter.*;
import com.ibiz.util.log.IBIZLog;
@Slf4j
@IBIZLog
@RestController
@RequestMapping(value = "")
public class OrgUserController {
......@@ -32,7 +26,6 @@ public class OrgUserController {
OrgUserService orguserservice;
//@GlobalTransactional
@RequestMapping(method = RequestMethod.DELETE, value = "/orgusers/{orguser_id}")
@PreAuthorize("@orguser_pms.check(#orguser_id,'DELETE')")
public ResponseEntity<Boolean> remove(@PathVariable("orguser_id") String orguser_id) {
......@@ -40,7 +33,6 @@ public class OrgUserController {
return ResponseEntity.status(HttpStatus.OK).body(b);
}
//@GlobalTransactional
@RequestMapping(method = RequestMethod.POST, value = "/orgusers/{orguser_id}/save")
@PreAuthorize("@orguser_pms.check(#orguser_id,'')")
public ResponseEntity<OrgUser> save(@PathVariable("orguser_id") String orguser_id, @RequestBody OrgUser orguser) {
......@@ -48,7 +40,6 @@ public class OrgUserController {
return ResponseEntity.status(HttpStatus.OK).body(orguser2);
}
//@GlobalTransactional
@RequestMapping(method = RequestMethod.PUT, value = "/orgusers/{orguser_id}")
@PreAuthorize("@orguser_pms.check(#orguser_id,'UPDATE')")
public ResponseEntity<OrgUser> update(@PathVariable("orguser_id") String orguser_id, @RequestBody OrgUser orguser) {
......@@ -63,7 +54,6 @@ public class OrgUserController {
return ResponseEntity.status(HttpStatus.OK).body(orguser2);
}
//@GlobalTransactional
@RequestMapping(method = RequestMethod.POST, value = "/orgusers/checkkey")
@PreAuthorize("@orguser_pms.check('')")
public ResponseEntity<Boolean> checkKey(@RequestBody OrgUser orguser) {
......@@ -71,7 +61,6 @@ public class OrgUserController {
return ResponseEntity.status(HttpStatus.OK).body(b);
}
//@GlobalTransactional
@RequestMapping(method = RequestMethod.GET, value = "/orgusers/getdraft")
@PreAuthorize("@orguser_pms.check('CREATE')")
public ResponseEntity<OrgUser> getDraft() {
......@@ -79,7 +68,6 @@ public class OrgUserController {
return ResponseEntity.status(HttpStatus.OK).body(new OrgUser());
}
//@GlobalTransactional
@RequestMapping(method = RequestMethod.POST, value = "/orgusers")
@PreAuthorize("@orguser_pms.check('CREATE')")
public ResponseEntity<OrgUser> create(@RequestBody OrgUser orguser) {
......@@ -87,7 +75,6 @@ public class OrgUserController {
return ResponseEntity.status(HttpStatus.OK).body(orguser2);
}
//@GlobalTransactional
@RequestMapping(method = RequestMethod.GET, value = "/orgusers/{orguser_id}")
@PreAuthorize("@orguser_pms.check(#orguser_id,'READ')")
public ResponseEntity<OrgUser> get(@PathVariable("orguser_id") String orguser_id) {
......@@ -95,7 +82,6 @@ public class OrgUserController {
return ResponseEntity.status(HttpStatus.OK).body(orguser);
}
//@GlobalTransactional
@RequestMapping(method= RequestMethod.GET , value="/orgusers/fetchdefault")
@PreAuthorize("@orguser_pms.check('READ')")
public ResponseEntity<List<OrgUser>> fetchDefault(OrgUserSearchContext searchContext,Pageable pageable) {
......@@ -108,12 +94,5 @@ public class OrgUserController {
.body(page.getContent());
}
//@GlobalTransactional
//@GlobalTransactional
//@GlobalTransactional
//@GlobalTransactional
//@GlobalTransactional
//@GlobalTransactional
//@GlobalTransactional
}
......@@ -7,10 +7,8 @@ import java.util.List;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ibiz.util.SearchContext;
import com.ibiz.util.log.IBIZLog;
@Data
@IBIZLog
public class OrgDeptSearchContext extends SearchContext implements Serializable {
public String n_orgdeptname_like;//[部门名称]
......
......@@ -7,10 +7,8 @@ import java.util.List;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ibiz.util.SearchContext;
import com.ibiz.util.log.IBIZLog;
@Data
@IBIZLog
public class OrgDeptUserSearchContext extends SearchContext implements Serializable {
public String n_orgdeptusername_like;//[部门用户名称]
......
......@@ -7,10 +7,8 @@ import java.util.List;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ibiz.util.SearchContext;
import com.ibiz.util.log.IBIZLog;
@Data
@IBIZLog
public class OrgSearchContext extends SearchContext implements Serializable {
public String n_orgname_like;//[组织名称]
......
......@@ -7,10 +7,8 @@ import java.util.List;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ibiz.util.SearchContext;
import com.ibiz.util.log.IBIZLog;
@Data
@IBIZLog
public class OrgUserSearchContext extends SearchContext implements Serializable {
public String n_orgusername_like;//[组织用户名称]
......
package com.ibiz.web.r7rt_org.service;
import java.util.ArrayList;
import java.util.List;
import lombok.extern.slf4j.Slf4j;
import com.alibaba.fastjson.JSONObject;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.openfeign.ribbon.LoadBalancerFeignClient;
import org.springframework.stereotype.Service;
import feign.Client;
import feign.Contract;
......@@ -12,14 +13,13 @@ import feign.Feign;
import feign.codec.Decoder;
import feign.codec.Encoder;
import com.alibaba.fastjson.JSONObject;
import org.springframework.util.DigestUtils;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.security.core.Authentication;
import org.springframework.security.core.context.SecurityContextHolder;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.openfeign.ribbon.LoadBalancerFeignClient;
import org.springframework.stereotype.Service;
import com.ibiz.util.feign.suport.SearchContextFeignEncode;
import com.ibiz.web.r7rt_org.domain.OrgDept;
......@@ -27,10 +27,7 @@ import com.ibiz.web.r7rt_org.filter.*;
import com.ibiz.web.r7rt_org.feign.OrgDeptFeignClient;
import com.ibiz.web.WebApplication.WebClientProperties;
import com.ibiz.util.feign.FeignRequestInterceptor;
import com.ibiz.util.log.IBIZLog;
@Slf4j
@IBIZLog
@Service
public class OrgDeptService {
......
package com.ibiz.web.r7rt_org.service;
import java.util.ArrayList;
import java.util.List;
import lombok.extern.slf4j.Slf4j;
import com.alibaba.fastjson.JSONObject;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.openfeign.ribbon.LoadBalancerFeignClient;
import org.springframework.stereotype.Service;
import feign.Client;
import feign.Contract;
......@@ -12,14 +13,13 @@ import feign.Feign;
import feign.codec.Decoder;
import feign.codec.Encoder;
import com.alibaba.fastjson.JSONObject;
import org.springframework.util.DigestUtils;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.security.core.Authentication;
import org.springframework.security.core.context.SecurityContextHolder;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.openfeign.ribbon.LoadBalancerFeignClient;
import org.springframework.stereotype.Service;
import com.ibiz.util.feign.suport.SearchContextFeignEncode;
import com.ibiz.web.r7rt_org.domain.OrgDeptUser;
......@@ -27,10 +27,7 @@ import com.ibiz.web.r7rt_org.filter.*;
import com.ibiz.web.r7rt_org.feign.OrgDeptUserFeignClient;
import com.ibiz.web.WebApplication.WebClientProperties;
import com.ibiz.util.feign.FeignRequestInterceptor;
import com.ibiz.util.log.IBIZLog;
@Slf4j
@IBIZLog
@Service
public class OrgDeptUserService {
......
package com.ibiz.web.r7rt_org.service;
import java.util.ArrayList;
import java.util.List;
import lombok.extern.slf4j.Slf4j;
import com.alibaba.fastjson.JSONObject;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.openfeign.ribbon.LoadBalancerFeignClient;
import org.springframework.stereotype.Service;
import feign.Client;
import feign.Contract;
......@@ -12,14 +13,13 @@ import feign.Feign;
import feign.codec.Decoder;
import feign.codec.Encoder;
import com.alibaba.fastjson.JSONObject;
import org.springframework.util.DigestUtils;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.security.core.Authentication;
import org.springframework.security.core.context.SecurityContextHolder;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.openfeign.ribbon.LoadBalancerFeignClient;
import org.springframework.stereotype.Service;
import com.ibiz.util.feign.suport.SearchContextFeignEncode;
import com.ibiz.web.r7rt_org.domain.Org;
......@@ -27,10 +27,7 @@ import com.ibiz.web.r7rt_org.filter.*;
import com.ibiz.web.r7rt_org.feign.OrgFeignClient;
import com.ibiz.web.WebApplication.WebClientProperties;
import com.ibiz.util.feign.FeignRequestInterceptor;
import com.ibiz.util.log.IBIZLog;
@Slf4j
@IBIZLog
@Service
public class OrgService {
......
package com.ibiz.web.r7rt_org.service;
import java.util.ArrayList;
import java.util.List;
import lombok.extern.slf4j.Slf4j;
import com.alibaba.fastjson.JSONObject;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.openfeign.ribbon.LoadBalancerFeignClient;
import org.springframework.stereotype.Service;
import feign.Client;
import feign.Contract;
......@@ -12,14 +13,13 @@ import feign.Feign;
import feign.codec.Decoder;
import feign.codec.Encoder;
import com.alibaba.fastjson.JSONObject;
import org.springframework.util.DigestUtils;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.security.core.Authentication;
import org.springframework.security.core.context.SecurityContextHolder;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.openfeign.ribbon.LoadBalancerFeignClient;
import org.springframework.stereotype.Service;
import com.ibiz.util.feign.suport.SearchContextFeignEncode;
import com.ibiz.web.r7rt_org.domain.OrgUser;
......@@ -27,10 +27,7 @@ import com.ibiz.web.r7rt_org.filter.*;
import com.ibiz.web.r7rt_org.feign.OrgUserFeignClient;
import com.ibiz.web.WebApplication.WebClientProperties;
import com.ibiz.util.feign.FeignRequestInterceptor;
import com.ibiz.util.log.IBIZLog;
@Slf4j
@IBIZLog
@Service
public class OrgUserService {
......
package com.ibiz.web.rt.controller;
import lombok.extern.slf4j.Slf4j;
import com.ibiz.web.rt.domain.SRFFILE;
import com.ibiz.web.rt.domain.SRFFILEItem;
import com.ibiz.web.rt.service.SRFFileService;
......@@ -18,13 +16,10 @@ import java.io.*;
import java.nio.file.Files;
import java.text.SimpleDateFormat;
import java.util.UUID;
import com.ibiz.util.log.IBIZLog;
/**
* 文件上传下载
*/
@Slf4j
@IBIZLog
@RestController
@RequestMapping("/")
public class SRFFileController
......@@ -166,4 +161,4 @@ public class SRFFileController
return filename;
}
}
}
\ No newline at end of file
package com.ibiz.web.rt.service;
import lombok.extern.slf4j.Slf4j;
import com.ibiz.util.feign.FeignRequestInterceptor;
import com.ibiz.util.feign.suport.SearchContextFeignEncode;
import com.ibiz.web.WebApplication;
......@@ -15,13 +13,9 @@ import feign.codec.Encoder;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.openfeign.ribbon.LoadBalancerFeignClient;
import org.springframework.stereotype.Component;
import com.ibiz.util.log.IBIZLog;
/**
* 文件上传
*/
@Slf4j
@IBIZLog
@Component
public class SRFFileService {
......
......@@ -3,8 +3,9 @@ package com.ibiz.web.security.cas;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
import lombok.extern.slf4j.Slf4j;
import com.ibiz.util.security.userdetail.LoginUser;
import com.ibiz.web.security.userdetail.LoginUserDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.cas.authentication.CasAssertionAuthenticationToken;
import org.springframework.security.core.userdetails.AuthenticationUserDetailsService;
......@@ -12,16 +13,10 @@ import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UserDetailsService;
import org.springframework.security.core.userdetails.UsernameNotFoundException;
import org.springframework.stereotype.Service;
import com.ibiz.util.security.userdetail.LoginUser;
import com.ibiz.web.security.userdetail.LoginUserDetailService;
import com.ibiz.util.log.IBIZLog;
/**
* 用于加载用户信息 实现UserDetailsService接口,或者实现AuthenticationUserDetailsService接口
*/
@Slf4j
@IBIZLog
public class CasUserDetailsService implements AuthenticationUserDetailsService<CasAssertionAuthenticationToken> {
@Autowired
......@@ -33,5 +28,5 @@ public class CasUserDetailsService implements AuthenticationUserDetailsService<C
UserDetails userDetails = userDetailsService.loadUserByUsername(token.getName()) ;
return userDetails;
}
}
}
\ No newline at end of file
package com.ibiz.web.security.config;
import lombok.extern.slf4j.Slf4j;
import com.ibiz.web.security.cas.CasServerConfig;
import com.ibiz.web.security.filter.LoginFilter;
import com.ibiz.web.security.filter.TokenAuthenticationFilter;
import com.ibiz.web.security.token.TokenManager;
import com.ibiz.web.security.token.UnauthorizedEntryPoint;
import com.ibiz.web.security.userdetail.LoginUserDetailService;
import org.jasig.cas.client.session.SingleSignOutFilter;
import org.jasig.cas.client.session.SingleSignOutHttpSessionListener;
import org.springframework.beans.factory.annotation.Autowired;
......@@ -26,14 +30,6 @@ import org.springframework.security.crypto.password.PasswordEncoder;
import org.springframework.security.web.authentication.logout.LogoutFilter;
import org.springframework.web.cors.CorsUtils;
import com.ibiz.web.security.cas.CasServerConfig;
import com.ibiz.web.security.filter.LoginFilter;
import com.ibiz.web.security.filter.TokenAuthenticationFilter;
import com.ibiz.web.security.token.TokenManager;
import com.ibiz.web.security.token.UnauthorizedEntryPoint;
import com.ibiz.web.security.userdetail.LoginUserDetailService;
@Slf4j
@EnableWebSecurity
@Configuration
@EnableGlobalMethodSecurity(prePostEnabled=true)
......@@ -87,6 +83,9 @@ public class SecurityConfiguration extends WebSecurityConfigurerAdapter {
.addFilterBefore(singleSignOutFilter, CasAuthenticationFilter.class);
http.antMatcher("/**");
}
}
@Autowired
......@@ -106,4 +105,4 @@ public class SecurityConfiguration extends WebSecurityConfigurerAdapter {
servletListenerRegistrationBean.setListener(new SingleSignOutHttpSessionListener());
return servletListenerRegistrationBean;
}
}
}
\ No newline at end of file
package com.ibiz.web.security.filter;
import java.util.ArrayList;
import java.io.IOException;
import javax.servlet.FilterChain;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import lombok.extern.slf4j.Slf4j;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.ibiz.web.security.token.TokenManager;
import com.ibiz.util.security.userdetail.LoginUser;
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
import org.springframework.security.authentication.*;
......@@ -20,12 +12,13 @@ import org.springframework.security.core.userdetails.UsernameNotFoundException;
import org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter;
import org.springframework.security.web.util.matcher.AntPathRequestMatcher;
import com.ibiz.web.security.token.TokenManager;
import com.ibiz.util.security.userdetail.LoginUser;
import com.ibiz.util.log.IBIZLog;
import javax.servlet.FilterChain;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.ArrayList;
@Slf4j
@IBIZLog
public class LoginFilter extends UsernamePasswordAuthenticationFilter {
private AuthenticationManager authenticationManager;
......
package com.ibiz.web.security.filter;
import javax.servlet.FilterChain;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.ArrayList;
import lombok.extern.slf4j.Slf4j;
import com.ibiz.web.security.token.TokenManager;
import io.jsonwebtoken.ExpiredJwtException;
import org.springframework.security.authentication.AuthenticationManager;
import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;
......@@ -16,11 +8,13 @@ import org.springframework.security.core.context.SecurityContextHolder;
import org.springframework.security.web.authentication.www.BasicAuthenticationFilter;
import org.springframework.util.StringUtils;
import com.ibiz.web.security.token.TokenManager;
import com.ibiz.util.log.IBIZLog;
import javax.servlet.FilterChain;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.ArrayList;
@Slf4j
@IBIZLog
public class TokenAuthenticationFilter extends BasicAuthenticationFilter {
TokenManager tokenManager ;
......
......@@ -3,10 +3,8 @@ package com.ibiz.web.security.permission.module;
import java.util.ArrayList;
import java.util.List;
import lombok.extern.slf4j.Slf4j;
import com.alibaba.fastjson.JSONObject;
import javax.servlet.http.HttpServletRequest;
import com.alibaba.fastjson.JSONObject;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Component;
......@@ -16,13 +14,9 @@ import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.PageRequest;
import com.ibiz.web.module.service.PSService;
import com.ibiz.web.module.domain.PS;
import com.ibiz.util.log.IBIZLog;
@Slf4j
@IBIZLog
@Component("ps_pms")
public class PSPermission {
......
......@@ -3,10 +3,8 @@ package com.ibiz.web.security.permission.r7rt_org;
import java.util.ArrayList;
import java.util.List;
import lombok.extern.slf4j.Slf4j;
import com.alibaba.fastjson.JSONObject;
import javax.servlet.http.HttpServletRequest;
import com.alibaba.fastjson.JSONObject;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Component;
......@@ -16,13 +14,9 @@ import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.PageRequest;
import com.ibiz.web.r7rt_org.service.OrgDeptService;
import com.ibiz.web.r7rt_org.domain.OrgDept;
import com.ibiz.util.log.IBIZLog;
@Slf4j
@IBIZLog
@Component("orgdept_pms")
public class OrgDeptPermission {
......
......@@ -3,10 +3,8 @@ package com.ibiz.web.security.permission.r7rt_org;
import java.util.ArrayList;
import java.util.List;
import lombok.extern.slf4j.Slf4j;
import com.alibaba.fastjson.JSONObject;
import javax.servlet.http.HttpServletRequest;
import com.alibaba.fastjson.JSONObject;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Component;
......@@ -16,13 +14,9 @@ import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.PageRequest;
import com.ibiz.web.r7rt_org.service.OrgDeptUserService;
import com.ibiz.web.r7rt_org.domain.OrgDeptUser;
import com.ibiz.util.log.IBIZLog;
@Slf4j
@IBIZLog
@Component("orgdeptuser_pms")
public class OrgDeptUserPermission {
......
......@@ -3,10 +3,8 @@ package com.ibiz.web.security.permission.r7rt_org;
import java.util.ArrayList;
import java.util.List;
import lombok.extern.slf4j.Slf4j;
import com.alibaba.fastjson.JSONObject;
import javax.servlet.http.HttpServletRequest;
import com.alibaba.fastjson.JSONObject;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Component;
......@@ -16,13 +14,9 @@ import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.PageRequest;
import com.ibiz.web.r7rt_org.service.OrgService;
import com.ibiz.web.r7rt_org.domain.Org;
import com.ibiz.util.log.IBIZLog;
@Slf4j
@IBIZLog
@Component("org_pms")
public class OrgPermission {
......
......@@ -3,10 +3,8 @@ package com.ibiz.web.security.permission.r7rt_org;
import java.util.ArrayList;
import java.util.List;
import lombok.extern.slf4j.Slf4j;
import com.alibaba.fastjson.JSONObject;
import javax.servlet.http.HttpServletRequest;
import com.alibaba.fastjson.JSONObject;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Component;
......@@ -16,13 +14,9 @@ import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.PageRequest;
import com.ibiz.web.r7rt_org.service.OrgUserService;
import com.ibiz.web.r7rt_org.domain.OrgUser;
import com.ibiz.util.log.IBIZLog;
@Slf4j
@IBIZLog
@Component("orguser_pms")
public class OrgUserPermission {
......
package com.ibiz.web.security.token;
import java.util.*;
import lombok.extern.slf4j.Slf4j;
import io.jsonwebtoken.Claims;
import io.jsonwebtoken.Clock;
import io.jsonwebtoken.Jwts;
......@@ -14,10 +10,9 @@ import org.springframework.security.authentication.UsernamePasswordAuthenticatio
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.authority.AuthorityUtils;
import org.springframework.security.core.userdetails.UserDetails;
import com.ibiz.util.log.IBIZLog;
@Slf4j
@IBIZLog
import java.util.*;
public class TokenManager {
private static final long serialVersionUID = -3301605591108950415L;
private Clock clock = DefaultClock.INSTANCE;
......
package com.ibiz.web.security.token;
import lombok.extern.slf4j.Slf4j;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.springframework.http.MediaType;
import org.springframework.security.core.AuthenticationException;
......@@ -11,10 +9,7 @@ import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import com.ibiz.util.log.IBIZLog;
@Slf4j
@IBIZLog
public class UnauthorizedEntryPoint implements AuthenticationEntryPoint {
@Override
......@@ -27,4 +22,4 @@ public class UnauthorizedEntryPoint implements AuthenticationEntryPoint {
mapper.writeValue(response.getWriter(), "401未授权!");
}
}
}
\ No newline at end of file
package com.ibiz.web.security.userdetail;
import lombok.extern.slf4j.Slf4j;
import org.springframework.security.core.GrantedAuthority;
import java.util.Collection;
@Slf4j
public class LoginUser extends org.springframework.security.core.userdetails.User {
private String userId ;
......
......@@ -2,12 +2,8 @@ package com.ibiz;
import java.util.List;
import lombok.extern.slf4j.Slf4j;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import io.seata.spring.annotation.datasource.EnableAutoDataSourceProxy;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
......@@ -18,11 +14,11 @@ import org.springframework.transaction.annotation.EnableTransactionManagement;
import org.springframework.web.method.support.HandlerMethodArgumentResolver;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.ibiz.util.web.SearchContextHandlerMethodArgumentResolver;
import com.ibiz.util.serialize.DomainSerializerProvider;
import com.ibiz.util.helper.UniqueNameGenerator;
@Slf4j
@SpringBootApplication(exclude = {
})
......@@ -33,7 +29,6 @@ import com.ibiz.util.helper.UniqueNameGenerator;
@Configuration
@ComponentScan(nameGenerator = UniqueNameGenerator.class)
@EnableTransactionManagement
//@EnableAutoDataSourceProxy
public class PSApplication extends WebMvcConfigurerAdapter {
public static void main(String[] args) {
......
......@@ -5,15 +5,6 @@ import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.HashMap;
import lombok.extern.slf4j.Slf4j;
import feign.Client;
import feign.Contract;
import feign.Feign;
import feign.codec.Decoder;
import feign.codec.Encoder;
import org.springframework.cglib.beans.BeanCopier;
import org.springframework.stereotype.Service;
import com.ibiz.core.client.model.Ihealthcheck;
......@@ -31,13 +22,15 @@ import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable;
import com.ibiz.util.feign.suport.SearchContextFeignEncode;
import com.ibiz.util.log.IBIZLog;
import feign.Client;
import feign.Contract;
import feign.Feign;
import feign.codec.Decoder;
import feign.codec.Encoder;
/**
* 实体[healthcheck] 服务对象接口
*/
@Slf4j
@IBIZLog
@Service
public class healthcheckClientServiceImpl implements IhealthcheckClientService {
......
......@@ -5,15 +5,6 @@ import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.HashMap;
import lombok.extern.slf4j.Slf4j;
import feign.Client;
import feign.Contract;
import feign.Feign;
import feign.codec.Decoder;
import feign.codec.Encoder;
import org.springframework.cglib.beans.BeanCopier;
import org.springframework.stereotype.Service;
import com.ibiz.core.client.model.IIM;
......@@ -31,13 +22,15 @@ import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable;
import com.ibiz.util.feign.suport.SearchContextFeignEncode;
import com.ibiz.util.log.IBIZLog;
import feign.Client;
import feign.Contract;
import feign.Feign;
import feign.codec.Decoder;
import feign.codec.Encoder;
/**
* 实体[IM] 服务对象接口
*/
@Slf4j
@IBIZLog
@Service
public class IMClientServiceImpl implements IIMClientService {
......
......@@ -5,15 +5,6 @@ import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.HashMap;
import lombok.extern.slf4j.Slf4j;
import feign.Client;
import feign.Contract;
import feign.Feign;
import feign.codec.Decoder;
import feign.codec.Encoder;
import org.springframework.cglib.beans.BeanCopier;
import org.springframework.stereotype.Service;
import com.ibiz.core.client.model.IOrg;
......@@ -31,13 +22,15 @@ import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable;
import com.ibiz.util.feign.suport.SearchContextFeignEncode;
import com.ibiz.util.log.IBIZLog;
import feign.Client;
import feign.Contract;
import feign.Feign;
import feign.codec.Decoder;
import feign.codec.Encoder;
/**
* 实体[Org] 服务对象接口
*/
@Slf4j
@IBIZLog
@Service
public class OrgClientServiceImpl implements IOrgClientService {
......
......@@ -5,15 +5,6 @@ import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.HashMap;
import lombok.extern.slf4j.Slf4j;
import feign.Client;
import feign.Contract;
import feign.Feign;
import feign.codec.Decoder;
import feign.codec.Encoder;
import org.springframework.cglib.beans.BeanCopier;
import org.springframework.stereotype.Service;
import com.ibiz.core.client.model.IOrgDept;
......@@ -31,13 +22,15 @@ import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable;
import com.ibiz.util.feign.suport.SearchContextFeignEncode;
import com.ibiz.util.log.IBIZLog;
import feign.Client;
import feign.Contract;
import feign.Feign;
import feign.codec.Decoder;
import feign.codec.Encoder;
/**
* 实体[OrgDept] 服务对象接口
*/
@Slf4j
@IBIZLog
@Service
public class OrgDeptClientServiceImpl implements IOrgDeptClientService {
......
......@@ -5,15 +5,6 @@ import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.HashMap;
import lombok.extern.slf4j.Slf4j;
import feign.Client;
import feign.Contract;
import feign.Feign;
import feign.codec.Decoder;
import feign.codec.Encoder;
import org.springframework.cglib.beans.BeanCopier;
import org.springframework.stereotype.Service;
import com.ibiz.core.client.model.IOrgDeptUser;
......@@ -31,13 +22,15 @@ import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable;
import com.ibiz.util.feign.suport.SearchContextFeignEncode;
import com.ibiz.util.log.IBIZLog;
import feign.Client;
import feign.Contract;
import feign.Feign;
import feign.codec.Decoder;
import feign.codec.Encoder;
/**
* 实体[OrgDeptUser] 服务对象接口
*/
@Slf4j
@IBIZLog
@Service
public class OrgDeptUserClientServiceImpl implements IOrgDeptUserClientService {
......
......@@ -5,15 +5,6 @@ import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.HashMap;
import lombok.extern.slf4j.Slf4j;
import feign.Client;
import feign.Contract;
import feign.Feign;
import feign.codec.Decoder;
import feign.codec.Encoder;
import org.springframework.cglib.beans.BeanCopier;
import org.springframework.stereotype.Service;
import com.ibiz.core.client.model.IOrgUser;
......@@ -31,13 +22,15 @@ import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable;
import com.ibiz.util.feign.suport.SearchContextFeignEncode;
import com.ibiz.util.log.IBIZLog;
import feign.Client;
import feign.Contract;
import feign.Feign;
import feign.codec.Decoder;
import feign.codec.Encoder;
/**
* 实体[OrgUser] 服务对象接口
*/
@Slf4j
@IBIZLog
@Service
public class OrgUserClientServiceImpl implements IOrgUserClientService {
......
......@@ -13,15 +13,10 @@ import org.springframework.context.annotation.Configuration;
import org.springframework.core.io.Resource;
import org.springframework.core.io.support.PathMatchingResourcePatternResolver;
import org.springframework.core.io.support.ResourcePatternResolver;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import java.io.IOException;
import java.util.List;
@Configuration
public class DroolsAutoConfiguration {
private Log logger= LogFactory.getLog(DroolsAutoConfiguration.class);
private static final String RULES_PATH = "rules/";
......@@ -54,18 +49,6 @@ public class DroolsAutoConfiguration {
KieBuilder kieBuilder = getKieServices().newKieBuilder(kieFileSystem());
kieBuilder.buildAll();
if(kieBuilder.getResults().hasMessages(new Message.Level[] { Message.Level.ERROR })){
List<Message> errors = kieBuilder.getResults().getMessages(new Message.Level[] { Message.Level.ERROR });
StringBuilder stringBuilder = new StringBuilder("Errors:");
for (Message msg : errors)
{
stringBuilder.append(new StringBuilder().append("\n ").append(prettyBuildMessage(msg)).toString());
}
logger.error(String.format("初始化处理逻辑发生异常,异常原因为[%s]",stringBuilder.toString()));
//忽略处理逻辑
getKieServices().newKieBuilder(getKieServices().newKieFileSystem()).buildAll();
}
return getKieServices().newKieContainer(kieRepository.getDefaultReleaseId());
}
......@@ -90,15 +73,4 @@ public class DroolsAutoConfiguration {
public KModuleBeanFactoryPostProcessor kiePostProcessor() {
return new KModuleBeanFactoryPostProcessor();
}
/**
* 输出异常信息
* @param msg
* @return
*/
public static String prettyBuildMessage(Message msg)
{
return new StringBuilder().append("Message: {id=").append(msg.getId()).append(", level=").append(msg.getLevel()).append(", path=").append(msg.getPath()).append(", line=").append(msg.getLine())
.append(", column=").append(msg.getColumn()).append(", text=\"").append(msg.getText()).append("\"}").toString();
}
}
\ No newline at end of file
......@@ -11,10 +11,6 @@ import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ibiz.core.util.annotation.DEField;
import com.ibiz.core.util.annotation.DEPredefinedField;
import com.ibiz.core.util.enums.DEPredefinedFieldFillMode;
import com.ibiz.core.util.enums.DEPredefinedFieldType;
import java.io.Serializable;
/**
......@@ -27,7 +23,6 @@ public class PS implements Serializable {
/**
* 更新时间
*/
@DEPredefinedField(fill= DEPredefinedFieldFillMode.INSERT_UPDATE,preType = DEPredefinedFieldType.UPDATEDATE)
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", locale = "zh" , timezone="GMT+8")
private Timestamp updateDate;
......@@ -38,7 +33,6 @@ public class PS implements Serializable {
/**
* 更新人
*/
@DEPredefinedField(fill= DEPredefinedFieldFillMode.INSERT_UPDATE,preType = DEPredefinedFieldType.UPDATEMAN)
private String updateMan;
@JsonIgnore
......@@ -57,7 +51,6 @@ public class PS implements Serializable {
/**
* 建立时间
*/
@DEPredefinedField(fill= DEPredefinedFieldFillMode.INSERT,preType = DEPredefinedFieldType.CREATEDATE)
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", locale = "zh" , timezone="GMT+8")
private Timestamp createDate;
......@@ -77,7 +70,6 @@ public class PS implements Serializable {
/**
* 建立人
*/
@DEPredefinedField(fill= DEPredefinedFieldFillMode.INSERT,preType = DEPredefinedFieldType.CREATEMAN)
private String createMan;
@JsonIgnore
......@@ -87,7 +79,6 @@ public class PS implements Serializable {
/**
* 采购单标识
*/
@DEField(isKeyField=true)
private String pSId;
@JsonIgnore
......
......@@ -6,27 +6,22 @@ import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.HashMap;
import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ibiz.util.ISearchFilter;
import com.ibiz.util.domain.DataObj;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ibiz.util.SearchContext;
import com.ibiz.util.SearchFieldFilter;
import com.ibiz.util.enums.SearchFieldType;
import com.ibiz.util.enums.SearchGroupType;
import com.ibiz.util.SearchGroupFilter;
import com.ibiz.util.log.IBIZLog;
import lombok.Data;
/**
* 关系型数据实体[PS] 查询条件对象
*/
@Slf4j
@Data
@IBIZLog
public class PSSearchContext extends SearchContext {
public String n_psname_like;//[采购单名称]
public void setN_psname_like(String n_psname_like) {
this.n_psname_like=n_psname_like;
......@@ -52,10 +47,10 @@ public class PSSearchContext extends SearchContext {
psname.setCondition(SearchFieldType.LIKE);
psname.setValue(strQuery);
searchGroupFilter.getCondition().add(psname);
this.getCondition().add(searchGroupFilter);
this.getCondition().add(searchGroupFilter);
}
}
}
package com.ibiz.core.module.service;
import java.io.Serializable;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.HashMap;
import java.util.Collection;
import java.math.BigInteger;
import org.springframework.data.domain.Page;
......
package com.ibiz.core.module.service.impl;
import java.io.Serializable;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.HashMap;
import java.math.BigInteger;
import java.util.Collection;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cglib.beans.BeanCopier;
import org.springframework.stereotype.Service;
import org.springframework.data.domain.Page;
......@@ -23,14 +17,12 @@ import com.ibiz.core.module.filter.PSSearchContext;
import com.ibiz.core.module.service.IPSService;
import com.ibiz.core.module.service.logic.IPSXDLogic;
import com.ibiz.core.module.service.logic.IPSCreateAndStartIMLogic;
import org.springframework.beans.factory.annotation.Autowired;
import com.ibiz.util.SearchResult;
import com.ibiz.util.log.IBIZLog;
/**
* 实体[采购单] 服务对象接口实现
*/
@Slf4j
@IBIZLog
@Service
public class PSServiceImpl implements IPSService {
......@@ -138,9 +130,6 @@ public class PSServiceImpl implements IPSService {
*/
@Override
public Page<PS> searchDefault(PSSearchContext context) {
List dataQueryList=new ArrayList();
dataQueryList.add("Default");
context.setDataQueryList(dataQueryList);
List<PS> list = new ArrayList<PS>();
Page<com.ibiz.core.repository.po.PS> t_PSs = pSRepository.searchDefault(context) ;
for(com.ibiz.core.repository.po.PS t_PS : t_PSs){
......
......@@ -6,22 +6,16 @@ import java.util.List;
import java.util.Map;
import java.util.HashMap;
import lombok.extern.slf4j.Slf4j;
import com.ibiz.core.module.service.logic.IPSCreateAndStartIMLogic;
import com.ibiz.core.module.domain.PS;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.kie.api.runtime.KieSession;
import org.kie.api.runtime.KieContainer;
import com.ibiz.core.module.service.logic.IPSCreateAndStartIMLogic;
import com.ibiz.core.module.domain.PS;
import com.ibiz.util.log.IBIZLog;
/**
* 关系型数据实体[CreateAndStartIM] 对象
*/
@Slf4j
@IBIZLog
@Service
public class PSCreateAndStartIMLogicImpl implements IPSCreateAndStartIMLogic{
......
......@@ -6,22 +6,16 @@ import java.util.List;
import java.util.Map;
import java.util.HashMap;
import lombok.extern.slf4j.Slf4j;
import com.ibiz.core.module.service.logic.IPSXDLogic;
import com.ibiz.core.module.domain.PS;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.kie.api.runtime.KieSession;
import org.kie.api.runtime.KieContainer;
import com.ibiz.core.module.service.logic.IPSXDLogic;
import com.ibiz.core.module.domain.PS;
import com.ibiz.util.log.IBIZLog;
/**
* 关系型数据实体[XD] 对象
*/
@Slf4j
@IBIZLog
@Service
public class PSXDLogicImpl implements IPSXDLogic{
......
package com.ibiz.core.module.valuerule.validator.ps;
import lombok.extern.slf4j.Slf4j;
import com.ibiz.util.valuerule.DefaultValueRule;
import com.ibiz.util.valuerule.VRCondition;
import com.ibiz.util.valuerule.condition.*;
import com.ibiz.core.module.valuerule.anno.ps.PSBzDefault;
import org.springframework.stereotype.Component;
import org.springframework.validation.Errors;
import org.springframework.validation.Validator;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
......@@ -8,19 +19,6 @@ import java.math.BigInteger;
import java.util.HashMap;
import java.math.BigDecimal;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import org.springframework.validation.Errors;
import org.springframework.validation.Validator;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import com.ibiz.util.valuerule.DefaultValueRule;
import com.ibiz.util.valuerule.VRCondition;
import com.ibiz.util.valuerule.condition.*;
import com.ibiz.core.module.valuerule.anno.ps.PSBzDefault;
import com.ibiz.util.log.IBIZLog;
/**
* 值规则注解解析类
......@@ -30,7 +28,6 @@ import com.ibiz.util.log.IBIZLog;
* 值规则信息:内容长度必须小于等于[2000]
*/
@Slf4j
@IBIZLog
@Component("PSBzDefaultValidator")
public class PSBzDefaultValidator implements ConstraintValidator<PSBzDefault, String>,Validator {
private static final String MESSAGE = "值规则校验失败:【内容长度必须小于等于[2000]】";
......
package com.ibiz.core.module.valuerule.validator.ps;
import lombok.extern.slf4j.Slf4j;
import com.ibiz.util.valuerule.DefaultValueRule;
import com.ibiz.util.valuerule.VRCondition;
import com.ibiz.util.valuerule.condition.*;
import com.ibiz.core.module.valuerule.anno.ps.PSCreateDateDefault;
import org.springframework.stereotype.Component;
import org.springframework.validation.Errors;
import org.springframework.validation.Validator;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
......@@ -8,19 +19,6 @@ import java.math.BigInteger;
import java.util.HashMap;
import java.math.BigDecimal;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import org.springframework.validation.Errors;
import org.springframework.validation.Validator;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import com.ibiz.util.valuerule.DefaultValueRule;
import com.ibiz.util.valuerule.VRCondition;
import com.ibiz.util.valuerule.condition.*;
import com.ibiz.core.module.valuerule.anno.ps.PSCreateDateDefault;
import com.ibiz.util.log.IBIZLog;
/**
* 值规则注解解析类
......@@ -30,7 +28,6 @@ import com.ibiz.util.log.IBIZLog;
* 值规则信息:默认规则
*/
@Slf4j
@IBIZLog
@Component("PSCreateDateDefaultValidator")
public class PSCreateDateDefaultValidator implements ConstraintValidator<PSCreateDateDefault, Timestamp>,Validator {
private static final String MESSAGE = "值规则校验失败:【默认规则】";
......
package com.ibiz.core.module.valuerule.validator.ps;
import lombok.extern.slf4j.Slf4j;
import com.ibiz.util.valuerule.DefaultValueRule;
import com.ibiz.util.valuerule.VRCondition;
import com.ibiz.util.valuerule.condition.*;
import com.ibiz.core.module.valuerule.anno.ps.PSCreateManDefault;
import org.springframework.stereotype.Component;
import org.springframework.validation.Errors;
import org.springframework.validation.Validator;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
......@@ -8,19 +19,6 @@ import java.math.BigInteger;
import java.util.HashMap;
import java.math.BigDecimal;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import org.springframework.validation.Errors;
import org.springframework.validation.Validator;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import com.ibiz.util.valuerule.DefaultValueRule;
import com.ibiz.util.valuerule.VRCondition;
import com.ibiz.util.valuerule.condition.*;
import com.ibiz.core.module.valuerule.anno.ps.PSCreateManDefault;
import com.ibiz.util.log.IBIZLog;
/**
* 值规则注解解析类
......@@ -30,7 +28,6 @@ import com.ibiz.util.log.IBIZLog;
* 值规则信息:内容长度必须小于等于[60]
*/
@Slf4j
@IBIZLog
@Component("PSCreateManDefaultValidator")
public class PSCreateManDefaultValidator implements ConstraintValidator<PSCreateManDefault, String>,Validator {
private static final String MESSAGE = "值规则校验失败:【内容长度必须小于等于[60]】";
......
package com.ibiz.core.module.valuerule.validator.ps;
import lombok.extern.slf4j.Slf4j;
import com.ibiz.util.valuerule.DefaultValueRule;
import com.ibiz.util.valuerule.VRCondition;
import com.ibiz.util.valuerule.condition.*;
import com.ibiz.core.module.valuerule.anno.ps.PSNgridDefault;
import org.springframework.stereotype.Component;
import org.springframework.validation.Errors;
import org.springframework.validation.Validator;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
......@@ -8,19 +19,6 @@ import java.math.BigInteger;
import java.util.HashMap;
import java.math.BigDecimal;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import org.springframework.validation.Errors;
import org.springframework.validation.Validator;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import com.ibiz.util.valuerule.DefaultValueRule;
import com.ibiz.util.valuerule.VRCondition;
import com.ibiz.util.valuerule.condition.*;
import com.ibiz.core.module.valuerule.anno.ps.PSNgridDefault;
import com.ibiz.util.log.IBIZLog;
/**
* 值规则注解解析类
......@@ -30,7 +28,6 @@ import com.ibiz.util.log.IBIZLog;
* 值规则信息:内容长度必须小于等于[100]
*/
@Slf4j
@IBIZLog
@Component("PSNgridDefaultValidator")
public class PSNgridDefaultValidator implements ConstraintValidator<PSNgridDefault, String>,Validator {
private static final String MESSAGE = "值规则校验失败:【内容长度必须小于等于[100]】";
......
package com.ibiz.core.module.valuerule.validator.ps;
import lombok.extern.slf4j.Slf4j;
import com.ibiz.util.valuerule.DefaultValueRule;
import com.ibiz.util.valuerule.VRCondition;
import com.ibiz.util.valuerule.condition.*;
import com.ibiz.core.module.valuerule.anno.ps.PSPSIdDefault;
import org.springframework.stereotype.Component;
import org.springframework.validation.Errors;
import org.springframework.validation.Validator;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
......@@ -8,19 +19,6 @@ import java.math.BigInteger;
import java.util.HashMap;
import java.math.BigDecimal;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import org.springframework.validation.Errors;
import org.springframework.validation.Validator;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import com.ibiz.util.valuerule.DefaultValueRule;
import com.ibiz.util.valuerule.VRCondition;
import com.ibiz.util.valuerule.condition.*;
import com.ibiz.core.module.valuerule.anno.ps.PSPSIdDefault;
import com.ibiz.util.log.IBIZLog;
/**
* 值规则注解解析类
......@@ -30,7 +28,6 @@ import com.ibiz.util.log.IBIZLog;
* 值规则信息:内容长度必须小于等于[100]
*/
@Slf4j
@IBIZLog
@Component("PSPSIdDefaultValidator")
public class PSPSIdDefaultValidator implements ConstraintValidator<PSPSIdDefault, String>,Validator {
private static final String MESSAGE = "值规则校验失败:【内容长度必须小于等于[100]】";
......
package com.ibiz.core.module.valuerule.validator.ps;
import lombok.extern.slf4j.Slf4j;
import com.ibiz.util.valuerule.DefaultValueRule;
import com.ibiz.util.valuerule.VRCondition;
import com.ibiz.util.valuerule.condition.*;
import com.ibiz.core.module.valuerule.anno.ps.PSPSNameDefault;
import org.springframework.stereotype.Component;
import org.springframework.validation.Errors;
import org.springframework.validation.Validator;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
......@@ -8,19 +19,6 @@ import java.math.BigInteger;
import java.util.HashMap;
import java.math.BigDecimal;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import org.springframework.validation.Errors;
import org.springframework.validation.Validator;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import com.ibiz.util.valuerule.DefaultValueRule;
import com.ibiz.util.valuerule.VRCondition;
import com.ibiz.util.valuerule.condition.*;
import com.ibiz.core.module.valuerule.anno.ps.PSPSNameDefault;
import com.ibiz.util.log.IBIZLog;
/**
* 值规则注解解析类
......@@ -30,7 +28,6 @@ import com.ibiz.util.log.IBIZLog;
* 值规则信息:内容长度必须小于等于[200]
*/
@Slf4j
@IBIZLog
@Component("PSPSNameDefaultValidator")
public class PSPSNameDefaultValidator implements ConstraintValidator<PSPSNameDefault, String>,Validator {
private static final String MESSAGE = "值规则校验失败:【内容长度必须小于等于[200]】";
......
package com.ibiz.core.module.valuerule.validator.ps;
import lombok.extern.slf4j.Slf4j;
import com.ibiz.util.valuerule.DefaultValueRule;
import com.ibiz.util.valuerule.VRCondition;
import com.ibiz.util.valuerule.condition.*;
import com.ibiz.core.module.valuerule.anno.ps.PSUpdateDateDefault;
import org.springframework.stereotype.Component;
import org.springframework.validation.Errors;
import org.springframework.validation.Validator;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
......@@ -8,19 +19,6 @@ import java.math.BigInteger;
import java.util.HashMap;
import java.math.BigDecimal;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import org.springframework.validation.Errors;
import org.springframework.validation.Validator;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import com.ibiz.util.valuerule.DefaultValueRule;
import com.ibiz.util.valuerule.VRCondition;
import com.ibiz.util.valuerule.condition.*;
import com.ibiz.core.module.valuerule.anno.ps.PSUpdateDateDefault;
import com.ibiz.util.log.IBIZLog;
/**
* 值规则注解解析类
......@@ -30,7 +28,6 @@ import com.ibiz.util.log.IBIZLog;
* 值规则信息:默认规则
*/
@Slf4j
@IBIZLog
@Component("PSUpdateDateDefaultValidator")
public class PSUpdateDateDefaultValidator implements ConstraintValidator<PSUpdateDateDefault, Timestamp>,Validator {
private static final String MESSAGE = "值规则校验失败:【默认规则】";
......
package com.ibiz.core.module.valuerule.validator.ps;
import lombok.extern.slf4j.Slf4j;
import com.ibiz.util.valuerule.DefaultValueRule;
import com.ibiz.util.valuerule.VRCondition;
import com.ibiz.util.valuerule.condition.*;
import com.ibiz.core.module.valuerule.anno.ps.PSUpdateManDefault;
import org.springframework.stereotype.Component;
import org.springframework.validation.Errors;
import org.springframework.validation.Validator;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
......@@ -8,19 +19,6 @@ import java.math.BigInteger;
import java.util.HashMap;
import java.math.BigDecimal;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import org.springframework.validation.Errors;
import org.springframework.validation.Validator;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import com.ibiz.util.valuerule.DefaultValueRule;
import com.ibiz.util.valuerule.VRCondition;
import com.ibiz.util.valuerule.condition.*;
import com.ibiz.core.module.valuerule.anno.ps.PSUpdateManDefault;
import com.ibiz.util.log.IBIZLog;
/**
* 值规则注解解析类
......@@ -30,7 +28,6 @@ import com.ibiz.util.log.IBIZLog;
* 值规则信息:内容长度必须小于等于[60]
*/
@Slf4j
@IBIZLog
@Component("PSUpdateManDefaultValidator")
public class PSUpdateManDefaultValidator implements ConstraintValidator<PSUpdateManDefault, String>,Validator {
private static final String MESSAGE = "值规则校验失败:【内容长度必须小于等于[60]】";
......
......@@ -11,10 +11,6 @@ import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ibiz.core.util.annotation.DEField;
import com.ibiz.core.util.annotation.DEPredefinedField;
import com.ibiz.core.util.enums.DEPredefinedFieldFillMode;
import com.ibiz.core.util.enums.DEPredefinedFieldType;
import java.io.Serializable;
/**
......@@ -27,7 +23,6 @@ public class Healthcheck implements Serializable {
/**
* HEALTHCHECKID
*/
@DEField(isKeyField=true)
private String healthcheckid;
@JsonIgnore
......
......@@ -11,10 +11,6 @@ import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ibiz.core.util.annotation.DEField;
import com.ibiz.core.util.annotation.DEPredefinedField;
import com.ibiz.core.util.enums.DEPredefinedFieldFillMode;
import com.ibiz.core.util.enums.DEPredefinedFieldType;
import java.io.Serializable;
/**
......@@ -72,7 +68,6 @@ public class IM implements Serializable {
/**
* 建立时间
*/
@DEPredefinedField(fill= DEPredefinedFieldFillMode.INSERT,preType = DEPredefinedFieldType.CREATEDATE)
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", locale = "zh" , timezone="GMT+8")
private Timestamp createDate;
......@@ -182,7 +177,6 @@ public class IM implements Serializable {
/**
* 更新时间
*/
@DEPredefinedField(fill= DEPredefinedFieldFillMode.INSERT_UPDATE,preType = DEPredefinedFieldType.UPDATEDATE)
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", locale = "zh" , timezone="GMT+8")
private Timestamp updateDate;
......@@ -193,7 +187,6 @@ public class IM implements Serializable {
/**
* 重要事项标识
*/
@DEField(isKeyField=true)
private String iMId;
@JsonIgnore
......@@ -257,7 +250,6 @@ public class IM implements Serializable {
/**
* 建立人
*/
@DEPredefinedField(fill= DEPredefinedFieldFillMode.INSERT,preType = DEPredefinedFieldType.CREATEMAN)
private String createMan;
@JsonIgnore
......@@ -294,7 +286,6 @@ public class IM implements Serializable {
/**
* 更新人
*/
@DEPredefinedField(fill= DEPredefinedFieldFillMode.INSERT_UPDATE,preType = DEPredefinedFieldType.UPDATEMAN)
private String updateMan;
@JsonIgnore
......
......@@ -6,27 +6,22 @@ import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.HashMap;
import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ibiz.util.ISearchFilter;
import com.ibiz.util.domain.DataObj;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ibiz.util.SearchContext;
import com.ibiz.util.SearchFieldFilter;
import com.ibiz.util.enums.SearchFieldType;
import com.ibiz.util.enums.SearchGroupType;
import com.ibiz.util.SearchGroupFilter;
import com.ibiz.util.log.IBIZLog;
import lombok.Data;
/**
* 关系型数据实体[Healthcheck] 查询条件对象
*/
@Slf4j
@Data
@IBIZLog
public class HealthcheckSearchContext extends SearchContext {
public String n_healthcheckid_like;//[HEALTHCHECKID]
public void setN_healthcheckid_like(String n_healthcheckid_like) {
this.n_healthcheckid_like=n_healthcheckid_like;
......@@ -52,10 +47,10 @@ public class HealthcheckSearchContext extends SearchContext {
healthcheckid.setCondition(SearchFieldType.LIKE);
healthcheckid.setValue(strQuery);
searchGroupFilter.getCondition().add(healthcheckid);
this.getCondition().add(searchGroupFilter);
this.getCondition().add(searchGroupFilter);
}
}
}
......@@ -6,27 +6,22 @@ import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.HashMap;
import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ibiz.util.ISearchFilter;
import com.ibiz.util.domain.DataObj;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ibiz.util.SearchContext;
import com.ibiz.util.SearchFieldFilter;
import com.ibiz.util.enums.SearchFieldType;
import com.ibiz.util.enums.SearchGroupType;
import com.ibiz.util.SearchGroupFilter;
import com.ibiz.util.log.IBIZLog;
import lombok.Data;
/**
* 关系型数据实体[IM] 查询条件对象
*/
@Slf4j
@Data
@IBIZLog
public class IMSearchContext extends SearchContext {
public String n_sblb_eq;//[申报类别]
public void setN_sblb_eq(String n_sblb_eq) {
this.n_sblb_eq=n_sblb_eq;
......@@ -115,10 +110,10 @@ public class IMSearchContext extends SearchContext {
imname.setCondition(SearchFieldType.LIKE);
imname.setValue(strQuery);
searchGroupFilter.getCondition().add(imname);
this.getCondition().add(searchGroupFilter);
this.getCondition().add(searchGroupFilter);
}
}
}
package com.ibiz.core.module2.service;
import java.io.Serializable;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.HashMap;
import java.util.Collection;
import java.math.BigInteger;
import org.springframework.data.domain.Page;
......@@ -35,14 +33,4 @@ public interface IHealthcheckService{
*/
Page<Healthcheck> searchDefault(HealthcheckSearchContext context) ;
/**
* 转换ClientModel为Domain
*/
public Healthcheck convert2Domain(com.ibiz.core.client.model.Ihealthcheck model ,Healthcheck domain);
/**
* 转换Domain为ClientModel
*/
public com.ibiz.core.client.model.Ihealthcheck convert2Model(Healthcheck domain , com.ibiz.core.client.model.Ihealthcheck model);
}
package com.ibiz.core.module2.service;
import java.io.Serializable;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.HashMap;
import java.util.Collection;
import java.math.BigInteger;
import org.springframework.data.domain.Page;
......@@ -35,14 +33,4 @@ public interface IIMService{
*/
Page<IM> searchDefault(IMSearchContext context) ;
/**
* 转换ClientModel为Domain
*/
public IM convert2Domain(com.ibiz.core.client.model.IIM model ,IM domain);
/**
* 转换Domain为ClientModel
*/
public com.ibiz.core.client.model.IIM convert2Model(IM domain , com.ibiz.core.client.model.IIM model);
}
package com.ibiz.core.module2.service.impl;
import java.io.Serializable;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.HashMap;
import java.math.BigInteger;
import java.util.Collection;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cglib.beans.BeanCopier;
import org.springframework.stereotype.Service;
import org.springframework.data.domain.Page;
......@@ -21,14 +15,12 @@ import com.ibiz.core.client.model.Ihealthcheck;
import com.ibiz.core.module2.domain.Healthcheck;
import com.ibiz.core.module2.filter.HealthcheckSearchContext;
import com.ibiz.core.module2.service.IHealthcheckService;
import org.springframework.beans.factory.annotation.Autowired;
import com.ibiz.util.SearchResult;
import com.ibiz.util.log.IBIZLog;
/**
* 实体[HEALTHCHECK] 服务对象接口实现
*/
@Slf4j
@IBIZLog
@Service
public class HealthcheckServiceImpl implements IHealthcheckService {
......@@ -78,7 +70,7 @@ public class HealthcheckServiceImpl implements IHealthcheckService {
@Override
public Healthcheck test(Healthcheck healthcheck) {
Ihealthcheck clientModel = this.convert2Model(healthcheck,null);
healthcheckClientService.test(clientModel) ;
this.convert2Domain(clientModel,null);
......@@ -129,7 +121,6 @@ public class HealthcheckServiceImpl implements IHealthcheckService {
@Override
public Ihealthcheck convert2Model(Healthcheck domain , Ihealthcheck model) {
if(domain == null)
return model ;
......@@ -142,7 +133,6 @@ public class HealthcheckServiceImpl implements IHealthcheckService {
return model ;
}
@Override
public Healthcheck convert2Domain( Ihealthcheck model ,Healthcheck domain) {
if(model == null)
return domain ;
......
package com.ibiz.core.module2.service.impl;
import java.io.Serializable;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.HashMap;
import java.math.BigInteger;
import java.util.Collection;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cglib.beans.BeanCopier;
import org.springframework.stereotype.Service;
import org.springframework.data.domain.Page;
......@@ -21,14 +15,12 @@ import com.ibiz.core.client.model.IIM;
import com.ibiz.core.module2.domain.IM;
import com.ibiz.core.module2.filter.IMSearchContext;
import com.ibiz.core.module2.service.IIMService;
import org.springframework.beans.factory.annotation.Autowired;
import com.ibiz.util.SearchResult;
import com.ibiz.util.log.IBIZLog;
/**
* 实体[重要事项] 服务对象接口实现
*/
@Slf4j
@IBIZLog
@Service
public class IMServiceImpl implements IIMService {
......@@ -91,7 +83,7 @@ public class IMServiceImpl implements IIMService {
@Override
public IM createAndStart(IM im) {
IIM clientModel = this.convert2Model(im,null);
iMClientService.createAndStart(clientModel) ;
this.convert2Domain(clientModel,null);
......@@ -129,7 +121,6 @@ public class IMServiceImpl implements IIMService {
@Override
public IIM convert2Model(IM domain , IIM model) {
if(domain == null)
return model ;
......@@ -212,7 +203,6 @@ public class IMServiceImpl implements IIMService {
return model ;
}
@Override
public IM convert2Domain( IIM model ,IM domain) {
if(model == null)
return domain ;
......
package com.ibiz.core.module2.valuerule.validator.healthcheck;
import lombok.extern.slf4j.Slf4j;
import com.ibiz.util.valuerule.DefaultValueRule;
import com.ibiz.util.valuerule.VRCondition;
import com.ibiz.util.valuerule.condition.*;
import com.ibiz.core.module2.valuerule.anno.healthcheck.HealthcheckHealthcheckidDefault;
import org.springframework.stereotype.Component;
import org.springframework.validation.Errors;
import org.springframework.validation.Validator;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
......@@ -8,19 +19,6 @@ import java.math.BigInteger;
import java.util.HashMap;
import java.math.BigDecimal;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import org.springframework.validation.Errors;
import org.springframework.validation.Validator;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import com.ibiz.util.valuerule.DefaultValueRule;
import com.ibiz.util.valuerule.VRCondition;
import com.ibiz.util.valuerule.condition.*;
import com.ibiz.core.module2.valuerule.anno.healthcheck.HealthcheckHealthcheckidDefault;
import com.ibiz.util.log.IBIZLog;
/**
* 值规则注解解析类
......@@ -30,7 +28,6 @@ import com.ibiz.util.log.IBIZLog;
* 值规则信息:内容长度必须小于等于[60]
*/
@Slf4j
@IBIZLog
@Component("HealthcheckHealthcheckidDefaultValidator")
public class HealthcheckHealthcheckidDefaultValidator implements ConstraintValidator<HealthcheckHealthcheckidDefault, String>,Validator {
private static final String MESSAGE = "值规则校验失败:【内容长度必须小于等于[60]】";
......
package com.ibiz.core.module2.valuerule.validator.im;
import lombok.extern.slf4j.Slf4j;
import com.ibiz.util.valuerule.DefaultValueRule;
import com.ibiz.util.valuerule.VRCondition;
import com.ibiz.util.valuerule.condition.*;
import com.ibiz.core.module2.valuerule.anno.im.IMBmldDefault;
import org.springframework.stereotype.Component;
import org.springframework.validation.Errors;
import org.springframework.validation.Validator;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
......@@ -8,19 +19,6 @@ import java.math.BigInteger;
import java.util.HashMap;
import java.math.BigDecimal;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import org.springframework.validation.Errors;
import org.springframework.validation.Validator;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import com.ibiz.util.valuerule.DefaultValueRule;
import com.ibiz.util.valuerule.VRCondition;
import com.ibiz.util.valuerule.condition.*;
import com.ibiz.core.module2.valuerule.anno.im.IMBmldDefault;
import com.ibiz.util.log.IBIZLog;
/**
* 值规则注解解析类
......@@ -30,7 +28,6 @@ import com.ibiz.util.log.IBIZLog;
* 值规则信息:内容长度必须小于等于[1000]
*/
@Slf4j
@IBIZLog
@Component("IMBmldDefaultValidator")
public class IMBmldDefaultValidator implements ConstraintValidator<IMBmldDefault, String>,Validator {
private static final String MESSAGE = "值规则校验失败:【内容长度必须小于等于[1000]】";
......
package com.ibiz.core.module2.valuerule.validator.im;
import lombok.extern.slf4j.Slf4j;
import com.ibiz.util.valuerule.DefaultValueRule;
import com.ibiz.util.valuerule.VRCondition;
import com.ibiz.util.valuerule.condition.*;
import com.ibiz.core.module2.valuerule.anno.im.IMBmldidsDefault;
import org.springframework.stereotype.Component;
import org.springframework.validation.Errors;
import org.springframework.validation.Validator;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
......@@ -8,19 +19,6 @@ import java.math.BigInteger;
import java.util.HashMap;
import java.math.BigDecimal;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import org.springframework.validation.Errors;
import org.springframework.validation.Validator;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import com.ibiz.util.valuerule.DefaultValueRule;
import com.ibiz.util.valuerule.VRCondition;
import com.ibiz.util.valuerule.condition.*;
import com.ibiz.core.module2.valuerule.anno.im.IMBmldidsDefault;
import com.ibiz.util.log.IBIZLog;
/**
* 值规则注解解析类
......@@ -30,7 +28,6 @@ import com.ibiz.util.log.IBIZLog;
* 值规则信息:内容长度必须小于等于[1000]
*/
@Slf4j
@IBIZLog
@Component("IMBmldidsDefaultValidator")
public class IMBmldidsDefaultValidator implements ConstraintValidator<IMBmldidsDefault, String>,Validator {
private static final String MESSAGE = "值规则校验失败:【内容长度必须小于等于[1000]】";
......
package com.ibiz.core.module2.valuerule.validator.im;
import lombok.extern.slf4j.Slf4j;
import com.ibiz.util.valuerule.DefaultValueRule;
import com.ibiz.util.valuerule.VRCondition;
import com.ibiz.util.valuerule.condition.*;
import com.ibiz.core.module2.valuerule.anno.im.IMBzDefault;
import org.springframework.stereotype.Component;
import org.springframework.validation.Errors;
import org.springframework.validation.Validator;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
......@@ -8,19 +19,6 @@ import java.math.BigInteger;
import java.util.HashMap;
import java.math.BigDecimal;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import org.springframework.validation.Errors;
import org.springframework.validation.Validator;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import com.ibiz.util.valuerule.DefaultValueRule;
import com.ibiz.util.valuerule.VRCondition;
import com.ibiz.util.valuerule.condition.*;
import com.ibiz.core.module2.valuerule.anno.im.IMBzDefault;
import com.ibiz.util.log.IBIZLog;
/**
* 值规则注解解析类
......@@ -30,7 +28,6 @@ import com.ibiz.util.log.IBIZLog;
* 值规则信息:内容长度必须小于等于[2000]
*/
@Slf4j
@IBIZLog
@Component("IMBzDefaultValidator")
public class IMBzDefaultValidator implements ConstraintValidator<IMBzDefault, String>,Validator {
private static final String MESSAGE = "值规则校验失败:【内容长度必须小于等于[2000]】";
......
package com.ibiz.core.module2.valuerule.validator.im;
import lombok.extern.slf4j.Slf4j;
import com.ibiz.util.valuerule.DefaultValueRule;
import com.ibiz.util.valuerule.VRCondition;
import com.ibiz.util.valuerule.condition.*;
import com.ibiz.core.module2.valuerule.anno.im.IMCreateDateDefault;
import org.springframework.stereotype.Component;
import org.springframework.validation.Errors;
import org.springframework.validation.Validator;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
......@@ -8,19 +19,6 @@ import java.math.BigInteger;
import java.util.HashMap;
import java.math.BigDecimal;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import org.springframework.validation.Errors;
import org.springframework.validation.Validator;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import com.ibiz.util.valuerule.DefaultValueRule;
import com.ibiz.util.valuerule.VRCondition;
import com.ibiz.util.valuerule.condition.*;
import com.ibiz.core.module2.valuerule.anno.im.IMCreateDateDefault;
import com.ibiz.util.log.IBIZLog;
/**
* 值规则注解解析类
......@@ -30,7 +28,6 @@ import com.ibiz.util.log.IBIZLog;
* 值规则信息:默认规则
*/
@Slf4j
@IBIZLog
@Component("IMCreateDateDefaultValidator")
public class IMCreateDateDefaultValidator implements ConstraintValidator<IMCreateDateDefault, Timestamp>,Validator {
private static final String MESSAGE = "值规则校验失败:【默认规则】";
......
package com.ibiz.core.module2.valuerule.validator.im;
import lombok.extern.slf4j.Slf4j;
import com.ibiz.util.valuerule.DefaultValueRule;
import com.ibiz.util.valuerule.VRCondition;
import com.ibiz.util.valuerule.condition.*;
import com.ibiz.core.module2.valuerule.anno.im.IMCreateManDefault;
import org.springframework.stereotype.Component;
import org.springframework.validation.Errors;
import org.springframework.validation.Validator;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
......@@ -8,19 +19,6 @@ import java.math.BigInteger;
import java.util.HashMap;
import java.math.BigDecimal;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import org.springframework.validation.Errors;
import org.springframework.validation.Validator;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import com.ibiz.util.valuerule.DefaultValueRule;
import com.ibiz.util.valuerule.VRCondition;
import com.ibiz.util.valuerule.condition.*;
import com.ibiz.core.module2.valuerule.anno.im.IMCreateManDefault;
import com.ibiz.util.log.IBIZLog;
/**
* 值规则注解解析类
......@@ -30,7 +28,6 @@ import com.ibiz.util.log.IBIZLog;
* 值规则信息:内容长度必须小于等于[60]
*/
@Slf4j
@IBIZLog
@Component("IMCreateManDefaultValidator")
public class IMCreateManDefaultValidator implements ConstraintValidator<IMCreateManDefault, String>,Validator {
private static final String MESSAGE = "值规则校验失败:【内容长度必须小于等于[60]】";
......
package com.ibiz.core.module2.valuerule.validator.im;
import lombok.extern.slf4j.Slf4j;
import com.ibiz.util.valuerule.DefaultValueRule;
import com.ibiz.util.valuerule.VRCondition;
import com.ibiz.util.valuerule.condition.*;
import com.ibiz.core.module2.valuerule.anno.im.IMHjcdDefault;
import org.springframework.stereotype.Component;
import org.springframework.validation.Errors;
import org.springframework.validation.Validator;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
......@@ -8,19 +19,6 @@ import java.math.BigInteger;
import java.util.HashMap;
import java.math.BigDecimal;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import org.springframework.validation.Errors;
import org.springframework.validation.Validator;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import com.ibiz.util.valuerule.DefaultValueRule;
import com.ibiz.util.valuerule.VRCondition;
import com.ibiz.util.valuerule.condition.*;
import com.ibiz.core.module2.valuerule.anno.im.IMHjcdDefault;
import com.ibiz.util.log.IBIZLog;
/**
* 值规则注解解析类
......@@ -30,7 +28,6 @@ import com.ibiz.util.log.IBIZLog;
* 值规则信息:内容长度必须小于等于[60]
*/
@Slf4j
@IBIZLog
@Component("IMHjcdDefaultValidator")
public class IMHjcdDefaultValidator implements ConstraintValidator<IMHjcdDefault, String>,Validator {
private static final String MESSAGE = "值规则校验失败:【内容长度必须小于等于[60]】";
......
package com.ibiz.core.module2.valuerule.validator.im;
import lombok.extern.slf4j.Slf4j;
import com.ibiz.util.valuerule.DefaultValueRule;
import com.ibiz.util.valuerule.VRCondition;
import com.ibiz.util.valuerule.condition.*;
import com.ibiz.core.module2.valuerule.anno.im.IMHqbmDefault;
import org.springframework.stereotype.Component;
import org.springframework.validation.Errors;
import org.springframework.validation.Validator;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
......@@ -8,19 +19,6 @@ import java.math.BigInteger;
import java.util.HashMap;
import java.math.BigDecimal;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import org.springframework.validation.Errors;
import org.springframework.validation.Validator;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import com.ibiz.util.valuerule.DefaultValueRule;
import com.ibiz.util.valuerule.VRCondition;
import com.ibiz.util.valuerule.condition.*;
import com.ibiz.core.module2.valuerule.anno.im.IMHqbmDefault;
import com.ibiz.util.log.IBIZLog;
/**
* 值规则注解解析类
......@@ -30,7 +28,6 @@ import com.ibiz.util.log.IBIZLog;
* 值规则信息:内容长度必须小于等于[1000]
*/
@Slf4j
@IBIZLog
@Component("IMHqbmDefaultValidator")
public class IMHqbmDefaultValidator implements ConstraintValidator<IMHqbmDefault, String>,Validator {
private static final String MESSAGE = "值规则校验失败:【内容长度必须小于等于[1000]】";
......
package com.ibiz.core.module2.valuerule.validator.im;
import lombok.extern.slf4j.Slf4j;
import com.ibiz.util.valuerule.DefaultValueRule;
import com.ibiz.util.valuerule.VRCondition;
import com.ibiz.util.valuerule.condition.*;
import com.ibiz.core.module2.valuerule.anno.im.IMHqbmidsDefault;
import org.springframework.stereotype.Component;
import org.springframework.validation.Errors;
import org.springframework.validation.Validator;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
......@@ -8,19 +19,6 @@ import java.math.BigInteger;
import java.util.HashMap;
import java.math.BigDecimal;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import org.springframework.validation.Errors;
import org.springframework.validation.Validator;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import com.ibiz.util.valuerule.DefaultValueRule;
import com.ibiz.util.valuerule.VRCondition;
import com.ibiz.util.valuerule.condition.*;
import com.ibiz.core.module2.valuerule.anno.im.IMHqbmidsDefault;
import com.ibiz.util.log.IBIZLog;
/**
* 值规则注解解析类
......@@ -30,7 +28,6 @@ import com.ibiz.util.log.IBIZLog;
* 值规则信息:内容长度必须小于等于[1000]
*/
@Slf4j
@IBIZLog
@Component("IMHqbmidsDefaultValidator")
public class IMHqbmidsDefaultValidator implements ConstraintValidator<IMHqbmidsDefault, String>,Validator {
private static final String MESSAGE = "值规则校验失败:【内容长度必须小于等于[1000]】";
......
package com.ibiz.core.module2.valuerule.validator.im;
import lombok.extern.slf4j.Slf4j;
import com.ibiz.util.valuerule.DefaultValueRule;
import com.ibiz.util.valuerule.VRCondition;
import com.ibiz.util.valuerule.condition.*;
import com.ibiz.core.module2.valuerule.anno.im.IMIMIdDefault;
import org.springframework.stereotype.Component;
import org.springframework.validation.Errors;
import org.springframework.validation.Validator;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
......@@ -8,19 +19,6 @@ import java.math.BigInteger;
import java.util.HashMap;
import java.math.BigDecimal;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import org.springframework.validation.Errors;
import org.springframework.validation.Validator;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import com.ibiz.util.valuerule.DefaultValueRule;
import com.ibiz.util.valuerule.VRCondition;
import com.ibiz.util.valuerule.condition.*;
import com.ibiz.core.module2.valuerule.anno.im.IMIMIdDefault;
import com.ibiz.util.log.IBIZLog;
/**
* 值规则注解解析类
......@@ -30,7 +28,6 @@ import com.ibiz.util.log.IBIZLog;
* 值规则信息:内容长度必须小于等于[100]
*/
@Slf4j
@IBIZLog
@Component("IMIMIdDefaultValidator")
public class IMIMIdDefaultValidator implements ConstraintValidator<IMIMIdDefault, String>,Validator {
private static final String MESSAGE = "值规则校验失败:【内容长度必须小于等于[100]】";
......
package com.ibiz.core.module2.valuerule.validator.im;
import lombok.extern.slf4j.Slf4j;
import com.ibiz.util.valuerule.DefaultValueRule;
import com.ibiz.util.valuerule.VRCondition;
import com.ibiz.util.valuerule.condition.*;
import com.ibiz.core.module2.valuerule.anno.im.IMIMNameDefault;
import org.springframework.stereotype.Component;
import org.springframework.validation.Errors;
import org.springframework.validation.Validator;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
......@@ -8,19 +19,6 @@ import java.math.BigInteger;
import java.util.HashMap;
import java.math.BigDecimal;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import org.springframework.validation.Errors;
import org.springframework.validation.Validator;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import com.ibiz.util.valuerule.DefaultValueRule;
import com.ibiz.util.valuerule.VRCondition;
import com.ibiz.util.valuerule.condition.*;
import com.ibiz.core.module2.valuerule.anno.im.IMIMNameDefault;
import com.ibiz.util.log.IBIZLog;
/**
* 值规则注解解析类
......@@ -30,7 +28,6 @@ import com.ibiz.util.log.IBIZLog;
* 值规则信息:内容长度必须小于等于[200]
*/
@Slf4j
@IBIZLog
@Component("IMIMNameDefaultValidator")
public class IMIMNameDefaultValidator implements ConstraintValidator<IMIMNameDefault, String>,Validator {
private static final String MESSAGE = "值规则校验失败:【内容长度必须小于等于[200]】";
......
package com.ibiz.core.module2.valuerule.validator.im;
import lombok.extern.slf4j.Slf4j;
import com.ibiz.util.valuerule.DefaultValueRule;
import com.ibiz.util.valuerule.VRCondition;
import com.ibiz.util.valuerule.condition.*;
import com.ibiz.core.module2.valuerule.anno.im.IMImwfstateDefault;
import org.springframework.stereotype.Component;
import org.springframework.validation.Errors;
import org.springframework.validation.Validator;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
......@@ -8,19 +19,6 @@ import java.math.BigInteger;
import java.util.HashMap;
import java.math.BigDecimal;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import org.springframework.validation.Errors;
import org.springframework.validation.Validator;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import com.ibiz.util.valuerule.DefaultValueRule;
import com.ibiz.util.valuerule.VRCondition;
import com.ibiz.util.valuerule.condition.*;
import com.ibiz.core.module2.valuerule.anno.im.IMImwfstateDefault;
import com.ibiz.util.log.IBIZLog;
/**
* 值规则注解解析类
......@@ -30,7 +28,6 @@ import com.ibiz.util.log.IBIZLog;
* 值规则信息:内容长度必须小于等于[60]
*/
@Slf4j
@IBIZLog
@Component("IMImwfstateDefaultValidator")
public class IMImwfstateDefaultValidator implements ConstraintValidator<IMImwfstateDefault, String>,Validator {
private static final String MESSAGE = "值规则校验失败:【内容长度必须小于等于[60]】";
......
package com.ibiz.core.module2.valuerule.validator.im;
import lombok.extern.slf4j.Slf4j;
import com.ibiz.util.valuerule.DefaultValueRule;
import com.ibiz.util.valuerule.VRCondition;
import com.ibiz.util.valuerule.condition.*;
import com.ibiz.core.module2.valuerule.anno.im.IMJjyyDefault;
import org.springframework.stereotype.Component;
import org.springframework.validation.Errors;
import org.springframework.validation.Validator;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
......@@ -8,19 +19,6 @@ import java.math.BigInteger;
import java.util.HashMap;
import java.math.BigDecimal;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import org.springframework.validation.Errors;
import org.springframework.validation.Validator;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import com.ibiz.util.valuerule.DefaultValueRule;
import com.ibiz.util.valuerule.VRCondition;
import com.ibiz.util.valuerule.condition.*;
import com.ibiz.core.module2.valuerule.anno.im.IMJjyyDefault;
import com.ibiz.util.log.IBIZLog;
/**
* 值规则注解解析类
......@@ -30,7 +28,6 @@ import com.ibiz.util.log.IBIZLog;
* 值规则信息:内容长度必须小于等于[100]
*/
@Slf4j
@IBIZLog
@Component("IMJjyyDefaultValidator")
public class IMJjyyDefaultValidator implements ConstraintValidator<IMJjyyDefault, String>,Validator {
private static final String MESSAGE = "值规则校验失败:【内容长度必须小于等于[100]】";
......
package com.ibiz.core.module2.valuerule.validator.im;
import lombok.extern.slf4j.Slf4j;
import com.ibiz.util.valuerule.DefaultValueRule;
import com.ibiz.util.valuerule.VRCondition;
import com.ibiz.util.valuerule.condition.*;
import com.ibiz.core.module2.valuerule.anno.im.IMKgsbmDefault;
import org.springframework.stereotype.Component;
import org.springframework.validation.Errors;
import org.springframework.validation.Validator;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
......@@ -8,19 +19,6 @@ import java.math.BigInteger;
import java.util.HashMap;
import java.math.BigDecimal;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import org.springframework.validation.Errors;
import org.springframework.validation.Validator;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import com.ibiz.util.valuerule.DefaultValueRule;
import com.ibiz.util.valuerule.VRCondition;
import com.ibiz.util.valuerule.condition.*;
import com.ibiz.core.module2.valuerule.anno.im.IMKgsbmDefault;
import com.ibiz.util.log.IBIZLog;
/**
* 值规则注解解析类
......@@ -30,7 +28,6 @@ import com.ibiz.util.log.IBIZLog;
* 值规则信息:内容长度必须小于等于[1000]
*/
@Slf4j
@IBIZLog
@Component("IMKgsbmDefaultValidator")
public class IMKgsbmDefaultValidator implements ConstraintValidator<IMKgsbmDefault, String>,Validator {
private static final String MESSAGE = "值规则校验失败:【内容长度必须小于等于[1000]】";
......
package com.ibiz.core.module2.valuerule.validator.im;
import lombok.extern.slf4j.Slf4j;
import com.ibiz.util.valuerule.DefaultValueRule;
import com.ibiz.util.valuerule.VRCondition;
import com.ibiz.util.valuerule.condition.*;
import com.ibiz.core.module2.valuerule.anno.im.IMKgsbmidsDefault;
import org.springframework.stereotype.Component;
import org.springframework.validation.Errors;
import org.springframework.validation.Validator;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
......@@ -8,19 +19,6 @@ import java.math.BigInteger;
import java.util.HashMap;
import java.math.BigDecimal;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import org.springframework.validation.Errors;
import org.springframework.validation.Validator;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import com.ibiz.util.valuerule.DefaultValueRule;
import com.ibiz.util.valuerule.VRCondition;
import com.ibiz.util.valuerule.condition.*;
import com.ibiz.core.module2.valuerule.anno.im.IMKgsbmidsDefault;
import com.ibiz.util.log.IBIZLog;
/**
* 值规则注解解析类
......@@ -30,7 +28,6 @@ import com.ibiz.util.log.IBIZLog;
* 值规则信息:内容长度必须小于等于[1000]
*/
@Slf4j
@IBIZLog
@Component("IMKgsbmidsDefaultValidator")
public class IMKgsbmidsDefaultValidator implements ConstraintValidator<IMKgsbmidsDefault, String>,Validator {
private static final String MESSAGE = "值规则校验失败:【内容长度必须小于等于[1000]】";
......
package com.ibiz.core.module2.valuerule.validator.im;
import lombok.extern.slf4j.Slf4j;
import com.ibiz.util.valuerule.DefaultValueRule;
import com.ibiz.util.valuerule.VRCondition;
import com.ibiz.util.valuerule.condition.*;
import com.ibiz.core.module2.valuerule.anno.im.IMKgsldDefault;
import org.springframework.stereotype.Component;
import org.springframework.validation.Errors;
import org.springframework.validation.Validator;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
......@@ -8,19 +19,6 @@ import java.math.BigInteger;
import java.util.HashMap;
import java.math.BigDecimal;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import org.springframework.validation.Errors;
import org.springframework.validation.Validator;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import com.ibiz.util.valuerule.DefaultValueRule;
import com.ibiz.util.valuerule.VRCondition;
import com.ibiz.util.valuerule.condition.*;
import com.ibiz.core.module2.valuerule.anno.im.IMKgsldDefault;
import com.ibiz.util.log.IBIZLog;
/**
* 值规则注解解析类
......@@ -30,7 +28,6 @@ import com.ibiz.util.log.IBIZLog;
* 值规则信息:内容长度必须小于等于[500]
*/
@Slf4j
@IBIZLog
@Component("IMKgsldDefaultValidator")
public class IMKgsldDefaultValidator implements ConstraintValidator<IMKgsldDefault, String>,Validator {
private static final String MESSAGE = "值规则校验失败:【内容长度必须小于等于[500]】";
......
package com.ibiz.core.module2.valuerule.validator.im;
import lombok.extern.slf4j.Slf4j;
import com.ibiz.util.valuerule.DefaultValueRule;
import com.ibiz.util.valuerule.VRCondition;
import com.ibiz.util.valuerule.condition.*;
import com.ibiz.core.module2.valuerule.anno.im.IMKgsldidsDefault;
import org.springframework.stereotype.Component;
import org.springframework.validation.Errors;
import org.springframework.validation.Validator;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
......@@ -8,19 +19,6 @@ import java.math.BigInteger;
import java.util.HashMap;
import java.math.BigDecimal;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import org.springframework.validation.Errors;
import org.springframework.validation.Validator;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import com.ibiz.util.valuerule.DefaultValueRule;
import com.ibiz.util.valuerule.VRCondition;
import com.ibiz.util.valuerule.condition.*;
import com.ibiz.core.module2.valuerule.anno.im.IMKgsldidsDefault;
import com.ibiz.util.log.IBIZLog;
/**
* 值规则注解解析类
......@@ -30,7 +28,6 @@ import com.ibiz.util.log.IBIZLog;
* 值规则信息:内容长度必须小于等于[500]
*/
@Slf4j
@IBIZLog
@Component("IMKgsldidsDefaultValidator")
public class IMKgsldidsDefaultValidator implements ConstraintValidator<IMKgsldidsDefault, String>,Validator {
private static final String MESSAGE = "值规则校验失败:【内容长度必须小于等于[500]】";
......
package com.ibiz.core.module2.valuerule.validator.im;
import lombok.extern.slf4j.Slf4j;
import com.ibiz.util.valuerule.DefaultValueRule;
import com.ibiz.util.valuerule.VRCondition;
import com.ibiz.util.valuerule.condition.*;
import com.ibiz.core.module2.valuerule.anno.im.IMLcbhDefault;
import org.springframework.stereotype.Component;
import org.springframework.validation.Errors;
import org.springframework.validation.Validator;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
......@@ -8,19 +19,6 @@ import java.math.BigInteger;
import java.util.HashMap;
import java.math.BigDecimal;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import org.springframework.validation.Errors;
import org.springframework.validation.Validator;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import com.ibiz.util.valuerule.DefaultValueRule;
import com.ibiz.util.valuerule.VRCondition;
import com.ibiz.util.valuerule.condition.*;
import com.ibiz.core.module2.valuerule.anno.im.IMLcbhDefault;
import com.ibiz.util.log.IBIZLog;
/**
* 值规则注解解析类
......@@ -30,7 +28,6 @@ import com.ibiz.util.log.IBIZLog;
* 值规则信息:内容长度必须小于等于[100]
*/
@Slf4j
@IBIZLog
@Component("IMLcbhDefaultValidator")
public class IMLcbhDefaultValidator implements ConstraintValidator<IMLcbhDefault, String>,Validator {
private static final String MESSAGE = "值规则校验失败:【内容长度必须小于等于[100]】";
......
package com.ibiz.core.module2.valuerule.validator.im;
import lombok.extern.slf4j.Slf4j;
import com.ibiz.util.valuerule.DefaultValueRule;
import com.ibiz.util.valuerule.VRCondition;
import com.ibiz.util.valuerule.condition.*;
import com.ibiz.core.module2.valuerule.anno.im.IMLdDefault;
import org.springframework.stereotype.Component;
import org.springframework.validation.Errors;
import org.springframework.validation.Validator;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
......@@ -8,19 +19,6 @@ import java.math.BigInteger;
import java.util.HashMap;
import java.math.BigDecimal;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import org.springframework.validation.Errors;
import org.springframework.validation.Validator;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import com.ibiz.util.valuerule.DefaultValueRule;
import com.ibiz.util.valuerule.VRCondition;
import com.ibiz.util.valuerule.condition.*;
import com.ibiz.core.module2.valuerule.anno.im.IMLdDefault;
import com.ibiz.util.log.IBIZLog;
/**
* 值规则注解解析类
......@@ -30,7 +28,6 @@ import com.ibiz.util.log.IBIZLog;
* 值规则信息:内容长度必须小于等于[500]
*/
@Slf4j
@IBIZLog
@Component("IMLdDefaultValidator")
public class IMLdDefaultValidator implements ConstraintValidator<IMLdDefault, String>,Validator {
private static final String MESSAGE = "值规则校验失败:【内容长度必须小于等于[500]】";
......
package com.ibiz.core.module2.valuerule.validator.im;
import lombok.extern.slf4j.Slf4j;
import com.ibiz.util.valuerule.DefaultValueRule;
import com.ibiz.util.valuerule.VRCondition;
import com.ibiz.util.valuerule.condition.*;
import com.ibiz.core.module2.valuerule.anno.im.IMLdidsDefault;
import org.springframework.stereotype.Component;
import org.springframework.validation.Errors;
import org.springframework.validation.Validator;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
......@@ -8,19 +19,6 @@ import java.math.BigInteger;
import java.util.HashMap;
import java.math.BigDecimal;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import org.springframework.validation.Errors;
import org.springframework.validation.Validator;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import com.ibiz.util.valuerule.DefaultValueRule;
import com.ibiz.util.valuerule.VRCondition;
import com.ibiz.util.valuerule.condition.*;
import com.ibiz.core.module2.valuerule.anno.im.IMLdidsDefault;
import com.ibiz.util.log.IBIZLog;
/**
* 值规则注解解析类
......@@ -30,7 +28,6 @@ import com.ibiz.util.log.IBIZLog;
* 值规则信息:内容长度必须小于等于[500]
*/
@Slf4j
@IBIZLog
@Component("IMLdidsDefaultValidator")
public class IMLdidsDefaultValidator implements ConstraintValidator<IMLdidsDefault, String>,Validator {
private static final String MESSAGE = "值规则校验失败:【内容长度必须小于等于[500]】";
......
package com.ibiz.core.module2.valuerule.validator.im;
import lombok.extern.slf4j.Slf4j;
import com.ibiz.util.valuerule.DefaultValueRule;
import com.ibiz.util.valuerule.VRCondition;
import com.ibiz.util.valuerule.condition.*;
import com.ibiz.core.module2.valuerule.anno.im.IMNgrqDefault;
import org.springframework.stereotype.Component;
import org.springframework.validation.Errors;
import org.springframework.validation.Validator;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
......@@ -8,19 +19,6 @@ import java.math.BigInteger;
import java.util.HashMap;
import java.math.BigDecimal;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import org.springframework.validation.Errors;
import org.springframework.validation.Validator;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import com.ibiz.util.valuerule.DefaultValueRule;
import com.ibiz.util.valuerule.VRCondition;
import com.ibiz.util.valuerule.condition.*;
import com.ibiz.core.module2.valuerule.anno.im.IMNgrqDefault;
import com.ibiz.util.log.IBIZLog;
/**
* 值规则注解解析类
......@@ -30,7 +28,6 @@ import com.ibiz.util.log.IBIZLog;
* 值规则信息:默认规则
*/
@Slf4j
@IBIZLog
@Component("IMNgrqDefaultValidator")
public class IMNgrqDefaultValidator implements ConstraintValidator<IMNgrqDefault, Timestamp>,Validator {
private static final String MESSAGE = "值规则校验失败:【默认规则】";
......
package com.ibiz.core.module2.valuerule.validator.im;
import lombok.extern.slf4j.Slf4j;
import com.ibiz.util.valuerule.DefaultValueRule;
import com.ibiz.util.valuerule.VRCondition;
import com.ibiz.util.valuerule.condition.*;
import com.ibiz.core.module2.valuerule.anno.im.IMNgshDefault;
import org.springframework.stereotype.Component;
import org.springframework.validation.Errors;
import org.springframework.validation.Validator;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
......@@ -8,19 +19,6 @@ import java.math.BigInteger;
import java.util.HashMap;
import java.math.BigDecimal;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import org.springframework.validation.Errors;
import org.springframework.validation.Validator;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import com.ibiz.util.valuerule.DefaultValueRule;
import com.ibiz.util.valuerule.VRCondition;
import com.ibiz.util.valuerule.condition.*;
import com.ibiz.core.module2.valuerule.anno.im.IMNgshDefault;
import com.ibiz.util.log.IBIZLog;
/**
* 值规则注解解析类
......@@ -30,7 +28,6 @@ import com.ibiz.util.log.IBIZLog;
* 值规则信息:内容长度必须小于等于[1000]
*/
@Slf4j
@IBIZLog
@Component("IMNgshDefaultValidator")
public class IMNgshDefaultValidator implements ConstraintValidator<IMNgshDefault, String>,Validator {
private static final String MESSAGE = "值规则校验失败:【内容长度必须小于等于[1000]】";
......
package com.ibiz.core.module2.valuerule.validator.im;
import lombok.extern.slf4j.Slf4j;
import com.ibiz.util.valuerule.DefaultValueRule;
import com.ibiz.util.valuerule.VRCondition;
import com.ibiz.util.valuerule.condition.*;
import com.ibiz.core.module2.valuerule.anno.im.IMNgshidsDefault;
import org.springframework.stereotype.Component;
import org.springframework.validation.Errors;
import org.springframework.validation.Validator;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
......@@ -8,19 +19,6 @@ import java.math.BigInteger;
import java.util.HashMap;
import java.math.BigDecimal;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import org.springframework.validation.Errors;
import org.springframework.validation.Validator;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import com.ibiz.util.valuerule.DefaultValueRule;
import com.ibiz.util.valuerule.VRCondition;
import com.ibiz.util.valuerule.condition.*;
import com.ibiz.core.module2.valuerule.anno.im.IMNgshidsDefault;
import com.ibiz.util.log.IBIZLog;
/**
* 值规则注解解析类
......@@ -30,7 +28,6 @@ import com.ibiz.util.log.IBIZLog;
* 值规则信息:内容长度必须小于等于[1000]
*/
@Slf4j
@IBIZLog
@Component("IMNgshidsDefaultValidator")
public class IMNgshidsDefaultValidator implements ConstraintValidator<IMNgshidsDefault, String>,Validator {
private static final String MESSAGE = "值规则校验失败:【内容长度必须小于等于[1000]】";
......
package com.ibiz.core.module2.valuerule.validator.im;
import lombok.extern.slf4j.Slf4j;
import com.ibiz.util.valuerule.DefaultValueRule;
import com.ibiz.util.valuerule.VRCondition;
import com.ibiz.util.valuerule.condition.*;
import com.ibiz.core.module2.valuerule.anno.im.IMQttzyddxDefault;
import org.springframework.stereotype.Component;
import org.springframework.validation.Errors;
import org.springframework.validation.Validator;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
......@@ -8,19 +19,6 @@ import java.math.BigInteger;
import java.util.HashMap;
import java.math.BigDecimal;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import org.springframework.validation.Errors;
import org.springframework.validation.Validator;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import com.ibiz.util.valuerule.DefaultValueRule;
import com.ibiz.util.valuerule.VRCondition;
import com.ibiz.util.valuerule.condition.*;
import com.ibiz.core.module2.valuerule.anno.im.IMQttzyddxDefault;
import com.ibiz.util.log.IBIZLog;
/**
* 值规则注解解析类
......@@ -30,7 +28,6 @@ import com.ibiz.util.log.IBIZLog;
* 值规则信息:内容长度必须小于等于[1000]
*/
@Slf4j
@IBIZLog
@Component("IMQttzyddxDefaultValidator")
public class IMQttzyddxDefaultValidator implements ConstraintValidator<IMQttzyddxDefault, String>,Validator {
private static final String MESSAGE = "值规则校验失败:【内容长度必须小于等于[1000]】";
......
package com.ibiz.core.module2.valuerule.validator.im;
import lombok.extern.slf4j.Slf4j;
import com.ibiz.util.valuerule.DefaultValueRule;
import com.ibiz.util.valuerule.VRCondition;
import com.ibiz.util.valuerule.condition.*;
import com.ibiz.core.module2.valuerule.anno.im.IMSblbDefault;
import org.springframework.stereotype.Component;
import org.springframework.validation.Errors;
import org.springframework.validation.Validator;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
......@@ -8,19 +19,6 @@ import java.math.BigInteger;
import java.util.HashMap;
import java.math.BigDecimal;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import org.springframework.validation.Errors;
import org.springframework.validation.Validator;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import com.ibiz.util.valuerule.DefaultValueRule;
import com.ibiz.util.valuerule.VRCondition;
import com.ibiz.util.valuerule.condition.*;
import com.ibiz.core.module2.valuerule.anno.im.IMSblbDefault;
import com.ibiz.util.log.IBIZLog;
/**
* 值规则注解解析类
......@@ -30,7 +28,6 @@ import com.ibiz.util.log.IBIZLog;
* 值规则信息:内容长度必须小于等于[60]
*/
@Slf4j
@IBIZLog
@Component("IMSblbDefaultValidator")
public class IMSblbDefaultValidator implements ConstraintValidator<IMSblbDefault, String>,Validator {
private static final String MESSAGE = "值规则校验失败:【内容长度必须小于等于[60]】";
......
package com.ibiz.core.module2.valuerule.validator.im;
import lombok.extern.slf4j.Slf4j;
import com.ibiz.util.valuerule.DefaultValueRule;
import com.ibiz.util.valuerule.VRCondition;
import com.ibiz.util.valuerule.condition.*;
import com.ibiz.core.module2.valuerule.anno.im.IMSblxDefault;
import org.springframework.stereotype.Component;
import org.springframework.validation.Errors;
import org.springframework.validation.Validator;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
......@@ -8,19 +19,6 @@ import java.math.BigInteger;
import java.util.HashMap;
import java.math.BigDecimal;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import org.springframework.validation.Errors;
import org.springframework.validation.Validator;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import com.ibiz.util.valuerule.DefaultValueRule;
import com.ibiz.util.valuerule.VRCondition;
import com.ibiz.util.valuerule.condition.*;
import com.ibiz.core.module2.valuerule.anno.im.IMSblxDefault;
import com.ibiz.util.log.IBIZLog;
/**
* 值规则注解解析类
......@@ -30,7 +28,6 @@ import com.ibiz.util.log.IBIZLog;
* 值规则信息:内容长度必须小于等于[60]
*/
@Slf4j
@IBIZLog
@Component("IMSblxDefaultValidator")
public class IMSblxDefaultValidator implements ConstraintValidator<IMSblxDefault, String>,Validator {
private static final String MESSAGE = "值规则校验失败:【内容长度必须小于等于[60]】";
......
package com.ibiz.core.module2.valuerule.validator.im;
import lombok.extern.slf4j.Slf4j;
import com.ibiz.util.valuerule.DefaultValueRule;
import com.ibiz.util.valuerule.VRCondition;
import com.ibiz.util.valuerule.condition.*;
import com.ibiz.core.module2.valuerule.anno.im.IMSdfsDefault;
import org.springframework.stereotype.Component;
import org.springframework.validation.Errors;
import org.springframework.validation.Validator;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
......@@ -8,19 +19,6 @@ import java.math.BigInteger;
import java.util.HashMap;
import java.math.BigDecimal;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import org.springframework.validation.Errors;
import org.springframework.validation.Validator;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import com.ibiz.util.valuerule.DefaultValueRule;
import com.ibiz.util.valuerule.VRCondition;
import com.ibiz.util.valuerule.condition.*;
import com.ibiz.core.module2.valuerule.anno.im.IMSdfsDefault;
import com.ibiz.util.log.IBIZLog;
/**
* 值规则注解解析类
......@@ -30,7 +28,6 @@ import com.ibiz.util.log.IBIZLog;
* 值规则信息:内容长度必须小于等于[60]
*/
@Slf4j
@IBIZLog
@Component("IMSdfsDefaultValidator")
public class IMSdfsDefaultValidator implements ConstraintValidator<IMSdfsDefault, String>,Validator {
private static final String MESSAGE = "值规则校验失败:【内容长度必须小于等于[60]】";
......
package com.ibiz.core.module2.valuerule.validator.im;
import lombok.extern.slf4j.Slf4j;
import com.ibiz.util.valuerule.DefaultValueRule;
import com.ibiz.util.valuerule.VRCondition;
import com.ibiz.util.valuerule.condition.*;
import com.ibiz.core.module2.valuerule.anno.im.IMShfsDefault;
import org.springframework.stereotype.Component;
import org.springframework.validation.Errors;
import org.springframework.validation.Validator;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
......@@ -8,19 +19,6 @@ import java.math.BigInteger;
import java.util.HashMap;
import java.math.BigDecimal;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import org.springframework.validation.Errors;
import org.springframework.validation.Validator;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import com.ibiz.util.valuerule.DefaultValueRule;
import com.ibiz.util.valuerule.VRCondition;
import com.ibiz.util.valuerule.condition.*;
import com.ibiz.core.module2.valuerule.anno.im.IMShfsDefault;
import com.ibiz.util.log.IBIZLog;
/**
* 值规则注解解析类
......@@ -30,7 +28,6 @@ import com.ibiz.util.log.IBIZLog;
* 值规则信息:内容长度必须小于等于[60]
*/
@Slf4j
@IBIZLog
@Component("IMShfsDefaultValidator")
public class IMShfsDefaultValidator implements ConstraintValidator<IMShfsDefault, String>,Validator {
private static final String MESSAGE = "值规则校验失败:【内容长度必须小于等于[60]】";
......
package com.ibiz.core.module2.valuerule.validator.im;
import lombok.extern.slf4j.Slf4j;
import com.ibiz.util.valuerule.DefaultValueRule;
import com.ibiz.util.valuerule.VRCondition;
import com.ibiz.util.valuerule.condition.*;
import com.ibiz.core.module2.valuerule.anno.im.IMSjbmDefault;
import org.springframework.stereotype.Component;
import org.springframework.validation.Errors;
import org.springframework.validation.Validator;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
......@@ -8,19 +19,6 @@ import java.math.BigInteger;
import java.util.HashMap;
import java.math.BigDecimal;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import org.springframework.validation.Errors;
import org.springframework.validation.Validator;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import com.ibiz.util.valuerule.DefaultValueRule;
import com.ibiz.util.valuerule.VRCondition;
import com.ibiz.util.valuerule.condition.*;
import com.ibiz.core.module2.valuerule.anno.im.IMSjbmDefault;
import com.ibiz.util.log.IBIZLog;
/**
* 值规则注解解析类
......@@ -30,7 +28,6 @@ import com.ibiz.util.log.IBIZLog;
* 值规则信息:默认规则
*/
@Slf4j
@IBIZLog
@Component("IMSjbmDefaultValidator")
public class IMSjbmDefaultValidator implements ConstraintValidator<IMSjbmDefault, Integer>,Validator {
private static final String MESSAGE = "值规则校验失败:【默认规则】";
......
package com.ibiz.core.module2.valuerule.validator.im;
import lombok.extern.slf4j.Slf4j;
import com.ibiz.util.valuerule.DefaultValueRule;
import com.ibiz.util.valuerule.VRCondition;
import com.ibiz.util.valuerule.condition.*;
import com.ibiz.core.module2.valuerule.anno.im.IMTzydDefault;
import org.springframework.stereotype.Component;
import org.springframework.validation.Errors;
import org.springframework.validation.Validator;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
......@@ -8,19 +19,6 @@ import java.math.BigInteger;
import java.util.HashMap;
import java.math.BigDecimal;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import org.springframework.validation.Errors;
import org.springframework.validation.Validator;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import com.ibiz.util.valuerule.DefaultValueRule;
import com.ibiz.util.valuerule.VRCondition;
import com.ibiz.util.valuerule.condition.*;
import com.ibiz.core.module2.valuerule.anno.im.IMTzydDefault;
import com.ibiz.util.log.IBIZLog;
/**
* 值规则注解解析类
......@@ -30,7 +28,6 @@ import com.ibiz.util.log.IBIZLog;
* 值规则信息:默认规则
*/
@Slf4j
@IBIZLog
@Component("IMTzydDefaultValidator")
public class IMTzydDefaultValidator implements ConstraintValidator<IMTzydDefault, Integer>,Validator {
private static final String MESSAGE = "值规则校验失败:【默认规则】";
......
package com.ibiz.core.module2.valuerule.validator.im;
import lombok.extern.slf4j.Slf4j;
import com.ibiz.util.valuerule.DefaultValueRule;
import com.ibiz.util.valuerule.VRCondition;
import com.ibiz.util.valuerule.condition.*;
import com.ibiz.core.module2.valuerule.anno.im.IMTzydyyDefault;
import org.springframework.stereotype.Component;
import org.springframework.validation.Errors;
import org.springframework.validation.Validator;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
......@@ -8,19 +19,6 @@ import java.math.BigInteger;
import java.util.HashMap;
import java.math.BigDecimal;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import org.springframework.validation.Errors;
import org.springframework.validation.Validator;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import com.ibiz.util.valuerule.DefaultValueRule;
import com.ibiz.util.valuerule.VRCondition;
import com.ibiz.util.valuerule.condition.*;
import com.ibiz.core.module2.valuerule.anno.im.IMTzydyyDefault;
import com.ibiz.util.log.IBIZLog;
/**
* 值规则注解解析类
......@@ -30,7 +28,6 @@ import com.ibiz.util.log.IBIZLog;
* 值规则信息:内容长度必须小于等于[100]
*/
@Slf4j
@IBIZLog
@Component("IMTzydyyDefaultValidator")
public class IMTzydyyDefaultValidator implements ConstraintValidator<IMTzydyyDefault, String>,Validator {
private static final String MESSAGE = "值规则校验失败:【内容长度必须小于等于[100]】";
......
package com.ibiz.core.module2.valuerule.validator.im;
import lombok.extern.slf4j.Slf4j;
import com.ibiz.util.valuerule.DefaultValueRule;
import com.ibiz.util.valuerule.VRCondition;
import com.ibiz.util.valuerule.condition.*;
import com.ibiz.core.module2.valuerule.anno.im.IMUpdateDateDefault;
import org.springframework.stereotype.Component;
import org.springframework.validation.Errors;
import org.springframework.validation.Validator;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
......@@ -8,19 +19,6 @@ import java.math.BigInteger;
import java.util.HashMap;
import java.math.BigDecimal;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import org.springframework.validation.Errors;
import org.springframework.validation.Validator;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import com.ibiz.util.valuerule.DefaultValueRule;
import com.ibiz.util.valuerule.VRCondition;
import com.ibiz.util.valuerule.condition.*;
import com.ibiz.core.module2.valuerule.anno.im.IMUpdateDateDefault;
import com.ibiz.util.log.IBIZLog;
/**
* 值规则注解解析类
......@@ -30,7 +28,6 @@ import com.ibiz.util.log.IBIZLog;
* 值规则信息:默认规则
*/
@Slf4j
@IBIZLog
@Component("IMUpdateDateDefaultValidator")
public class IMUpdateDateDefaultValidator implements ConstraintValidator<IMUpdateDateDefault, Timestamp>,Validator {
private static final String MESSAGE = "值规则校验失败:【默认规则】";
......
package com.ibiz.core.module2.valuerule.validator.im;
import lombok.extern.slf4j.Slf4j;
import com.ibiz.util.valuerule.DefaultValueRule;
import com.ibiz.util.valuerule.VRCondition;
import com.ibiz.util.valuerule.condition.*;
import com.ibiz.core.module2.valuerule.anno.im.IMUpdateManDefault;
import org.springframework.stereotype.Component;
import org.springframework.validation.Errors;
import org.springframework.validation.Validator;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
......@@ -8,19 +19,6 @@ import java.math.BigInteger;
import java.util.HashMap;
import java.math.BigDecimal;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import org.springframework.validation.Errors;
import org.springframework.validation.Validator;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import com.ibiz.util.valuerule.DefaultValueRule;
import com.ibiz.util.valuerule.VRCondition;
import com.ibiz.util.valuerule.condition.*;
import com.ibiz.core.module2.valuerule.anno.im.IMUpdateManDefault;
import com.ibiz.util.log.IBIZLog;
/**
* 值规则注解解析类
......@@ -30,7 +28,6 @@ import com.ibiz.util.log.IBIZLog;
* 值规则信息:内容长度必须小于等于[60]
*/
@Slf4j
@IBIZLog
@Component("IMUpdateManDefaultValidator")
public class IMUpdateManDefaultValidator implements ConstraintValidator<IMUpdateManDefault, String>,Validator {
private static final String MESSAGE = "值规则校验失败:【内容长度必须小于等于[60]】";
......
package com.ibiz.core.module2.valuerule.validator.im;
import lombok.extern.slf4j.Slf4j;
import com.ibiz.util.valuerule.DefaultValueRule;
import com.ibiz.util.valuerule.VRCondition;
import com.ibiz.util.valuerule.condition.*;
import com.ibiz.core.module2.valuerule.anno.im.IMWfinstanceidDefault;
import org.springframework.stereotype.Component;
import org.springframework.validation.Errors;
import org.springframework.validation.Validator;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
......@@ -8,19 +19,6 @@ import java.math.BigInteger;
import java.util.HashMap;
import java.math.BigDecimal;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import org.springframework.validation.Errors;
import org.springframework.validation.Validator;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import com.ibiz.util.valuerule.DefaultValueRule;
import com.ibiz.util.valuerule.VRCondition;
import com.ibiz.util.valuerule.condition.*;
import com.ibiz.core.module2.valuerule.anno.im.IMWfinstanceidDefault;
import com.ibiz.util.log.IBIZLog;
/**
* 值规则注解解析类
......@@ -30,7 +28,6 @@ import com.ibiz.util.log.IBIZLog;
* 值规则信息:内容长度必须小于等于[100]
*/
@Slf4j
@IBIZLog
@Component("IMWfinstanceidDefaultValidator")
public class IMWfinstanceidDefaultValidator implements ConstraintValidator<IMWfinstanceidDefault, String>,Validator {
private static final String MESSAGE = "值规则校验失败:【内容长度必须小于等于[100]】";
......
此差异已折叠。
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册