解决warnings,统一处理finally中return的问题
| | |
| | | * 业务数据 |
| | | * Created by wuxw on 2018/4/13. |
| | | */ |
| | | public class Business implements Comparable{ |
| | | public class Business implements Comparable<Business>{ |
| | | |
| | | private String bId; |
| | | |
| | |
| | | } |
| | | |
| | | @Override |
| | | public int compareTo(Object o) { |
| | | Business otherBusiness = (Business)o; |
| | | public int compareTo(Business otherBusiness) { |
| | | if(this.getSeq() > otherBusiness.getSeq()) { |
| | | return -1; |
| | | } |
| | |
| | | * 对应商户 过程表 bo_merchant |
| | | * Created by wuxw on 2017/5/20. |
| | | */ |
| | | public class BoMerchant extends DefaultBoEntity implements Comparable{ |
| | | public class BoMerchant extends DefaultBoEntity implements Comparable<BoMerchant>{ |
| | | |
| | | private String boId; |
| | | |
| | |
| | | * @return |
| | | */ |
| | | @Override |
| | | public int compareTo(Object o) { |
| | | public int compareTo(BoMerchant otherBoMerchant) { |
| | | |
| | | BoMerchant otherBoMerchant = (BoMerchant)o; |
| | | if("DEL".equals(this.getState()) && "ADD".equals(otherBoMerchant.getState())) { |
| | | return -1; |
| | | } |
| | |
| | | * 商户属性表 bo_merchant_type |
| | | * Created by wuxw on 2017/5/20. |
| | | */ |
| | | public class BoMerchantAttr extends DefaultBoAttrEntity implements Comparable { |
| | | public class BoMerchantAttr extends DefaultBoAttrEntity implements Comparable<BoMerchantAttr> { |
| | | |
| | | private String boId; |
| | | |
| | |
| | | } |
| | | |
| | | @Override |
| | | public int compareTo(Object o) { |
| | | BoMerchantAttr otherBoMerchant = (BoMerchantAttr)o; |
| | | public int compareTo(BoMerchantAttr otherBoMerchant) { |
| | | if("DEL".equals(this.getState()) && "ADD".equals(otherBoMerchant.getState())) { |
| | | return -1; |
| | | } |
| | |
| | | * @create 2019-02-05 上午11:27 |
| | | * @desc 订单项 对应表c_business |
| | | **/ |
| | | public class Business extends BusinessPlus implements Comparable{ |
| | | public class Business extends BusinessPlus implements Comparable<Business>{ |
| | | |
| | | |
| | | /** |
| | |
| | | } |
| | | |
| | | @Override |
| | | public int compareTo(Object o) { |
| | | Business otherBusiness = (Business)o; |
| | | public int compareTo(Business otherBusiness) { |
| | | if(this.getSeq() < otherBusiness.getSeq()) { |
| | | return -1; |
| | | } |
| | |
| | | /** |
| | | * Created by wuxw on 2017/5/20. |
| | | */ |
| | | public class BoProduct extends Product implements Comparable{ |
| | | public class BoProduct extends Product implements Comparable<BoProduct>{ |
| | | |
| | | private String boId; |
| | | |
| | |
| | | * @return |
| | | */ |
| | | @Override |
| | | public int compareTo(Object o) { |
| | | public int compareTo(BoProduct otherBoProduct) { |
| | | |
| | | BoProduct otherBoProduct = (BoProduct)o; |
| | | if("DEL".equals(this.getState()) && "ADD".equals(otherBoProduct.getState())) { |
| | | return -1; |
| | | } |
| | |
| | | package com.java110.entity.product; |
| | | |
| | | import com.java110.entity.product.BoProductAttr; |
| | | import com.java110.entity.product.ProductAttr; |
| | | |
| | | /** |
| | | * |
| | |
| | | * |
| | | * Created by wuxw on 2017/5/20. |
| | | */ |
| | | public class BoProductAttr extends ProductAttr implements Comparable{ |
| | | public class BoProductAttr extends ProductAttr implements Comparable<BoProductAttr>{ |
| | | |
| | | private String boId; |
| | | |
| | |
| | | } |
| | | |
| | | @Override |
| | | public int compareTo(Object o) { |
| | | BoProductAttr otherBoProduct = (BoProductAttr)o; |
| | | public int compareTo(BoProductAttr otherBoProduct) { |
| | | if("DEL".equals(this.getState()) && "ADD".equals(otherBoProduct.getState())) { |
| | | return -1; |
| | | } |
| | |
| | | * 主要用于新建客户,更新客户,删除客户时,保存到以bo开头的过程表 实体 |
| | | * Created by wuxw on 2016/12/27. |
| | | */ |
| | | public class BoCust extends DefaultBoEntity implements Comparable { |
| | | public class BoCust extends DefaultBoEntity implements Comparable<BoCust> { |
| | | |
| | | |
| | | private final static String CUST_TYPE_GENERAL= "1";// 普通客户 |
| | |
| | | * @return |
| | | */ |
| | | @Override |
| | | public int compareTo(Object o) { |
| | | public int compareTo(BoCust otherBoCust) { |
| | | |
| | | BoCust otherBoCust = (BoCust)o; |
| | | if("DEL".equals(this.getState()) && "ADD".equals(otherBoCust.getState())) { |
| | | return -1; |
| | | } |
| | |
| | | * 客户属性表(过程表) |
| | | * Created by wuxw on 2016/12/27. |
| | | */ |
| | | public class BoCustAttr extends DefaultBoAttrEntity implements Comparable{ |
| | | public class BoCustAttr extends DefaultBoAttrEntity implements Comparable<BoCustAttr>{ |
| | | |
| | | private String custId; |
| | | |
| | |
| | | } |
| | | |
| | | @Override |
| | | public int compareTo(Object o) { |
| | | BoCustAttr otherBoCust = (BoCustAttr)o; |
| | | public int compareTo(BoCustAttr otherBoCust) { |
| | | if("DEL".equals(this.getState()) && "ADD".equals(otherBoCust.getState())) { |
| | | return -1; |
| | | } |
| | |
| | | * @param t 对象分装 |
| | | * @return ResponseEntity对象 |
| | | */ |
| | | public final <T> T businessProcess(T t, Class clazz) { |
| | | public final <T> T businessProcess(T t, Class<?> clazz) { |
| | | |
| | | |
| | | return null; |
| | |
| | | responseEntity = new ResponseEntity<String>(e.getMessage(), HttpStatus.INTERNAL_SERVER_ERROR); |
| | | } finally { |
| | | logger.debug("请求地址为,{} 请求中心服务信息,{},中心服务返回信息,{}", url, httpEntity, responseEntity); |
| | | return responseEntity; |
| | | } |
| | | |
| | | return responseEntity; |
| | | } |
| | | |
| | | |
| | |
| | | responseEntity = new ResponseEntity<String>("调用组件" + componentCode + ",组件方法" + componentMethod + "失败:" + e.getMessage(), |
| | | HttpStatus.INTERNAL_SERVER_ERROR); |
| | | } finally { |
| | | return responseEntity; |
| | | } |
| | | return responseEntity; |
| | | } |
| | | |
| | | |
| | |
| | | public static void multicastEvent(String actionTypeCd,String orderInfo,String data,String asyn) throws Exception{ |
| | | Class<AppEvent> appEvent = getEvent(actionTypeCd); |
| | | |
| | | Class[] parameterTypes={Object.class,String.class}; |
| | | Class<?>[] parameterTypes={Object.class,String.class}; |
| | | |
| | | Constructor constructor = appEvent.getClass().getConstructor(parameterTypes); |
| | | Constructor<?> constructor = appEvent.getClass().getConstructor(parameterTypes); |
| | | Object[] parameters={orderInfo,data}; |
| | | AppEvent targetAppEvent = (AppEvent)constructor.newInstance(parameters); |
| | | multicastEvent(targetAppEvent,asyn); |
| | |
| | | for(String key : keys){ |
| | | Class<AppEvent> appEvent = getEvent(key); |
| | | |
| | | Class[] parameterTypes={Object.class,AppContext.class,JSONArray.class}; |
| | | Class<?>[] parameterTypes={Object.class,AppContext.class,JSONArray.class}; |
| | | |
| | | Constructor constructor = appEvent.getClass().getConstructor(parameterTypes); |
| | | Constructor<?> constructor = appEvent.getClass().getConstructor(parameterTypes); |
| | | context.setBo_action_type(key); |
| | | Object[] parameters={null,context,data.get(key)}; |
| | | AppEvent targetAppEvent = (AppEvent)constructor.newInstance(parameters); |
| | |
| | | |
| | | Class<AppEvent> appEvent = getEvent(busiOrder.getActionTypeCd()); |
| | | |
| | | Class[] parameterTypes={Object.class,AppContext.class}; |
| | | Class<?>[] parameterTypes={Object.class,AppContext.class}; |
| | | |
| | | Constructor constructor = appEvent.getClass().getConstructor(parameterTypes); |
| | | Constructor<?> constructor = appEvent.getClass().getConstructor(parameterTypes); |
| | | |
| | | Object[] parameters={null,context}; |
| | | |
| | |
| | | |
| | | Class<AppEvent> appEvent = getEvent(busiOrder.getActionTypeCd()); |
| | | |
| | | Class[] parameterTypes={Object.class,AppContext.class}; |
| | | Class<?>[] parameterTypes={Object.class,AppContext.class}; |
| | | |
| | | Constructor constructor = appEvent.getClass().getConstructor(parameterTypes); |
| | | Constructor<?> constructor = appEvent.getClass().getConstructor(parameterTypes); |
| | | |
| | | Object[] parameters={null,context}; |
| | | |
| | |
| | | package com.java110.core.event.init; |
| | | |
| | | import com.java110.utils.factory.ApplicationContextFactory; |
| | | import com.java110.core.event.app.AppEvent; |
| | | import com.java110.core.event.app.AppEventPublishing; |
| | | import com.java110.core.event.app.AppListener; |
| | | import com.java110.core.event.listener.common.CommonDispatchListener; |
| | |
| | | throw new ConfigurationException("配置错误,["+DISPATCH_EVENT+"= "+events+"] 当前 [event = "+event+"],只能有一个 :: ,配置格式为 A::B"); |
| | | } |
| | | |
| | | Class clazz = Class.forName(tmpEvent[1]); |
| | | Class<AppEvent> clazz = (Class<AppEvent>) Class.forName(tmpEvent[1]); |
| | | |
| | | AppEventPublishing.addEvent(tmpEvent[0],clazz); |
| | | } |
| | |
| | | if(!"0".equals(after_method) && !StringUtil.isEmpty(after_method)){ |
| | | |
| | | try { |
| | | Class clazz = commonDispatchAfterMethod.getClass(); |
| | | Class<?> clazz = commonDispatchAfterMethod.getClass(); |
| | | |
| | | Method method = clazz.getDeclaredMethod(after_method,new Class[]{AppContext.class,JSONArray.class,JSONObject.class}); |
| | | |
| | |
| | | } finally { |
| | | logger.debug("请求地址为,{} 请求中心服务信息,{},中心服务返回信息,{}", url, httpEntity, responseEntity); |
| | | logger.debug(url + "调用api耗时:" + (DateUtil.getCurrentDate().getTime() - startTime)); |
| | | |
| | | return responseEntity; |
| | | } |
| | | |
| | | return responseEntity; |
| | | } |
| | | |
| | | |
| | |
| | | <dependency> |
| | | <groupId>org.apache.activemq</groupId> |
| | | <artifactId>activemq-core</artifactId> |
| | | <version>5.7.0</version> |
| | | </dependency> |
| | | |
| | | <dependency> |
| | |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * @ClassName GetNoticesByJava |
| | |
| | | @Override |
| | | public JSONObject execute(DataQuery dataQuery) { |
| | | JSONObject params = dataQuery.getRequestParams(); |
| | | List sqlParams = new ArrayList(); |
| | | List<Object> sqlParams = new ArrayList<Object>(); |
| | | |
| | | String sql = "SELECT nn.`notice_id` noticeId," + |
| | | "nn.`title`," + |
| | |
| | | sqlParams.add(params.get("title")); |
| | | } |
| | | |
| | | List outParam = dataQuery.queryDataBySql(sql,sqlParams); |
| | | List<Map<String, Object>> outParam = dataQuery.queryDataBySql(sql,sqlParams); |
| | | |
| | | JSONObject outObj = new JSONObject(); |
| | | outObj.put("notices", outParam); |
| | |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * @ClassName GetNoticesByJava |
| | |
| | | @Override |
| | | public JSONObject execute(DataQuery dataQuery) { |
| | | JSONObject params = dataQuery.getRequestParams(); |
| | | List sqlParams = new ArrayList(); |
| | | List<Object> sqlParams = new ArrayList<Object>(); |
| | | |
| | | String sql = "SELECT nn.`notice_id` noticeId," + |
| | | "nn.`title`," + |
| | |
| | | sqlParams.add(params.get("title")); |
| | | } |
| | | |
| | | List outParam = dataQuery.queryDataBySql(sql,sqlParams); |
| | | List<Map<String, Object>> outParam = dataQuery.queryDataBySql(sql,sqlParams); |
| | | |
| | | JSONObject outObj = new JSONObject(); |
| | | outObj.put("notices", outParam); |
| | |
| | | |
| | | CtMethod helloM1 = CtNewMethod.make(javaCode2, ctClass); |
| | | ctClass.addMethod(helloM1); |
| | | Class pc=ctClass.toClass(); |
| | | Class<?> pc=ctClass.toClass(); |
| | | //ctClass.writeFile("./1111"); |
| | | Method move= pc.getMethod("testJava1",new Class[]{}); |
| | | |
| | |
| | | ApplicationContextFactory.applicationContext = applicationContext; |
| | | } |
| | | |
| | | public static Object getBean(Class className){ |
| | | public static Object getBean(Class<?> className){ |
| | | return applicationContext.getBean(className); |
| | | } |
| | | |
| | |
| | | static { |
| | | ConvertUtils.register(new Converter() { //注册一个日期转换器 |
| | | |
| | | public Object convert(Class type, Object value) { |
| | | public <T> T convert(Class<T> type, Object value) { |
| | | Date date1 = null; |
| | | if (value instanceof String) { |
| | | String date = (String) value; |
| | |
| | | } catch (ParseException e) { |
| | | e.printStackTrace(); |
| | | } |
| | | return date1; |
| | | return (T) date1; |
| | | } |
| | | return value; |
| | | return (T) value; |
| | | } |
| | | }, Date.class); |
| | | |
| | |
| | | static { |
| | | ConvertUtils.register(new Converter() { //注册一个日期转换器 |
| | | |
| | | public Object convert(Class type, Object value) { |
| | | public <T> T convert(Class<T> type, Object value) { |
| | | Date date1 = null; |
| | | if (value instanceof String) { |
| | | if (value instanceof String && type.getClass().equals(Date.class)) { |
| | | String date = (String) value; |
| | | SimpleDateFormat sdf = null; |
| | | if (date.contains(":")) { |
| | |
| | | } catch (ParseException e) { |
| | | e.printStackTrace(); |
| | | } |
| | | return date1; |
| | | return type.cast(date1); |
| | | } |
| | | return value; |
| | | return null; |
| | | } |
| | | |
| | | }, Date.class); |
| | | |
| | | |
| | |
| | | return dstBean; |
| | | } |
| | | |
| | | private static void objectFieldsPutMap(Object dstBean, BeanMap beanMap, Map orgMap) { |
| | | private static void objectFieldsPutMap(Object dstBean, BeanMap beanMap, Map<String,Object> orgMap) { |
| | | //Field[] fields = dstBean.getClass().getDeclaredFields(); |
| | | Field[] fields = FieldUtils.getAllFields(dstBean.getClass()); |
| | | for (Field field : fields) { |
| | | if (!orgMap.containsKey(field.getName())) { |
| | | continue; |
| | | } |
| | | Class dstClass = field.getType(); |
| | | Class<?> dstClass = field.getType(); |
| | | //System.out.println("字段类型" + dstClass); |
| | | |
| | | Object value = orgMap.get(field.getName()); |
| | |
| | | } |
| | | |
| | | @Override |
| | | protected Object convertToType(Class type, Object value) throws Throwable { |
| | | protected <T> T convertToType(Class<T> type, Object value) throws Throwable { |
| | | //System.out.printf("12313"); |
| | | logger.debug("convertToType当前对象类型start" + value.getClass()); |
| | | |
| | | if (value instanceof Date) { |
| | | return DateUtil.getFormatTimeString((Date) value, DateUtil.DATE_FORMATE_STRING_A); |
| | | if(type.getClass().equals(String.class)) { |
| | | if (value instanceof Date) { |
| | | return type.cast(DateUtil.getFormatTimeString(Date.class.cast(value), DateUtil.DATE_FORMATE_STRING_A)); |
| | | } |
| | | logger.debug("convertToType当前对象类型" + value.getClass()); |
| | | return type.cast(value.toString()); |
| | | }else { |
| | | return null; |
| | | } |
| | | logger.debug("convertToType当前对象类型" + value.getClass()); |
| | | return value.toString(); |
| | | } |
| | | |
| | | @Override |
| | | protected Class getDefaultType() { |
| | | protected Class<?> getDefaultType() { |
| | | return String.class; |
| | | } |
| | | } |
| | |
| | | * @param reqJson |
| | | * @return 如果获取不到则会返回new ArrayList(),不会为null |
| | | */ |
| | | public static List getRuleIdsInGroupByJson(String reqJson,List saopRuleGroupInfoList) |
| | | public static List<Object> getRuleIdsInGroupByJson(String reqJson,List<Object> saopRuleGroupInfoList) |
| | | { |
| | | //获取缓存中规则分组集合 |
| | | //List saopRuleGroupInfoList = RuleUtil.getRuleGroupRelaList(); |
| | | |
| | | //当前分组下的规则编码集合 |
| | | List ruleIdsInCurGroupList = new ArrayList(); |
| | | List<Object> ruleIdsInCurGroupList = new ArrayList<Object>(); |
| | | |
| | | try |
| | | { |
| | |
| | | |
| | | <build> |
| | | <finalName>service-api</finalName> |
| | | <plugins> |
| | | <plugin> |
| | | <groupId>org.apache.maven.plugins</groupId> |
| | | <artifactId>maven-dependency-plugin</artifactId> |
| | | <version>2.10</version> |
| | | <executions> |
| | | <execution> |
| | | <id>unpack</id> |
| | | <phase>generate-resources</phase> |
| | | <goals> |
| | | <goal>unpack</goal> |
| | | </goals> |
| | | <configuration> |
| | | <artifactItems> |
| | | <artifactItem> |
| | | <groupId>com.java110</groupId> |
| | | <artifactId>java110-interface</artifactId> |
| | | <version>${microcommunity.version}</version> |
| | | <type>jar</type> |
| | | <overWrite>true</overWrite> |
| | | <outputDirectory>${project.build.directory}/classes</outputDirectory> |
| | | </artifactItem> |
| | | </artifactItems> |
| | | </configuration> |
| | | </execution> |
| | | </executions> |
| | | </plugin> |
| | | <plugin> |
| | | <groupId>org.springframework.boot</groupId> |
| | | <artifactId>spring-boot-maven-plugin</artifactId> |
| | | <configuration> |
| | | <mainClass>com.java110.api.ApiApplicationStart</mainClass> |
| | | </configuration> |
| | | </plugin> |
| | | <plugin> |
| | | <groupId>org.apache.maven.plugins</groupId> |
| | | <artifactId>maven-javadoc-plugin</artifactId> |
| | | <version>2.10.4</version> |
| | | <configuration> |
| | | <aggregate>true</aggregate> |
| | | <reportOutputDirectory>../javadocs</reportOutputDirectory> |
| | | <destDir>security-javadoc</destDir> |
| | | <javadocExecutable>${java.home}bin/javadoc</javadocExecutable> |
| | | <tags> |
| | | <tag> |
| | | <name>Description</name> |
| | | <placement>a</placement> |
| | | <head>功能描述:</head> |
| | | </tag> |
| | | </tags> |
| | | </configuration> |
| | | </plugin> |
| | | </plugins> |
| | | <pluginManagement> |
| | | <plugins> |
| | | <plugin> |
| | | <groupId>org.apache.maven.plugins</groupId> |
| | | <artifactId>maven-dependency-plugin</artifactId> |
| | | <version>2.10</version> |
| | | <executions> |
| | | <execution> |
| | | <id>unpack</id> |
| | | <phase>generate-resources</phase> |
| | | <goals> |
| | | <goal>unpack</goal> |
| | | </goals> |
| | | <configuration> |
| | | <artifactItems> |
| | | <artifactItem> |
| | | <groupId>com.java110</groupId> |
| | | <artifactId>java110-interface</artifactId> |
| | | <version>${microcommunity.version}</version> |
| | | <type>jar</type> |
| | | <overWrite>true</overWrite> |
| | | <outputDirectory>${project.build.directory}/classes</outputDirectory> |
| | | </artifactItem> |
| | | </artifactItems> |
| | | </configuration> |
| | | </execution> |
| | | </executions> |
| | | </plugin> |
| | | <plugin> |
| | | <groupId>org.springframework.boot</groupId> |
| | | <artifactId>spring-boot-maven-plugin</artifactId> |
| | | <configuration> |
| | | <mainClass>com.java110.api.ApiApplicationStart</mainClass> |
| | | </configuration> |
| | | </plugin> |
| | | <plugin> |
| | | <groupId>org.apache.maven.plugins</groupId> |
| | | <artifactId>maven-javadoc-plugin</artifactId> |
| | | <version>2.10.4</version> |
| | | <configuration> |
| | | <aggregate>true</aggregate> |
| | | <reportOutputDirectory>../javadocs</reportOutputDirectory> |
| | | <destDir>security-javadoc</destDir> |
| | | <javadocExecutable>${java.home}bin/javadoc</javadocExecutable> |
| | | <tags> |
| | | <tag> |
| | | <name>Description</name> |
| | | <placement>a</placement> |
| | | <head>功能描述:</head> |
| | | </tag> |
| | | </tags> |
| | | </configuration> |
| | | </plugin> |
| | | </plugins> |
| | | </pluginManagement> |
| | | </build> |
| | | </project> |
| | |
| | | |
| | | if (count > 0) { |
| | | inspectionPlans = BeanConvertUtil.covertBeanList(inspectionPlanInnerServiceSMOImpl.queryInspectionPlans(inspectionPlanDto), ApiInspectionPlanDataVo.class); |
| | | ArrayList staffIds = new ArrayList<>(); |
| | | ArrayList inspectionRouteIds = new ArrayList<>(); |
| | | List<Object> staffIds = new ArrayList<Object>(); |
| | | List<Object> inspectionRouteIds = new ArrayList<Object>(); |
| | | for (ApiInspectionPlanDataVo Plans : inspectionPlans) { |
| | | staffIds.add(Plans.getStaffId()); |
| | | String[] ids = Plans.getInspectionRouteId().split(","); |
| | |
| | | } |
| | | |
| | | public void print() { |
| | | List list = getFileList(path); |
| | | List<String> list = getFileList(path); |
| | | if (list == null) { |
| | | return; |
| | | } |
| | |
| | | } |
| | | } |
| | | |
| | | public List getFileList(String path) { |
| | | public List<String> getFileList(String path) { |
| | | path = getFormatPath(path); |
| | | path = path + "/"; |
| | | File filePath = new File(path); |
| | |
| | | return null; |
| | | } |
| | | String[] filelist = filePath.list(); |
| | | List filelistFilter = new ArrayList(); |
| | | List<String> filelistFilter = new ArrayList<String>(); |
| | | |
| | | for (int i = 0; i < filelist.length; i++) { |
| | | String tempfilename = getFormatPath(path + filelist[i]); |
| | |
| | | //添加耗时 |
| | | saveLog(dataFlow, startDate, endDate, reqJson, responseEntity); |
| | | //这里保存耗时,以及日志 |
| | | return responseEntity; |
| | | |
| | | } |
| | | |
| | | return responseEntity; |
| | | } |
| | | |
| | | /** |
| | |
| | | |
| | | <build> |
| | | <finalName>service-common</finalName> |
| | | <plugins> |
| | | <plugin> |
| | | <groupId>org.apache.maven.plugins</groupId> |
| | | <artifactId>maven-dependency-plugin</artifactId> |
| | | <version>2.10</version> |
| | | <executions> |
| | | <execution> |
| | | <id>unpack</id> |
| | | <phase>generate-resources</phase> |
| | | <goals> |
| | | <goal>unpack</goal> |
| | | </goals> |
| | | <configuration> |
| | | <artifactItems> |
| | | <artifactItem> |
| | | <groupId>com.java110</groupId> |
| | | <artifactId>java110-interface</artifactId> |
| | | <version>${microcommunity.version}</version> |
| | | <type>jar</type> |
| | | <overWrite>true</overWrite> |
| | | <outputDirectory>${project.build.directory}/classes</outputDirectory> |
| | | </artifactItem> |
| | | </artifactItems> |
| | | </configuration> |
| | | </execution> |
| | | </executions> |
| | | </plugin> |
| | | <plugin> |
| | | <groupId>org.springframework.boot</groupId> |
| | | <artifactId>spring-boot-maven-plugin</artifactId> |
| | | <configuration> |
| | | <mainClass>com.java110.common.CommonServiceApplicationStart</mainClass> |
| | | </configuration> |
| | | </plugin> |
| | | </plugins> |
| | | <pluginManagement> |
| | | <plugins> |
| | | <plugin> |
| | | <groupId>org.apache.maven.plugins</groupId> |
| | | <artifactId>maven-dependency-plugin</artifactId> |
| | | <version>2.10</version> |
| | | <executions> |
| | | <execution> |
| | | <id>unpack</id> |
| | | <phase>generate-resources</phase> |
| | | <goals> |
| | | <goal>unpack</goal> |
| | | </goals> |
| | | <configuration> |
| | | <artifactItems> |
| | | <artifactItem> |
| | | <groupId>com.java110</groupId> |
| | | <artifactId>java110-interface</artifactId> |
| | | <version>${microcommunity.version}</version> |
| | | <type>jar</type> |
| | | <overWrite>true</overWrite> |
| | | <outputDirectory>${project.build.directory}/classes</outputDirectory> |
| | | </artifactItem> |
| | | </artifactItems> |
| | | </configuration> |
| | | </execution> |
| | | </executions> |
| | | </plugin> |
| | | <plugin> |
| | | <groupId>org.springframework.boot</groupId> |
| | | <artifactId>spring-boot-maven-plugin</artifactId> |
| | | <configuration> |
| | | <mainClass>com.java110.common.CommonServiceApplicationStart</mainClass> |
| | | </configuration> |
| | | </plugin> |
| | | </plugins> |
| | | </pluginManagement> |
| | | </build> |
| | | </project> |
| | |
| | | null); |
| | | } finally { |
| | | logger.debug("common服务请求报文:" + orderInfo + " 返回报文:" + responseJson.toJSONString()); |
| | | return responseJson.toJSONString(); |
| | | } |
| | | return responseJson.toJSONString(); |
| | | } |
| | | |
| | | /** |
| | |
| | | responseEntity = new ResponseEntity<String>(e.getMessage(), HttpStatus.INTERNAL_SERVER_ERROR); |
| | | } finally { |
| | | logger.debug("请求地址为,{} 请求中心服务信息,{},中心服务返回信息,{}", url, httpEntity, responseEntity); |
| | | return responseEntity; |
| | | } |
| | | |
| | | return responseEntity; |
| | | } |
| | | |
| | | /** |
| | |
| | | |
| | | <build> |
| | | <finalName>service-community</finalName> |
| | | <plugins> |
| | | <plugin> |
| | | <groupId>org.apache.maven.plugins</groupId> |
| | | <artifactId>maven-dependency-plugin</artifactId> |
| | | <version>2.10</version> |
| | | <executions> |
| | | <execution> |
| | | <id>unpack</id> |
| | | <phase>generate-resources</phase> |
| | | <goals> |
| | | <goal>unpack</goal> |
| | | </goals> |
| | | <configuration> |
| | | <artifactItems> |
| | | <artifactItem> |
| | | <groupId>com.java110</groupId> |
| | | <artifactId>java110-interface</artifactId> |
| | | <version>${microcommunity.version}</version> |
| | | <type>jar</type> |
| | | <overWrite>true</overWrite> |
| | | <outputDirectory>${project.build.directory}/classes</outputDirectory> |
| | | </artifactItem> |
| | | </artifactItems> |
| | | </configuration> |
| | | </execution> |
| | | </executions> |
| | | </plugin> |
| | | <plugin> |
| | | <groupId>org.springframework.boot</groupId> |
| | | <artifactId>spring-boot-maven-plugin</artifactId> |
| | | <configuration> |
| | | <mainClass>com.java110.community.CommunityServiceApplicationStart</mainClass> |
| | | </configuration> |
| | | </plugin> |
| | | </plugins> |
| | | <pluginManagement> |
| | | <plugins> |
| | | <plugin> |
| | | <groupId>org.apache.maven.plugins</groupId> |
| | | <artifactId>maven-dependency-plugin</artifactId> |
| | | <version>2.10</version> |
| | | <executions> |
| | | <execution> |
| | | <id>unpack</id> |
| | | <phase>generate-resources</phase> |
| | | <goals> |
| | | <goal>unpack</goal> |
| | | </goals> |
| | | <configuration> |
| | | <artifactItems> |
| | | <artifactItem> |
| | | <groupId>com.java110</groupId> |
| | | <artifactId>java110-interface</artifactId> |
| | | <version>${microcommunity.version}</version> |
| | | <type>jar</type> |
| | | <overWrite>true</overWrite> |
| | | <outputDirectory>${project.build.directory}/classes</outputDirectory> |
| | | </artifactItem> |
| | | </artifactItems> |
| | | </configuration> |
| | | </execution> |
| | | </executions> |
| | | </plugin> |
| | | <plugin> |
| | | <groupId>org.springframework.boot</groupId> |
| | | <artifactId>spring-boot-maven-plugin</artifactId> |
| | | <configuration> |
| | | <mainClass>com.java110.community.CommunityServiceApplicationStart</mainClass> |
| | | </configuration> |
| | | </plugin> |
| | | </plugins> |
| | | </pluginManagement> |
| | | </build> |
| | | </project> |
| | |
| | | responseJson = DataTransactionFactory.createBusinessResponseJson(businessServiceDataFlow,ResponseConstant.RESULT_CODE_ERROR,e.getMessage()+e, |
| | | null); |
| | | }finally { |
| | | return responseJson.toJSONString(); |
| | | } |
| | | return responseJson.toJSONString(); |
| | | } |
| | | |
| | | /** |
| | |
| | | */ |
| | | protected void autoSaveDelBusinessNotice(Business business, JSONObject businessNotice) { |
| | | //自动插入DEL |
| | | Map info = new HashMap(); |
| | | Map<String,String> info = new HashMap<String,String>(); |
| | | info.put("noticeId", businessNotice.getString("noticeId")); |
| | | info.put("statusCd", StatusConstant.STATUS_CD_VALID); |
| | | List<Map> currentNoticeInfos = getNoticeServiceDaoImpl().getNoticeInfo(info); |
| | |
| | | |
| | | <build> |
| | | <finalName>service-fee</finalName> |
| | | <plugins> |
| | | <plugin> |
| | | <groupId>org.apache.maven.plugins</groupId> |
| | | <artifactId>maven-dependency-plugin</artifactId> |
| | | <version>2.10</version> |
| | | <executions> |
| | | <execution> |
| | | <id>unpack</id> |
| | | <phase>generate-resources</phase> |
| | | <goals> |
| | | <goal>unpack</goal> |
| | | </goals> |
| | | <configuration> |
| | | <artifactItems> |
| | | <artifactItem> |
| | | <groupId>com.java110</groupId> |
| | | <artifactId>java110-interface</artifactId> |
| | | <version>${microcommunity.version}</version> |
| | | <type>jar</type> |
| | | <overWrite>true</overWrite> |
| | | <outputDirectory>${project.build.directory}/classes</outputDirectory> |
| | | </artifactItem> |
| | | </artifactItems> |
| | | </configuration> |
| | | </execution> |
| | | </executions> |
| | | </plugin> |
| | | <plugin> |
| | | <groupId>org.springframework.boot</groupId> |
| | | <artifactId>spring-boot-maven-plugin</artifactId> |
| | | <configuration> |
| | | <mainClass>com.java110.fee.FeeServiceApplicationStart</mainClass> |
| | | </configuration> |
| | | </plugin> |
| | | </plugins> |
| | | <pluginManagement> |
| | | <plugins> |
| | | <plugin> |
| | | <groupId>org.apache.maven.plugins</groupId> |
| | | <artifactId>maven-dependency-plugin</artifactId> |
| | | <version>2.10</version> |
| | | <executions> |
| | | <execution> |
| | | <id>unpack</id> |
| | | <phase>generate-resources</phase> |
| | | <goals> |
| | | <goal>unpack</goal> |
| | | </goals> |
| | | <configuration> |
| | | <artifactItems> |
| | | <artifactItem> |
| | | <groupId>com.java110</groupId> |
| | | <artifactId>java110-interface</artifactId> |
| | | <version>${microcommunity.version}</version> |
| | | <type>jar</type> |
| | | <overWrite>true</overWrite> |
| | | <outputDirectory>${project.build.directory}/classes</outputDirectory> |
| | | </artifactItem> |
| | | </artifactItems> |
| | | </configuration> |
| | | </execution> |
| | | </executions> |
| | | </plugin> |
| | | <plugin> |
| | | <groupId>org.springframework.boot</groupId> |
| | | <artifactId>spring-boot-maven-plugin</artifactId> |
| | | <configuration> |
| | | <mainClass>com.java110.fee.FeeServiceApplicationStart</mainClass> |
| | | </configuration> |
| | | </plugin> |
| | | </plugins> |
| | | </pluginManagement> |
| | | </build> |
| | | </project> |
| | |
| | | responseJson = DataTransactionFactory.createBusinessResponseJson(businessServiceDataFlow, ResponseConstant.RESULT_CODE_ERROR, e.getMessage() + e, |
| | | null); |
| | | } finally { |
| | | return responseJson.toJSONString(); |
| | | } |
| | | return responseJson.toJSONString(); |
| | | } |
| | | |
| | | /** |
| | |
| | | |
| | | <build> |
| | | <finalName>service-front</finalName> |
| | | <pluginManagement> |
| | | <plugins> |
| | | <plugin> |
| | | <groupId>org.apache.maven.plugins</groupId> |
| | |
| | | </configuration> |
| | | </plugin> |
| | | </plugins> |
| | | </pluginManagement> |
| | | </build> |
| | | </project> |
| | |
| | | } catch (Exception e) { |
| | | responseEntity = new ResponseEntity<String>(e.getMessage(), HttpStatus.INTERNAL_SERVER_ERROR); |
| | | } finally { |
| | | return responseEntity; |
| | | } |
| | | return responseEntity; |
| | | } |
| | | |
| | | |
| | |
| | | } catch (Exception e) { |
| | | responseEntity = new ResponseEntity<String>(e.getMessage(), HttpStatus.INTERNAL_SERVER_ERROR); |
| | | } finally { |
| | | return responseEntity; |
| | | } |
| | | return responseEntity; |
| | | } |
| | | |
| | | public IStaffServiceSMO getStaffServiceSMOImpl() { |
| | |
| | | } catch (Exception e) { |
| | | responseEntity = new ResponseEntity<String>(e.getMessage(), HttpStatus.INTERNAL_SERVER_ERROR); |
| | | } finally { |
| | | return responseEntity; |
| | | } |
| | | return responseEntity; |
| | | } |
| | | |
| | | /** |
| | |
| | | } catch (Exception e) { |
| | | responseEntity = new ResponseEntity<String>(e.getMessage(), HttpStatus.INTERNAL_SERVER_ERROR); |
| | | } finally { |
| | | return responseEntity; |
| | | } |
| | | return responseEntity; |
| | | } |
| | | |
| | | /** |
| | |
| | | } catch (Exception e) { |
| | | responseEntity = new ResponseEntity<String>(e.getMessage(), HttpStatus.INTERNAL_SERVER_ERROR); |
| | | } finally { |
| | | return responseEntity; |
| | | } |
| | | return responseEntity; |
| | | } |
| | | |
| | | public ICompanyServiceSMO getCompanyServiceSMOImpl() { |
| | |
| | | } catch (Exception e) { |
| | | responseEntity = new ResponseEntity<String>(e.getMessage(), HttpStatus.INTERNAL_SERVER_ERROR); |
| | | } finally { |
| | | return responseEntity; |
| | | } |
| | | return responseEntity; |
| | | } |
| | | |
| | | public IPrivilegeServiceSMO getPrivilegeServiceSMOImpl() { |
| | |
| | | } catch (Exception e) { |
| | | responseEntity = new ResponseEntity<String>(e.getMessage(), HttpStatus.INTERNAL_SERVER_ERROR); |
| | | } finally { |
| | | return responseEntity; |
| | | } |
| | | return responseEntity; |
| | | } |
| | | |
| | | public IStaffServiceSMO getStaffServiceSMOImpl() { |
| | |
| | | } catch (Exception e) { |
| | | responseEntity = new ResponseEntity<String>(e.getMessage(), HttpStatus.INTERNAL_SERVER_ERROR); |
| | | } finally { |
| | | return responseEntity; |
| | | } |
| | | return responseEntity; |
| | | } |
| | | |
| | | |
| | |
| | | } catch (Exception e) { |
| | | responseEntity = new ResponseEntity<String>(e.getMessage(), HttpStatus.INTERNAL_SERVER_ERROR); |
| | | } finally { |
| | | return responseEntity; |
| | | } |
| | | return responseEntity; |
| | | } |
| | | |
| | | |
| | |
| | | responseEntity = loginServiceSMOImpl.doLogin(pd); |
| | | } catch (Exception e) { |
| | | responseEntity = new ResponseEntity<String>(e.getMessage(), HttpStatus.INTERNAL_SERVER_ERROR); |
| | | } finally { |
| | | return responseEntity; |
| | | } |
| | | return responseEntity; |
| | | |
| | | } |
| | | |
| | | public ResponseEntity<String> getSysInfo(IPageData pd) { |
| | |
| | | responseEntity = menuServiceSMOImpl.queryMenusByUserId(pd); |
| | | } catch (Exception e) { |
| | | responseEntity = new ResponseEntity<String>(e.getMessage(), HttpStatus.INTERNAL_SERVER_ERROR); |
| | | } finally { |
| | | return responseEntity; |
| | | } |
| | | return responseEntity; |
| | | } |
| | | |
| | | public IMenuServiceSMO getMenuServiceSMOImpl() { |
| | |
| | | responseEntity = navServiceSMOImpl.doExit(pd); |
| | | } catch (Exception e) { |
| | | responseEntity = new ResponseEntity<String>(e.getMessage(), HttpStatus.INTERNAL_SERVER_ERROR); |
| | | } finally { |
| | | return responseEntity; |
| | | } |
| | | return responseEntity; |
| | | } |
| | | |
| | | /** |
| | |
| | | responseEntity = navServiceSMOImpl.getUserInfo(pd); |
| | | } catch (Exception e) { |
| | | responseEntity = new ResponseEntity<String>(e.getMessage(), HttpStatus.INTERNAL_SERVER_ERROR); |
| | | } finally { |
| | | return responseEntity; |
| | | } |
| | | return responseEntity; |
| | | } |
| | | |
| | | /** |
| | |
| | | responseEntity = privilegeServiceSMOImpl.loadListPrivilege(pd); |
| | | } catch (Exception e) { |
| | | responseEntity = new ResponseEntity<String>(e.getMessage(), HttpStatus.INTERNAL_SERVER_ERROR); |
| | | } finally { |
| | | return responseEntity; |
| | | } |
| | | return responseEntity; |
| | | |
| | | |
| | | } |
| | | |
| | |
| | | responseEntity = privilegeServiceSMOImpl.listPrivilegeGroup(pd); |
| | | } catch (Exception e) { |
| | | responseEntity = new ResponseEntity<String>(e.getMessage(), HttpStatus.INTERNAL_SERVER_ERROR); |
| | | } finally { |
| | | return responseEntity; |
| | | } |
| | | |
| | | return responseEntity; |
| | | } |
| | | |
| | | |
| | |
| | | } catch (Exception e) { |
| | | responseEntity = new ResponseEntity<String>(e.getMessage(), HttpStatus.INTERNAL_SERVER_ERROR); |
| | | } finally { |
| | | return responseEntity; |
| | | } |
| | | |
| | | return responseEntity; |
| | | } |
| | | |
| | | /** |
| | |
| | | } catch (Exception e) { |
| | | responseEntity = new ResponseEntity<String>(e.getMessage(), HttpStatus.INTERNAL_SERVER_ERROR); |
| | | } finally { |
| | | return responseEntity; |
| | | } |
| | | |
| | | return responseEntity; |
| | | } |
| | | |
| | | public ResponseEntity<String> getSysInfo(IPageData pd) { |
| | |
| | | } catch (Exception e) { |
| | | responseEntity = new ResponseEntity<String>(e.getMessage(), HttpStatus.INTERNAL_SERVER_ERROR); |
| | | } finally { |
| | | return responseEntity; |
| | | } |
| | | |
| | | return responseEntity; |
| | | } |
| | | |
| | | |
| | |
| | | } catch (Exception e) { |
| | | responseEntity = new ResponseEntity<String>(e.getMessage(), HttpStatus.INTERNAL_SERVER_ERROR); |
| | | } finally { |
| | | return responseEntity; |
| | | } |
| | | |
| | | return responseEntity; |
| | | } |
| | | |
| | | /** |
| | |
| | | } catch (Exception e) { |
| | | responseEntity = new ResponseEntity<String>(e.getMessage(), HttpStatus.INTERNAL_SERVER_ERROR); |
| | | } finally { |
| | | return responseEntity; |
| | | } |
| | | |
| | | return responseEntity; |
| | | } |
| | | |
| | | |
| | |
| | | } catch (Exception e) { |
| | | responseEntity = new ResponseEntity<String>(e.getMessage(), HttpStatus.INTERNAL_SERVER_ERROR); |
| | | } finally { |
| | | return responseEntity; |
| | | } |
| | | |
| | | return responseEntity; |
| | | } |
| | | |
| | | /** |
| | |
| | | } catch (Exception e) { |
| | | responseEntity = new ResponseEntity<String>(e.getMessage(), HttpStatus.INTERNAL_SERVER_ERROR); |
| | | } finally { |
| | | return responseEntity; |
| | | } |
| | | return responseEntity; |
| | | } |
| | | |
| | | |
| | |
| | | } catch (Exception e) { |
| | | responseEntity = new ResponseEntity<String>(e.getMessage(), HttpStatus.INTERNAL_SERVER_ERROR); |
| | | } finally { |
| | | return responseEntity; |
| | | } |
| | | |
| | | return responseEntity; |
| | | } |
| | | |
| | | public IAddCommunitySMO getAddCommunitySMOImpl() { |
| | |
| | | } catch (Exception e) { |
| | | responseEntity = new ResponseEntity<String>(e.getMessage(), HttpStatus.INTERNAL_SERVER_ERROR); |
| | | } finally { |
| | | return responseEntity; |
| | | } |
| | | return responseEntity; |
| | | } |
| | | |
| | | public ICompanyServiceSMO getCompanyServiceSMOImpl() { |
| | |
| | | } catch (Exception e) { |
| | | responseEntity = new ResponseEntity<String>(e.getMessage(), HttpStatus.INTERNAL_SERVER_ERROR); |
| | | } finally { |
| | | return responseEntity; |
| | | } |
| | | |
| | | return responseEntity; |
| | | } |
| | | |
| | | |
| | |
| | | }catch (Exception e){ |
| | | responseEntity = new ResponseEntity<String>(e.getMessage(), HttpStatus.INTERNAL_SERVER_ERROR); |
| | | }finally { |
| | | return responseEntity; |
| | | } |
| | | |
| | | return responseEntity; |
| | | } |
| | | |
| | | /** |
| | |
| | | }catch (Exception e){ |
| | | responseEntity = new ResponseEntity<String>(e.getMessage(), HttpStatus.INTERNAL_SERVER_ERROR); |
| | | }finally { |
| | | return responseEntity; |
| | | } |
| | | |
| | | return responseEntity; |
| | | } |
| | | |
| | | public ICommunityServiceSMO getCommunityServiceSMOImpl() { |
| | |
| | | } catch (Exception e) { |
| | | responseEntity = new ResponseEntity<String>(e.getMessage(), HttpStatus.INTERNAL_SERVER_ERROR); |
| | | } finally { |
| | | return responseEntity; |
| | | } |
| | | return responseEntity; |
| | | } |
| | | |
| | | |
| | |
| | | } catch (Exception e) { |
| | | responseEntity = new ResponseEntity<String>(e.getMessage(), HttpStatus.INTERNAL_SERVER_ERROR); |
| | | } finally { |
| | | return responseEntity; |
| | | } |
| | | |
| | | return responseEntity; |
| | | } |
| | | |
| | | public ResponseEntity<String> addPrivilegeToPrivilegeGroup(IPageData pd) { |
| | |
| | | } catch (Exception e) { |
| | | responseEntity = new ResponseEntity<String>(e.getMessage(), HttpStatus.INTERNAL_SERVER_ERROR); |
| | | } finally { |
| | | return responseEntity; |
| | | } |
| | | return responseEntity; |
| | | } |
| | | |
| | | public IPrivilegeServiceSMO getPrivilegeServiceSMOImpl() { |
| | |
| | | } catch (Exception e) { |
| | | responseEntity = new ResponseEntity<String>(e.getMessage(), HttpStatus.INTERNAL_SERVER_ERROR); |
| | | } finally { |
| | | return responseEntity; |
| | | } |
| | | return responseEntity; |
| | | } |
| | | |
| | | public IPrivilegeServiceSMO getPrivilegeServiceSMOImpl() { |
| | |
| | | } catch (Exception e) { |
| | | responseEntity = new ResponseEntity<String>(e.getMessage(), HttpStatus.INTERNAL_SERVER_ERROR); |
| | | } finally { |
| | | return responseEntity; |
| | | } |
| | | return responseEntity; |
| | | } |
| | | |
| | | |
| | |
| | | } catch (Exception e) { |
| | | responseEntity = new ResponseEntity<String>(e.getMessage(), HttpStatus.INTERNAL_SERVER_ERROR); |
| | | } finally { |
| | | return responseEntity; |
| | | } |
| | | return responseEntity; |
| | | } |
| | | |
| | | /** |
| | |
| | | } catch (Exception e) { |
| | | responseEntity = new ResponseEntity<String>(e.getMessage(), HttpStatus.INTERNAL_SERVER_ERROR); |
| | | } finally { |
| | | return responseEntity; |
| | | } |
| | | return responseEntity; |
| | | } |
| | | |
| | | /** |
| | |
| | | } catch (Exception e) { |
| | | responseEntity = new ResponseEntity<String>(e.getMessage(), HttpStatus.INTERNAL_SERVER_ERROR); |
| | | } finally { |
| | | return responseEntity; |
| | | } |
| | | return responseEntity; |
| | | } |
| | | |
| | | public IStaffServiceSMO getStaffServiceSMOImpl() { |
| | |
| | | } catch (Exception e) { |
| | | responseEntity = new ResponseEntity<String>(e.getMessage(), HttpStatus.INTERNAL_SERVER_ERROR); |
| | | } finally { |
| | | return responseEntity; |
| | | } |
| | | return responseEntity; |
| | | } |
| | | |
| | | |
| | |
| | | } catch (Exception e) { |
| | | responseEntity = new ResponseEntity<String>(e.getMessage(), HttpStatus.INTERNAL_SERVER_ERROR); |
| | | } finally { |
| | | return responseEntity; |
| | | } |
| | | |
| | | return responseEntity; |
| | | } |
| | | |
| | | public IStaffServiceSMO getStaffServiceSMOImpl() { |
| | |
| | | if (!StringUtil.isEmpty(version) && VERSION_2.equals(version)) { |
| | | return ResultVo.createResponseEntity(ResultVo.CODE_ERROR, responseEntity.getBody()); |
| | | } |
| | | return responseEntity; |
| | | } |
| | | return responseEntity; |
| | | } |
| | | |
| | | /** |
| | |
| | | if (!StringUtil.isEmpty(version) && VERSION_2.equals(version)) { |
| | | return ResultVo.createResponseEntity(ResultVo.CODE_ERROR, responseEntity.getBody()); |
| | | } |
| | | return responseEntity; |
| | | } |
| | | return responseEntity; |
| | | } |
| | | |
| | | //组件上传文件处理/callComponent/upload/ |
| | |
| | | if (!StringUtil.isEmpty(version) && VERSION_2.equals(version)) { |
| | | return ResultVo.createResponseEntity(ResultVo.CODE_ERROR, responseEntity.getBody()); |
| | | } |
| | | return responseEntity; |
| | | } |
| | | return responseEntity; |
| | | } |
| | | |
| | | /** |
| | |
| | | responseEntity = new ResponseEntity<Object>(msg, HttpStatus.INTERNAL_SERVER_ERROR); |
| | | } finally { |
| | | logger.debug("组件调用返回信息为{}", responseEntity); |
| | | return responseEntity; |
| | | } |
| | | return responseEntity; |
| | | } |
| | | |
| | | /** |
| | |
| | | responseEntity = new ResponseEntity<String>(e.getMessage(), HttpStatus.INTERNAL_SERVER_ERROR); |
| | | } finally { |
| | | logger.debug("请求地址为,{} 请求中心服务信息,{},中心服务返回信息,{}", url, httpEntity, responseEntity); |
| | | return responseEntity; |
| | | } |
| | | |
| | | return responseEntity; |
| | | } |
| | | |
| | | |
| | |
| | | responseEntity = new ResponseEntity<String>(e.getMessage(), HttpStatus.INTERNAL_SERVER_ERROR); |
| | | } finally { |
| | | logger.debug("api返回信息" + responseEntity); |
| | | return responseEntity; |
| | | } |
| | | return responseEntity; |
| | | } |
| | | |
| | | |
| | |
| | | int line = 0; |
| | | double totalPageHeight = 0; |
| | | for (int roomIndex = 0; roomIndex < rooms.size(); roomIndex++) { |
| | | Map info = generatorRoomOweFee(sheet, workbook, rooms.getJSONObject(roomIndex), line, totalPageHeight, patriarch, feePrint); |
| | | Map<String, Object> info = generatorRoomOweFee(sheet, workbook, rooms.getJSONObject(roomIndex), line, totalPageHeight, patriarch, feePrint); |
| | | line = Integer.parseInt(info.get("line").toString()) + 1; |
| | | totalPageHeight = Double.parseDouble(info.get("totalPageHeight").toString()); |
| | | } |
| | |
| | | responseEntity = new ResponseEntity<String>(e.getMessage(), HttpStatus.INTERNAL_SERVER_ERROR); |
| | | } finally { |
| | | logger.debug("请求地址为,{} 请求中心服务信息,{},中心服务返回信息,{}", url, httpEntity, responseEntity); |
| | | return responseEntity; |
| | | } |
| | | |
| | | return responseEntity; |
| | | } |
| | | |
| | | |
| | |
| | | responseEntity = new ResponseEntity<String>(e.getMessage(), HttpStatus.INTERNAL_SERVER_ERROR); |
| | | } finally { |
| | | logger.debug("请求地址为,{} 请求中心服务信息,{},中心服务返回信息,{}", url, httpEntity, responseEntity); |
| | | return responseEntity; |
| | | } |
| | | |
| | | return responseEntity; |
| | | } |
| | | |
| | | |
| | |
| | | responseEntity = new ResponseEntity<String>(e.getMessage(), HttpStatus.INTERNAL_SERVER_ERROR); |
| | | } finally { |
| | | logger.debug("请求地址为,{} 请求中心服务信息,{},中心服务返回信息,{}", url, httpEntity, responseEntity); |
| | | return responseEntity; |
| | | } |
| | | |
| | | return responseEntity; |
| | | } |
| | | |
| | | /** |
| | |
| | | responseEntity = new ResponseEntity<String>(e.getMessage(), HttpStatus.INTERNAL_SERVER_ERROR); |
| | | } finally { |
| | | logger.debug("请求地址为,{} 请求中心服务信息,{},中心服务返回信息,{}", url, httpEntity, responseEntity); |
| | | return responseEntity; |
| | | } |
| | | |
| | | return responseEntity; |
| | | } |
| | | |
| | | |
| | |
| | | responseEntity = new ResponseEntity<String>(e.getMessage(), HttpStatus.INTERNAL_SERVER_ERROR); |
| | | } finally { |
| | | logger.debug("请求地址为,{} 请求中心服务信息,{},中心服务返回信息,{}", url, httpEntity, responseEntity); |
| | | return responseEntity; |
| | | } |
| | | |
| | | return responseEntity; |
| | | } |
| | | |
| | | |
| | |
| | | responseEntity = new ResponseEntity<String>(e.getMessage(), HttpStatus.INTERNAL_SERVER_ERROR); |
| | | } finally { |
| | | logger.debug("请求地址为,{} 请求中心服务信息,{},中心服务返回信息,{}", url, httpEntity, responseEntity); |
| | | return responseEntity; |
| | | } |
| | | |
| | | return responseEntity; |
| | | } |
| | | |
| | | } |
| | |
| | | responseEntity = new ResponseEntity<String>(e.getMessage(), HttpStatus.INTERNAL_SERVER_ERROR); |
| | | } finally { |
| | | logger.debug("请求地址为,{} 请求中心服务信息,{},中心服务返回信息,{}", url, httpEntity, responseEntity); |
| | | return responseEntity; |
| | | } |
| | | |
| | | return responseEntity; |
| | | } |
| | | |
| | | |
| | |
| | | |
| | | <build> |
| | | <finalName>service-goods</finalName> |
| | | <plugins> |
| | | <plugin> |
| | | <groupId>org.apache.maven.plugins</groupId> |
| | | <artifactId>maven-dependency-plugin</artifactId> |
| | | <version>2.10</version> |
| | | <executions> |
| | | <execution> |
| | | <id>unpack</id> |
| | | <phase>generate-resources</phase> |
| | | <goals> |
| | | <goal>unpack</goal> |
| | | </goals> |
| | | <configuration> |
| | | <artifactItems> |
| | | <artifactItem> |
| | | <groupId>com.java110</groupId> |
| | | <artifactId>java110-interface</artifactId> |
| | | <version>${microcommunity.version}</version> |
| | | <type>jar</type> |
| | | <overWrite>true</overWrite> |
| | | <outputDirectory>${project.build.directory}/classes</outputDirectory> |
| | | </artifactItem> |
| | | </artifactItems> |
| | | </configuration> |
| | | </execution> |
| | | </executions> |
| | | </plugin> |
| | | <plugin> |
| | | <groupId>org.springframework.boot</groupId> |
| | | <artifactId>spring-boot-maven-plugin</artifactId> |
| | | <configuration> |
| | | <mainClass>com.java110.goods.GoodsServiceApplicationStart</mainClass> |
| | | </configuration> |
| | | </plugin> |
| | | </plugins> |
| | | <pluginManagement> |
| | | <plugins> |
| | | <plugin> |
| | | <groupId>org.apache.maven.plugins</groupId> |
| | | <artifactId>maven-dependency-plugin</artifactId> |
| | | <version>2.10</version> |
| | | <executions> |
| | | <execution> |
| | | <id>unpack</id> |
| | | <phase>generate-resources</phase> |
| | | <goals> |
| | | <goal>unpack</goal> |
| | | </goals> |
| | | <configuration> |
| | | <artifactItems> |
| | | <artifactItem> |
| | | <groupId>com.java110</groupId> |
| | | <artifactId>java110-interface</artifactId> |
| | | <version>${microcommunity.version}</version> |
| | | <type>jar</type> |
| | | <overWrite>true</overWrite> |
| | | <outputDirectory>${project.build.directory}/classes</outputDirectory> |
| | | </artifactItem> |
| | | </artifactItems> |
| | | </configuration> |
| | | </execution> |
| | | </executions> |
| | | </plugin> |
| | | <plugin> |
| | | <groupId>org.springframework.boot</groupId> |
| | | <artifactId>spring-boot-maven-plugin</artifactId> |
| | | <configuration> |
| | | <mainClass>com.java110.goods.GoodsServiceApplicationStart</mainClass> |
| | | </configuration> |
| | | </plugin> |
| | | </plugins> |
| | | </pluginManagement> |
| | | </build> |
| | | </project> |
| | |
| | | <version>1.0-SNAPSHOT</version> |
| | | </parent> |
| | | |
| | | <groupId>com.java110</groupId> |
| | | <artifactId>service-job</artifactId> |
| | | <packaging>jar</packaging> |
| | | |
| | |
| | | |
| | | <build> |
| | | <finalName>service-job</finalName> |
| | | <plugins> |
| | | <plugin> |
| | | <groupId>org.apache.maven.plugins</groupId> |
| | | <artifactId>maven-dependency-plugin</artifactId> |
| | | <version>2.10</version> |
| | | <executions> |
| | | <execution> |
| | | <id>unpack</id> |
| | | <phase>generate-resources</phase> |
| | | <goals> |
| | | <goal>unpack</goal> |
| | | </goals> |
| | | <configuration> |
| | | <artifactItems> |
| | | <artifactItem> |
| | | <groupId>com.java110</groupId> |
| | | <artifactId>java110-interface</artifactId> |
| | | <!--<testFailureIgnore>true</testFailureIgnore>--> |
| | | <version>${microcommunity.version}</version> |
| | | <type>jar</type> |
| | | <overWrite>true</overWrite> |
| | | <outputDirectory>${project.build.directory}/classes</outputDirectory> |
| | | </artifactItem> |
| | | </artifactItems> |
| | | </configuration> |
| | | </execution> |
| | | </executions> |
| | | </plugin> |
| | | <plugin> |
| | | <groupId>org.springframework.boot</groupId> |
| | | <artifactId>spring-boot-maven-plugin</artifactId> |
| | | <configuration> |
| | | <mainClass>com.java110.job.JobServiceApplication</mainClass> |
| | | </configuration> |
| | | </plugin> |
| | | </plugins> |
| | | <pluginManagement> |
| | | <plugins> |
| | | <plugin> |
| | | <groupId>org.apache.maven.plugins</groupId> |
| | | <artifactId>maven-dependency-plugin</artifactId> |
| | | <version>2.10</version> |
| | | <executions> |
| | | <execution> |
| | | <id>unpack</id> |
| | | <phase>generate-resources</phase> |
| | | <goals> |
| | | <goal>unpack</goal> |
| | | </goals> |
| | | <configuration> |
| | | <artifactItems> |
| | | <artifactItem> |
| | | <groupId>com.java110</groupId> |
| | | <artifactId>java110-interface</artifactId> |
| | | <!--<testFailureIgnore>true</testFailureIgnore>--> |
| | | <version>${microcommunity.version}</version> |
| | | <type>jar</type> |
| | | <overWrite>true</overWrite> |
| | | <outputDirectory>${project.build.directory}/classes</outputDirectory> |
| | | </artifactItem> |
| | | </artifactItems> |
| | | </configuration> |
| | | </execution> |
| | | </executions> |
| | | </plugin> |
| | | <plugin> |
| | | <groupId>org.springframework.boot</groupId> |
| | | <artifactId>spring-boot-maven-plugin</artifactId> |
| | | <configuration> |
| | | <mainClass>com.java110.job.JobServiceApplication</mainClass> |
| | | </configuration> |
| | | </plugin> |
| | | </plugins> |
| | | </pluginManagement> |
| | | </build> |
| | | |
| | | </project> |
| | |
| | | logger.error("请求订单异常", e); |
| | | responseJson = DataTransactionFactory.createBusinessResponseJson(businessServiceDataFlow, ResponseConstant.RESULT_CODE_ERROR, e.getMessage() + e, |
| | | null); |
| | | } finally { |
| | | return responseJson.toJSONString(); |
| | | } |
| | | return responseJson.toJSONString(); |
| | | } |
| | | |
| | | |
| | |
| | | /** |
| | | * 分配每个线程处理的起止位置 |
| | | */ |
| | | public static List contSaveThreadContInfo(Map taskInfo) { |
| | | List contlist = new ArrayList(); |
| | | public static List<Map<String,Long>> contSaveThreadContInfo(Map taskInfo) { |
| | | List<Map<String,Long>> contlist = new ArrayList<Map<String,Long>>(); |
| | | try { |
| | | RandomAccessFile raf = new RandomAccessFile(taskInfo.get("localfilename").toString(), "r"); |
| | | int tnum = Integer.valueOf(taskInfo.get("TNUM").toString()); |
| | |
| | | } |
| | | for (int i = 0; i < tnum; i++) { |
| | | if (i == tnum - 1) { |
| | | Map tmp = new HashMap(); |
| | | Map<String,Long> tmp = new HashMap<String,Long>(); |
| | | tmp.put("begin", begin); |
| | | tmp.put("end", filelen - 1); |
| | | contlist.add(tmp); |
| | |
| | | if (end < begin) { |
| | | begin = 0; |
| | | end = begin; |
| | | Map tmp = new HashMap(); |
| | | Map<String,Long> tmp = new HashMap<String,Long>(); |
| | | tmp.put("begin", begin); |
| | | tmp.put("end", end); |
| | | contlist.add(tmp); |
| | |
| | | while (end > 0) { |
| | | raf.seek(end); |
| | | if (raf.readByte() == '\n') { |
| | | Map tmp = new HashMap(); |
| | | Map<String,Long> tmp = new HashMap<String,Long>(); |
| | | tmp.put("begin", begin); |
| | | tmp.put("end", end); |
| | | contlist.add(tmp); |
| | |
| | | |
| | | <build> |
| | | <finalName>service-order</finalName> |
| | | <pluginManagement> |
| | | <plugins> |
| | | <plugin> |
| | | <groupId>org.apache.maven.plugins</groupId> |
| | |
| | | </configuration> |
| | | </plugin> |
| | | </plugins> |
| | | </pluginManagement> |
| | | </build> |
| | | |
| | | |
| | |
| | | logger.error("请求订单异常",e); |
| | | resData = DataTransactionFactory.createOrderResponseJson(ResponseConstant.NO_TRANSACTION_ID, |
| | | ResponseConstant.RESULT_CODE_ERROR,e.getMessage()+e).toJSONString(); |
| | | }finally { |
| | | for(String key : headers.keySet()) { |
| | | response.addHeader(key,headers.get(key)); |
| | | } |
| | | return resData; |
| | | } |
| | | for(String key : headers.keySet()) { |
| | | response.addHeader(key,headers.get(key)); |
| | | } |
| | | return resData; |
| | | } |
| | | |
| | | /** |
| | |
| | | logger.error("请求订单异常", e); |
| | | responseEntity = new ResponseEntity<String>("请求中心服务发生异常," + e.getMessage(), HttpStatus.INTERNAL_SERVER_ERROR); |
| | | } finally { |
| | | |
| | | logger.debug("订单服务返回报文为: {}", responseEntity); |
| | | return responseEntity; |
| | | } |
| | | return responseEntity; |
| | | } |
| | | |
| | | /** |
| | |
| | | responseEntity = new ResponseEntity<String>("请求中心服务发生异常,"+e.getMessage(), HttpStatus.INTERNAL_SERVER_ERROR); |
| | | }finally { |
| | | logger.debug("订单服务返回报文为: {}",responseEntity); |
| | | return responseEntity; |
| | | } |
| | | |
| | | return responseEntity; |
| | | } |
| | | |
| | | @RequestMapping(path = "/deleteUserAllPrivilege",method= RequestMethod.POST) |
| | |
| | | responseEntity = new ResponseEntity<String>("请求中心服务发生异常,"+e.getMessage(), HttpStatus.INTERNAL_SERVER_ERROR); |
| | | }finally { |
| | | logger.debug("订单服务返回报文为: {}",responseEntity); |
| | | return responseEntity; |
| | | } |
| | | return responseEntity; |
| | | } |
| | | |
| | | |
| | |
| | | responseEntity = new ResponseEntity<String>("请求中心服务发生异常,"+e.getMessage(), HttpStatus.INTERNAL_SERVER_ERROR); |
| | | }finally { |
| | | logger.debug("订单服务返回报文为: {}",responseEntity); |
| | | return responseEntity; |
| | | } |
| | | return responseEntity; |
| | | } |
| | | |
| | | @RequestMapping(path = "/editPrivilegeGroup",method= RequestMethod.POST) |
| | |
| | | responseEntity = new ResponseEntity<String>("请求中心服务发生异常,"+e.getMessage(), HttpStatus.INTERNAL_SERVER_ERROR); |
| | | }finally { |
| | | logger.debug("订单服务返回报文为: {}",responseEntity); |
| | | return responseEntity; |
| | | } |
| | | return responseEntity; |
| | | } |
| | | |
| | | @RequestMapping(path = "/deletePrivilegeGroup",method= RequestMethod.POST) |
| | |
| | | responseEntity = new ResponseEntity<String>("请求中心服务发生异常,"+e.getMessage(), HttpStatus.INTERNAL_SERVER_ERROR); |
| | | }finally { |
| | | logger.debug("订单服务返回报文为: {}",responseEntity); |
| | | return responseEntity; |
| | | } |
| | | return responseEntity; |
| | | } |
| | | |
| | | @RequestMapping(path = "/addPrivilegeToPrivilegeGroup",method= RequestMethod.POST) |
| | |
| | | responseEntity = new ResponseEntity<String>("请求中心服务发生异常,"+e.getMessage(), HttpStatus.INTERNAL_SERVER_ERROR); |
| | | }finally { |
| | | logger.debug("订单服务返回报文为: {}",responseEntity); |
| | | return responseEntity; |
| | | } |
| | | return responseEntity; |
| | | } |
| | | |
| | | |
| | |
| | | responseEntity = new ResponseEntity<String>("请求中心服务发生异常,"+e.getMessage(), HttpStatus.INTERNAL_SERVER_ERROR); |
| | | }finally { |
| | | logger.debug("订单服务返回报文为: {}",responseEntity); |
| | | return responseEntity; |
| | | } |
| | | return responseEntity; |
| | | } |
| | | |
| | | |
| | |
| | | responseEntity = new ResponseEntity<String>("请求中心服务发生异常,"+e.getMessage(), HttpStatus.INTERNAL_SERVER_ERROR); |
| | | }finally { |
| | | logger.debug("订单服务返回报文为: {}",responseEntity); |
| | | return responseEntity; |
| | | } |
| | | return responseEntity; |
| | | } |
| | | |
| | | |
| | |
| | | responseEntity = new ResponseEntity<String>("请求中心服务发生异常,"+e.getMessage(), HttpStatus.INTERNAL_SERVER_ERROR); |
| | | }finally { |
| | | logger.debug("订单服务返回报文为: {}",responseEntity); |
| | | return responseEntity; |
| | | } |
| | | return responseEntity; |
| | | } |
| | | |
| | | |
| | |
| | | logger.error("生成主键ID异常" + prefix, e); |
| | | throw new DAOException(ResponseConstant.RESULT_CODE_INNER_ERROR, "生成主键ID异常" + prefix + e); |
| | | } finally { |
| | | return id; |
| | | } |
| | | |
| | | return id; |
| | | } |
| | | |
| | | |
| | |
| | | } |
| | | resJson = encrypt(responseJson.toJSONString(),headers); |
| | | //这里保存耗时,以及日志 |
| | | return resJson; |
| | | |
| | | } |
| | | |
| | | return resJson; |
| | | } |
| | | |
| | | /** |
| | |
| | | LogAgent.createLogMessage(dataFlow.getResponseHeaders(),responseEntity.getBody()),endDate.getTime()-dataFlow.getStartDate().getTime()); |
| | | //DataFlowEventPublishing.dataResponse(dataFlow,reqJson,headers); |
| | | } |
| | | |
| | | //这里保存耗时,以及日志 |
| | | return responseEntity ; |
| | | |
| | | } |
| | | return responseEntity ; |
| | | } |
| | | |
| | | /** |
| | |
| | | AuthenticationFactory.putSign(dataFlow, headers); |
| | | } |
| | | resJson = encrypt(responseData,headers); |
| | | return resJson; |
| | | |
| | | } |
| | | return resJson; |
| | | } |
| | | |
| | | /** |
| | |
| | | responseEntity = new ResponseEntity<String>("内部异常了:" + e.getMessage() + e.getLocalizedMessage(), OrderDataFlowContextFactory.hashMap2MultiValueMap(dataFlow.getResHeaders()), HttpStatus.INTERNAL_SERVER_ERROR); |
| | | } finally { |
| | | //这里保存耗时,以及日志 |
| | | return responseEntity; |
| | | |
| | | } |
| | | return responseEntity; |
| | | } |
| | | |
| | | /** |
| | |
| | | |
| | | } finally { |
| | | responseEntity = new ResponseEntity<>("成功", HttpStatus.OK); |
| | | |
| | | return responseEntity; |
| | | } |
| | | return responseEntity; |
| | | } |
| | | |
| | | /** |
| | |
| | | // LogAgent.createLogMessage(dataFlow.getResponseHeaders(),responseEntity.getBody()),endDate.getTime()-dataFlow.getStartDate().getTime()); |
| | | // DataFlowEventPublishing.dataResponse(dataFlow,reqJson,headers); |
| | | } |
| | | |
| | | |
| | | //这里保存耗时,以及日志 |
| | | return responseEntity; |
| | | |
| | | } |
| | | return responseEntity; |
| | | } |
| | | |
| | | |
| | |
| | | |
| | | <build> |
| | | <finalName>service-report</finalName> |
| | | <plugins> |
| | | <plugin> |
| | | <groupId>org.apache.maven.plugins</groupId> |
| | | <artifactId>maven-dependency-plugin</artifactId> |
| | | <version>2.10</version> |
| | | <executions> |
| | | <execution> |
| | | <id>unpack</id> |
| | | <phase>generate-resources</phase> |
| | | <goals> |
| | | <goal>unpack</goal> |
| | | </goals> |
| | | <configuration> |
| | | <artifactItems> |
| | | <artifactItem> |
| | | <groupId>com.java110</groupId> |
| | | <artifactId>java110-interface</artifactId> |
| | | <version>${microcommunity.version}</version> |
| | | <type>jar</type> |
| | | <overWrite>true</overWrite> |
| | | <outputDirectory>${project.build.directory}/classes</outputDirectory> |
| | | </artifactItem> |
| | | </artifactItems> |
| | | </configuration> |
| | | </execution> |
| | | </executions> |
| | | </plugin> |
| | | <plugin> |
| | | <groupId>org.springframework.boot</groupId> |
| | | <artifactId>spring-boot-maven-plugin</artifactId> |
| | | <configuration> |
| | | <mainClass>com.java110.report.ReportServiceApplicationStart</mainClass> |
| | | </configuration> |
| | | </plugin> |
| | | </plugins> |
| | | <pluginManagement> |
| | | <plugins> |
| | | <plugin> |
| | | <groupId>org.apache.maven.plugins</groupId> |
| | | <artifactId>maven-dependency-plugin</artifactId> |
| | | <version>2.10</version> |
| | | <executions> |
| | | <execution> |
| | | <id>unpack</id> |
| | | <phase>generate-resources</phase> |
| | | <goals> |
| | | <goal>unpack</goal> |
| | | </goals> |
| | | <configuration> |
| | | <artifactItems> |
| | | <artifactItem> |
| | | <groupId>com.java110</groupId> |
| | | <artifactId>java110-interface</artifactId> |
| | | <version>${microcommunity.version}</version> |
| | | <type>jar</type> |
| | | <overWrite>true</overWrite> |
| | | <outputDirectory>${project.build.directory}/classes</outputDirectory> |
| | | </artifactItem> |
| | | </artifactItems> |
| | | </configuration> |
| | | </execution> |
| | | </executions> |
| | | </plugin> |
| | | <plugin> |
| | | <groupId>org.springframework.boot</groupId> |
| | | <artifactId>spring-boot-maven-plugin</artifactId> |
| | | <configuration> |
| | | <mainClass>com.java110.report.ReportServiceApplicationStart</mainClass> |
| | | </configuration> |
| | | </plugin> |
| | | </plugins> |
| | | </pluginManagement> |
| | | </build> |
| | | </project> |
| | | </project> |
| | |
| | | |
| | | <build> |
| | | <finalName>service-store</finalName> |
| | | <plugins> |
| | | <plugin> |
| | | <groupId>org.apache.maven.plugins</groupId> |
| | | <artifactId>maven-dependency-plugin</artifactId> |
| | | <version>2.10</version> |
| | | <executions> |
| | | <execution> |
| | | <id>unpack</id> |
| | | <phase>generate-resources</phase> |
| | | <goals> |
| | | <goal>unpack</goal> |
| | | </goals> |
| | | <configuration> |
| | | <artifactItems> |
| | | <artifactItem> |
| | | <groupId>com.java110</groupId> |
| | | <artifactId>java110-interface</artifactId> |
| | | <version>${microcommunity.version}</version> |
| | | <type>jar</type> |
| | | <overWrite>true</overWrite> |
| | | <outputDirectory>${project.build.directory}/classes</outputDirectory> |
| | | </artifactItem> |
| | | </artifactItems> |
| | | </configuration> |
| | | </execution> |
| | | </executions> |
| | | </plugin> |
| | | <plugin> |
| | | <groupId>org.springframework.boot</groupId> |
| | | <artifactId>spring-boot-maven-plugin</artifactId> |
| | | <configuration> |
| | | <mainClass>com.java110.store.StoreServiceApplicationStart</mainClass> |
| | | </configuration> |
| | | </plugin> |
| | | </plugins> |
| | | <pluginManagement> |
| | | <plugins> |
| | | <plugin> |
| | | <groupId>org.apache.maven.plugins</groupId> |
| | | <artifactId>maven-dependency-plugin</artifactId> |
| | | <version>2.10</version> |
| | | <executions> |
| | | <execution> |
| | | <id>unpack</id> |
| | | <phase>generate-resources</phase> |
| | | <goals> |
| | | <goal>unpack</goal> |
| | | </goals> |
| | | <configuration> |
| | | <artifactItems> |
| | | <artifactItem> |
| | | <groupId>com.java110</groupId> |
| | | <artifactId>java110-interface</artifactId> |
| | | <version>${microcommunity.version}</version> |
| | | <type>jar</type> |
| | | <overWrite>true</overWrite> |
| | | <outputDirectory>${project.build.directory}/classes</outputDirectory> |
| | | </artifactItem> |
| | | </artifactItems> |
| | | </configuration> |
| | | </execution> |
| | | </executions> |
| | | </plugin> |
| | | <plugin> |
| | | <groupId>org.springframework.boot</groupId> |
| | | <artifactId>spring-boot-maven-plugin</artifactId> |
| | | <configuration> |
| | | <mainClass>com.java110.store.StoreServiceApplicationStart</mainClass> |
| | | </configuration> |
| | | </plugin> |
| | | </plugins> |
| | | </pluginManagement> |
| | | </build> |
| | | </project> |
| | |
| | | null); |
| | | } finally { |
| | | logger.debug("storeApi 请求报文{},返回报文:{}", orderInfo, responseJson.toJSONString()); |
| | | return responseJson.toJSONString(); |
| | | } |
| | | |
| | | return responseJson.toJSONString(); |
| | | } |
| | | |
| | | /** |
| | |
| | | |
| | | <build> |
| | | <finalName>service-user</finalName> |
| | | <plugins> |
| | | <plugin> |
| | | <groupId>org.apache.maven.plugins</groupId> |
| | | <artifactId>maven-dependency-plugin</artifactId> |
| | | <version>2.10</version> |
| | | <executions> |
| | | <execution> |
| | | <id>unpack</id> |
| | | <phase>generate-resources</phase> |
| | | <goals> |
| | | <goal>unpack</goal> |
| | | </goals> |
| | | <configuration> |
| | | <artifactItems> |
| | | <artifactItem> |
| | | <groupId>com.java110</groupId> |
| | | <artifactId>java110-interface</artifactId> |
| | | <version>${microcommunity.version}</version> |
| | | <type>jar</type> |
| | | <overWrite>true</overWrite> |
| | | <outputDirectory>${project.build.directory}/classes</outputDirectory> |
| | | </artifactItem> |
| | | </artifactItems> |
| | | </configuration> |
| | | </execution> |
| | | </executions> |
| | | </plugin> |
| | | <plugin> |
| | | <groupId>org.springframework.boot</groupId> |
| | | <artifactId>spring-boot-maven-plugin</artifactId> |
| | | <configuration> |
| | | <mainClass>com.java110.user.UserServiceApplicationStart</mainClass> |
| | | </configuration> |
| | | </plugin> |
| | | </plugins> |
| | | <pluginManagement> |
| | | <plugins> |
| | | <plugin> |
| | | <groupId>org.apache.maven.plugins</groupId> |
| | | <artifactId>maven-dependency-plugin</artifactId> |
| | | <version>2.10</version> |
| | | <executions> |
| | | <execution> |
| | | <id>unpack</id> |
| | | <phase>generate-resources</phase> |
| | | <goals> |
| | | <goal>unpack</goal> |
| | | </goals> |
| | | <configuration> |
| | | <artifactItems> |
| | | <artifactItem> |
| | | <groupId>com.java110</groupId> |
| | | <artifactId>java110-interface</artifactId> |
| | | <version>${microcommunity.version}</version> |
| | | <type>jar</type> |
| | | <overWrite>true</overWrite> |
| | | <outputDirectory>${project.build.directory}/classes</outputDirectory> |
| | | </artifactItem> |
| | | </artifactItems> |
| | | </configuration> |
| | | </execution> |
| | | </executions> |
| | | </plugin> |
| | | <plugin> |
| | | <groupId>org.springframework.boot</groupId> |
| | | <artifactId>spring-boot-maven-plugin</artifactId> |
| | | <configuration> |
| | | <mainClass>com.java110.user.UserServiceApplicationStart</mainClass> |
| | | </configuration> |
| | | </plugin> |
| | | </plugins> |
| | | </pluginManagement> |
| | | </build> |
| | | </project> |
| | |
| | | responseJson = DataTransactionFactory.createBusinessResponseJson(businessServiceDataFlow, ResponseConstant.RESULT_CODE_ERROR, e.getMessage() + e, |
| | | null); |
| | | } finally { |
| | | return responseJson.toJSONString(); |
| | | } |
| | | |
| | | return responseJson.toJSONString(); |
| | | } |
| | | |
| | | |
| | |
| | | * @return 业主房屋信息 |
| | | * @throws DAOException DAO异常 |
| | | */ |
| | | List<Map> getOwnerRoomRelInfo(Map info) throws DAOException; |
| | | List<Map<Object,Object>> getOwnerRoomRelInfo(Map<Object,Object> info) throws DAOException; |
| | | |
| | | |
| | | |
| | |
| | | * @throws DAOException DAO异常 |
| | | */ |
| | | @Override |
| | | public List<Map> getOwnerRoomRelInfo(Map info) throws DAOException { |
| | | public List<Map<Object,Object>> getOwnerRoomRelInfo(Map<Object,Object> info) throws DAOException { |
| | | logger.debug("查询业主房屋信息 入参 info : {}", info); |
| | | |
| | | List<Map> businessOwnerRoomRelInfos = sqlSessionTemplate.selectList("ownerRoomRelServiceDaoImpl.getOwnerRoomRelInfo", info); |
| | | List<Map<Object,Object>> businessOwnerRoomRelInfos = sqlSessionTemplate.selectList("ownerRoomRelServiceDaoImpl.getOwnerRoomRelInfo", info); |
| | | |
| | | return businessOwnerRoomRelInfos; |
| | | } |
| | |
| | | return saveFlag; |
| | | } finally { |
| | | logger.debug("----【userServiceDaoImpl.saveDataToBoCust】保存数据出参 : saveFlag:" + saveFlag); |
| | | return saveFlag; |
| | | } |
| | | |
| | | return saveFlag; |
| | | } |
| | | |
| | | /** |
| | |
| | | * |
| | | * @param businessOwnerRoomRelInfo |
| | | */ |
| | | protected void flushBusinessOwnerRoomRelInfo(Map businessOwnerRoomRelInfo, String statusCd) { |
| | | protected void flushBusinessOwnerRoomRelInfo(Map<Object,Object> businessOwnerRoomRelInfo, String statusCd) { |
| | | businessOwnerRoomRelInfo.put("newBId", businessOwnerRoomRelInfo.get("b_id")); |
| | | businessOwnerRoomRelInfo.put("relId", businessOwnerRoomRelInfo.get("rel_id")); |
| | | businessOwnerRoomRelInfo.put("operate", businessOwnerRoomRelInfo.get("operate")); |
| | |
| | | */ |
| | | protected void autoSaveDelBusinessOwnerRoomRel(Business business, JSONObject businessOwnerRoomRel) { |
| | | //自动插入DEL |
| | | Map info = new HashMap(); |
| | | Map<Object,Object> info = new HashMap<Object,Object>(); |
| | | info.put("relId", businessOwnerRoomRel.getString("relId")); |
| | | info.put("statusCd", StatusConstant.STATUS_CD_VALID); |
| | | List<Map> currentOwnerRoomRelInfos = getOwnerRoomRelServiceDaoImpl().getOwnerRoomRelInfo(info); |
| | | List<Map<Object,Object>> currentOwnerRoomRelInfos = getOwnerRoomRelServiceDaoImpl().getOwnerRoomRelInfo(info); |
| | | if (currentOwnerRoomRelInfos == null || currentOwnerRoomRelInfos.size() != 1) { |
| | | throw new ListenerExecuteException(ResponseConstant.RESULT_PARAM_ERROR, "未找到需要修改数据信息,入参错误或数据有问题,请检查" + info); |
| | | } |
| | | |
| | | Map currentOwnerRoomRelInfo = currentOwnerRoomRelInfos.get(0); |
| | | Map<Object,Object> currentOwnerRoomRelInfo = currentOwnerRoomRelInfos.get(0); |
| | | currentOwnerRoomRelInfo.put("bId", business.getbId()); |
| | | currentOwnerRoomRelInfo.put("relId", currentOwnerRoomRelInfo.get("rel_id")); |
| | | currentOwnerRoomRelInfo.put("operate", currentOwnerRoomRelInfo.get("operate")); |