Merge remote-tracking branch 'origin/master'
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?>
|
| | | <classpath>
|
| | | <classpathentry kind="src" output="target/classes" path="src/main/java">
|
| | | <attributes>
|
| | | <attribute name="optional" value="true"/>
|
| | | <attribute name="maven.pomderived" value="true"/>
|
| | | </attributes>
|
| | | </classpathentry>
|
| | | <classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources">
|
| | | <attributes>
|
| | | <attribute name="maven.pomderived" value="true"/>
|
| | | </attributes>
|
| | | </classpathentry>
|
| | | <classpathentry kind="src" output="target/test-classes" path="src/test/java">
|
| | | <attributes>
|
| | | <attribute name="optional" value="true"/>
|
| | | <attribute name="maven.pomderived" value="true"/>
|
| | | <attribute name="test" value="true"/>
|
| | | </attributes>
|
| | | </classpathentry>
|
| | | <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8">
|
| | | <attributes>
|
| | | <attribute name="maven.pomderived" value="true"/>
|
| | | </attributes>
|
| | | </classpathentry>
|
| | | <classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
|
| | | <attributes>
|
| | | <attribute name="maven.pomderived" value="true"/>
|
| | | </attributes>
|
| | | </classpathentry>
|
| | | <classpathentry kind="output" path="target/classes"/>
|
| | | </classpath>
|
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?>
|
| | | <projectDescription>
|
| | | <name>product-server-xining</name>
|
| | | <comment></comment>
|
| | | <projects>
|
| | | </projects>
|
| | | <buildSpec>
|
| | | <buildCommand>
|
| | | <name>org.eclipse.jdt.core.javabuilder</name>
|
| | | <arguments>
|
| | | </arguments>
|
| | | </buildCommand>
|
| | | <buildCommand>
|
| | | <name>org.eclipse.m2e.core.maven2Builder</name>
|
| | | <arguments>
|
| | | </arguments>
|
| | | </buildCommand>
|
| | | </buildSpec>
|
| | | <natures>
|
| | | <nature>org.eclipse.jdt.core.javanature</nature>
|
| | | <nature>org.eclipse.m2e.core.maven2Nature</nature>
|
| | | </natures>
|
| | | </projectDescription>
|
¶Ô±ÈÐÂÎļþ |
| | |
| | | eclipse.preferences.version=1
|
| | | encoding//src/main/java=UTF-8
|
| | | encoding//src/main/resources=UTF-8
|
| | | encoding//src/test/java=UTF-8
|
| | | encoding/<project>=UTF-8
|
¶Ô±ÈÐÂÎļþ |
| | |
| | | eclipse.preferences.version=1
|
| | | org.eclipse.jdt.core.compiler.codegen.methodParameters=generate
|
| | | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
|
| | | org.eclipse.jdt.core.compiler.compliance=1.8
|
| | | org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled
|
| | | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
|
| | | org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=ignore
|
| | | org.eclipse.jdt.core.compiler.release=disabled
|
| | | org.eclipse.jdt.core.compiler.source=1.8
|
¶Ô±ÈÐÂÎļþ |
| | |
| | | activeProfiles=
|
| | | eclipse.preferences.version=1
|
| | | resolveWorkspaceProjects=true
|
| | | version=1
|
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <project xmlns="http://maven.apache.org/POM/4.0.0" |
| | | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| | | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| | | <parent> |
| | | <artifactId>product-server</artifactId> |
| | | <groupId>com.lx</groupId> |
| | | <version>1.2.0-SNAPSHOT</version> |
| | | </parent> |
| | | <modelVersion>4.0.0</modelVersion> |
| | | <artifactId>product-server-xining</artifactId> |
| | | <packaging>jar</packaging> |
| | | <name>product-server-xining</name> |
| | | <description>product-server-xining</description> |
| | | |
| | | <properties> |
| | | <maven.compiler.source>8</maven.compiler.source> |
| | | <maven.compiler.target>8</maven.compiler.target> |
| | | </properties> |
| | | <dependencies> |
| | | <dependency> |
| | | <groupId>com.lx</groupId> |
| | | <artifactId>product-server-common</artifactId> |
| | | <version>1.2.0-SNAPSHOT</version> |
| | | </dependency> |
| | | <dependency> |
| | | <groupId>com.lx</groupId> |
| | | <artifactId>product-server-util</artifactId> |
| | | <version>1.2.0-SNAPSHOT</version> |
| | | </dependency> |
| | | <dependency> |
| | | <groupId>com.lx</groupId> |
| | | <artifactId>product-server-admin</artifactId> |
| | | <version>1.2.0-SNAPSHOT</version> |
| | | <scope>compile</scope> |
| | | </dependency> |
| | | </dependencies> |
| | | </project> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <project xmlns="http://maven.apache.org/POM/4.0.0" |
| | | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| | | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| | | <parent> |
| | | <artifactId>product-server</artifactId> |
| | | <groupId>com.lx</groupId> |
| | | <version>1.0.0-SNAPSHOT</version> |
| | | </parent> |
| | | <modelVersion>4.0.0</modelVersion> |
| | | <artifactId>product-server-xining</artifactId> |
| | | <packaging>jar</packaging> |
| | | <name>product-server-xining</name> |
| | | <description>product-server-xining</description> |
| | | |
| | | <properties> |
| | | <maven.compiler.source>8</maven.compiler.source> |
| | | <maven.compiler.target>8</maven.compiler.target> |
| | | </properties> |
| | | <dependencies> |
| | | <dependency> |
| | | <groupId>com.lx</groupId> |
| | | <artifactId>product-server-common</artifactId> |
| | | <version>1.0.0-SNAPSHOT</version> |
| | | </dependency> |
| | | <dependency> |
| | | <groupId>com.lx</groupId> |
| | | <artifactId>product-server-util</artifactId> |
| | | <version>1.0.0-SNAPSHOT</version> |
| | | </dependency> |
| | | <dependency> |
| | | <groupId>com.lx</groupId> |
| | | <artifactId>product-server-admin</artifactId> |
| | | <version>1.0.0-SNAPSHOT</version> |
| | | <scope>compile</scope> |
| | | </dependency> |
| | | <dependency> |
| | | <groupId>com.lx</groupId> |
| | | <artifactId>product-server-admin</artifactId> |
| | | <version>1.0.0-SNAPSHOT</version> |
| | | <scope>compile</scope> |
| | | </dependency> |
| | | </dependencies> |
| | | </project> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.home.xining.config;
|
| | |
|
| | | public class CmnConst {
|
| | |
|
| | | public static final String PRODUCT_SYS_ORG_LEVELS = "product_sys_org_levels";// åä½é¨é¨è¡¨
|
| | | public static final String PRODUCT_SYS_FLOW_MODEL="product_sys_flow_model"; //æµç¨è¡¨
|
| | | public static final String PRODUCT_SYS_STAFFS="product_sys_staffs"; //å工信æ¯è¡¨
|
| | |
|
| | | // å页常éå®ä¹
|
| | | public static final String CPAGE = "cpage"; // 页æ°
|
| | | public static final String PAGESIZE = "pagesize"; // æ¯é¡µæ¡æ°
|
| | |
|
| | | // æµç¨å¸¸é
|
| | | public static final String FLOW_FLAG="flow_flag"; //é审æ è¯
|
| | |
|
| | | //åæ®µå¸¸éå®ä¹
|
| | | public static final String UUID = "uuid"; // uuid
|
| | | public static final String USER_ID="user_id"; //ç»å½ç¨æ·id
|
| | | public static final String ORG_LEVEL_UUID="org_level_uuid"; //æ°æ®åå
¸æ¾ç¤ºå¼
|
| | | public static final String DEPT_UUID="dept_uuid"; //é¨é¨
|
| | | public static final String UPDATED_BY = "updated_by"; // ä¿®æ¹è
|
| | | public static final String UPDATED_UTC_DATETIME = "updated_utc_datetime"; // ä¿®æ¹æ¶é´
|
| | | public static final String CREATED_BY = "created_by"; // å建è
|
| | | public static final String CREATED_UTC_DATETIME = "created_utc_datetime"; // å建æ¶é´
|
| | | public static final String FIELD_RELATION_TABLE="field_relation_table"; //å¤é®å
³è表
|
| | | public static final String SOURCE_TABLE="source_table"; //å表
|
| | | public static final String BG18="bg18"; //åå
¬ç¨åé¢ç¨è¡¨--ç³è¯·äºº
|
| | | public static final String BG17="bg17"; //åå
¬ç¨åé¢ç¨è¡¨--ç³è¯·æ¶é´
|
| | | public static final String GW10="gw10"; //å
¬å¡æ¥å¾
审æ¹è¡¨--ç³è¯·äºº
|
| | | public static final String GW11="gw11"; //å
¬å¡æ¥å¾
审æ¹è¡¨--ç³è¯·æ¶é´
|
| | | public static final String CL11="cl11"; //车è¾ç»´ä¿®(è£
æ½¢)审æ¹è¡¨--ç³è¯·äºº
|
| | | public static final String CL12="cl12"; //车è¾ç»´ä¿®(è£
æ½¢)审æ¹è¡¨--ç³è¯·æ¶é´
|
| | | public static final String BG07="bg07"; //åå
¬å®¤ç¨åéè´å®¡æ¹è¡¨--ç»å人
|
| | | public static final String BG05="bg05"; //åå
¬å®¤ç¨åéè´å®¡æ¹è¡¨--æ¶é´
|
| | | public static final String BG03="bg03"; //åå
¬å®¤ç¨åéè´å®¡æ¹è¡¨--é审表示
|
| | | public static final String PL01="pl01"; //请ä¼å审æ¹è¡¨--ç³è¯·äºº
|
| | | public static final String FW15="fw15"; //åæç¨¿çº¸--èµ·è人
|
| | | public static final String SF33="sf33"; //æ¶æç®¡ç--ç»è®°äºº
|
| | |
|
| | | //表
|
| | | public static final String BGYPLYB="bgyplyb"; //åå
¬ç¨åé¢ç¨è¡¨
|
| | | public static final String BGYPLYB_SUB="bgyplyb_sub"; //åå
¬ç¨åé¢ç¨è¡¨_å表
|
| | | public static final String APP_NOTICE_PUNISHMENT="app_notice_punishment"; //è¡æ¿å¤ç½äºå
åç¥ä¹¦è¡¨
|
| | | public static final String NO18 = "no18"; //è¡æ¿å¤ç½äºå
åç¥ä¹¦ å建人
|
| | | public static final String APP_XZZFSPB="app_xzzfspb"; //è¡æ¿æ§æ³å®¡æ¹è¡¨
|
| | | public static final String AX04 = "ax04"; //è¡æ¿æ§æ³å®¡æ¹è¡¨ å建人
|
| | | public static final String APP_GZRYCCSPB="app_gzryccspb"; //å·¥ä½äººååºå·®å¹è®è¡¨
|
| | | public static final String GWJDSPB="gwjdspb"; //å
¬å¡åæ¥å¾
审æ¹è¡¨
|
| | | public static final String CLWXZHPB="clwxzhpb"; //车è¾ç»´ä¿®(è£
æ½¢)审æ¹è¡¨
|
| | | public static final String BGSYPCGB="bgsypcgb"; //åå
¬å®¤ç¨åéè´å®¡æ¹è¡¨
|
| | | public static final String BGSYPCGB_SUB="bgsypcgb_sub"; //åå
¬å®¤ç¨åéè´å®¡æ¹è¡¨å表
|
| | | public static final String PLEASELEAVE="pleaseleave"; //请ä¼å审æ¹è¡¨
|
| | | public static final String FWGZ="fwgz"; //åæç¨¿çº¸è¡¨
|
| | | public static final String SFGL="sfgl"; //æ¶æç®¡ç
|
| | | public static final String PRODUCT_OA_HOUSING_ARCHIVES="product_oa_housing_archives";//䏿¿ä¸æ¡£è°æ¥è¡¨
|
| | |
|
| | | public static final String CREATED_BY_FIELD = "created_by_field"; //åå»ºäººåæ®µ
|
| | | public static final String CREATED_DATETIME_FIELD = "created_datetime_field"; //å建æ¶é´å段
|
| | | public static final String UPDATED_BY_FIELD = "updated_by_field";//ä¿®æ¹äººå段
|
| | | public static final String UPDATED_DATETIME_FIELD = "updated_datetime_field";//ä¿®æ¹æ¶é´å段
|
| | | public static final String APP_KQLRB="app_kqlrb"; //èå¤å½å
¥è¡¨
|
| | | }
|
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.home.xining.config;
|
| | |
|
| | | import com.product.common.enums.IEnum;
|
| | | import com.product.common.enums.ModuleEnum;
|
| | |
|
| | | public enum SystemCode implements IEnum {
|
| | |
|
| | | SYSTEM_OPERATION_SUCCESS("æå", "200"), SYSTEM_FORM_NODATA("请æ±åæ°ä¸ºç©º", ModuleEnum.ORGSYSTEM.getValue() + "001"),
|
| | | SYSTEM_FORM_COUNT("请æ±åæ°æè¯¯", ModuleEnum.SYSTEM.getValue() + "998"),
|
| | | SYSTEM_TABLE_NODATA("请æ±è¡¨åæè¯¯", ModuleEnum.SYSTEM.getValue() + "997"),
|
| | | SYSTEM_ACQUIRE_PARAM_FAIL("è·ååæ°å¤±è´¥", ModuleEnum.SYSTEM.getValue() + "996"),
|
| | | SYSTEM_CPAGES_NOT_NULL("å页忰ä¸è½ä¸ºç©º", ModuleEnum.SYSTEM.getValue() + "995"),
|
| | |
|
| | | SAVE_OFFICE_EXPENSES_FILE("åå
¬ç¨åç»è´¹å®¡æ¹ä¿å失败", ModuleEnum.SYSTEM.getValue() + "002"),
|
| | | GETLIST_OFFICE_EXPENSES_FILE("åå
¬ç¨åç»è´¹å®¡æ¹å表è·å失败", ModuleEnum.SYSTEM.getValue() + "003"),
|
| | | GETINFO_OFFICE_EXPENSES_FILE("åå
¬ç¨åç»è´¹å®¡æ¹è¯¦æ
è·å失败", ModuleEnum.SYSTEM.getValue() + "004"),
|
| | | DELETE_OFFICE_EXPENSES_FILE("åå
¬ç¨åç»è´¹å®¡æ¹å é¤å¤±è´¥", ModuleEnum.SYSTEM.getValue() + "005"),
|
| | | SEND_OFFICE_EXPENSES_FILE("åå
¬ç¨åç»è´¹éå失败", ModuleEnum.SYSTEM.getValue() + "006"),
|
| | |
|
| | | SAVE_TRAVEL_TRAIN_FILE("å·¥ä½äººååºå·®ï¼å¹è®ï¼å®¡æ¹ä¿å失败", ModuleEnum.SYSTEM.getValue() + "007"),
|
| | | GETLIST_TRAVEL_TRAIN_FILE("å·¥ä½äººååºå·®ï¼å¹è®ï¼å®¡æ¹å表è·å失败", ModuleEnum.SYSTEM.getValue() + "008"),
|
| | | GETINFO_TRAVEL_TRAIN_FILE("å·¥ä½äººååºå·®ï¼å¹è®ï¼å®¡æ¹è¯¦æ
è·å失败", ModuleEnum.SYSTEM.getValue() + "009"),
|
| | | DELETE_TRAVEL_TRAIN_FILE("å·¥ä½äººååºå·®ï¼å¹è®ï¼å®¡æ¹å é¤å¤±è´¥", ModuleEnum.SYSTEM.getValue() + "010"),
|
| | | SEND_TRAVEL_TRAIN_FILE("å·¥ä½äººååºå·®ï¼å¹è®ï¼å®¡æ¹éå失败", ModuleEnum.SYSTEM.getValue() + "011"),
|
| | |
|
| | | SAVE_CIVIL_SERVANT_RECEPTION_FILE("å
¬å¡æ¥å¾
审æ¹ä¿å失败", ModuleEnum.SYSTEM.getValue() + "012"),
|
| | | GETLIST_CIVIL_SERVANT_RECEPTION_FILE("å
¬å¡æ¥å¾
审æ¹å表è·å失败", ModuleEnum.SYSTEM.getValue() + "013"),
|
| | | GETINFO_CIVIL_SERVANT_RECEPTION_FILE("å
¬å¡æ¥å¾
审æ¹è¯¦æ
è·å失败", ModuleEnum.SYSTEM.getValue() + "014"),
|
| | | DELETE_CIVIL_SERVANT_RECEPTION_FILE("å
¬å¡æ¥å¾
审æ¹å é¤å¤±è´¥", ModuleEnum.SYSTEM.getValue() + "015"),
|
| | | SEND_CIVIL_SERVANT_RECEPTION_FILE("å
¬å¡æ¥å¾
审æ¹éå失败", ModuleEnum.SYSTEM.getValue() + "016"),
|
| | |
|
| | | SAVE_VEHICLE_MAINTENANCE_FILE("åå
¬å®¤ç¨åéè´ä¿å失败", ModuleEnum.SYSTEM.getValue() + "017"),
|
| | | GETLIST_VEHICLE_MAINTENANCE_FILE("åå
¬å®¤ç¨åéè´å表è·å失败", ModuleEnum.SYSTEM.getValue() + "018"),
|
| | | GETINFO_VEHICLE_MAINTENANCE_FILE("åå
¬å®¤ç¨åéè´è¯¦æ
è·å失败", ModuleEnum.SYSTEM.getValue() + "019"),
|
| | | DELETE_VEHICLE_MAINTENANCE_FILE("åå
¬å®¤ç¨åéè´å é¤å¤±è´¥", ModuleEnum.SYSTEM.getValue() + "020"),
|
| | | SEND_VEHICLE_MAINTENANCE_FILE("åå
¬å®¤ç¨åéè´éå失败", ModuleEnum.SYSTEM.getValue() + "021"),
|
| | |
|
| | | SAVE_DATA_FILE("ä¿åæ°æ®å¤±è´¥", ModuleEnum.SYSTEM.getValue() + "022"),
|
| | | GET_DATA_FILE("è·åæ°æ®å¤±è´¥", ModuleEnum.SYSTEM.getValue() + "023"),
|
| | | DELETE_DATA_FILE("å 餿°æ®å¤±è´¥", ModuleEnum.SYSTEM.getValue() + "024"),
|
| | | GET_DATALIST_FILE("è·åå表失败", ModuleEnum.SYSTEM.getValue() + "025"),
|
| | | SAVE_CW_ATTENDANCE_FILE("èå¤å½å
¥ä¿å失败", ModuleEnum.SYSTEM.getValue() + "026"),
|
| | | GETLIST_CW_ATTENDANCE_FILE("èå¤å½å
¥å表è·å失败", ModuleEnum.SYSTEM.getValue() + "027"),
|
| | | GETINFO_CW_ATTENDANCE_FILE("èå¤å½å
¥è¯¦æ
è·å失败", ModuleEnum.SYSTEM.getValue() + "028"),
|
| | | DELETE_CW_ATTENDANCE_FILE("èå¤å½å
¥å é¤å¤±è´¥", ModuleEnum.SYSTEM.getValue() + "029"),
|
| | |
|
| | | GETLIST_SEND_DOC_FILE("åæç¨¿çº¸å表è·å失败", ModuleEnum.SYSTEM.getValue() + "030"),
|
| | | GETLIST_RECIPT_DOC_FILE("æ¶æç®¡çå表è·å失败", ModuleEnum.SYSTEM.getValue() + "031"),
|
| | |
|
| | | BATCH_FILING_DOCUMENTS_FILE("彿¡£å¤±è´¥", ModuleEnum.SYSTEM.getValue() + "032"),
|
| | | GET_SERIAL_NUMBER_FILE("è·åç¼å·å¤±è´¥",ModuleEnum.SYSTEM.getValue() + "033"),
|
| | | ;
|
| | |
|
| | | private String text;
|
| | | private String value;
|
| | |
|
| | | private SystemCode(String text, String value) {
|
| | | this.text = text;
|
| | | this.value = value;
|
| | | }
|
| | |
|
| | | public String getText() {
|
| | | return text;
|
| | | }
|
| | |
|
| | | public String getValue() {
|
| | | return value;
|
| | | }
|
| | |
|
| | | }
|
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.home.xining.controller;
|
| | |
|
| | | import com.home.xining.config.CmnConst;
|
| | | import com.home.xining.config.SystemCode;
|
| | | import com.home.xining.service.AdvanceNoticeService;
|
| | | import com.home.xining.service.idel.IAdvanceNoticeService;
|
| | | import com.home.xining.service.idel.ILawEnforcementService;
|
| | | import com.product.core.config.CoreConst;
|
| | | import com.product.core.entity.FieldSetEntity;
|
| | | import com.product.core.entity.RequestParameterEntity;
|
| | | import com.product.core.exception.BaseException;
|
| | | import com.product.core.spring.context.SpringMVCContextHolder;
|
| | | import com.product.module.sys.version.ApiVersion;
|
| | | import com.product.util.support.AbstractBaseController;
|
| | | import org.springframework.beans.factory.annotation.Autowired;
|
| | | import org.springframework.web.bind.annotation.PostMapping;
|
| | | import org.springframework.web.bind.annotation.RequestMapping;
|
| | | import org.springframework.web.bind.annotation.RestController;
|
| | |
|
| | | import javax.servlet.http.HttpServletRequest;
|
| | |
|
| | | /**
|
| | | * @Title: AdvanceNoticeController
|
| | | * @Date: 2022-01-11 11:30:48
|
| | | * @Author: luoxin
|
| | | * @Description: è¡æ¿å¤ç½äºå
åç¥ä¹¦Constoller
|
| | | */
|
| | | @RequestMapping("/api/advanceNotice")
|
| | | @RestController
|
| | | public class AdvanceNoticeController extends AbstractBaseController {
|
| | |
|
| | |
|
| | | @Autowired
|
| | | AdvanceNoticeService advanceNoticeService;
|
| | |
|
| | | @PostMapping("/list-advanceNotice/{version}")
|
| | | @ApiVersion(1)
|
| | | public String listAdvanceNoticeg(HttpServletRequest request) {
|
| | | try {
|
| | | //è·ååæ°
|
| | | FieldSetEntity fse = null;
|
| | | Object bean = request.getAttribute(CoreConst.API_POST_REQUEST_DATA);
|
| | | if (bean != null) {
|
| | | RequestParameterEntity reqp = (RequestParameterEntity) bean;
|
| | | fse = reqp.getFormData();
|
| | | }
|
| | | //夿忰æ¯å¦ä¸ºç©º
|
| | | if (bean == null || fse == null) {
|
| | | return this.error(SystemCode.SYSTEM_FORM_NODATA.getValue(), SystemCode.SYSTEM_FORM_NODATA.getText());
|
| | | }
|
| | | //å¤æè¡¨åæ¯å¦æ£å¸¸
|
| | | if (!CmnConst.APP_NOTICE_PUNISHMENT.equals(fse.getTableName())) {
|
| | | return this.error(SystemCode.SYSTEM_TABLE_NODATA.getValue(), SystemCode.SYSTEM_TABLE_NODATA.getText());
|
| | | }
|
| | | return OK_List(advanceNoticeService.listAdvanceNoticeg(fse));
|
| | | } catch (BaseException e) {
|
| | | e.printStackTrace();
|
| | | SpringMVCContextHolder.getSystemLogger().error(e);
|
| | | return this.error(SystemCode.GET_DATALIST_FILE.getValue(), SystemCode.GET_DATALIST_FILE.getText());
|
| | | } catch (Exception e) {
|
| | | e.printStackTrace();
|
| | | SpringMVCContextHolder.getSystemLogger().error(e);
|
| | | return this.error(SystemCode.GET_DATALIST_FILE.getValue(), SystemCode.GET_DATALIST_FILE.getText());
|
| | | }
|
| | | }
|
| | |
|
| | | @PostMapping("/get-advanceNotice/{version}")
|
| | | @ApiVersion(1)
|
| | | public String getAdvanceNotice(HttpServletRequest request) {
|
| | | try {
|
| | | //è·ååæ°
|
| | | FieldSetEntity fse = null;
|
| | | Object bean = request.getAttribute(CoreConst.API_POST_REQUEST_DATA);
|
| | | if (bean != null) {
|
| | | RequestParameterEntity reqp = (RequestParameterEntity) bean;
|
| | | fse = reqp.getFormData();
|
| | | }
|
| | | //夿忰æ¯å¦ä¸ºç©º
|
| | | if (bean == null || fse == null) {
|
| | | return this.error(SystemCode.SYSTEM_FORM_NODATA.getValue(), SystemCode.SYSTEM_FORM_NODATA.getText());
|
| | | }
|
| | | //å¤æè¡¨åæ¯å¦æ£å¸¸
|
| | | if (!CmnConst.APP_NOTICE_PUNISHMENT.equals(fse.getTableName())) {
|
| | | return this.error(SystemCode.SYSTEM_TABLE_NODATA.getValue(), SystemCode.SYSTEM_TABLE_NODATA.getText());
|
| | | }
|
| | | return OK_List(advanceNoticeService.getAdvanceNotice(fse));
|
| | | } catch (BaseException e) {
|
| | | e.printStackTrace();
|
| | | SpringMVCContextHolder.getSystemLogger().error(e);
|
| | | return this.error(SystemCode.GET_DATA_FILE.getValue(), SystemCode.GET_DATA_FILE.getText());
|
| | | } catch (Exception e) {
|
| | | e.printStackTrace();
|
| | | SpringMVCContextHolder.getSystemLogger().error(e);
|
| | | return this.error(SystemCode.GET_DATA_FILE.getValue(), SystemCode.GET_DATA_FILE.getText());
|
| | | }
|
| | | }
|
| | |
|
| | | @PostMapping("/save-advanceNotice/{version}")
|
| | | @ApiVersion(1)
|
| | | public String saveAdvanceNotice(HttpServletRequest request) {
|
| | | try {
|
| | | //è·ååæ°
|
| | | FieldSetEntity fse = null;
|
| | | Object bean = request.getAttribute(CoreConst.API_POST_REQUEST_DATA);
|
| | | if (bean != null) {
|
| | | RequestParameterEntity reqp = (RequestParameterEntity) bean;
|
| | | fse = reqp.getFormData();
|
| | | }
|
| | | //夿忰æ¯å¦ä¸ºç©º
|
| | | if (bean == null || fse == null) {
|
| | | return this.error(SystemCode.SYSTEM_FORM_NODATA.getValue(), SystemCode.SYSTEM_FORM_NODATA.getText());
|
| | | }
|
| | | //å¤æè¡¨åæ¯å¦æ£å¸¸
|
| | | if (!CmnConst.APP_NOTICE_PUNISHMENT.equals(fse.getTableName())) {
|
| | | return this.error(SystemCode.SYSTEM_TABLE_NODATA.getValue(), SystemCode.SYSTEM_TABLE_NODATA.getText());
|
| | | }
|
| | | IAdvanceNoticeService service = (IAdvanceNoticeService) getProxyInstance(advanceNoticeService);
|
| | | return OK_Add(service.saveAdvanceNotice(fse));
|
| | | } catch (BaseException e) {
|
| | | e.printStackTrace();
|
| | | SpringMVCContextHolder.getSystemLogger().error(e);
|
| | | return this.error(SystemCode.SAVE_DATA_FILE.getValue(), SystemCode.SAVE_DATA_FILE.getText());
|
| | | } catch (Exception e) {
|
| | | e.printStackTrace();
|
| | | SpringMVCContextHolder.getSystemLogger().error(e);
|
| | | return this.error(SystemCode.SAVE_DATA_FILE.getValue(), SystemCode.SAVE_DATA_FILE.getText());
|
| | | }
|
| | | }
|
| | |
|
| | | @PostMapping("/delete-advanceNotice/{version}")
|
| | | @ApiVersion(1)
|
| | | public String deleteAdvanceNotice(HttpServletRequest request) {
|
| | | try {
|
| | | //è·ååæ°
|
| | | FieldSetEntity fse = null;
|
| | | Object bean = request.getAttribute(CoreConst.API_POST_REQUEST_DATA);
|
| | | if (bean != null) {
|
| | | RequestParameterEntity reqp = (RequestParameterEntity) bean;
|
| | | fse = reqp.getFormData();
|
| | | }
|
| | | //夿忰æ¯å¦ä¸ºç©º
|
| | | if (bean == null || fse == null) {
|
| | | return this.error(SystemCode.SYSTEM_FORM_NODATA.getValue(), SystemCode.SYSTEM_FORM_NODATA.getText());
|
| | | }
|
| | | //å¤æè¡¨åæ¯å¦æ£å¸¸
|
| | | if (!CmnConst.APP_NOTICE_PUNISHMENT.equals(fse.getTableName())) {
|
| | | return this.error(SystemCode.SYSTEM_TABLE_NODATA.getValue(), SystemCode.SYSTEM_TABLE_NODATA.getText());
|
| | | }
|
| | | IAdvanceNoticeService service = (IAdvanceNoticeService) getProxyInstance(advanceNoticeService);
|
| | | return OK_login(service.deleteAdvanceNotice(fse));
|
| | | } catch (BaseException e) {
|
| | | e.printStackTrace();
|
| | | SpringMVCContextHolder.getSystemLogger().error(e);
|
| | | return this.error(SystemCode.DELETE_DATA_FILE.getValue(), SystemCode.DELETE_DATA_FILE.getText());
|
| | | } catch (Exception e) {
|
| | | e.printStackTrace();
|
| | | SpringMVCContextHolder.getSystemLogger().error(e);
|
| | | return this.error(SystemCode.DELETE_DATA_FILE.getValue(), SystemCode.DELETE_DATA_FILE.getText());
|
| | | }
|
| | | }
|
| | | }
|
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.home.xining.controller;
|
| | |
|
| | | import com.home.xining.config.CmnConst;
|
| | | import com.home.xining.config.SystemCode;
|
| | | import com.home.xining.service.CivilServantReceptionService;
|
| | | import com.home.xining.service.idel.ICivilServantReceptionService;
|
| | | import com.product.common.lang.StringUtils;
|
| | | import com.product.core.config.CoreConst;
|
| | | import com.product.core.entity.DataTableEntity;
|
| | | import com.product.core.entity.FieldSetEntity;
|
| | | import com.product.core.entity.RequestParameterEntity;
|
| | | import com.product.core.exception.BaseException;
|
| | | import com.product.core.spring.context.SpringMVCContextHolder;
|
| | | import com.product.module.sys.version.ApiVersion;
|
| | | import com.product.util.support.AbstractBaseController;
|
| | | import org.springframework.beans.factory.annotation.Autowired;
|
| | | import org.springframework.web.bind.annotation.RequestMapping;
|
| | | import org.springframework.web.bind.annotation.RequestMethod;
|
| | | import org.springframework.web.bind.annotation.RestController;
|
| | |
|
| | | import javax.servlet.http.HttpServletRequest;
|
| | |
|
| | | /**
|
| | | * @ClassName: CivilServantReceptionController
|
| | | * @Author: ZhouJie
|
| | | * @Date: 2022/1/19 10:43
|
| | | * @Description: å
¬å¡æ¥å¾
审æ¹
|
| | | */
|
| | | @RequestMapping("/api/civilser")
|
| | | @RestController
|
| | | public class CivilServantReceptionController extends AbstractBaseController {
|
| | |
|
| | | @Autowired
|
| | | public CivilServantReceptionService civilServantReceptionService;
|
| | |
|
| | | /**
|
| | | * ä¿åå
¬å¡æ¥å¾
审æ¹
|
| | | * @param request
|
| | | * @return
|
| | | */
|
| | | @RequestMapping(value = "/save-civilservant/{version}", method = RequestMethod.POST)
|
| | | @ApiVersion(1)
|
| | | public String saveCivilServantReception(HttpServletRequest request) {
|
| | | try {
|
| | | //è·ååæ°
|
| | | FieldSetEntity fse=null;
|
| | | Object bean=request.getAttribute(CoreConst.API_POST_REQUEST_DATA);
|
| | | if(bean != null){
|
| | | RequestParameterEntity reqp=(RequestParameterEntity)bean;
|
| | | fse = reqp.getFormData();
|
| | | }
|
| | | //夿忰æ¯å¦ä¸ºç©º
|
| | | if(bean == null || fse == null) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(SystemCode.SYSTEM_TABLE_NODATA.getValue(), SystemCode.SYSTEM_TABLE_NODATA.getText());
|
| | | return this.error(SystemCode.SYSTEM_FORM_NODATA.getValue(), SystemCode.SYSTEM_FORM_NODATA.getText());
|
| | | }
|
| | | //å¤æè¡¨åæ¯å¦æ£å¸¸
|
| | | if (!CmnConst.GWJDSPB.equals(fse.getTableName())) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(SystemCode.SYSTEM_TABLE_NODATA.getValue(), SystemCode.SYSTEM_TABLE_NODATA.getText());
|
| | | return this.error(SystemCode.SYSTEM_TABLE_NODATA.getValue(), SystemCode.SYSTEM_TABLE_NODATA.getText());
|
| | | }
|
| | | ICivilServantReceptionService service = (ICivilServantReceptionService) getProxyInstance(civilServantReceptionService);
|
| | | String uuid = service.saveCivilServantReception(fse);
|
| | | if (!StringUtils.isEmpty(uuid)) {
|
| | | return OK_Add(uuid);
|
| | | }
|
| | | SpringMVCContextHolder.getSystemLogger().error(SystemCode.SAVE_CIVIL_SERVANT_RECEPTION_FILE.getValue(), SystemCode.SAVE_CIVIL_SERVANT_RECEPTION_FILE.getText());
|
| | | return error(SystemCode.SAVE_CIVIL_SERVANT_RECEPTION_FILE.getValue(), SystemCode.SAVE_CIVIL_SERVANT_RECEPTION_FILE.getText());
|
| | | }catch(BaseException e) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(e);
|
| | | return this.error(e);
|
| | | }catch (Exception e) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(e);
|
| | | return this.error(SystemCode.SAVE_CIVIL_SERVANT_RECEPTION_FILE.getValue(), SystemCode.SAVE_CIVIL_SERVANT_RECEPTION_FILE.getText());
|
| | | }
|
| | | }
|
| | |
|
| | | /**
|
| | | * å é¤å
¬å¡æ¥å¾
审æ¹
|
| | | * @param request
|
| | | * @return
|
| | | */
|
| | | @RequestMapping(value = "/delete-civilservant/{version}", method = RequestMethod.POST)
|
| | | @ApiVersion(1)
|
| | | public String deleteCivilServantReception(HttpServletRequest request) {
|
| | | try {
|
| | | //è·ååæ°
|
| | | FieldSetEntity fse=null;
|
| | | Object bean=request.getAttribute(CoreConst.API_POST_REQUEST_DATA);
|
| | | if(bean != null) {
|
| | | RequestParameterEntity reqp=(RequestParameterEntity)bean;
|
| | | fse = reqp.getFormData();
|
| | | }
|
| | | //夿忰æ¯å¦ä¸ºç©º
|
| | | if(bean == null || fse == null) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(SystemCode.SYSTEM_FORM_NODATA.getValue(), SystemCode.SYSTEM_FORM_NODATA.getText());
|
| | | return this.error(SystemCode.SYSTEM_FORM_NODATA.getValue(), SystemCode.SYSTEM_FORM_NODATA.getText());
|
| | | }
|
| | | //å¤æè¡¨åæ¯å¦æ£å¸¸
|
| | | if (!CmnConst.GWJDSPB.equals(fse.getTableName())) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(SystemCode.SYSTEM_TABLE_NODATA.getValue(), SystemCode.SYSTEM_TABLE_NODATA.getText());
|
| | | return this.error(SystemCode.SYSTEM_TABLE_NODATA.getValue(), SystemCode.SYSTEM_TABLE_NODATA.getText());
|
| | | }
|
| | | //夿uuidæ¯å¦ä¸ºç©º
|
| | | if (com.alibaba.druid.util.StringUtils.isEmpty(fse.getString(CmnConst.UUID))) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(SystemCode.SYSTEM_FORM_COUNT.getValue(), SystemCode.SYSTEM_FORM_COUNT.getText());
|
| | | return this.error(SystemCode.SYSTEM_FORM_COUNT.getValue(), SystemCode.SYSTEM_FORM_COUNT.getText());
|
| | | }
|
| | | ICivilServantReceptionService service = (ICivilServantReceptionService) getProxyInstance(civilServantReceptionService);
|
| | | boolean success=service.deleteCivilServantReception(fse);
|
| | | if(success) {
|
| | | return OK();
|
| | | }
|
| | | SpringMVCContextHolder.getSystemLogger().error(SystemCode.DELETE_CIVIL_SERVANT_RECEPTION_FILE.getValue(),SystemCode.DELETE_CIVIL_SERVANT_RECEPTION_FILE.getText());
|
| | | return error(SystemCode.DELETE_CIVIL_SERVANT_RECEPTION_FILE.getValue(),SystemCode.DELETE_CIVIL_SERVANT_RECEPTION_FILE.getText());
|
| | | }catch(BaseException e) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(e);
|
| | | return this.error(e);
|
| | | }catch (Exception e) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(e);
|
| | | return this.error(SystemCode.DELETE_CIVIL_SERVANT_RECEPTION_FILE.getValue(),SystemCode.DELETE_CIVIL_SERVANT_RECEPTION_FILE.getText());
|
| | | }
|
| | | }
|
| | |
|
| | | /**
|
| | | * è·åå
¬å¡æ¥å¾
审æ¹å表
|
| | | * @param request
|
| | | * @return
|
| | | */
|
| | | @RequestMapping(value = "/list-civilservant/{version}", method = RequestMethod.POST)
|
| | | @ApiVersion(1)
|
| | | public String getCivilServantReceptionList(HttpServletRequest request) {
|
| | | try {
|
| | | //è·ååæ°
|
| | | FieldSetEntity fse=null;
|
| | | Object bean=request.getAttribute(CoreConst.API_POST_REQUEST_DATA);
|
| | | if(bean != null){
|
| | | RequestParameterEntity reqp=(RequestParameterEntity)bean;
|
| | | fse = reqp.getFormData();
|
| | | }
|
| | | //夿忰æ¯å¦ä¸ºç©º
|
| | | if(bean == null || fse == null) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(SystemCode.SYSTEM_TABLE_NODATA.getValue(), SystemCode.SYSTEM_TABLE_NODATA.getText());
|
| | | return this.error(SystemCode.SYSTEM_FORM_NODATA.getValue(), SystemCode.SYSTEM_FORM_NODATA.getText());
|
| | | }
|
| | | //å¤æè¡¨åæ¯å¦æ£å¸¸
|
| | | if (!CmnConst.GWJDSPB.equals(fse.getTableName())) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(SystemCode.SYSTEM_TABLE_NODATA.getValue(), SystemCode.SYSTEM_TABLE_NODATA.getText());
|
| | | return this.error(SystemCode.SYSTEM_TABLE_NODATA.getValue(), SystemCode.SYSTEM_TABLE_NODATA.getText());
|
| | | }
|
| | | //夿å页忰
|
| | | if(fse.getString(CmnConst.PAGESIZE)==null || fse.getString(CmnConst.CPAGE)==null){
|
| | | return this.error(SystemCode.SYSTEM_CPAGES_NOT_NULL.getValue(), SystemCode.SYSTEM_CPAGES_NOT_NULL.getText());
|
| | | }
|
| | | DataTableEntity dt = civilServantReceptionService.getCivilServantReceptionList(fse);
|
| | | return OK_List(dt);
|
| | | }catch(BaseException e) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(e);
|
| | | return this.error(e);
|
| | | }catch (Exception e) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(e);
|
| | | return this.error(SystemCode.GETLIST_CIVIL_SERVANT_RECEPTION_FILE.getValue(), SystemCode.GETLIST_CIVIL_SERVANT_RECEPTION_FILE.getText());
|
| | | }
|
| | | }
|
| | |
|
| | | /**
|
| | | * è·åå
¬å¡æ¥å¾
审æ¹è¯¦æ
|
| | | * @param request
|
| | | * @return
|
| | | */
|
| | | @RequestMapping(value="/find-civilservant/{version}",method=RequestMethod.POST)
|
| | | @ApiVersion(1)
|
| | | public String getCivilServantReceptionInfo(HttpServletRequest request){
|
| | | try {
|
| | | //è·ååæ°
|
| | | FieldSetEntity fse=null;
|
| | | Object bean=request.getAttribute(CoreConst.API_POST_REQUEST_DATA);
|
| | | if(bean != null) {
|
| | | RequestParameterEntity reqp=(RequestParameterEntity)bean;
|
| | | fse = reqp.getFormData();
|
| | | }
|
| | | //夿忰æ¯å¦ä¸ºç©º
|
| | | if(bean == null || fse == null) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(SystemCode.SYSTEM_FORM_NODATA.getValue(), SystemCode.SYSTEM_FORM_NODATA.getText());
|
| | | return this.error(SystemCode.SYSTEM_FORM_NODATA.getValue(), SystemCode.SYSTEM_FORM_NODATA.getText());
|
| | | }
|
| | | //å¤æè¡¨åæ¯å¦æ£å¸¸
|
| | | if (!CmnConst.GWJDSPB.equals(fse.getTableName())) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(SystemCode.SYSTEM_TABLE_NODATA.getValue(), SystemCode.SYSTEM_TABLE_NODATA.getText());
|
| | | return this.error(SystemCode.SYSTEM_TABLE_NODATA.getValue(), SystemCode.SYSTEM_TABLE_NODATA.getText());
|
| | | }
|
| | | //夿uuidæ¯å¦ä¸ºç©º
|
| | | if (com.alibaba.druid.util.StringUtils.isEmpty(fse.getString(CmnConst.UUID))) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(SystemCode.SYSTEM_TABLE_NODATA.getValue(), SystemCode.SYSTEM_TABLE_NODATA.getText());
|
| | | return this.error(SystemCode.SYSTEM_FORM_COUNT.getValue(), SystemCode.SYSTEM_FORM_COUNT.getText());
|
| | | }
|
| | | FieldSetEntity fs = civilServantReceptionService.getCivilServantReceptionInfo(fse);
|
| | | return OK_List(fs);
|
| | | }catch(BaseException e) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(e);
|
| | | return this.error(e);
|
| | | }catch (Exception e) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(e);
|
| | | return this.error(SystemCode.GETINFO_CIVIL_SERVANT_RECEPTION_FILE.getValue(),SystemCode.GETINFO_CIVIL_SERVANT_RECEPTION_FILE.getText());
|
| | | }
|
| | | }
|
| | |
|
| | | /**
|
| | | * å
¬å¡æ¥å¾
å®¡æ¹ éå
|
| | | * @param request
|
| | | * @return
|
| | | */
|
| | | @RequestMapping(value = "/send-civilservant/{version}", method = RequestMethod.POST)
|
| | | public String sendCivilServantReception(HttpServletRequest request) {
|
| | | try {
|
| | | //è·ååæ°
|
| | | FieldSetEntity fse=null;
|
| | | Object bean=request.getAttribute(CoreConst.API_POST_REQUEST_DATA);
|
| | | if(bean != null){
|
| | | RequestParameterEntity reqp=(RequestParameterEntity)bean;
|
| | | fse = reqp.getFormData();
|
| | | }
|
| | | //夿忰æ¯å¦ä¸ºç©º
|
| | | if(bean == null || fse == null) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(SystemCode.SYSTEM_FORM_NODATA.getValue(), SystemCode.SYSTEM_FORM_NODATA.getText());
|
| | | return this.error(SystemCode.SYSTEM_FORM_NODATA.getValue(), SystemCode.SYSTEM_FORM_NODATA.getText());
|
| | | }
|
| | | //å¤æè¡¨åæ¯å¦æ£å¸¸
|
| | | if (!CmnConst.GWJDSPB.equals(fse.getTableName())) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(SystemCode.SYSTEM_TABLE_NODATA.getValue(), SystemCode.SYSTEM_TABLE_NODATA.getText());
|
| | | return this.error(SystemCode.SYSTEM_TABLE_NODATA.getValue(), SystemCode.SYSTEM_TABLE_NODATA.getText());
|
| | | }
|
| | | ICivilServantReceptionService service = (ICivilServantReceptionService) getProxyInstance(civilServantReceptionService);
|
| | | boolean succ = service.sendCivilServantReception(fse.getUUID());
|
| | | if (succ) {
|
| | | return OK();
|
| | | }
|
| | | SpringMVCContextHolder.getSystemLogger().error(SystemCode.SEND_CIVIL_SERVANT_RECEPTION_FILE.getValue(), SystemCode.SEND_CIVIL_SERVANT_RECEPTION_FILE.getText());
|
| | | return error(SystemCode.SEND_CIVIL_SERVANT_RECEPTION_FILE.getValue(), SystemCode.SEND_CIVIL_SERVANT_RECEPTION_FILE.getText());
|
| | | }catch(BaseException e) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(e);
|
| | | return this.error(e);
|
| | | }catch (Exception e) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(e);
|
| | | return this.error(SystemCode.SEND_CIVIL_SERVANT_RECEPTION_FILE.getValue(), SystemCode.SEND_CIVIL_SERVANT_RECEPTION_FILE.getText());
|
| | | }
|
| | | }
|
| | |
|
| | |
|
| | |
|
| | |
|
| | | }
|
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.home.xining.controller;
|
| | |
|
| | | import com.home.xining.config.CmnConst;
|
| | | import com.home.xining.config.SystemCode;
|
| | | import com.home.xining.service.HousingArchivesService;
|
| | | import com.home.xining.service.idel.IHousingArchivesService;
|
| | | import com.product.core.config.CoreConst;
|
| | | import com.product.core.entity.FieldSetEntity;
|
| | | import com.product.core.entity.RequestParameterEntity;
|
| | | import com.product.core.exception.BaseException;
|
| | | import com.product.core.spring.context.SpringMVCContextHolder;
|
| | | import com.product.module.sys.version.ApiVersion;
|
| | | import com.product.util.support.AbstractBaseController;
|
| | | import org.springframework.beans.factory.annotation.Autowired;
|
| | | import org.springframework.web.bind.annotation.RequestMapping;
|
| | | import org.springframework.web.bind.annotation.RequestMethod;
|
| | | import org.springframework.web.bind.annotation.RestController;
|
| | |
|
| | | import javax.servlet.http.HttpServletRequest;
|
| | |
|
| | | /**
|
| | | * @Title: AdvanceNoticeController
|
| | | * @Date: 2022-06-11 11:30:48
|
| | | * @Author: luoxin
|
| | | * @Description: 䏿¿ä¸æ¡£è°æ¥è¡¨Constoller
|
| | | */
|
| | | @RequestMapping("/api/HousingArchives")
|
| | | @RestController
|
| | | public class HousingArchivesController extends AbstractBaseController {
|
| | |
|
| | | @Autowired
|
| | | HousingArchivesService housingArchivesService;
|
| | |
|
| | | @RequestMapping(value = "/getSerialNumber/{version}", method = RequestMethod.POST)
|
| | | @ApiVersion(1)
|
| | | public String getSerialNumber(HttpServletRequest request) {
|
| | | try {
|
| | | //è·ååæ°
|
| | | FieldSetEntity fse = null;
|
| | | Object bean = request.getAttribute(CoreConst.API_POST_REQUEST_DATA);
|
| | | if (bean != null) {
|
| | | RequestParameterEntity reqp = (RequestParameterEntity) bean;
|
| | | fse = reqp.getFormData();
|
| | | }
|
| | | //夿忰æ¯å¦ä¸ºç©º
|
| | | if (bean == null || fse == null) {
|
| | | return this.error(SystemCode.SYSTEM_FORM_NODATA.getValue(), SystemCode.SYSTEM_FORM_NODATA.getText());
|
| | | }
|
| | | //å¤æè¡¨åæ¯å¦æ£å¸¸
|
| | | if (!CmnConst.PRODUCT_OA_HOUSING_ARCHIVES.equals(fse.getTableName())) {
|
| | | return this.error(SystemCode.SYSTEM_TABLE_NODATA.getValue(), SystemCode.SYSTEM_TABLE_NODATA.getText());
|
| | | }
|
| | | IHousingArchivesService service = (IHousingArchivesService) getProxyInstance(housingArchivesService);
|
| | | return OK_Add(service.getSerialNumber());
|
| | | } catch (BaseException e) {
|
| | | e.printStackTrace();
|
| | | SpringMVCContextHolder.getSystemLogger().error(e);
|
| | | return this.error(SystemCode.GET_SERIAL_NUMBER_FILE.getValue(), SystemCode.GET_SERIAL_NUMBER_FILE.getText());
|
| | | } catch (Exception e) {
|
| | | e.printStackTrace();
|
| | | SpringMVCContextHolder.getSystemLogger().error(e);
|
| | | return this.error(SystemCode.GET_SERIAL_NUMBER_FILE.getValue(), SystemCode.GET_SERIAL_NUMBER_FILE.getText());
|
| | | }
|
| | | }
|
| | |
|
| | | @RequestMapping(value = "/saveIHousingArchives/{version}", method = RequestMethod.POST)
|
| | | @ApiVersion(1)
|
| | | public String saveIHousingArchives(HttpServletRequest request) {
|
| | | try {
|
| | | //è·ååæ°
|
| | | FieldSetEntity fse = null;
|
| | | Object bean = request.getAttribute(CoreConst.API_POST_REQUEST_DATA);
|
| | | if (bean != null) {
|
| | | RequestParameterEntity reqp = (RequestParameterEntity) bean;
|
| | | fse = reqp.getFormData();
|
| | | }
|
| | | //夿忰æ¯å¦ä¸ºç©º
|
| | | if (bean == null || fse == null) {
|
| | | return this.error(SystemCode.SYSTEM_FORM_NODATA.getValue(), SystemCode.SYSTEM_FORM_NODATA.getText());
|
| | | }
|
| | | //å¤æè¡¨åæ¯å¦æ£å¸¸
|
| | | if (!CmnConst.PRODUCT_OA_HOUSING_ARCHIVES.equals(fse.getTableName())) {
|
| | | return this.error(SystemCode.SYSTEM_TABLE_NODATA.getValue(), SystemCode.SYSTEM_TABLE_NODATA.getText());
|
| | | }
|
| | | IHousingArchivesService service = (IHousingArchivesService) getProxyInstance(housingArchivesService);
|
| | | return OK_Add(service.saveIHousingArchives(fse));
|
| | | } catch (BaseException e) {
|
| | | e.printStackTrace();
|
| | | SpringMVCContextHolder.getSystemLogger().error(e);
|
| | | return this.error(SystemCode.GET_SERIAL_NUMBER_FILE.getValue(), SystemCode.GET_SERIAL_NUMBER_FILE.getText());
|
| | | } catch (Exception e) {
|
| | | e.printStackTrace();
|
| | | SpringMVCContextHolder.getSystemLogger().error(e);
|
| | | return this.error(SystemCode.GET_SERIAL_NUMBER_FILE.getValue(), SystemCode.GET_SERIAL_NUMBER_FILE.getText());
|
| | | }
|
| | | }
|
| | | }
|
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.home.xining.controller;
|
| | |
|
| | | import com.home.xining.config.CmnConst;
|
| | | import com.home.xining.config.SystemCode;
|
| | | import com.home.xining.service.AdvanceNoticeService;
|
| | | import com.home.xining.service.LawEnforcementService;
|
| | | import com.home.xining.service.idel.ILawEnforcementService;
|
| | | import com.home.xining.service.idel.IOfficeExpensesService;
|
| | | import com.product.core.config.CoreConst;
|
| | | import com.product.core.entity.FieldSetEntity;
|
| | | import com.product.core.entity.RequestParameterEntity;
|
| | | import com.product.core.exception.BaseException;
|
| | | import com.product.module.sys.version.ApiVersion;
|
| | | import com.product.util.support.AbstractBaseController;
|
| | | import org.springframework.beans.factory.annotation.Autowired;
|
| | | import org.springframework.web.bind.annotation.PostMapping;
|
| | | import org.springframework.web.bind.annotation.RequestMapping;
|
| | | import org.springframework.web.bind.annotation.RestController;
|
| | |
|
| | | import javax.servlet.http.HttpServletRequest;
|
| | |
|
| | | /**
|
| | | * @Title: LawEnforcementController
|
| | | * @Date: 2022-01-20 11:30:48
|
| | | * @Author: luoxin
|
| | | * @Description: è¡æ¿æ§æ³å®¡æ¹Constoller
|
| | | */
|
| | | @RequestMapping("/api/lawEnforcement")
|
| | | @RestController
|
| | | public class LawEnforcementController extends AbstractBaseController {
|
| | |
|
| | |
|
| | | @Autowired
|
| | | LawEnforcementService lawEnforcementService;
|
| | |
|
| | | @PostMapping("/list-lawEnforcement/{version}")
|
| | | @ApiVersion(1)
|
| | | public String listLawEnforcement(HttpServletRequest request) {
|
| | | try {
|
| | | //è·ååæ°
|
| | | FieldSetEntity fse = null;
|
| | | Object bean = request.getAttribute(CoreConst.API_POST_REQUEST_DATA);
|
| | | if (bean != null) {
|
| | | RequestParameterEntity reqp = (RequestParameterEntity) bean;
|
| | | fse = reqp.getFormData();
|
| | | }
|
| | | //夿忰æ¯å¦ä¸ºç©º
|
| | | if (bean == null || fse == null) {
|
| | | return this.error(SystemCode.SYSTEM_FORM_NODATA.getValue(), SystemCode.SYSTEM_FORM_NODATA.getText());
|
| | | }
|
| | | //å¤æè¡¨åæ¯å¦æ£å¸¸
|
| | | if (!CmnConst.APP_XZZFSPB.equals(fse.getTableName())) {
|
| | | return this.error(SystemCode.SYSTEM_TABLE_NODATA.getValue(), SystemCode.SYSTEM_TABLE_NODATA.getText());
|
| | | }
|
| | | return OK_List(lawEnforcementService.listLawEnforcement(fse));
|
| | | } catch (BaseException e) {
|
| | | return error(e);
|
| | | } catch (Exception e) {
|
| | | e.getStackTrace();
|
| | | return error("",e.getMessage());
|
| | | }
|
| | | }
|
| | |
|
| | | @PostMapping("/get-lawEnforcement/{version}")
|
| | | @ApiVersion(1)
|
| | | public String getLawEnforcement(HttpServletRequest request) {
|
| | | try {
|
| | | //è·ååæ°
|
| | | FieldSetEntity fse = null;
|
| | | Object bean = request.getAttribute(CoreConst.API_POST_REQUEST_DATA);
|
| | | if (bean != null) {
|
| | | RequestParameterEntity reqp = (RequestParameterEntity) bean;
|
| | | fse = reqp.getFormData();
|
| | | }
|
| | | //夿忰æ¯å¦ä¸ºç©º
|
| | | if (bean == null || fse == null) {
|
| | | return this.error(SystemCode.SYSTEM_FORM_NODATA.getValue(), SystemCode.SYSTEM_FORM_NODATA.getText());
|
| | | }
|
| | | //å¤æè¡¨åæ¯å¦æ£å¸¸
|
| | | if (!CmnConst.APP_XZZFSPB.equals(fse.getTableName())) {
|
| | | return this.error(SystemCode.SYSTEM_TABLE_NODATA.getValue(), SystemCode.SYSTEM_TABLE_NODATA.getText());
|
| | | }
|
| | | return OK_List(lawEnforcementService.getLawEnforcement(fse));
|
| | | } catch (BaseException e) {
|
| | | return error(e);
|
| | | } catch (Exception e) {
|
| | | return error("","");
|
| | | }
|
| | | }
|
| | |
|
| | | @PostMapping("/save-lawEnforcement/{version}")
|
| | | @ApiVersion(1)
|
| | | public String saveLawEnforcement(HttpServletRequest request) {
|
| | | try {
|
| | | //è·ååæ°
|
| | | FieldSetEntity fse = null;
|
| | | Object bean = request.getAttribute(CoreConst.API_POST_REQUEST_DATA);
|
| | | if (bean != null) {
|
| | | RequestParameterEntity reqp = (RequestParameterEntity) bean;
|
| | | fse = reqp.getFormData();
|
| | | }
|
| | | //夿忰æ¯å¦ä¸ºç©º
|
| | | if (bean == null || fse == null) {
|
| | | return this.error(SystemCode.SYSTEM_FORM_NODATA.getValue(), SystemCode.SYSTEM_FORM_NODATA.getText());
|
| | | }
|
| | | //å¤æè¡¨åæ¯å¦æ£å¸¸
|
| | | if (!CmnConst.APP_XZZFSPB.equals(fse.getTableName())) {
|
| | | return this.error(SystemCode.SYSTEM_TABLE_NODATA.getValue(), SystemCode.SYSTEM_TABLE_NODATA.getText());
|
| | | }
|
| | | ILawEnforcementService service = (ILawEnforcementService) getProxyInstance(lawEnforcementService);
|
| | | return OK_Add(service.saveLawEnforcement(fse));
|
| | | } catch (BaseException e) {
|
| | | return error(e);
|
| | | } catch (Exception e) {
|
| | | return error("","");
|
| | | }
|
| | | }
|
| | |
|
| | | @PostMapping("/delete-lawEnforcement/{version}")
|
| | | @ApiVersion(1)
|
| | | public String deleteLawEnforcement(HttpServletRequest request) {
|
| | | try {
|
| | | //è·ååæ°
|
| | | FieldSetEntity fse = null;
|
| | | Object bean = request.getAttribute(CoreConst.API_POST_REQUEST_DATA);
|
| | | if (bean != null) {
|
| | | RequestParameterEntity reqp = (RequestParameterEntity) bean;
|
| | | fse = reqp.getFormData();
|
| | | }
|
| | | //夿忰æ¯å¦ä¸ºç©º
|
| | | if (bean == null || fse == null) {
|
| | | return this.error(SystemCode.SYSTEM_FORM_NODATA.getValue(), SystemCode.SYSTEM_FORM_NODATA.getText());
|
| | | }
|
| | | //å¤æè¡¨åæ¯å¦æ£å¸¸
|
| | | if (!CmnConst.APP_XZZFSPB.equals(fse.getTableName())) {
|
| | | return this.error(SystemCode.SYSTEM_TABLE_NODATA.getValue(), SystemCode.SYSTEM_TABLE_NODATA.getText());
|
| | | }
|
| | | ILawEnforcementService service = (ILawEnforcementService) getProxyInstance(lawEnforcementService);
|
| | | return OK_login(service.deleteLawEnforcement(fse));
|
| | | } catch (BaseException e) {
|
| | | return error(e);
|
| | | } catch (Exception e) {
|
| | | return error("","");
|
| | | }
|
| | | }
|
| | | }
|
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.home.xining.controller;
|
| | |
|
| | | import com.home.xining.config.CmnConst;
|
| | | import com.home.xining.config.SystemCode;
|
| | | import com.home.xining.service.OfficeExpensesService;
|
| | | import com.home.xining.service.idel.IOfficeExpensesService;
|
| | | import com.product.common.lang.StringUtils;
|
| | | import com.product.core.config.CoreConst;
|
| | | import com.product.core.controller.support.AbstractBaseController;
|
| | | import com.product.core.entity.DataTableEntity;
|
| | | import com.product.core.entity.FieldSetEntity;
|
| | | import com.product.core.entity.RequestParameterEntity;
|
| | | import com.product.core.exception.BaseException;
|
| | | import com.product.core.spring.context.SpringMVCContextHolder;
|
| | | import com.product.module.sys.version.ApiVersion;
|
| | | import org.springframework.beans.factory.annotation.Autowired;
|
| | | import org.springframework.web.bind.annotation.RequestMapping;
|
| | | import org.springframework.web.bind.annotation.RequestMethod;
|
| | | import org.springframework.web.bind.annotation.RestController;
|
| | |
|
| | | import javax.servlet.http.HttpServletRequest;
|
| | |
|
| | | /**
|
| | | * @ClassName: OfficeExpensesController
|
| | | * @Author: ZhouJie
|
| | | * @Date: 2022/1/11 17:14
|
| | | * @Description: åå
¬ç¨åç»è´¹(é¢ç¨)审æ¹ç®¡ç
|
| | | */
|
| | | @RequestMapping("/api/offiexp")
|
| | | @RestController
|
| | | public class OfficeExpensesController extends AbstractBaseController {
|
| | |
|
| | | @Autowired
|
| | | public OfficeExpensesService officeExpensesService;
|
| | |
|
| | | /**
|
| | | * ä¿ååå
¬ç¨åç»è´¹(é¢ç¨)审æ¹
|
| | | * @param request
|
| | | * @return
|
| | | */
|
| | | @RequestMapping(value = "/save-officeexpenses/{version}", method = RequestMethod.POST)
|
| | | @ApiVersion(1)
|
| | | public String saveOfficeExpenses(HttpServletRequest request) {
|
| | | try {
|
| | | //è·ååæ°
|
| | | FieldSetEntity fse=null;
|
| | | Object bean=request.getAttribute(CoreConst.API_POST_REQUEST_DATA);
|
| | | if(bean != null){
|
| | | RequestParameterEntity reqp=(RequestParameterEntity)bean;
|
| | | fse = reqp.getFormData();
|
| | | }
|
| | | //夿忰æ¯å¦ä¸ºç©º
|
| | | if(bean == null || fse == null) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(SystemCode.SYSTEM_TABLE_NODATA.getValue(), SystemCode.SYSTEM_TABLE_NODATA.getText());
|
| | | return this.error(SystemCode.SYSTEM_FORM_NODATA.getValue(), SystemCode.SYSTEM_FORM_NODATA.getText());
|
| | | }
|
| | | //å¤æè¡¨åæ¯å¦æ£å¸¸
|
| | | if (!CmnConst.BGYPLYB.equals(fse.getTableName())) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(SystemCode.SYSTEM_TABLE_NODATA.getValue(), SystemCode.SYSTEM_TABLE_NODATA.getText());
|
| | | return this.error(SystemCode.SYSTEM_TABLE_NODATA.getValue(), SystemCode.SYSTEM_TABLE_NODATA.getText());
|
| | | }
|
| | | IOfficeExpensesService service = (IOfficeExpensesService) getProxyInstance(officeExpensesService);
|
| | | String uuid = service.saveOfficeExpenses(fse);
|
| | | if (!StringUtils.isEmpty(uuid)) {
|
| | | return OK_Add(uuid);
|
| | | }
|
| | | SpringMVCContextHolder.getSystemLogger().error(SystemCode.SAVE_OFFICE_EXPENSES_FILE.getValue(), SystemCode.SAVE_OFFICE_EXPENSES_FILE.getText());
|
| | | return error(SystemCode.SAVE_OFFICE_EXPENSES_FILE.getValue(), SystemCode.SAVE_OFFICE_EXPENSES_FILE.getText());
|
| | | }catch(BaseException e) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(e);
|
| | | return this.error(e);
|
| | | }catch (Exception e) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(e);
|
| | | return this.error(SystemCode.SAVE_OFFICE_EXPENSES_FILE.getValue(), SystemCode.SAVE_OFFICE_EXPENSES_FILE.getText());
|
| | | }
|
| | | }
|
| | |
|
| | | /**
|
| | | * å é¤åå
¬ç¨åç»è´¹(é¢ç¨)审æ¹
|
| | | * @param request
|
| | | * @return
|
| | | */
|
| | | @RequestMapping(value = "/delete-officeexpenses/{version}", method = RequestMethod.POST)
|
| | | @ApiVersion(1)
|
| | | public String deleteOfficeExpenses(HttpServletRequest request) {
|
| | | try {
|
| | | //è·ååæ°
|
| | | FieldSetEntity fse=null;
|
| | | Object bean=request.getAttribute(CoreConst.API_POST_REQUEST_DATA);
|
| | | if(bean != null) {
|
| | | RequestParameterEntity reqp=(RequestParameterEntity)bean;
|
| | | fse = reqp.getFormData();
|
| | | }
|
| | | //夿忰æ¯å¦ä¸ºç©º
|
| | | if(bean == null || fse == null) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(SystemCode.SYSTEM_FORM_NODATA.getValue(), SystemCode.SYSTEM_FORM_NODATA.getText());
|
| | | return this.error(SystemCode.SYSTEM_FORM_NODATA.getValue(), SystemCode.SYSTEM_FORM_NODATA.getText());
|
| | | }
|
| | | //å¤æè¡¨åæ¯å¦æ£å¸¸
|
| | | if (!CmnConst.BGYPLYB.equals(fse.getTableName())) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(SystemCode.SYSTEM_TABLE_NODATA.getValue(), SystemCode.SYSTEM_TABLE_NODATA.getText());
|
| | | return this.error(SystemCode.SYSTEM_TABLE_NODATA.getValue(), SystemCode.SYSTEM_TABLE_NODATA.getText());
|
| | | }
|
| | | //夿uuidæ¯å¦ä¸ºç©º
|
| | | if (com.alibaba.druid.util.StringUtils.isEmpty(fse.getString(CmnConst.UUID))) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(SystemCode.SYSTEM_FORM_COUNT.getValue(), SystemCode.SYSTEM_FORM_COUNT.getText());
|
| | | return this.error(SystemCode.SYSTEM_FORM_COUNT.getValue(), SystemCode.SYSTEM_FORM_COUNT.getText());
|
| | | }
|
| | | IOfficeExpensesService service = (IOfficeExpensesService) getProxyInstance(officeExpensesService);
|
| | | boolean success=service.deleteOfficeExpenses(fse);
|
| | | if(success) {
|
| | | return OK();
|
| | | }
|
| | | SpringMVCContextHolder.getSystemLogger().error(SystemCode.DELETE_OFFICE_EXPENSES_FILE.getValue(),SystemCode.DELETE_OFFICE_EXPENSES_FILE.getText());
|
| | | return error(SystemCode.DELETE_OFFICE_EXPENSES_FILE.getValue(),SystemCode.DELETE_OFFICE_EXPENSES_FILE.getText());
|
| | | }catch(BaseException e) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(e);
|
| | | return this.error(e);
|
| | | }catch (Exception e) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(e);
|
| | | return this.error(SystemCode.DELETE_OFFICE_EXPENSES_FILE.getValue(),SystemCode.DELETE_OFFICE_EXPENSES_FILE.getText());
|
| | | }
|
| | | }
|
| | |
|
| | | /**
|
| | | * è·ååå
¬ç¨åç»è´¹(é¢ç¨)审æ¹å表
|
| | | * @param request
|
| | | * @return
|
| | | */
|
| | | @RequestMapping(value = "/list-officeexpenses/{version}", method = RequestMethod.POST)
|
| | | @ApiVersion(1)
|
| | | public String getOfficeExpensesList(HttpServletRequest request) {
|
| | | try {
|
| | | //è·ååæ°
|
| | | FieldSetEntity fse=null;
|
| | | Object bean=request.getAttribute(CoreConst.API_POST_REQUEST_DATA);
|
| | | if(bean != null){
|
| | | RequestParameterEntity reqp=(RequestParameterEntity)bean;
|
| | | fse = reqp.getFormData();
|
| | | }
|
| | | //夿忰æ¯å¦ä¸ºç©º
|
| | | if(bean == null || fse == null) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(SystemCode.SYSTEM_TABLE_NODATA.getValue(), SystemCode.SYSTEM_TABLE_NODATA.getText());
|
| | | return this.error(SystemCode.SYSTEM_FORM_NODATA.getValue(), SystemCode.SYSTEM_FORM_NODATA.getText());
|
| | | }
|
| | | //å¤æè¡¨åæ¯å¦æ£å¸¸
|
| | | if (!CmnConst.BGYPLYB.equals(fse.getTableName())) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(SystemCode.SYSTEM_TABLE_NODATA.getValue(), SystemCode.SYSTEM_TABLE_NODATA.getText());
|
| | | return this.error(SystemCode.SYSTEM_TABLE_NODATA.getValue(), SystemCode.SYSTEM_TABLE_NODATA.getText());
|
| | | }
|
| | | //夿å页忰
|
| | | if(fse.getString(CmnConst.PAGESIZE)==null || fse.getString(CmnConst.CPAGE)==null){
|
| | | return this.error(SystemCode.SYSTEM_CPAGES_NOT_NULL.getValue(), SystemCode.SYSTEM_CPAGES_NOT_NULL.getText());
|
| | | }
|
| | | DataTableEntity dt = officeExpensesService.getOfficeExpensesList(fse);
|
| | | return OK_List(dt);
|
| | | }catch(BaseException e) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(e);
|
| | | return this.error(e);
|
| | | }catch (Exception e) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(e);
|
| | | return this.error(SystemCode.GETLIST_OFFICE_EXPENSES_FILE.getValue(), SystemCode.GETLIST_OFFICE_EXPENSES_FILE.getText());
|
| | | }
|
| | | }
|
| | |
|
| | | /**
|
| | | * è·ååå
¬ç¨åç»è´¹(é¢ç¨)审æ¹è¯¦æ
|
| | | * @param request
|
| | | * @return
|
| | | */
|
| | | @RequestMapping(value="/find-officeexpenses/{version}",method=RequestMethod.POST)
|
| | | @ApiVersion(1)
|
| | | public String getOfficeExpensesInfo(HttpServletRequest request){
|
| | | try {
|
| | | //è·ååæ°
|
| | | FieldSetEntity fse=null;
|
| | | Object bean=request.getAttribute(CoreConst.API_POST_REQUEST_DATA);
|
| | | if(bean != null) {
|
| | | RequestParameterEntity reqp=(RequestParameterEntity)bean;
|
| | | fse = reqp.getFormData();
|
| | | }
|
| | | //夿忰æ¯å¦ä¸ºç©º
|
| | | if(bean == null || fse == null) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(SystemCode.SYSTEM_FORM_NODATA.getValue(), SystemCode.SYSTEM_FORM_NODATA.getText());
|
| | | return this.error(SystemCode.SYSTEM_FORM_NODATA.getValue(), SystemCode.SYSTEM_FORM_NODATA.getText());
|
| | | }
|
| | | //å¤æè¡¨åæ¯å¦æ£å¸¸
|
| | | if (!CmnConst.BGYPLYB.equals(fse.getTableName())) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(SystemCode.SYSTEM_TABLE_NODATA.getValue(), SystemCode.SYSTEM_TABLE_NODATA.getText());
|
| | | return this.error(SystemCode.SYSTEM_TABLE_NODATA.getValue(), SystemCode.SYSTEM_TABLE_NODATA.getText());
|
| | | }
|
| | | //夿uuidæ¯å¦ä¸ºç©º
|
| | | if (com.alibaba.druid.util.StringUtils.isEmpty(fse.getString(CmnConst.UUID))) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(SystemCode.SYSTEM_TABLE_NODATA.getValue(), SystemCode.SYSTEM_TABLE_NODATA.getText());
|
| | | return this.error(SystemCode.SYSTEM_FORM_COUNT.getValue(), SystemCode.SYSTEM_FORM_COUNT.getText());
|
| | | }
|
| | | FieldSetEntity fs = officeExpensesService.getOfficeExpensesInfo(fse);
|
| | | return OK_List(fs);
|
| | | }catch(BaseException e) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(e);
|
| | | return this.error(e);
|
| | | }catch (Exception e) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(e);
|
| | | return this.error(SystemCode.GETINFO_OFFICE_EXPENSES_FILE.getValue(),SystemCode.GETINFO_OFFICE_EXPENSES_FILE.getText());
|
| | | }
|
| | | }
|
| | |
|
| | | /**
|
| | | * åå
¬ç¨åç»è´¹(é¢ç¨) éå
|
| | | * @param request
|
| | | * @return
|
| | | */
|
| | | @RequestMapping(value = "/send-officeexpenses/{version}", method = RequestMethod.POST)
|
| | | public String sendOfficeExpenses(HttpServletRequest request) {
|
| | | try {
|
| | | //è·ååæ°
|
| | | FieldSetEntity fse=null;
|
| | | Object bean=request.getAttribute(CoreConst.API_POST_REQUEST_DATA);
|
| | | if(bean != null){
|
| | | RequestParameterEntity reqp=(RequestParameterEntity)bean;
|
| | | fse = reqp.getFormData();
|
| | | }
|
| | | //夿忰æ¯å¦ä¸ºç©º
|
| | | if(bean == null || fse == null) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(SystemCode.SYSTEM_FORM_NODATA.getValue(), SystemCode.SYSTEM_FORM_NODATA.getText());
|
| | | return this.error(SystemCode.SYSTEM_FORM_NODATA.getValue(), SystemCode.SYSTEM_FORM_NODATA.getText());
|
| | | }
|
| | | //å¤æè¡¨åæ¯å¦æ£å¸¸
|
| | | if (!CmnConst.BGYPLYB.equals(fse.getTableName())) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(SystemCode.SYSTEM_TABLE_NODATA.getValue(), SystemCode.SYSTEM_TABLE_NODATA.getText());
|
| | | return this.error(SystemCode.SYSTEM_TABLE_NODATA.getValue(), SystemCode.SYSTEM_TABLE_NODATA.getText());
|
| | | }
|
| | | IOfficeExpensesService service = (IOfficeExpensesService) getProxyInstance(officeExpensesService);
|
| | | boolean succ = service.sendOfficeExpenses(fse.getUUID());
|
| | | if (succ) {
|
| | | return OK();
|
| | | }
|
| | | SpringMVCContextHolder.getSystemLogger().error(SystemCode.SEND_OFFICE_EXPENSES_FILE.getValue(), SystemCode.SEND_OFFICE_EXPENSES_FILE.getText());
|
| | | return error(SystemCode.SEND_OFFICE_EXPENSES_FILE.getValue(), SystemCode.SEND_OFFICE_EXPENSES_FILE.getText());
|
| | | }catch(BaseException e) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(e);
|
| | | return this.error(e);
|
| | | }catch (Exception e) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(e);
|
| | | return this.error(SystemCode.SEND_OFFICE_EXPENSES_FILE.getValue(), SystemCode.SEND_OFFICE_EXPENSES_FILE.getText());
|
| | | }
|
| | | }
|
| | |
|
| | |
|
| | |
|
| | | }
|
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.home.xining.controller;
|
| | |
|
| | | import com.home.xining.config.CmnConst;
|
| | | import com.home.xining.config.SystemCode;
|
| | | import com.home.xining.service.OfficePurchaseService;
|
| | | import com.home.xining.service.idel.IOfficePurchaseService;
|
| | | import com.product.common.lang.StringUtils;
|
| | | import com.product.core.config.CoreConst;
|
| | | import com.product.core.controller.support.AbstractBaseController;
|
| | | import com.product.core.entity.DataTableEntity;
|
| | | import com.product.core.entity.FieldSetEntity;
|
| | | import com.product.core.entity.RequestParameterEntity;
|
| | | import com.product.core.exception.BaseException;
|
| | | import com.product.core.spring.context.SpringMVCContextHolder;
|
| | | import com.product.module.sys.version.ApiVersion;
|
| | | import org.springframework.beans.factory.annotation.Autowired;
|
| | | import org.springframework.web.bind.annotation.RequestMapping;
|
| | | import org.springframework.web.bind.annotation.RequestMethod;
|
| | | import org.springframework.web.bind.annotation.RestController;
|
| | |
|
| | | import javax.servlet.http.HttpServletRequest;
|
| | |
|
| | | /**
|
| | | * @ClassName: OfficePurchaseController
|
| | | * @Author: ZhouJie
|
| | | * @Date: 2022/1/24 09:49
|
| | | * @Description: åå
¬å®¤ç¨åéè´
|
| | | */
|
| | | @RequestMapping("/api/officepur")
|
| | | @RestController
|
| | | public class OfficePurchaseController extends AbstractBaseController {
|
| | |
|
| | | @Autowired
|
| | | public OfficePurchaseService officePurchaseService;
|
| | |
|
| | | /**
|
| | | * ä¿ååå
¬å®¤ç¨åéè´
|
| | | * @param request
|
| | | * @return
|
| | | */
|
| | | @RequestMapping(value = "/save-officepurchase/{version}", method = RequestMethod.POST)
|
| | | @ApiVersion(1)
|
| | | public String saveOfficePurchase(HttpServletRequest request) {
|
| | | try {
|
| | | //è·ååæ°
|
| | | FieldSetEntity fse=null;
|
| | | Object bean=request.getAttribute(CoreConst.API_POST_REQUEST_DATA);
|
| | | if(bean != null){
|
| | | RequestParameterEntity reqp=(RequestParameterEntity)bean;
|
| | | fse = reqp.getFormData();
|
| | | }
|
| | | //夿忰æ¯å¦ä¸ºç©º
|
| | | if(bean == null || fse == null) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(SystemCode.SYSTEM_TABLE_NODATA.getValue(), SystemCode.SYSTEM_TABLE_NODATA.getText());
|
| | | return this.error(SystemCode.SYSTEM_FORM_NODATA.getValue(), SystemCode.SYSTEM_FORM_NODATA.getText());
|
| | | }
|
| | | //å¤æè¡¨åæ¯å¦æ£å¸¸
|
| | | if (!CmnConst.BGSYPCGB.equals(fse.getTableName())) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(SystemCode.SYSTEM_TABLE_NODATA.getValue(), SystemCode.SYSTEM_TABLE_NODATA.getText());
|
| | | return this.error(SystemCode.SYSTEM_TABLE_NODATA.getValue(), SystemCode.SYSTEM_TABLE_NODATA.getText());
|
| | | }
|
| | | IOfficePurchaseService service = (IOfficePurchaseService) getProxyInstance(officePurchaseService);
|
| | | String uuid = service.saveOfficePurchase(fse);
|
| | | if (!StringUtils.isEmpty(uuid)) {
|
| | | return OK_Add(uuid);
|
| | | }
|
| | | SpringMVCContextHolder.getSystemLogger().error(SystemCode.SAVE_VEHICLE_MAINTENANCE_FILE.getValue(), SystemCode.SAVE_VEHICLE_MAINTENANCE_FILE.getText());
|
| | | return error(SystemCode.SAVE_VEHICLE_MAINTENANCE_FILE.getValue(), SystemCode.SAVE_VEHICLE_MAINTENANCE_FILE.getText());
|
| | | }catch(BaseException e) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(e);
|
| | | return this.error(e);
|
| | | }catch (Exception e) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(e);
|
| | | return this.error(SystemCode.SAVE_VEHICLE_MAINTENANCE_FILE.getValue(), SystemCode.SAVE_VEHICLE_MAINTENANCE_FILE.getText());
|
| | | }
|
| | | }
|
| | |
|
| | | /**
|
| | | * å é¤åå
¬å®¤ç¨åéè´
|
| | | * @param request
|
| | | * @return
|
| | | */
|
| | | @RequestMapping(value = "/delete-officepurchase/{version}", method = RequestMethod.POST)
|
| | | @ApiVersion(1)
|
| | | public String deleteOfficePurchase(HttpServletRequest request) {
|
| | | try {
|
| | | //è·ååæ°
|
| | | FieldSetEntity fse=null;
|
| | | Object bean=request.getAttribute(CoreConst.API_POST_REQUEST_DATA);
|
| | | if(bean != null) {
|
| | | RequestParameterEntity reqp=(RequestParameterEntity)bean;
|
| | | fse = reqp.getFormData();
|
| | | }
|
| | | //夿忰æ¯å¦ä¸ºç©º
|
| | | if(bean == null || fse == null) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(SystemCode.SYSTEM_FORM_NODATA.getValue(), SystemCode.SYSTEM_FORM_NODATA.getText());
|
| | | return this.error(SystemCode.SYSTEM_FORM_NODATA.getValue(), SystemCode.SYSTEM_FORM_NODATA.getText());
|
| | | }
|
| | | //å¤æè¡¨åæ¯å¦æ£å¸¸
|
| | | if (!CmnConst.BGSYPCGB.equals(fse.getTableName())) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(SystemCode.SYSTEM_TABLE_NODATA.getValue(), SystemCode.SYSTEM_TABLE_NODATA.getText());
|
| | | return this.error(SystemCode.SYSTEM_TABLE_NODATA.getValue(), SystemCode.SYSTEM_TABLE_NODATA.getText());
|
| | | }
|
| | | //夿uuidæ¯å¦ä¸ºç©º
|
| | | if (com.alibaba.druid.util.StringUtils.isEmpty(fse.getString(CmnConst.UUID))) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(SystemCode.SYSTEM_FORM_COUNT.getValue(), SystemCode.SYSTEM_FORM_COUNT.getText());
|
| | | return this.error(SystemCode.SYSTEM_FORM_COUNT.getValue(), SystemCode.SYSTEM_FORM_COUNT.getText());
|
| | | }
|
| | | IOfficePurchaseService service = (IOfficePurchaseService) getProxyInstance(officePurchaseService);
|
| | | boolean success=service.deleteOfficePurchase(fse);
|
| | | if(success) {
|
| | | return OK();
|
| | | }
|
| | | SpringMVCContextHolder.getSystemLogger().error(SystemCode.DELETE_VEHICLE_MAINTENANCE_FILE.getValue(),SystemCode.DELETE_VEHICLE_MAINTENANCE_FILE.getText());
|
| | | return error(SystemCode.DELETE_VEHICLE_MAINTENANCE_FILE.getValue(),SystemCode.DELETE_VEHICLE_MAINTENANCE_FILE.getText());
|
| | | }catch(BaseException e) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(e);
|
| | | return this.error(e);
|
| | | }catch (Exception e) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(e);
|
| | | return this.error(SystemCode.DELETE_VEHICLE_MAINTENANCE_FILE.getValue(),SystemCode.DELETE_VEHICLE_MAINTENANCE_FILE.getText());
|
| | | }
|
| | | }
|
| | |
|
| | | /**
|
| | | * è·ååå
¬å®¤ç¨åéè´å表
|
| | | * @param request
|
| | | * @return
|
| | | */
|
| | | @RequestMapping(value = "/list-officepurchase/{version}", method = RequestMethod.POST)
|
| | | @ApiVersion(1)
|
| | | public String getOfficePurchaseList(HttpServletRequest request) {
|
| | | try {
|
| | | //è·ååæ°
|
| | | FieldSetEntity fse=null;
|
| | | Object bean=request.getAttribute(CoreConst.API_POST_REQUEST_DATA);
|
| | | if(bean != null){
|
| | | RequestParameterEntity reqp=(RequestParameterEntity)bean;
|
| | | fse = reqp.getFormData();
|
| | | }
|
| | | //夿忰æ¯å¦ä¸ºç©º
|
| | | if(bean == null || fse == null) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(SystemCode.SYSTEM_TABLE_NODATA.getValue(), SystemCode.SYSTEM_TABLE_NODATA.getText());
|
| | | return this.error(SystemCode.SYSTEM_FORM_NODATA.getValue(), SystemCode.SYSTEM_FORM_NODATA.getText());
|
| | | }
|
| | | //å¤æè¡¨åæ¯å¦æ£å¸¸
|
| | | if (!CmnConst.BGSYPCGB.equals(fse.getTableName())) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(SystemCode.SYSTEM_TABLE_NODATA.getValue(), SystemCode.SYSTEM_TABLE_NODATA.getText());
|
| | | return this.error(SystemCode.SYSTEM_TABLE_NODATA.getValue(), SystemCode.SYSTEM_TABLE_NODATA.getText());
|
| | | }
|
| | | //夿å页忰
|
| | | if(fse.getString(CmnConst.PAGESIZE)==null || fse.getString(CmnConst.CPAGE)==null){
|
| | | return this.error(SystemCode.SYSTEM_CPAGES_NOT_NULL.getValue(), SystemCode.SYSTEM_CPAGES_NOT_NULL.getText());
|
| | | }
|
| | | DataTableEntity dt = officePurchaseService.getOfficePurchaseList(fse);
|
| | | return OK_List(dt);
|
| | | }catch(BaseException e) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(e);
|
| | | return this.error(e);
|
| | | }catch (Exception e) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(e);
|
| | | return this.error(SystemCode.GETLIST_VEHICLE_MAINTENANCE_FILE.getValue(), SystemCode.GETLIST_VEHICLE_MAINTENANCE_FILE.getText());
|
| | | }
|
| | | }
|
| | |
|
| | | /**
|
| | | * è·ååå
¬å®¤ç¨åéè´è¯¦æ
|
| | | * @param request
|
| | | * @return
|
| | | */
|
| | | @RequestMapping(value="/find-officepurchase/{version}",method=RequestMethod.POST)
|
| | | @ApiVersion(1)
|
| | | public String getOfficePurchaseInfo(HttpServletRequest request){
|
| | | try {
|
| | | //è·ååæ°
|
| | | FieldSetEntity fse=null;
|
| | | Object bean=request.getAttribute(CoreConst.API_POST_REQUEST_DATA);
|
| | | if(bean != null) {
|
| | | RequestParameterEntity reqp=(RequestParameterEntity)bean;
|
| | | fse = reqp.getFormData();
|
| | | }
|
| | | //夿忰æ¯å¦ä¸ºç©º
|
| | | if(bean == null || fse == null) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(SystemCode.SYSTEM_FORM_NODATA.getValue(), SystemCode.SYSTEM_FORM_NODATA.getText());
|
| | | return this.error(SystemCode.SYSTEM_FORM_NODATA.getValue(), SystemCode.SYSTEM_FORM_NODATA.getText());
|
| | | }
|
| | | //å¤æè¡¨åæ¯å¦æ£å¸¸
|
| | | if (!CmnConst.BGSYPCGB.equals(fse.getTableName())) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(SystemCode.SYSTEM_TABLE_NODATA.getValue(), SystemCode.SYSTEM_TABLE_NODATA.getText());
|
| | | return this.error(SystemCode.SYSTEM_TABLE_NODATA.getValue(), SystemCode.SYSTEM_TABLE_NODATA.getText());
|
| | | }
|
| | | //夿uuidæ¯å¦ä¸ºç©º
|
| | | if (com.alibaba.druid.util.StringUtils.isEmpty(fse.getString(CmnConst.UUID))) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(SystemCode.SYSTEM_TABLE_NODATA.getValue(), SystemCode.SYSTEM_TABLE_NODATA.getText());
|
| | | return this.error(SystemCode.SYSTEM_FORM_COUNT.getValue(), SystemCode.SYSTEM_FORM_COUNT.getText());
|
| | | }
|
| | | FieldSetEntity fs = officePurchaseService.getOfficePurchaseInfo(fse);
|
| | | return OK_List(fs);
|
| | | }catch(BaseException e) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(e);
|
| | | return this.error(e);
|
| | | }catch (Exception e) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(e);
|
| | | return this.error(SystemCode.GETINFO_VEHICLE_MAINTENANCE_FILE.getValue(),SystemCode.GETINFO_VEHICLE_MAINTENANCE_FILE.getText());
|
| | | }
|
| | | }
|
| | | }
|
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.home.xining.controller;
|
| | |
|
| | | import javax.servlet.http.HttpServletRequest;
|
| | |
|
| | | import org.springframework.beans.factory.annotation.Autowired;
|
| | | import org.springframework.web.bind.annotation.RequestMapping;
|
| | | import org.springframework.web.bind.annotation.RequestMethod;
|
| | | import org.springframework.web.bind.annotation.RestController;
|
| | |
|
| | | import com.home.xining.config.CmnConst;
|
| | | import com.home.xining.config.SystemCode;
|
| | | import com.home.xining.service.OfficeSuppliesCollectionService;
|
| | | import com.home.xining.service.idel.IOfficeSuppliesCollectionService;
|
| | | import com.product.common.lang.StringUtils;
|
| | | import com.product.core.config.CoreConst;
|
| | | import com.product.core.controller.support.AbstractBaseController;
|
| | | import com.product.core.entity.DataTableEntity;
|
| | | import com.product.core.entity.FieldSetEntity;
|
| | | import com.product.core.entity.RequestParameterEntity;
|
| | | import com.product.core.exception.BaseException;
|
| | | import com.product.core.spring.context.SpringMVCContextHolder;
|
| | | import com.product.module.sys.version.ApiVersion;
|
| | |
|
| | | /**
|
| | | * @ClassName: OfficeSuppliesCollectionController
|
| | | * @Author: ææ´ªæ³¢
|
| | | * @Date: 2022/2/16 09:49
|
| | | * @Description: åå
¬å®¤ç¨åéè´
|
| | | */
|
| | | @RequestMapping("/api/officeSupplies")
|
| | | @RestController
|
| | | public class OfficeSuppliesCollectionController extends AbstractBaseController{
|
| | |
|
| | | @Autowired
|
| | | OfficeSuppliesCollectionService officeSuppliesCollectionService;
|
| | | |
| | | |
| | | /**
|
| | | * è·ååå
¬å®¤ç¨åéè´å表
|
| | | * @param request
|
| | | * @return
|
| | | */
|
| | | @RequestMapping(value = "/list/{version}", method = RequestMethod.POST)
|
| | | @ApiVersion(1)
|
| | | public String getOfficePurchaseList(HttpServletRequest request) {
|
| | | try {
|
| | | //è·ååæ°
|
| | | FieldSetEntity fse=null;
|
| | | Object bean=request.getAttribute(CoreConst.API_POST_REQUEST_DATA);
|
| | | if(bean != null){
|
| | | RequestParameterEntity reqp=(RequestParameterEntity)bean;
|
| | | fse = reqp.getFormData();
|
| | | }
|
| | | //夿忰æ¯å¦ä¸ºç©º
|
| | | if(bean == null || fse == null) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(SystemCode.SYSTEM_TABLE_NODATA.getValue(), SystemCode.SYSTEM_TABLE_NODATA.getText());
|
| | | return this.error(SystemCode.SYSTEM_FORM_NODATA.getValue(), SystemCode.SYSTEM_FORM_NODATA.getText());
|
| | | }
|
| | | //å¤æè¡¨åæ¯å¦æ£å¸¸
|
| | | if (!CmnConst.BGYPLYB.equals(fse.getTableName())) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(SystemCode.SYSTEM_TABLE_NODATA.getValue(), SystemCode.SYSTEM_TABLE_NODATA.getText());
|
| | | return this.error(SystemCode.SYSTEM_TABLE_NODATA.getValue(), SystemCode.SYSTEM_TABLE_NODATA.getText());
|
| | | }
|
| | | //夿å页忰
|
| | | if(fse.getString(CmnConst.PAGESIZE)==null || fse.getString(CmnConst.CPAGE)==null){
|
| | | return this.error(SystemCode.SYSTEM_CPAGES_NOT_NULL.getValue(), SystemCode.SYSTEM_CPAGES_NOT_NULL.getText());
|
| | | }
|
| | | DataTableEntity dt = officeSuppliesCollectionService.getOfficePurchaseList(fse);
|
| | | return OK_List(dt);
|
| | | }catch(BaseException e) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(e);
|
| | | return this.error(e);
|
| | | }catch (Exception e) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(e);
|
| | | return this.error(SystemCode.GETLIST_VEHICLE_MAINTENANCE_FILE.getValue(), SystemCode.GETLIST_VEHICLE_MAINTENANCE_FILE.getText());
|
| | | }
|
| | | }
|
| | |
|
| | | /**
|
| | | * è·ååå
¬å®¤ç¨åéè´è¯¦æ
|
| | | * @param request
|
| | | * @return
|
| | | */
|
| | | @RequestMapping(value="/find/{version}",method=RequestMethod.POST)
|
| | | @ApiVersion(1)
|
| | | public String getOfficePurchaseInfo(HttpServletRequest request){
|
| | | try {
|
| | | //è·ååæ°
|
| | | FieldSetEntity fse=null;
|
| | | Object bean=request.getAttribute(CoreConst.API_POST_REQUEST_DATA);
|
| | | if(bean != null) {
|
| | | RequestParameterEntity reqp=(RequestParameterEntity)bean;
|
| | | fse = reqp.getFormData();
|
| | | }
|
| | | //夿忰æ¯å¦ä¸ºç©º
|
| | | if(bean == null || fse == null) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(SystemCode.SYSTEM_FORM_NODATA.getValue(), SystemCode.SYSTEM_FORM_NODATA.getText());
|
| | | return this.error(SystemCode.SYSTEM_FORM_NODATA.getValue(), SystemCode.SYSTEM_FORM_NODATA.getText());
|
| | | }
|
| | | //å¤æè¡¨åæ¯å¦æ£å¸¸
|
| | | if (!CmnConst.BGYPLYB.equals(fse.getTableName())) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(SystemCode.SYSTEM_TABLE_NODATA.getValue(), SystemCode.SYSTEM_TABLE_NODATA.getText());
|
| | | return this.error(SystemCode.SYSTEM_TABLE_NODATA.getValue(), SystemCode.SYSTEM_TABLE_NODATA.getText());
|
| | | }
|
| | | //夿uuidæ¯å¦ä¸ºç©º
|
| | | if (com.alibaba.druid.util.StringUtils.isEmpty(fse.getString(CmnConst.UUID))) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(SystemCode.SYSTEM_TABLE_NODATA.getValue(), SystemCode.SYSTEM_TABLE_NODATA.getText());
|
| | | return this.error(SystemCode.SYSTEM_FORM_COUNT.getValue(), SystemCode.SYSTEM_FORM_COUNT.getText());
|
| | | }
|
| | | FieldSetEntity fs = officeSuppliesCollectionService.getOfficePurchaseInfo(fse);
|
| | | return OK_List(fs);
|
| | | }catch(BaseException e) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(e);
|
| | | return this.error(e);
|
| | | }catch (Exception e) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(e);
|
| | | return this.error(SystemCode.GETINFO_VEHICLE_MAINTENANCE_FILE.getValue(),SystemCode.GETINFO_VEHICLE_MAINTENANCE_FILE.getText());
|
| | | }
|
| | | }
|
| | | |
| | | |
| | | /**
|
| | | * ä¿ååå
¬å®¤ç¨åéè´
|
| | | * @param request
|
| | | * @return
|
| | | */
|
| | | @RequestMapping(value = "/save/{version}", method = RequestMethod.POST)
|
| | | @ApiVersion(1)
|
| | | public String saveOfficePurchase(HttpServletRequest request) {
|
| | | try {
|
| | | //è·ååæ°
|
| | | FieldSetEntity fse=null;
|
| | | Object bean=request.getAttribute(CoreConst.API_POST_REQUEST_DATA);
|
| | | if(bean != null){
|
| | | RequestParameterEntity reqp=(RequestParameterEntity)bean;
|
| | | fse = reqp.getFormData();
|
| | | }
|
| | | //夿忰æ¯å¦ä¸ºç©º
|
| | | if(bean == null || fse == null) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(SystemCode.SYSTEM_TABLE_NODATA.getValue(), SystemCode.SYSTEM_TABLE_NODATA.getText());
|
| | | return this.error(SystemCode.SYSTEM_FORM_NODATA.getValue(), SystemCode.SYSTEM_FORM_NODATA.getText());
|
| | | }
|
| | | //å¤æè¡¨åæ¯å¦æ£å¸¸
|
| | | if (!CmnConst.BGYPLYB.equals(fse.getTableName())) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(SystemCode.SYSTEM_TABLE_NODATA.getValue(), SystemCode.SYSTEM_TABLE_NODATA.getText());
|
| | | return this.error(SystemCode.SYSTEM_TABLE_NODATA.getValue(), SystemCode.SYSTEM_TABLE_NODATA.getText());
|
| | | }
|
| | | IOfficeSuppliesCollectionService service = (IOfficeSuppliesCollectionService) getProxyInstance(officeSuppliesCollectionService);
|
| | | String uuid = service.saveOfficePurchase(fse);
|
| | | if (!StringUtils.isEmpty(uuid)) {
|
| | | return OK_Add(uuid);
|
| | | }
|
| | | SpringMVCContextHolder.getSystemLogger().error(SystemCode.SAVE_VEHICLE_MAINTENANCE_FILE.getValue(), SystemCode.SAVE_VEHICLE_MAINTENANCE_FILE.getText());
|
| | | return error(SystemCode.SAVE_VEHICLE_MAINTENANCE_FILE.getValue(), SystemCode.SAVE_VEHICLE_MAINTENANCE_FILE.getText());
|
| | | }catch(BaseException e) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(e);
|
| | | return this.error(e);
|
| | | }catch (Exception e) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(e);
|
| | | return this.error(SystemCode.SAVE_VEHICLE_MAINTENANCE_FILE.getValue(), SystemCode.SAVE_VEHICLE_MAINTENANCE_FILE.getText());
|
| | | }
|
| | | }
|
| | |
|
| | | /**
|
| | | * å é¤åå
¬å®¤ç¨åéè´
|
| | | * @param request
|
| | | * @return
|
| | | */
|
| | | @RequestMapping(value = "/delete/{version}", method = RequestMethod.POST)
|
| | | @ApiVersion(1)
|
| | | public String deleteOfficePurchase(HttpServletRequest request) {
|
| | | try {
|
| | | //è·ååæ°
|
| | | FieldSetEntity fse=null;
|
| | | Object bean=request.getAttribute(CoreConst.API_POST_REQUEST_DATA);
|
| | | if(bean != null) {
|
| | | RequestParameterEntity reqp=(RequestParameterEntity)bean;
|
| | | fse = reqp.getFormData();
|
| | | }
|
| | | //夿忰æ¯å¦ä¸ºç©º
|
| | | if(bean == null || fse == null) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(SystemCode.SYSTEM_FORM_NODATA.getValue(), SystemCode.SYSTEM_FORM_NODATA.getText());
|
| | | return this.error(SystemCode.SYSTEM_FORM_NODATA.getValue(), SystemCode.SYSTEM_FORM_NODATA.getText());
|
| | | }
|
| | | //å¤æè¡¨åæ¯å¦æ£å¸¸
|
| | | if (!CmnConst.BGYPLYB.equals(fse.getTableName())) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(SystemCode.SYSTEM_TABLE_NODATA.getValue(), SystemCode.SYSTEM_TABLE_NODATA.getText());
|
| | | return this.error(SystemCode.SYSTEM_TABLE_NODATA.getValue(), SystemCode.SYSTEM_TABLE_NODATA.getText());
|
| | | }
|
| | | //夿uuidæ¯å¦ä¸ºç©º
|
| | | if (com.alibaba.druid.util.StringUtils.isEmpty(fse.getString(CmnConst.UUID))) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(SystemCode.SYSTEM_FORM_COUNT.getValue(), SystemCode.SYSTEM_FORM_COUNT.getText());
|
| | | return this.error(SystemCode.SYSTEM_FORM_COUNT.getValue(), SystemCode.SYSTEM_FORM_COUNT.getText());
|
| | | }
|
| | | IOfficeSuppliesCollectionService service = (IOfficeSuppliesCollectionService) getProxyInstance(officeSuppliesCollectionService);
|
| | | boolean success=service.deleteOfficePurchase(fse);
|
| | | if(success) {
|
| | | return OK();
|
| | | }
|
| | | SpringMVCContextHolder.getSystemLogger().error(SystemCode.DELETE_VEHICLE_MAINTENANCE_FILE.getValue(),SystemCode.DELETE_VEHICLE_MAINTENANCE_FILE.getText());
|
| | | return error(SystemCode.DELETE_VEHICLE_MAINTENANCE_FILE.getValue(),SystemCode.DELETE_VEHICLE_MAINTENANCE_FILE.getText());
|
| | | }catch(BaseException e) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(e);
|
| | | return this.error(e);
|
| | | }catch (Exception e) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(e);
|
| | | return this.error(SystemCode.DELETE_VEHICLE_MAINTENANCE_FILE.getValue(),SystemCode.DELETE_VEHICLE_MAINTENANCE_FILE.getText());
|
| | | }
|
| | | }
|
| | |
|
| | | }
|
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.home.xining.controller;
|
| | |
|
| | | import javax.servlet.http.HttpServletRequest;
|
| | |
|
| | | import org.springframework.beans.factory.annotation.Autowired;
|
| | | import org.springframework.web.bind.annotation.RequestMapping;
|
| | | import org.springframework.web.bind.annotation.RequestMethod;
|
| | | import org.springframework.web.bind.annotation.RestController;
|
| | |
|
| | | import com.home.xining.config.CmnConst;
|
| | | import com.home.xining.config.SystemCode;
|
| | | import com.home.xining.service.PleaseLeaveService;
|
| | | import com.home.xining.service.idel.IOfficePurchaseService;
|
| | | import com.product.common.lang.StringUtils;
|
| | | import com.product.core.config.CoreConst;
|
| | | import com.product.core.controller.support.AbstractBaseController;
|
| | | import com.product.core.entity.DataTableEntity;
|
| | | import com.product.core.entity.FieldSetEntity;
|
| | | import com.product.core.entity.RequestParameterEntity;
|
| | | import com.product.core.exception.BaseException;
|
| | | import com.product.core.spring.context.SpringMVCContextHolder;
|
| | | import com.product.module.sys.version.ApiVersion;
|
| | |
|
| | | /**
|
| | | * @ClassName: PleaseLeaveController
|
| | | * @Author: ææ´ªæ³¢
|
| | | * @Date: 2022/2/10 09:49
|
| | | * @Description: 请ä¼å审æ¹
|
| | | */
|
| | | @RequestMapping("/api/pleaseLeave")
|
| | | @RestController
|
| | | public class PleaseLeaveController extends AbstractBaseController{
|
| | |
|
| | | @Autowired
|
| | | PleaseLeaveService pleaseLeaveService;
|
| | | |
| | | |
| | | /**
|
| | | * 请ä¼å审æ¹å表
|
| | | * @param request
|
| | | * @return
|
| | | */
|
| | | @RequestMapping(value = "/list-pleaseLeave/{version}", method = RequestMethod.POST)
|
| | | @ApiVersion(1)
|
| | | public String listOfficePurchase(HttpServletRequest request) {
|
| | | try {
|
| | | //è·ååæ°
|
| | | FieldSetEntity fse=null;
|
| | | Object bean=request.getAttribute(CoreConst.API_POST_REQUEST_DATA);
|
| | | if(bean != null){
|
| | | RequestParameterEntity reqp=(RequestParameterEntity)bean;
|
| | | fse = reqp.getFormData();
|
| | | }
|
| | | //夿忰æ¯å¦ä¸ºç©º
|
| | | if(bean == null || fse == null) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(SystemCode.SYSTEM_TABLE_NODATA.getValue(), SystemCode.SYSTEM_TABLE_NODATA.getText());
|
| | | return this.error(SystemCode.SYSTEM_FORM_NODATA.getValue(), SystemCode.SYSTEM_FORM_NODATA.getText());
|
| | | }
|
| | | //å¤æè¡¨åæ¯å¦æ£å¸¸
|
| | | if (!CmnConst.PLEASELEAVE.equals(fse.getTableName())) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(SystemCode.SYSTEM_TABLE_NODATA.getValue(), SystemCode.SYSTEM_TABLE_NODATA.getText());
|
| | | return this.error(SystemCode.SYSTEM_TABLE_NODATA.getValue(), SystemCode.SYSTEM_TABLE_NODATA.getText());
|
| | | }
|
| | | //夿å页忰
|
| | | if(fse.getString(CmnConst.PAGESIZE)==null || fse.getString(CmnConst.CPAGE)==null){
|
| | | return this.error(SystemCode.SYSTEM_CPAGES_NOT_NULL.getValue(), SystemCode.SYSTEM_CPAGES_NOT_NULL.getText());
|
| | | }
|
| | | DataTableEntity dt = pleaseLeaveService.listOfficePurchase(fse);
|
| | | return OK_List(dt);
|
| | | }catch(BaseException e) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(e);
|
| | | return this.error(e);
|
| | | }catch (Exception e) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(e);
|
| | | return this.error(SystemCode.GETLIST_VEHICLE_MAINTENANCE_FILE.getValue(), SystemCode.GETLIST_VEHICLE_MAINTENANCE_FILE.getText());
|
| | | }
|
| | | }
|
| | | |
| | | /**
|
| | | * 请ä¼å审æ¹è¯¦æ
|
| | | * @param request
|
| | | * @return
|
| | | */
|
| | | @RequestMapping(value = "/find-pleaseLeave/{version}", method = RequestMethod.POST)
|
| | | @ApiVersion(1)
|
| | | public String findPleaseLeave(HttpServletRequest request) {
|
| | | try {
|
| | | //è·ååæ°
|
| | | FieldSetEntity fse=null;
|
| | | Object bean=request.getAttribute(CoreConst.API_POST_REQUEST_DATA);
|
| | | if(bean != null){
|
| | | RequestParameterEntity reqp=(RequestParameterEntity)bean;
|
| | | fse = reqp.getFormData();
|
| | | }
|
| | | //夿忰æ¯å¦ä¸ºç©º
|
| | | if(bean == null || fse == null) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(SystemCode.SYSTEM_TABLE_NODATA.getValue(), SystemCode.SYSTEM_TABLE_NODATA.getText());
|
| | | return this.error(SystemCode.SYSTEM_FORM_NODATA.getValue(), SystemCode.SYSTEM_FORM_NODATA.getText());
|
| | | }
|
| | | //å¤æè¡¨åæ¯å¦æ£å¸¸
|
| | | if (!CmnConst.PLEASELEAVE.equals(fse.getTableName())) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(SystemCode.SYSTEM_TABLE_NODATA.getValue(), SystemCode.SYSTEM_TABLE_NODATA.getText());
|
| | | return this.error(SystemCode.SYSTEM_TABLE_NODATA.getValue(), SystemCode.SYSTEM_TABLE_NODATA.getText());
|
| | | }
|
| | | //夿uuidæ¯å¦ä¸ºç©º
|
| | | if(StringUtils.isEmpty(fse.getUUID())){
|
| | | return this.error(SystemCode.SYSTEM_ACQUIRE_PARAM_FAIL.getValue(), SystemCode.SYSTEM_ACQUIRE_PARAM_FAIL.getText());
|
| | | }
|
| | | FieldSetEntity fseInfo = pleaseLeaveService.findPleaseLeave(fse.getUUID());
|
| | | return OK_List(fseInfo);
|
| | | }catch(BaseException e) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(e);
|
| | | return this.error(e);
|
| | | }catch (Exception e) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(e);
|
| | | return this.error(SystemCode.GETLIST_VEHICLE_MAINTENANCE_FILE.getValue(), SystemCode.GETLIST_VEHICLE_MAINTENANCE_FILE.getText());
|
| | | }
|
| | | }
|
| | | |
| | | /**
|
| | | * 请ä¼å审æ¹ä¿å
|
| | | * @param request
|
| | | * @return
|
| | | */
|
| | | @RequestMapping(value = "/save-pleaseLeave/{version}", method = RequestMethod.POST)
|
| | | @ApiVersion(1)
|
| | | public String savePleaseLeave(HttpServletRequest request) {
|
| | | try {
|
| | | //è·ååæ°
|
| | | FieldSetEntity fse=null;
|
| | | Object bean=request.getAttribute(CoreConst.API_POST_REQUEST_DATA);
|
| | | if(bean != null){
|
| | | RequestParameterEntity reqp=(RequestParameterEntity)bean;
|
| | | fse = reqp.getFormData();
|
| | | }
|
| | | //夿忰æ¯å¦ä¸ºç©º
|
| | | if(bean == null || fse == null) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(SystemCode.SYSTEM_TABLE_NODATA.getValue(), SystemCode.SYSTEM_TABLE_NODATA.getText());
|
| | | return this.error(SystemCode.SYSTEM_FORM_NODATA.getValue(), SystemCode.SYSTEM_FORM_NODATA.getText());
|
| | | }
|
| | | //å¤æè¡¨åæ¯å¦æ£å¸¸
|
| | | if (!CmnConst.PLEASELEAVE.equals(fse.getTableName())) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(SystemCode.SYSTEM_TABLE_NODATA.getValue(), SystemCode.SYSTEM_TABLE_NODATA.getText());
|
| | | return this.error(SystemCode.SYSTEM_TABLE_NODATA.getValue(), SystemCode.SYSTEM_TABLE_NODATA.getText());
|
| | | }
|
| | | String uuid = pleaseLeaveService.savePleaseLeave(fse);
|
| | | return OK_Add(uuid);
|
| | | }catch(BaseException e) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(e);
|
| | | return this.error(e);
|
| | | }catch (Exception e) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(e);
|
| | | return this.error(SystemCode.GETLIST_VEHICLE_MAINTENANCE_FILE.getValue(), SystemCode.GETLIST_VEHICLE_MAINTENANCE_FILE.getText());
|
| | | }
|
| | | }
|
| | | |
| | | /**
|
| | | * 请ä¼å审æ¹å é¤
|
| | | * @param request
|
| | | * @return
|
| | | */
|
| | | @RequestMapping(value = "/delete-pleaseLeave/{version}", method = RequestMethod.POST)
|
| | | @ApiVersion(1)
|
| | | public String deletePleaseLeave(HttpServletRequest request) {
|
| | | try {
|
| | | //è·ååæ°
|
| | | FieldSetEntity fse=null;
|
| | | Object bean=request.getAttribute(CoreConst.API_POST_REQUEST_DATA);
|
| | | if(bean != null){
|
| | | RequestParameterEntity reqp=(RequestParameterEntity)bean;
|
| | | fse = reqp.getFormData();
|
| | | }
|
| | | //夿忰æ¯å¦ä¸ºç©º
|
| | | if(bean == null || fse == null) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(SystemCode.SYSTEM_TABLE_NODATA.getValue(), SystemCode.SYSTEM_TABLE_NODATA.getText());
|
| | | return this.error(SystemCode.SYSTEM_FORM_NODATA.getValue(), SystemCode.SYSTEM_FORM_NODATA.getText());
|
| | | }
|
| | | //å¤æè¡¨åæ¯å¦æ£å¸¸
|
| | | if (!CmnConst.PLEASELEAVE.equals(fse.getTableName())) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(SystemCode.SYSTEM_TABLE_NODATA.getValue(), SystemCode.SYSTEM_TABLE_NODATA.getText());
|
| | | return this.error(SystemCode.SYSTEM_TABLE_NODATA.getValue(), SystemCode.SYSTEM_TABLE_NODATA.getText());
|
| | | }
|
| | | //夿uuidæ¯å¦ä¸ºç©º
|
| | | if (StringUtils.isEmpty(fse.getUUID())) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(SystemCode.SYSTEM_FORM_COUNT.getValue(), SystemCode.SYSTEM_FORM_COUNT.getText());
|
| | | return this.error(SystemCode.SYSTEM_FORM_COUNT.getValue(), SystemCode.SYSTEM_FORM_COUNT.getText());
|
| | | }
|
| | | boolean success=pleaseLeaveService.deletePleaseLeave(fse.getUUID());
|
| | | if(success) {
|
| | | return OK();
|
| | | }
|
| | | SpringMVCContextHolder.getSystemLogger().error(SystemCode.DELETE_VEHICLE_MAINTENANCE_FILE.getValue(),SystemCode.DELETE_VEHICLE_MAINTENANCE_FILE.getText());
|
| | | return error(SystemCode.DELETE_VEHICLE_MAINTENANCE_FILE.getValue(),SystemCode.DELETE_VEHICLE_MAINTENANCE_FILE.getText());
|
| | | }catch(BaseException e) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(e);
|
| | | return this.error(e);
|
| | | }catch (Exception e) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(e);
|
| | | return this.error(SystemCode.GETLIST_VEHICLE_MAINTENANCE_FILE.getValue(), SystemCode.GETLIST_VEHICLE_MAINTENANCE_FILE.getText());
|
| | | }
|
| | | }
|
| | | }
|
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.home.xining.controller;
|
| | |
|
| | | import com.home.xining.config.CmnConst;
|
| | | import com.home.xining.config.SystemCode;
|
| | | import com.home.xining.service.ReceiptDocumentService;
|
| | | import com.home.xining.service.idel.IReceiptDocumentService;
|
| | | import com.product.admin.service.PublicService;
|
| | | import com.product.core.config.CoreConst;
|
| | | import com.product.core.entity.DataTableEntity;
|
| | | import com.product.core.entity.FieldSetEntity;
|
| | | import com.product.core.entity.RequestParameterEntity;
|
| | | import com.product.core.exception.BaseException;
|
| | | import com.product.core.spring.context.SpringMVCContextHolder;
|
| | | import com.product.module.sys.version.ApiVersion;
|
| | | import com.product.util.support.AbstractBaseController;
|
| | | import org.springframework.beans.factory.annotation.Autowired;
|
| | | import org.springframework.web.bind.annotation.RequestMapping;
|
| | | import org.springframework.web.bind.annotation.RequestMethod;
|
| | | import org.springframework.web.bind.annotation.RestController;
|
| | |
|
| | | import javax.servlet.http.HttpServletRequest;
|
| | |
|
| | | /**
|
| | | * @ClassName: ReceiptDocumentController
|
| | | * @Author: ZhouJie
|
| | | * @Date: 2022/2/21 13:47
|
| | | * @Description: æ¶æç®¡ç
|
| | | */
|
| | | @RequestMapping("/api/receiptdocument")
|
| | | @RestController
|
| | | public class ReceiptDocumentController extends AbstractBaseController {
|
| | |
|
| | | @Autowired
|
| | | PublicService publicService;
|
| | | @Autowired
|
| | | public ReceiptDocumentService receiptDocumentService;
|
| | |
|
| | | /**
|
| | | * æ¶æç®¡çå表
|
| | | * @param request
|
| | | * @return
|
| | | */
|
| | | @RequestMapping(value ="/list-redoc/{version}", method = RequestMethod.POST)
|
| | | @ApiVersion(1)
|
| | | public String listReceiptDoc(HttpServletRequest request) {
|
| | | try {
|
| | | //è·ååæ°
|
| | | FieldSetEntity fse=null;
|
| | | Object bean=request.getAttribute(CoreConst.API_POST_REQUEST_DATA);
|
| | | if(bean != null){
|
| | | RequestParameterEntity reqp=(RequestParameterEntity)bean;
|
| | | fse = reqp.getFormData();
|
| | | }
|
| | | //夿忰æ¯å¦ä¸ºç©º
|
| | | if(bean == null || fse == null) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(SystemCode.SYSTEM_TABLE_NODATA.getValue(), SystemCode.SYSTEM_TABLE_NODATA.getText());
|
| | | return this.error(SystemCode.SYSTEM_FORM_NODATA.getValue(), SystemCode.SYSTEM_FORM_NODATA.getText());
|
| | | }
|
| | | //å¤æè¡¨åæ¯å¦æ£å¸¸
|
| | | if (!CmnConst.SFGL.equals(fse.getTableName())) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(SystemCode.SYSTEM_TABLE_NODATA.getValue(), SystemCode.SYSTEM_TABLE_NODATA.getText());
|
| | | return this.error(SystemCode.SYSTEM_TABLE_NODATA.getValue(), SystemCode.SYSTEM_TABLE_NODATA.getText());
|
| | | }
|
| | | //夿å页忰
|
| | | if(fse.getString(CmnConst.PAGESIZE)==null || fse.getString(CmnConst.CPAGE)==null){
|
| | | return this.error(SystemCode.SYSTEM_CPAGES_NOT_NULL.getValue(), SystemCode.SYSTEM_CPAGES_NOT_NULL.getText());
|
| | | }
|
| | | DataTableEntity dt = receiptDocumentService.getReciptDocList(fse);
|
| | | return OK_List(dt);
|
| | | }catch(BaseException e) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(e);
|
| | | return this.error(e);
|
| | | }catch (Exception e) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(e);
|
| | | return this.error(SystemCode.GETLIST_RECIPT_DOC_FILE.getValue(), SystemCode.GETLIST_RECIPT_DOC_FILE.getText());
|
| | | }
|
| | | }
|
| | |
|
| | | /**
|
| | | * æ¶æç®¡çå表
|
| | | * @param request
|
| | | * @return
|
| | | */
|
| | | @RequestMapping(value ="/isPrint/{version}", method = RequestMethod.POST)
|
| | | @ApiVersion(1)
|
| | | public String isPrint(HttpServletRequest request) {
|
| | | try {
|
| | | //è·ååæ°
|
| | | FieldSetEntity fse=null;
|
| | | Object bean=request.getAttribute(CoreConst.API_POST_REQUEST_DATA);
|
| | | if(bean != null){
|
| | | RequestParameterEntity reqp=(RequestParameterEntity)bean;
|
| | | fse = reqp.getFormData();
|
| | | }
|
| | | //夿忰æ¯å¦ä¸ºç©º
|
| | | if(bean == null || fse == null) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(SystemCode.SYSTEM_TABLE_NODATA.getValue(), SystemCode.SYSTEM_TABLE_NODATA.getText());
|
| | | return this.error(SystemCode.SYSTEM_FORM_NODATA.getValue(), SystemCode.SYSTEM_FORM_NODATA.getText());
|
| | | }
|
| | | //å¤æè¡¨åæ¯å¦æ£å¸¸
|
| | | if (!CmnConst.SFGL.equals(fse.getTableName())) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(SystemCode.SYSTEM_TABLE_NODATA.getValue(), SystemCode.SYSTEM_TABLE_NODATA.getText());
|
| | | return this.error(SystemCode.SYSTEM_TABLE_NODATA.getValue(), SystemCode.SYSTEM_TABLE_NODATA.getText());
|
| | | }
|
| | | IReceiptDocumentService service = (IReceiptDocumentService)getProxyInstance(receiptDocumentService);
|
| | | if(service.isPrint(fse)){
|
| | | return OK();
|
| | | }
|
| | | return this.error(SystemCode.SAVE_DATA_FILE.getValue(), SystemCode.SAVE_DATA_FILE.getText());
|
| | | }catch(BaseException e) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(e);
|
| | | return this.error(e);
|
| | | }catch (Exception e) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(e);
|
| | | return this.error(SystemCode.SAVE_DATA_FILE.getValue(), SystemCode.SAVE_DATA_FILE.getText());
|
| | | }
|
| | | }
|
| | | }
|
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.home.xining.controller;
|
| | |
|
| | | import com.home.xining.config.CmnConst;
|
| | | import com.home.xining.config.SystemCode;
|
| | | import com.home.xining.service.SendDocumentService;
|
| | | import com.home.xining.service.idel.ISendDocumentService;
|
| | | import com.product.admin.service.PublicService;
|
| | | import com.product.admin.service.idel.IPublicService;
|
| | | import com.product.core.config.CoreConst;
|
| | | import com.product.core.entity.DataTableEntity;
|
| | | import com.product.core.entity.FieldSetEntity;
|
| | | import com.product.core.entity.RequestParameterEntity;
|
| | | import com.product.core.exception.BaseException;
|
| | | import com.product.core.spring.context.SpringMVCContextHolder;
|
| | | import com.product.module.sys.version.ApiVersion;
|
| | | import com.product.util.support.AbstractBaseController;
|
| | | import org.springframework.beans.factory.annotation.Autowired;
|
| | | import org.springframework.web.bind.annotation.RequestMapping;
|
| | | import org.springframework.web.bind.annotation.RequestMethod;
|
| | | import org.springframework.web.bind.annotation.RestController;
|
| | |
|
| | | import javax.servlet.http.HttpServletRequest;
|
| | |
|
| | | /**
|
| | | * @ClassName: SendDocumentController
|
| | | * @Author: ZhouJie
|
| | | * @Date: 2022/2/21 13:45
|
| | | * @Description: åæç¨¿çº¸ï¼åæç®¡çï¼
|
| | | */
|
| | | @RequestMapping("/api/senddocument")
|
| | | @RestController
|
| | | public class SendDocumentController extends AbstractBaseController {
|
| | |
|
| | | @Autowired
|
| | | PublicService publicService;
|
| | | @Autowired
|
| | | public SendDocumentService sendDocumentService;
|
| | |
|
| | | /**
|
| | | * åæç¨¿çº¸å表
|
| | | * @param request
|
| | | * @return
|
| | | */
|
| | | @RequestMapping(value ="/list-sedoc/{version}", method = RequestMethod.POST)
|
| | | @ApiVersion(1)
|
| | | public String listSendDoc(HttpServletRequest request) {
|
| | | try {
|
| | | //è·ååæ°
|
| | | FieldSetEntity fse=null;
|
| | | Object bean=request.getAttribute(CoreConst.API_POST_REQUEST_DATA);
|
| | | if(bean != null){
|
| | | RequestParameterEntity reqp=(RequestParameterEntity)bean;
|
| | | fse = reqp.getFormData();
|
| | | }
|
| | | //夿忰æ¯å¦ä¸ºç©º
|
| | | if(bean == null || fse == null) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(SystemCode.SYSTEM_TABLE_NODATA.getValue(), SystemCode.SYSTEM_TABLE_NODATA.getText());
|
| | | return this.error(SystemCode.SYSTEM_FORM_NODATA.getValue(), SystemCode.SYSTEM_FORM_NODATA.getText());
|
| | | }
|
| | | //å¤æè¡¨åæ¯å¦æ£å¸¸
|
| | | if (!CmnConst.FWGZ.equals(fse.getTableName())) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(SystemCode.SYSTEM_TABLE_NODATA.getValue(), SystemCode.SYSTEM_TABLE_NODATA.getText());
|
| | | return this.error(SystemCode.SYSTEM_TABLE_NODATA.getValue(), SystemCode.SYSTEM_TABLE_NODATA.getText());
|
| | | }
|
| | | //夿å页忰
|
| | | if(fse.getString(CmnConst.PAGESIZE)==null || fse.getString(CmnConst.CPAGE)==null){
|
| | | return this.error(SystemCode.SYSTEM_CPAGES_NOT_NULL.getValue(), SystemCode.SYSTEM_CPAGES_NOT_NULL.getText());
|
| | | }
|
| | | DataTableEntity dt = sendDocumentService.getSendDocList(fse);
|
| | | return OK_List(dt);
|
| | | }catch(BaseException e) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(e);
|
| | | return this.error(e);
|
| | | }catch (Exception e) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(e);
|
| | | return this.error(SystemCode.GETLIST_SEND_DOC_FILE.getValue(), SystemCode.GETLIST_SEND_DOC_FILE.getText());
|
| | | }
|
| | | }
|
| | |
|
| | | /**
|
| | | * æ¹é彿¡£ï¼åæç¨¿çº¸,æ¶æç®¡çï¼
|
| | | * @param request
|
| | | * @return
|
| | | */
|
| | | @RequestMapping(value = "/batchFile/{version}", method = RequestMethod.POST)
|
| | | @ApiVersion(1)
|
| | | public String batchFile(HttpServletRequest request) {
|
| | | try {
|
| | | //è·ååæ°
|
| | | FieldSetEntity fse = null;
|
| | | Object bean = request.getAttribute(CoreConst.API_POST_REQUEST_DATA);
|
| | | if (bean != null) {
|
| | | RequestParameterEntity reqp = (RequestParameterEntity) bean;
|
| | | fse = reqp.getFormData();
|
| | | }
|
| | | //夿忰æ¯å¦ä¸ºç©º
|
| | | if (bean == null || fse == null) {
|
| | | return this.error(SystemCode.SYSTEM_FORM_NODATA.getValue(), SystemCode.SYSTEM_FORM_NODATA.getText());
|
| | | }
|
| | | //å¤æè¡¨åæ¯å¦æ£å¸¸
|
| | | if (!CmnConst.FWGZ.equals(fse.getTableName())) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(SystemCode.SYSTEM_TABLE_NODATA.getValue(), SystemCode.SYSTEM_TABLE_NODATA.getText());
|
| | | return this.error(SystemCode.SYSTEM_TABLE_NODATA.getValue(), SystemCode.SYSTEM_TABLE_NODATA.getText());
|
| | | }
|
| | | ISendDocumentService service = (ISendDocumentService) getProxyInstance(sendDocumentService);
|
| | | if(service.batchFile(fse)){
|
| | | return OK();
|
| | | }
|
| | | return this.error(SystemCode.BATCH_FILING_DOCUMENTS_FILE.getValue(), SystemCode.BATCH_FILING_DOCUMENTS_FILE.getText());
|
| | | } catch (BaseException e) {
|
| | | e.printStackTrace();
|
| | | SpringMVCContextHolder.getSystemLogger().error(e);
|
| | | return this.error(SystemCode.BATCH_FILING_DOCUMENTS_FILE.getValue(), SystemCode.BATCH_FILING_DOCUMENTS_FILE.getText());
|
| | | } catch (Exception e) {
|
| | | e.printStackTrace();
|
| | | SpringMVCContextHolder.getSystemLogger().error(e);
|
| | | return this.error(SystemCode.BATCH_FILING_DOCUMENTS_FILE.getValue(), SystemCode.BATCH_FILING_DOCUMENTS_FILE.getText());
|
| | | }
|
| | | }
|
| | | /**
|
| | | * ä¿åå
¬æç®¡ç
|
| | | * @param request
|
| | | * @return
|
| | | */
|
| | | @RequestMapping(value = "/save/{version}", method = RequestMethod.POST)
|
| | | @ApiVersion(1)
|
| | | public String save(HttpServletRequest request) {
|
| | | try {
|
| | | //è·ååæ°
|
| | | FieldSetEntity fse = null;
|
| | | Object bean = request.getAttribute(CoreConst.API_POST_REQUEST_DATA);
|
| | | if (bean != null) {
|
| | | RequestParameterEntity reqp = (RequestParameterEntity) bean;
|
| | | fse = reqp.getFormData();
|
| | | }
|
| | | //夿忰æ¯å¦ä¸ºç©º
|
| | | if (bean == null || fse == null) {
|
| | | return this.error(SystemCode.SYSTEM_FORM_NODATA.getValue(), SystemCode.SYSTEM_FORM_NODATA.getText());
|
| | | }
|
| | | //å¤æè¡¨åæ¯å¦æ£å¸¸
|
| | | if (!CmnConst.FWGZ.equals(fse.getTableName())) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(SystemCode.SYSTEM_TABLE_NODATA.getValue(), SystemCode.SYSTEM_TABLE_NODATA.getText());
|
| | | return this.error(SystemCode.SYSTEM_TABLE_NODATA.getValue(), SystemCode.SYSTEM_TABLE_NODATA.getText());
|
| | | }
|
| | | ISendDocumentService service = (ISendDocumentService) getProxyInstance(sendDocumentService);
|
| | | return OK_Add(service.saveFieldSetEntity(fse));
|
| | | } catch (BaseException e) {
|
| | | e.printStackTrace();
|
| | | SpringMVCContextHolder.getSystemLogger().error(e);
|
| | | return this.error(SystemCode.SAVE_DATA_FILE.getValue(), SystemCode.SAVE_DATA_FILE.getText());
|
| | | } catch (Exception e) {
|
| | | e.printStackTrace();
|
| | | SpringMVCContextHolder.getSystemLogger().error(e);
|
| | | return this.error(SystemCode.SAVE_DATA_FILE.getValue(), SystemCode.SAVE_DATA_FILE.getText());
|
| | | }
|
| | | }
|
| | | }
|
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.home.xining.controller;
|
| | |
|
| | | import com.home.xining.config.CmnConst;
|
| | | import com.home.xining.config.SystemCode;
|
| | | import com.home.xining.service.TravelTrainingService;
|
| | | import com.home.xining.service.idel.ITravelTrainingService;
|
| | | import com.product.common.lang.StringUtils;
|
| | | import com.product.core.config.CoreConst;
|
| | | import com.product.core.entity.DataTableEntity;
|
| | | import com.product.core.entity.FieldSetEntity;
|
| | | import com.product.core.entity.RequestParameterEntity;
|
| | | import com.product.core.exception.BaseException;
|
| | | import com.product.core.spring.context.SpringMVCContextHolder;
|
| | | import com.product.module.sys.version.ApiVersion;
|
| | | import com.product.util.support.AbstractBaseController;
|
| | | import org.springframework.beans.factory.annotation.Autowired;
|
| | | import org.springframework.web.bind.annotation.RequestMapping;
|
| | | import org.springframework.web.bind.annotation.RequestMethod;
|
| | | import org.springframework.web.bind.annotation.RestController;
|
| | |
|
| | | import javax.servlet.http.HttpServletRequest;
|
| | |
|
| | | /**
|
| | | * @ClassName: TravelTrainingController
|
| | | * @Author: ZhouJie
|
| | | * @Date: 2022/1/18 9:49
|
| | | * @Description: å·¥ä½äººååºå·®ï¼å¹è®ï¼å®¡æ¹
|
| | | */
|
| | | @RequestMapping("/api/travel")
|
| | | @RestController
|
| | | public class TravelTrainingController extends AbstractBaseController {
|
| | |
|
| | | @Autowired
|
| | | public TravelTrainingService travelTrainingService;
|
| | |
|
| | | /**
|
| | | * ä¿åå·¥ä½äººååºå·®ï¼å¹è®ï¼å®¡æ¹
|
| | | * @param request
|
| | | * @return
|
| | | */
|
| | | @RequestMapping(value = "/save-traveltrain/{version}", method = RequestMethod.POST)
|
| | | @ApiVersion(1)
|
| | | public String saveTravelTrain(HttpServletRequest request) {
|
| | | try {
|
| | | //è·ååæ°
|
| | | FieldSetEntity fse=null;
|
| | | Object bean=request.getAttribute(CoreConst.API_POST_REQUEST_DATA);
|
| | | if(bean != null){
|
| | | RequestParameterEntity reqp=(RequestParameterEntity)bean;
|
| | | fse = reqp.getFormData();
|
| | | }
|
| | | //夿忰æ¯å¦ä¸ºç©º
|
| | | if(bean == null || fse == null) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(SystemCode.SYSTEM_TABLE_NODATA.getValue(), SystemCode.SYSTEM_TABLE_NODATA.getText());
|
| | | return this.error(SystemCode.SYSTEM_FORM_NODATA.getValue(), SystemCode.SYSTEM_FORM_NODATA.getText());
|
| | | }
|
| | | //å¤æè¡¨åæ¯å¦æ£å¸¸
|
| | | if (!CmnConst.APP_GZRYCCSPB.equals(fse.getTableName())) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(SystemCode.SYSTEM_TABLE_NODATA.getValue(), SystemCode.SYSTEM_TABLE_NODATA.getText());
|
| | | return this.error(SystemCode.SYSTEM_TABLE_NODATA.getValue(), SystemCode.SYSTEM_TABLE_NODATA.getText());
|
| | | }
|
| | | ITravelTrainingService service = (ITravelTrainingService) getProxyInstance(travelTrainingService);
|
| | | String uuid = service.saveTravelTrain(fse);
|
| | | if (!StringUtils.isEmpty(uuid)) {
|
| | | return OK_Add(uuid);
|
| | | }
|
| | | SpringMVCContextHolder.getSystemLogger().error(SystemCode.SAVE_TRAVEL_TRAIN_FILE.getValue(), SystemCode.SAVE_TRAVEL_TRAIN_FILE.getText());
|
| | | return error(SystemCode.SAVE_TRAVEL_TRAIN_FILE.getValue(), SystemCode.SAVE_TRAVEL_TRAIN_FILE.getText());
|
| | | }catch(BaseException e) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(e);
|
| | | return this.error(e);
|
| | | }catch (Exception e) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(e);
|
| | | return this.error(SystemCode.SAVE_TRAVEL_TRAIN_FILE.getValue(), SystemCode.SAVE_TRAVEL_TRAIN_FILE.getText());
|
| | | }
|
| | | }
|
| | |
|
| | | /**
|
| | | * å é¤å·¥ä½äººååºå·®ï¼å¹è®ï¼å®¡æ¹
|
| | | * @param request
|
| | | * @return
|
| | | */
|
| | | @RequestMapping(value = "/delete-traveltrain/{version}", method = RequestMethod.POST)
|
| | | @ApiVersion(1)
|
| | | public String deleteTravelTrain(HttpServletRequest request) {
|
| | | try {
|
| | | //è·ååæ°
|
| | | FieldSetEntity fse=null;
|
| | | Object bean=request.getAttribute(CoreConst.API_POST_REQUEST_DATA);
|
| | | if(bean != null) {
|
| | | RequestParameterEntity reqp=(RequestParameterEntity)bean;
|
| | | fse = reqp.getFormData();
|
| | | }
|
| | | //夿忰æ¯å¦ä¸ºç©º
|
| | | if(bean == null || fse == null) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(SystemCode.SYSTEM_FORM_NODATA.getValue(), SystemCode.SYSTEM_FORM_NODATA.getText());
|
| | | return this.error(SystemCode.SYSTEM_FORM_NODATA.getValue(), SystemCode.SYSTEM_FORM_NODATA.getText());
|
| | | }
|
| | | //å¤æè¡¨åæ¯å¦æ£å¸¸
|
| | | if (!CmnConst.APP_GZRYCCSPB.equals(fse.getTableName())) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(SystemCode.SYSTEM_TABLE_NODATA.getValue(), SystemCode.SYSTEM_TABLE_NODATA.getText());
|
| | | return this.error(SystemCode.SYSTEM_TABLE_NODATA.getValue(), SystemCode.SYSTEM_TABLE_NODATA.getText());
|
| | | }
|
| | | //夿uuidæ¯å¦ä¸ºç©º
|
| | | if (com.alibaba.druid.util.StringUtils.isEmpty(fse.getString(CmnConst.UUID))) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(SystemCode.SYSTEM_FORM_COUNT.getValue(), SystemCode.SYSTEM_FORM_COUNT.getText());
|
| | | return this.error(SystemCode.SYSTEM_FORM_COUNT.getValue(), SystemCode.SYSTEM_FORM_COUNT.getText());
|
| | | }
|
| | | ITravelTrainingService service = (ITravelTrainingService) getProxyInstance(travelTrainingService);
|
| | | boolean success=service.deleteTravelTrain(fse);
|
| | | if(success) {
|
| | | return OK();
|
| | | }
|
| | | SpringMVCContextHolder.getSystemLogger().error(SystemCode.DELETE_TRAVEL_TRAIN_FILE.getValue(),SystemCode.DELETE_TRAVEL_TRAIN_FILE.getText());
|
| | | return error(SystemCode.DELETE_TRAVEL_TRAIN_FILE.getValue(),SystemCode.DELETE_TRAVEL_TRAIN_FILE.getText());
|
| | | }catch(BaseException e) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(e);
|
| | | return this.error(e);
|
| | | }catch (Exception e) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(e);
|
| | | return this.error(SystemCode.DELETE_TRAVEL_TRAIN_FILE.getValue(),SystemCode.DELETE_TRAVEL_TRAIN_FILE.getText());
|
| | | }
|
| | | }
|
| | |
|
| | | /**
|
| | | * è·åå·¥ä½äººååºå·®ï¼å¹è®ï¼å®¡æ¹å表
|
| | | * @param request
|
| | | * @return
|
| | | */
|
| | | @RequestMapping(value = "/list-traveltrain/{version}", method = RequestMethod.POST)
|
| | | @ApiVersion(1)
|
| | | public String getTravelTrainList(HttpServletRequest request) {
|
| | | try {
|
| | | //è·ååæ°
|
| | | FieldSetEntity fse=null;
|
| | | Object bean=request.getAttribute(CoreConst.API_POST_REQUEST_DATA);
|
| | | if(bean != null){
|
| | | RequestParameterEntity reqp=(RequestParameterEntity)bean;
|
| | | fse = reqp.getFormData();
|
| | | }
|
| | | //夿忰æ¯å¦ä¸ºç©º
|
| | | if(bean == null || fse == null) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(SystemCode.SYSTEM_TABLE_NODATA.getValue(), SystemCode.SYSTEM_TABLE_NODATA.getText());
|
| | | return this.error(SystemCode.SYSTEM_FORM_NODATA.getValue(), SystemCode.SYSTEM_FORM_NODATA.getText());
|
| | | }
|
| | | //å¤æè¡¨åæ¯å¦æ£å¸¸
|
| | | if (!CmnConst.APP_GZRYCCSPB.equals(fse.getTableName())) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(SystemCode.SYSTEM_TABLE_NODATA.getValue(), SystemCode.SYSTEM_TABLE_NODATA.getText());
|
| | | return this.error(SystemCode.SYSTEM_TABLE_NODATA.getValue(), SystemCode.SYSTEM_TABLE_NODATA.getText());
|
| | | }
|
| | | //夿å页忰
|
| | | if(fse.getString(CmnConst.PAGESIZE)==null || fse.getString(CmnConst.CPAGE)==null){
|
| | | return this.error(SystemCode.SYSTEM_CPAGES_NOT_NULL.getValue(), SystemCode.SYSTEM_CPAGES_NOT_NULL.getText());
|
| | | }
|
| | | DataTableEntity dt = travelTrainingService.getTravelTrainList(fse);
|
| | | return OK_List(dt);
|
| | | }catch(BaseException e) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(e);
|
| | | return this.error(e);
|
| | | }catch (Exception e) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(e);
|
| | | return this.error(SystemCode.GETLIST_TRAVEL_TRAIN_FILE.getValue(), SystemCode.GETLIST_TRAVEL_TRAIN_FILE.getText());
|
| | | }
|
| | | }
|
| | |
|
| | | /**
|
| | | * è·åå·¥ä½äººååºå·®ï¼å¹è®ï¼å®¡æ¹è¯¦æ
|
| | | * @param request
|
| | | * @return
|
| | | */
|
| | | @RequestMapping(value="/find-traveltrain/{version}", method=RequestMethod.POST)
|
| | | @ApiVersion(1)
|
| | | public String getTravelTrainInfo(HttpServletRequest request){
|
| | | try {
|
| | | //è·ååæ°
|
| | | FieldSetEntity fse=null;
|
| | | Object bean=request.getAttribute(CoreConst.API_POST_REQUEST_DATA);
|
| | | if(bean != null) {
|
| | | RequestParameterEntity reqp=(RequestParameterEntity)bean;
|
| | | fse = reqp.getFormData();
|
| | | }
|
| | | //夿忰æ¯å¦ä¸ºç©º
|
| | | if(bean == null || fse == null) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(SystemCode.SYSTEM_FORM_NODATA.getValue(), SystemCode.SYSTEM_FORM_NODATA.getText());
|
| | | return this.error(SystemCode.SYSTEM_FORM_NODATA.getValue(), SystemCode.SYSTEM_FORM_NODATA.getText());
|
| | | }
|
| | | //å¤æè¡¨åæ¯å¦æ£å¸¸
|
| | | if (!CmnConst.APP_GZRYCCSPB.equals(fse.getTableName())) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(SystemCode.SYSTEM_TABLE_NODATA.getValue(), SystemCode.SYSTEM_TABLE_NODATA.getText());
|
| | | return this.error(SystemCode.SYSTEM_TABLE_NODATA.getValue(), SystemCode.SYSTEM_TABLE_NODATA.getText());
|
| | | }
|
| | | //夿uuidæ¯å¦ä¸ºç©º
|
| | | if (com.alibaba.druid.util.StringUtils.isEmpty(fse.getString(CmnConst.UUID))) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(SystemCode.SYSTEM_TABLE_NODATA.getValue(), SystemCode.SYSTEM_TABLE_NODATA.getText());
|
| | | return this.error(SystemCode.SYSTEM_FORM_COUNT.getValue(), SystemCode.SYSTEM_FORM_COUNT.getText());
|
| | | }
|
| | | FieldSetEntity fs = travelTrainingService.getTravelTrainInfo(fse);
|
| | | return OK_List(fs);
|
| | | }catch(BaseException e) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(e);
|
| | | return this.error(e);
|
| | | }catch (Exception e) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(e);
|
| | | return this.error(SystemCode.GETINFO_TRAVEL_TRAIN_FILE.getValue(),SystemCode.GETINFO_TRAVEL_TRAIN_FILE.getText());
|
| | | }
|
| | | }
|
| | |
|
| | | /**
|
| | | * å·¥ä½äººååºå·®ï¼å¹è®ï¼å®¡æ¹ éå
|
| | | * @param request
|
| | | * @return
|
| | | */
|
| | | @RequestMapping(value = "/send-traveltrain/{version}", method = RequestMethod.POST)
|
| | | @ApiVersion(1)
|
| | | public String sendTravelTrain(HttpServletRequest request) {
|
| | | try {
|
| | | //è·ååæ°
|
| | | FieldSetEntity fse=null;
|
| | | Object bean=request.getAttribute(CoreConst.API_POST_REQUEST_DATA);
|
| | | if(bean != null){
|
| | | RequestParameterEntity reqp=(RequestParameterEntity)bean;
|
| | | fse = reqp.getFormData();
|
| | | }
|
| | | //夿忰æ¯å¦ä¸ºç©º
|
| | | if(bean == null || fse == null) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(SystemCode.SYSTEM_FORM_NODATA.getValue(), SystemCode.SYSTEM_FORM_NODATA.getText());
|
| | | return this.error(SystemCode.SYSTEM_FORM_NODATA.getValue(), SystemCode.SYSTEM_FORM_NODATA.getText());
|
| | | }
|
| | | //å¤æè¡¨åæ¯å¦æ£å¸¸
|
| | | if (!CmnConst.APP_GZRYCCSPB.equals(fse.getTableName())) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(SystemCode.SYSTEM_TABLE_NODATA.getValue(), SystemCode.SYSTEM_TABLE_NODATA.getText());
|
| | | return this.error(SystemCode.SYSTEM_TABLE_NODATA.getValue(), SystemCode.SYSTEM_TABLE_NODATA.getText());
|
| | | }
|
| | | ITravelTrainingService service = (ITravelTrainingService) getProxyInstance(travelTrainingService);
|
| | | boolean succ = service.sendTravelTrain(fse.getUUID());
|
| | | if (succ) {
|
| | | return OK();
|
| | | }
|
| | | SpringMVCContextHolder.getSystemLogger().error(SystemCode.SEND_TRAVEL_TRAIN_FILE.getValue(), SystemCode.SEND_TRAVEL_TRAIN_FILE.getText());
|
| | | return error(SystemCode.SEND_TRAVEL_TRAIN_FILE.getValue(), SystemCode.SEND_TRAVEL_TRAIN_FILE.getText());
|
| | | }catch(BaseException e) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(e);
|
| | | return this.error(e);
|
| | | }catch (Exception e) {
|
| | | SpringMVCContextHolder.getSystemLogger().error(e);
|
| | | return this.error(SystemCode.SEND_TRAVEL_TRAIN_FILE.getValue(), SystemCode.SEND_TRAVEL_TRAIN_FILE.getText());
|
| | | }
|
| | | }
|
| | |
|
| | | }
|
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.home.xining.controller;
|
| | |
|
| | | import com.home.xining.config.CmnConst;
|
| | | import com.home.xining.config.SystemCode;
|
| | | import com.product.admin.service.PublicService;
|
| | | import com.product.admin.service.idel.IPublicService;
|
| | | import com.product.core.config.CoreConst;
|
| | | import com.product.core.entity.FieldSetEntity;
|
| | | import com.product.core.entity.RequestParameterEntity;
|
| | | import com.product.core.exception.BaseException;
|
| | | import com.product.core.spring.context.SpringMVCContextHolder;
|
| | | import com.product.module.sys.version.ApiVersion;
|
| | | import com.product.util.BaseUtil;
|
| | | import com.product.util.support.AbstractBaseController;
|
| | | import org.springframework.beans.factory.annotation.Autowired;
|
| | | import org.springframework.web.bind.annotation.RequestMapping;
|
| | | import org.springframework.web.bind.annotation.RequestMethod;
|
| | | import org.springframework.web.bind.annotation.RestController;
|
| | |
|
| | | import javax.servlet.http.HttpServletRequest;
|
| | |
|
| | | /**
|
| | | * @Title: XiNingPublicController
|
| | | * @Date: 2022-01-24 11:30:48
|
| | | * @Author: luoxin
|
| | | * @Description: éç¨æ¥å£,
|
| | | */
|
| | | @RequestMapping("/api/xining/controller")
|
| | | @RestController
|
| | | public class XiNingPublicController extends AbstractBaseController {
|
| | |
|
| | | @Autowired
|
| | | PublicService publicService;
|
| | |
|
| | | @RequestMapping(value ="/list/{version}", method = RequestMethod.POST)
|
| | | @ApiVersion(1)
|
| | | public String list(HttpServletRequest request) {
|
| | | try {
|
| | | //è·ååæ°
|
| | | FieldSetEntity fse = null;
|
| | | Object bean = request.getAttribute(CoreConst.API_POST_REQUEST_DATA);
|
| | | if (bean != null) {
|
| | | RequestParameterEntity reqp = (RequestParameterEntity) bean;
|
| | | fse = reqp.getFormData();
|
| | | }
|
| | | //夿忰æ¯å¦ä¸ºç©º
|
| | | if (bean == null || fse == null) {
|
| | | return this.error(SystemCode.SYSTEM_FORM_NODATA.getValue(), SystemCode.SYSTEM_FORM_NODATA.getText());
|
| | | }
|
| | | String createdByField = fse.getString(CmnConst.CREATED_BY_FIELD);
|
| | | if(BaseUtil.strIsNull(createdByField)){
|
| | |
|
| | | }
|
| | | return OK_List(publicService.listTable(fse, true, 2, null, createdByField));
|
| | | } catch (BaseException e) {
|
| | | e.printStackTrace();
|
| | | SpringMVCContextHolder.getSystemLogger().error(e);
|
| | | return this.error(SystemCode.GET_DATALIST_FILE.getValue(), SystemCode.GET_DATALIST_FILE.getText());
|
| | | } catch (Exception e) {
|
| | | e.printStackTrace();
|
| | | SpringMVCContextHolder.getSystemLogger().error(e);
|
| | | return this.error(SystemCode.GET_DATALIST_FILE.getValue(), SystemCode.GET_DATALIST_FILE.getText());
|
| | | }
|
| | | }
|
| | |
|
| | | @RequestMapping(value = "/get/{version}", method = RequestMethod.POST)
|
| | | @ApiVersion(1)
|
| | | public String get(HttpServletRequest request) {
|
| | | try {
|
| | | //è·ååæ°
|
| | | FieldSetEntity fse = null;
|
| | | Object bean = request.getAttribute(CoreConst.API_POST_REQUEST_DATA);
|
| | | if (bean != null) {
|
| | | RequestParameterEntity reqp = (RequestParameterEntity) bean;
|
| | | fse = reqp.getFormData();
|
| | | }
|
| | | //夿忰æ¯å¦ä¸ºç©º
|
| | | if (bean == null || fse == null) {
|
| | | return this.error(SystemCode.SYSTEM_FORM_NODATA.getValue(), SystemCode.SYSTEM_FORM_NODATA.getText());
|
| | | }
|
| | | return OK_List(publicService.getFieldSetEntity(fse,true));
|
| | | } catch (BaseException e) {
|
| | | e.printStackTrace();
|
| | | SpringMVCContextHolder.getSystemLogger().error(e);
|
| | | return this.error(SystemCode.GET_DATA_FILE.getValue(), SystemCode.GET_DATA_FILE.getText());
|
| | | } catch (Exception e) {
|
| | | e.printStackTrace();
|
| | | SpringMVCContextHolder.getSystemLogger().error(e);
|
| | | return this.error(SystemCode.GET_DATA_FILE.getValue(), SystemCode.GET_DATA_FILE.getText());
|
| | | }
|
| | | }
|
| | |
|
| | | @RequestMapping(value = "/save/{version}", method = RequestMethod.POST)
|
| | | @ApiVersion(1)
|
| | | public String save(HttpServletRequest request) {
|
| | | try {
|
| | | //è·ååæ°
|
| | | FieldSetEntity fse = null;
|
| | | Object bean = request.getAttribute(CoreConst.API_POST_REQUEST_DATA);
|
| | | if (bean != null) {
|
| | | RequestParameterEntity reqp = (RequestParameterEntity) bean;
|
| | | fse = reqp.getFormData();
|
| | | }
|
| | | //夿忰æ¯å¦ä¸ºç©º
|
| | | if (bean == null || fse == null) {
|
| | | return this.error(SystemCode.SYSTEM_FORM_NODATA.getValue(), SystemCode.SYSTEM_FORM_NODATA.getText());
|
| | | }
|
| | | IPublicService service = (IPublicService) getProxyInstance(publicService);
|
| | | return OK_Add(service.saveFieldSetEntity(fse));
|
| | | } catch (BaseException e) {
|
| | | e.printStackTrace();
|
| | | SpringMVCContextHolder.getSystemLogger().error(e);
|
| | | return this.error(SystemCode.SAVE_DATA_FILE.getValue(), SystemCode.SAVE_DATA_FILE.getText());
|
| | | } catch (Exception e) {
|
| | | e.printStackTrace();
|
| | | SpringMVCContextHolder.getSystemLogger().error(e);
|
| | | return this.error(SystemCode.SAVE_DATA_FILE.getValue(), SystemCode.SAVE_DATA_FILE.getText());
|
| | | }
|
| | | }
|
| | |
|
| | | @RequestMapping(value = "/delete/{version}", method = RequestMethod.POST)
|
| | | @ApiVersion(1)
|
| | | public String delete(HttpServletRequest request) {
|
| | | try {
|
| | | //è·ååæ°
|
| | | FieldSetEntity fse = null;
|
| | | Object bean = request.getAttribute(CoreConst.API_POST_REQUEST_DATA);
|
| | | if (bean != null) {
|
| | | RequestParameterEntity reqp = (RequestParameterEntity) bean;
|
| | | fse = reqp.getFormData();
|
| | | }
|
| | | //夿忰æ¯å¦ä¸ºç©º
|
| | | if (bean == null || fse == null) {
|
| | | return this.error(SystemCode.SYSTEM_FORM_NODATA.getValue(), SystemCode.SYSTEM_FORM_NODATA.getText());
|
| | | }
|
| | | IPublicService service = (IPublicService) getProxyInstance(publicService);
|
| | | if(service.delete(fse)){
|
| | | return OK();
|
| | | }
|
| | | return this.error(SystemCode.DELETE_DATA_FILE.getValue(), SystemCode.DELETE_DATA_FILE.getText());
|
| | | } catch (BaseException e) {
|
| | | e.printStackTrace();
|
| | | SpringMVCContextHolder.getSystemLogger().error(e);
|
| | | return this.error(SystemCode.DELETE_DATA_FILE.getValue(), SystemCode.DELETE_DATA_FILE.getText());
|
| | | } catch (Exception e) {
|
| | | e.printStackTrace();
|
| | | SpringMVCContextHolder.getSystemLogger().error(e);
|
| | | return this.error(SystemCode.DELETE_DATA_FILE.getValue(), SystemCode.DELETE_DATA_FILE.getText());
|
| | | }
|
| | | }
|
| | | }
|
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.home.xining.service;
|
| | |
|
| | | import com.home.xining.config.CmnConst;
|
| | | import com.home.xining.service.idel.IAdvanceNoticeService;
|
| | | import com.home.xining.service.idel.IOfficeExpensesService;
|
| | | import com.product.common.lang.StringUtils;
|
| | | import com.product.core.dao.BaseDao;
|
| | | import com.product.core.entity.DataTableEntity;
|
| | | import com.product.core.entity.FieldSetEntity;
|
| | | import com.product.core.exception.BaseException;
|
| | | import com.product.core.permission.PermissionService;
|
| | | import com.product.core.service.support.AbstractBaseService;
|
| | | import com.product.core.service.support.QueryFilterService;
|
| | | import com.product.core.transfer.Transactional;
|
| | | import com.product.util.BaseUtil;
|
| | | import org.springframework.beans.factory.annotation.Autowired;
|
| | | import org.springframework.stereotype.Component;
|
| | | import org.springframework.stereotype.Service;
|
| | |
|
| | | import java.text.ParseException;
|
| | |
|
| | | /**
|
| | | * @ClassName: AdvanceNoticeService
|
| | | * @Author:
|
| | | * @Date: 2022/1/11 17:16
|
| | | * @Description: è¡æ¿å¤ç½äºå
åç¥ä¹¦Service
|
| | | */
|
| | | @Service
|
| | | public class AdvanceNoticeService extends AbstractBaseService implements IAdvanceNoticeService {
|
| | |
|
| | | @Autowired
|
| | | public BaseDao baseDao;
|
| | | @Autowired
|
| | | PermissionService permissionService;
|
| | | @Autowired
|
| | | QueryFilterService queryFilterService;
|
| | |
|
| | | @Override
|
| | | public DataTableEntity listAdvanceNoticeg(FieldSetEntity fs) throws BaseException{
|
| | | String filter=fs.getString("filter");
|
| | | String dataFilter = permissionService.getDataFilter(fs.getTableName(),CmnConst.NO18);
|
| | |
|
| | | if(!StringUtils.isEmpty(dataFilter)){
|
| | | if(!StringUtils.isEmpty(filter)){
|
| | | filter += " and "+dataFilter;
|
| | | }else {
|
| | | filter = dataFilter;
|
| | | }
|
| | | }
|
| | | if(!BaseUtil.dataTableIsEmpty(fs.getSubDataTable("systemSeniorQueryString"))){
|
| | | filter = filter + " and " + queryFilterService.getQueryFilter(fs);
|
| | | }
|
| | | // fs.getInteger(CmnConst.PAGESIZE),fs.getInteger(CmnConst.CPAGE)
|
| | | DataTableEntity dt = baseDao.listTable(CmnConst.APP_NOTICE_PUNISHMENT,filter, null,null,null,fs.getInteger(CmnConst.PAGESIZE),fs.getInteger(CmnConst.CPAGE));
|
| | | baseDao.loadPromptData(dt);
|
| | | return dt;
|
| | | }
|
| | |
|
| | | @Override
|
| | | public FieldSetEntity getAdvanceNotice(FieldSetEntity fs) {
|
| | | return baseDao.getFieldSet(CmnConst.APP_NOTICE_PUNISHMENT, fs.getUUID(), false);
|
| | | }
|
| | |
|
| | | @Override
|
| | | @Transactional
|
| | | public String saveAdvanceNotice(FieldSetEntity fs)throws BaseException {
|
| | | String fsUUID = fs.getUUID();
|
| | | if(BaseUtil.strIsNull(fsUUID)){
|
| | | fsUUID = baseDao.add(fs);
|
| | | }else{
|
| | | baseDao.update(fs);
|
| | | }
|
| | | return fsUUID;
|
| | | }
|
| | |
|
| | | @Override
|
| | | @Transactional
|
| | | public String deleteAdvanceNotice(FieldSetEntity fs)throws BaseException {
|
| | | String uuids = fs.getString(CmnConst.UUID);
|
| | | String[] uuid = uuids.split(",");
|
| | | baseDao.delete(CmnConst.APP_NOTICE_PUNISHMENT, uuid);
|
| | | return uuids;
|
| | | }
|
| | |
|
| | | @Override
|
| | | @Transactional
|
| | | public void addTypeSize(FieldSetEntity fs) throws BaseException {
|
| | | String tableName = fs.getTableName();
|
| | | DataTableEntity dataTableEntity = baseDao.listTable("SELECT IFNULL(MAX(no02),0) no02 FROM "+tableName, new String[]{});
|
| | | String no02 = String.valueOf(Integer.parseInt(dataTableEntity.getFieldSetEntity(0).getString("no02")) + 1);
|
| | | while (no02.length() < 3){
|
| | | no02 = "0" + no02;
|
| | | }
|
| | | fs.setValue("no02",no02);
|
| | | baseDao.update(fs);
|
| | | }
|
| | | }
|
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.home.xining.service;
|
| | |
|
| | | import com.home.xining.config.CmnConst;
|
| | | import com.home.xining.service.idel.ICivilServantReceptionService;
|
| | | import com.product.common.lang.StringUtils;
|
| | | import com.product.core.dao.BaseDao;
|
| | | import com.product.core.entity.DataTableEntity;
|
| | | import com.product.core.entity.FieldSetEntity;
|
| | | import com.product.core.exception.BaseException;
|
| | | import com.product.core.permission.PermissionService;
|
| | | import com.product.core.service.support.QueryFilterService;
|
| | | import com.product.core.spring.context.SpringMVCContextHolder;
|
| | | import com.product.core.transfer.Transactional;
|
| | | import com.product.util.BaseUtil;
|
| | | import org.springframework.beans.factory.annotation.Autowired;
|
| | | import org.springframework.stereotype.Component;
|
| | |
|
| | | import java.util.Date;
|
| | |
|
| | | /**
|
| | | * @ClassName: CivilServantReceptionService
|
| | | * @Author: ZhouJie
|
| | | * @Date: 2022/1/19 10:43
|
| | | * @Description: å
¬å¡æ¥å¾
审æ¹
|
| | | */
|
| | | @Component
|
| | | public class CivilServantReceptionService extends AdvanceNoticeService implements ICivilServantReceptionService {
|
| | |
|
| | | @Autowired
|
| | | public BaseDao baseDao;
|
| | | @Autowired
|
| | | PermissionService permissionService;
|
| | | @Autowired
|
| | | QueryFilterService queryFilterService;
|
| | |
|
| | | /**
|
| | | * ä¿åå
¬å¡æ¥å¾
审æ¹
|
| | | * @param fs
|
| | | * @return
|
| | | */
|
| | | @Transactional
|
| | | public String saveCivilServantReception(FieldSetEntity fs) {
|
| | | if(StringUtils.isEmpty(fs.getString(CmnConst.UUID))){
|
| | | fs.setValue(CmnConst.GW11, new Date());
|
| | | fs.setValue(CmnConst.GW10, SpringMVCContextHolder.getCurrentUser().getUser_id());
|
| | | return baseDao.add(fs);
|
| | | } else {
|
| | | baseDao.update(fs);
|
| | | return fs.getString(CmnConst.UUID);
|
| | | }
|
| | | }
|
| | |
|
| | | /**
|
| | | * å é¤å
¬å¡æ¥å¾
审æ¹
|
| | | * @param fs
|
| | | * @return
|
| | | */
|
| | | @Transactional
|
| | | public boolean deleteCivilServantReception(FieldSetEntity fs) {
|
| | | String uuid = fs.getUUID();
|
| | | String[] uuids = uuid.split(",");
|
| | | return baseDao.delete(CmnConst.GWJDSPB, BaseUtil.buildQuestionMarkFilter(CmnConst.UUID, uuids.length, true), uuids);
|
| | | }
|
| | |
|
| | | /**
|
| | | * è·åå
¬å¡æ¥å¾
审æ¹å表
|
| | | * @param fs
|
| | | * @return
|
| | | * @throws BaseException
|
| | | */
|
| | | public DataTableEntity getCivilServantReceptionList(FieldSetEntity fs) throws BaseException {
|
| | | String filter=fs.getString("filter");
|
| | | String dataFilter = permissionService.getDataFilter(fs.getTableName(),CmnConst.GW10);
|
| | | if(!StringUtils.isEmpty(dataFilter)){
|
| | | if(!StringUtils.isEmpty(filter)){
|
| | | filter += " and "+dataFilter;
|
| | | }else {
|
| | | filter = dataFilter;
|
| | | }
|
| | | }
|
| | | if(!BaseUtil.dataTableIsEmpty(fs.getSubDataTable("systemSeniorQueryString"))){
|
| | | filter = filter + " and " + queryFilterService.getQueryFilter(fs);
|
| | | }
|
| | | DataTableEntity dt = baseDao.listTable(CmnConst.GWJDSPB,filter,null,null,null,fs.getInteger(CmnConst.PAGESIZE),fs.getInteger(CmnConst.CPAGE));
|
| | | baseDao.loadPromptData(dt);
|
| | | return dt;
|
| | | }
|
| | |
|
| | | /**
|
| | | * è·åå
¬å¡æ¥å¾
审æ¹è¯¦æ
|
| | | * @param fs
|
| | | * @return
|
| | | * @throws BaseException
|
| | | */
|
| | | public FieldSetEntity getCivilServantReceptionInfo(FieldSetEntity fs) throws BaseException {
|
| | | return baseDao.listInternationDataTable(baseDao.getFieldSetEntity(CmnConst.GWJDSPB, fs.getString(CmnConst.UUID), true),null);
|
| | | }
|
| | |
|
| | | /**
|
| | | * å
¬å¡æ¥å¾
审æ¹éå
|
| | | * @param uuid
|
| | | * @return
|
| | | */
|
| | | @Transactional
|
| | | public boolean sendCivilServantReception(String uuid) {
|
| | | return false;
|
| | | }
|
| | |
|
| | |
|
| | |
|
| | | }
|
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.home.xining.service;
|
| | |
|
| | | import com.home.xining.service.idel.IHousingArchivesService;
|
| | | import com.product.core.dao.BaseDao;
|
| | | import com.product.core.entity.FieldSetEntity;
|
| | | import com.product.core.exception.BaseException;
|
| | | import com.product.core.service.support.AbstractBaseService;
|
| | | import com.product.util.BaseUtil;
|
| | | import org.springframework.beans.factory.annotation.Autowired;
|
| | | import org.springframework.stereotype.Service;
|
| | |
|
| | | @Service
|
| | | public class HousingArchivesService extends AbstractBaseService implements IHousingArchivesService {
|
| | |
|
| | | @Autowired
|
| | | BaseDao baseDao;
|
| | |
|
| | | @Override
|
| | | public String getSerialNumber() {
|
| | | FieldSetEntity fieldSetEntity = baseDao.getFieldSetBySQL("SELECT IFNULL(MAX(number),0) number FROM product_oa_housing_archives", new String[]{},false);
|
| | | Integer number = fieldSetEntity.getInteger("number");
|
| | | number++;
|
| | | String numbers = String.valueOf(number);
|
| | | while (numbers.length() < 10){
|
| | | numbers = 0 + numbers;
|
| | | }
|
| | | return numbers;
|
| | | }
|
| | |
|
| | | @Override
|
| | | public String saveIHousingArchives(FieldSetEntity fse) throws BaseException {
|
| | | String uuid = fse.getUUID();
|
| | | String not_hidden_danger = fse.getString("not_hidden_danger");
|
| | | if("1".equals(not_hidden_danger)){
|
| | | //ç»ææ§éæ£
|
| | | fse.setValue("structural_risks", null);
|
| | | //设æ½éæ£
|
| | | fse.setValue("facilities_hidden_trouble", null);
|
| | | //ç»è¥éæ£
|
| | | fse.setValue("the_pitfalls", null);
|
| | | //æ¶é²éæ£
|
| | | fse.setValue("fire_hazard", null);
|
| | | //ç¯å¢éæ£
|
| | | fse.setValue("environmental_hazards", null);
|
| | | //å
¶ä»éæ£
|
| | | fse.setValue("other_hazards", null);
|
| | | //æ¯å¦åå¨ç»ææ§éæ£
|
| | | fse.setValue("structural_risks_is","0");
|
| | | //æ¯å¦åå¨è®¾æ½éæ£
|
| | | fse.setValue("facilities_hidden_trouble_is","0");
|
| | | //æ¯å¦åå¨ç»è¥éæ£
|
| | | fse.setValue("the_pitfalls_is","0");
|
| | | //æ¯å¦å卿¶é²éæ£
|
| | | fse.setValue("fire_hazard_is","0");
|
| | | //æ¯å¦åå¨ç¯å¢éæ£
|
| | | fse.setValue("environmental_hazards_is","0");
|
| | | //æ¯å¦åå¨å
¶ä»éæ£
|
| | | fse.setValue("other_hazards_is","0");
|
| | | }
|
| | | String usageHouse = fse.getString("usageHouse");
|
| | | if(!BaseUtil.strIsNull(usageHouse)){
|
| | | fse.setValue("usageHouse","ç»è¥æ§,"+usageHouse);
|
| | | }
|
| | | if(BaseUtil.strIsNull(uuid)){
|
| | | String number = this.getSerialNumber();
|
| | | fse.setValue("number", number);
|
| | | uuid = baseDao.add(fse);
|
| | | }else {
|
| | | baseDao.update(fse);
|
| | | }
|
| | | return uuid;
|
| | | }
|
| | | }
|
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.home.xining.service;
|
| | |
|
| | | import com.home.xining.config.CmnConst;
|
| | | import com.home.xining.service.idel.ILawEnforcementService;
|
| | | import com.product.common.lang.StringUtils;
|
| | | import com.product.core.dao.BaseDao;
|
| | | import com.product.core.entity.DataTableEntity;
|
| | | import com.product.core.entity.FieldSetEntity;
|
| | | import com.product.core.exception.BaseException;
|
| | | import com.product.core.permission.PermissionService;
|
| | | import com.product.core.service.support.AbstractBaseService;
|
| | | import com.product.core.service.support.QueryFilterService;
|
| | | import com.product.core.spring.context.SpringMVCContextHolder;
|
| | | import com.product.core.transfer.Transactional;
|
| | | import com.product.util.BaseUtil;
|
| | | import org.springframework.beans.factory.annotation.Autowired;
|
| | | import org.springframework.stereotype.Component;
|
| | | import org.springframework.stereotype.Service;
|
| | |
|
| | | import java.text.ParseException;
|
| | |
|
| | | /**
|
| | | * @ClassName: LawEnforcementController
|
| | | * @Author: luoxin
|
| | | * @Date: 2022/1/11 17:16
|
| | | * @Description: è¡æ¿å¤ç½äºå
åç¥ä¹¦Service
|
| | | */
|
| | | @Component
|
| | | @Service
|
| | | public class LawEnforcementService extends AbstractBaseService implements ILawEnforcementService {
|
| | |
|
| | | @Autowired
|
| | | public BaseDao baseDao;
|
| | | @Autowired
|
| | | PermissionService permissionService;
|
| | | @Autowired
|
| | | QueryFilterService queryFilterService;
|
| | |
|
| | | @Override
|
| | | public DataTableEntity listLawEnforcement(FieldSetEntity fs) throws BaseException {
|
| | | String filter = fs.getString("filter");
|
| | | String dataFilter = permissionService.getDataFilter(fs.getTableName(), CmnConst.AX04);
|
| | | if (!StringUtils.isEmpty(dataFilter)) {
|
| | | if (!StringUtils.isEmpty(filter)) {
|
| | | filter += " and " + dataFilter;
|
| | | } else {
|
| | | filter = dataFilter;
|
| | | }
|
| | | }
|
| | | if (!BaseUtil.dataTableIsEmpty(fs.getSubDataTable("systemSeniorQueryString"))) {
|
| | | filter = filter + " and " + queryFilterService.getQueryFilter(fs);
|
| | | }
|
| | | DataTableEntity dt = baseDao.listTable(CmnConst.APP_XZZFSPB, filter, null, null, null, fs.getInteger(CmnConst.PAGESIZE), fs.getInteger(CmnConst.CPAGE));
|
| | | baseDao.loadPromptData(dt);
|
| | | return dt;
|
| | | }
|
| | |
|
| | | @Override
|
| | | public FieldSetEntity getLawEnforcement(FieldSetEntity fs) {
|
| | | return baseDao.getFieldSet(CmnConst.APP_XZZFSPB, fs.getUUID(), false);
|
| | | }
|
| | |
|
| | | @Override
|
| | | @Transactional
|
| | | public String saveLawEnforcement(FieldSetEntity fs) throws ParseException {
|
| | | String fsUUID = fs.getUUID();
|
| | |
|
| | | if (BaseUtil.strIsNull(fsUUID)) {
|
| | | fs.setValue(CmnConst.AX04, SpringMVCContextHolder.getCurrentUser().getUser_id());
|
| | | fsUUID = baseDao.add(fs);
|
| | | } else {
|
| | | baseDao.update(fs);
|
| | | }
|
| | | return fsUUID;
|
| | | }
|
| | |
|
| | | @Override
|
| | | @Transactional
|
| | | public String deleteLawEnforcement(FieldSetEntity fs) throws ParseException {
|
| | | String uuids = fs.getString(CmnConst.UUID);
|
| | | String[] uuid = uuids.split(",");
|
| | | baseDao.delete(CmnConst.APP_XZZFSPB, uuid);
|
| | | return uuids;
|
| | | }
|
| | | }
|
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.home.xining.service;
|
| | |
|
| | | import com.home.xining.config.CmnConst;
|
| | | import com.home.xining.service.idel.IOfficeExpensesService;
|
| | | import com.product.common.lang.StringUtils;
|
| | | import com.product.core.dao.BaseDao;
|
| | | import com.product.core.entity.DataTableEntity;
|
| | | import com.product.core.entity.FieldSetEntity;
|
| | | import com.product.core.exception.BaseException;
|
| | | import com.product.core.permission.PermissionService;
|
| | | import com.product.core.service.support.AbstractBaseService;
|
| | | import com.product.core.service.support.QueryFilterService;
|
| | | import com.product.core.spring.context.SpringMVCContextHolder;
|
| | | import com.product.core.transfer.Transactional;
|
| | | import com.product.util.BaseUtil;
|
| | | import org.springframework.beans.factory.annotation.Autowired;
|
| | | import org.springframework.stereotype.Component;
|
| | | import org.springframework.stereotype.Service;
|
| | |
|
| | | import java.util.Date;
|
| | |
|
| | | /**
|
| | | * @ClassName: OfficeExpensesService
|
| | | * @Author: ZhouJie
|
| | | * @Date: 2022/1/11 17:16
|
| | | * @Description: åå
¬ç¨åç»è´¹(é¢ç¨)审æ¹ç®¡ç
|
| | | */
|
| | | @Component
|
| | | @Service
|
| | | public class OfficeExpensesService extends AbstractBaseService implements IOfficeExpensesService {
|
| | |
|
| | | @Autowired
|
| | | public BaseDao baseDao;
|
| | | @Autowired
|
| | | PermissionService permissionService;
|
| | | @Autowired
|
| | | QueryFilterService queryFilterService;
|
| | |
|
| | | /**
|
| | | * ä¿ååå
¬ç¨åç»è´¹ï¼é¢ç¨ï¼å®¡æ¹
|
| | | * @param fs
|
| | | * @return
|
| | | */
|
| | | @Transactional
|
| | | public String saveOfficeExpenses(FieldSetEntity fs) {
|
| | | if(StringUtils.isEmpty(fs.getString(CmnConst.UUID))){
|
| | | fs.setValue(CmnConst.BG17, new Date());
|
| | | fs.setValue(CmnConst.BG18, SpringMVCContextHolder.getCurrentUser().getUser_id());
|
| | | return baseDao.add(fs);
|
| | | } else {
|
| | | baseDao.update(fs);
|
| | | return fs.getString(CmnConst.UUID);
|
| | | }
|
| | | }
|
| | |
|
| | | /**
|
| | | * å é¤åå
¬ç¨åç»è´¹ï¼é¢ç¨ï¼å®¡æ¹
|
| | | * @param fs
|
| | | * @return
|
| | | */
|
| | | @Transactional
|
| | | public boolean deleteOfficeExpenses(FieldSetEntity fs) {
|
| | | String uuid = fs.getUUID();
|
| | | String[] uuids = uuid.split(",");
|
| | | return baseDao.delete(CmnConst.BGYPLYB, BaseUtil.buildQuestionMarkFilter(CmnConst.UUID, uuids.length, true), uuids);
|
| | | }
|
| | |
|
| | | /**
|
| | | * è·ååå
¬ç¨åç»è´¹ï¼é¢ç¨ï¼å®¡æ¹å表
|
| | | * @param fs
|
| | | * @return
|
| | | * @throws BaseException
|
| | | */
|
| | | public DataTableEntity getOfficeExpensesList(FieldSetEntity fs) throws BaseException {
|
| | | String filter=fs.getString("filter");
|
| | | String dataFilter = permissionService.getDataFilter(fs.getTableName(),CmnConst.BG18);
|
| | | if(!StringUtils.isEmpty(dataFilter)){
|
| | | if(filter==null){
|
| | | filter = dataFilter;
|
| | | }else{
|
| | | filter += " and "+dataFilter;
|
| | | }
|
| | | }
|
| | | DataTableEntity dt = baseDao.listTable(CmnConst.BGYPLYB,filter,null,null,null,fs.getInteger(CmnConst.PAGESIZE),fs.getInteger(CmnConst.CPAGE));
|
| | | baseDao.loadPromptData(dt);
|
| | | return dt;
|
| | | }
|
| | |
|
| | | /**
|
| | | * è·ååå
¬ç¨åç»è´¹ï¼é¢ç¨ï¼å®¡æ¹è¯¦æ
|
| | | * @param fs
|
| | | * @return
|
| | | * @throws BaseException
|
| | | */
|
| | | public FieldSetEntity getOfficeExpensesInfo(FieldSetEntity fs) throws BaseException {
|
| | | return baseDao.listInternationDataTable(baseDao.getFieldSetEntity(CmnConst.BGYPLYB, fs.getString(CmnConst.UUID), true),null);
|
| | | }
|
| | |
|
| | |
|
| | | /**
|
| | | * åå
¬ç¨åç»è´¹ï¼é¢ç¨ï¼å®¡æ¹éå
|
| | | * @param uuid
|
| | | * @return
|
| | | */
|
| | | @Override
|
| | | @Transactional
|
| | | public boolean sendOfficeExpenses(String uuid) {
|
| | | return true;
|
| | | }
|
| | |
|
| | |
|
| | | }
|
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.home.xining.service;
|
| | |
|
| | | import com.home.xining.config.CmnConst;
|
| | | import com.home.xining.service.idel.IOfficePurchaseService;
|
| | | import com.product.common.lang.StringUtils;
|
| | | import com.product.core.dao.BaseDao;
|
| | | import com.product.core.entity.DataTableEntity;
|
| | | import com.product.core.entity.FieldSetEntity;
|
| | | import com.product.core.exception.BaseException;
|
| | | import com.product.core.permission.PermissionService;
|
| | | import com.product.core.service.support.QueryFilterService;
|
| | | import com.product.core.spring.context.SpringMVCContextHolder;
|
| | | import com.product.core.transfer.Transactional;
|
| | | import com.product.util.BaseUtil;
|
| | | import org.springframework.beans.factory.annotation.Autowired;
|
| | | import org.springframework.stereotype.Component;
|
| | |
|
| | | import java.util.Date;
|
| | |
|
| | | /**
|
| | | * @ClassName: OfficePurchaseService
|
| | | * @Author: ZhouJie
|
| | | * @Date: 2022/1/24 09:49
|
| | | * @Description: åå
¬å®¤ç¨åéè´å
|
| | | */
|
| | | @Component
|
| | | public class OfficePurchaseService extends AdvanceNoticeService implements IOfficePurchaseService {
|
| | |
|
| | | @Autowired
|
| | | public BaseDao baseDao;
|
| | | @Autowired
|
| | | PermissionService permissionService;
|
| | | @Autowired
|
| | | QueryFilterService queryFilterService;
|
| | |
|
| | | /**
|
| | | * ä¿ååå
¬å®¤ç¨åéè´å
|
| | | * @param fs
|
| | | * @return
|
| | | */
|
| | | @Override
|
| | | @Transactional
|
| | | public String saveOfficePurchase(FieldSetEntity fs) {
|
| | | if(StringUtils.isEmpty(fs.getString(CmnConst.UUID))){
|
| | | fs.setValue(CmnConst.BG05, new Date());
|
| | | fs.setValue(CmnConst.BG07, SpringMVCContextHolder.getCurrentUser().getUser_id());
|
| | | fs.setValue(CmnConst.BG03, 0);
|
| | | return baseDao.add(fs,true);
|
| | | } else {
|
| | | baseDao.update(fs);
|
| | | return fs.getString(CmnConst.UUID);
|
| | | }
|
| | | }
|
| | |
|
| | | /**
|
| | | * å é¤åå
¬å®¤ç¨åéè´å
|
| | | * @param fs
|
| | | * @return
|
| | | */
|
| | | @Override
|
| | | @Transactional
|
| | | public boolean deleteOfficePurchase(FieldSetEntity fs) {
|
| | | String uuid = fs.getUUID();
|
| | | String[] uuids = uuid.split(",");
|
| | | return baseDao.delete(CmnConst.BGSYPCGB, BaseUtil.buildQuestionMarkFilter(CmnConst.UUID, uuids.length, true), uuids);
|
| | | }
|
| | |
|
| | | /**
|
| | | * è·ååå
¬å®¤ç¨åéè´åå表
|
| | | * @param fs
|
| | | * @return
|
| | | * @throws BaseException
|
| | | */
|
| | | public DataTableEntity getOfficePurchaseList(FieldSetEntity fs) throws BaseException {
|
| | | String filter=fs.getString("filter");
|
| | | String dataFilter = permissionService.getDataFilter(fs.getTableName(),CmnConst.BG07);
|
| | | if(!StringUtils.isEmpty(dataFilter)){
|
| | | if(!StringUtils.isEmpty(filter)){
|
| | | filter += " and "+dataFilter;
|
| | | }else {
|
| | | filter = dataFilter;
|
| | | }
|
| | | }
|
| | | if(!BaseUtil.dataTableIsEmpty(fs.getSubDataTable("systemSeniorQueryString"))){
|
| | | filter = filter + " and " + queryFilterService.getQueryFilter(fs);
|
| | | }
|
| | | DataTableEntity dt = baseDao.listTable(CmnConst.BGSYPCGB,filter,null,null,null,fs.getInteger(CmnConst.PAGESIZE),fs.getInteger(CmnConst.CPAGE));
|
| | | baseDao.loadPromptData(dt);
|
| | | return dt;
|
| | | }
|
| | |
|
| | | /**
|
| | | * è·ååå
¬å®¤ç¨åéè´å详æ
|
| | | * @param fs
|
| | | * @return
|
| | | * @throws BaseException
|
| | | */
|
| | | public FieldSetEntity getOfficePurchaseInfo(FieldSetEntity fs) throws BaseException {
|
| | | return baseDao.listInternationDataTable(baseDao.getFieldSetEntity(CmnConst.BGSYPCGB, fs.getString(CmnConst.UUID), true),null);
|
| | | }
|
| | | }
|
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.home.xining.service;
|
| | |
|
| | | import java.util.Date;
|
| | |
|
| | | import org.springframework.beans.factory.annotation.Autowired;
|
| | | import org.springframework.stereotype.Component;
|
| | |
|
| | | import com.home.xining.config.CmnConst;
|
| | | import com.home.xining.service.idel.IOfficeSuppliesCollectionService;
|
| | | import com.product.common.lang.StringUtils;
|
| | | import com.product.core.dao.BaseDao;
|
| | | import com.product.core.entity.DataTableEntity;
|
| | | import com.product.core.entity.FieldSetEntity;
|
| | | import com.product.core.exception.BaseException;
|
| | | import com.product.core.permission.PermissionService;
|
| | | import com.product.core.service.support.AbstractBaseService;
|
| | | import com.product.core.service.support.QueryFilterService;
|
| | | import com.product.core.spring.context.SpringMVCContextHolder;
|
| | | import com.product.core.transfer.Transactional;
|
| | | import com.product.util.BaseUtil;
|
| | |
|
| | | @Component
|
| | | public class OfficeSuppliesCollectionService extends AbstractBaseService implements IOfficeSuppliesCollectionService{
|
| | |
|
| | | @Autowired
|
| | | BaseDao baseDao;
|
| | | @Autowired
|
| | | PermissionService permissionService;
|
| | | @Autowired
|
| | | QueryFilterService queryFilterService;
|
| | | |
| | | /**
|
| | | * è·ååå
¬å®¤ç¨åéè´åå表
|
| | | * |
| | | * @param fs
|
| | | * @return
|
| | | * @throws BaseException
|
| | | */
|
| | | public DataTableEntity getOfficePurchaseList(FieldSetEntity fs) throws BaseException {
|
| | | String filter = fs.getString("filter");
|
| | | String dataFilter = permissionService.getDataFilter(fs.getTableName(), CmnConst.BG07);
|
| | | if (!StringUtils.isEmpty(dataFilter)) {
|
| | | if (!StringUtils.isEmpty(filter)) {
|
| | | filter += " and " + dataFilter;
|
| | | } else {
|
| | | filter = dataFilter;
|
| | | }
|
| | | }
|
| | | if (!BaseUtil.dataTableIsEmpty(fs.getSubDataTable("systemSeniorQueryString"))) {
|
| | | filter = filter + " and " + queryFilterService.getQueryFilter(fs);
|
| | | }
|
| | | DataTableEntity dt = baseDao.listTable(CmnConst.BGYPLYB, filter, null, null, null, fs.getInteger(CmnConst.PAGESIZE), fs.getInteger(CmnConst.CPAGE));
|
| | | baseDao.loadPromptData(dt);
|
| | | return dt;
|
| | | }
|
| | |
|
| | | /**
|
| | | * è·ååå
¬å®¤ç¨åéè´å详æ
|
| | | * |
| | | * @param fs
|
| | | * @return
|
| | | * @throws BaseException
|
| | | */
|
| | | public FieldSetEntity getOfficePurchaseInfo(FieldSetEntity fs) throws BaseException {
|
| | | return baseDao.listInternationDataTable(baseDao.getFieldSetEntity(CmnConst.BGYPLYB, fs.getString(CmnConst.UUID), true), null);
|
| | | }
|
| | | |
| | | |
| | | /**
|
| | | * ä¿ååå
¬å®¤ç¨åéè´å
|
| | | * |
| | | * @param fs
|
| | | * @return
|
| | | */
|
| | | @Override
|
| | | @Transactional
|
| | | public String saveOfficePurchase(FieldSetEntity fs) {
|
| | | if (StringUtils.isEmpty(fs.getString(CmnConst.UUID))) {
|
| | | fs.setValue(CmnConst.BG05, new Date());
|
| | | fs.setValue(CmnConst.BG07, SpringMVCContextHolder.getCurrentUser().getUser_id());
|
| | | fs.setValue(CmnConst.BG03, 0);
|
| | | return baseDao.add(fs, true);
|
| | | } else {
|
| | | baseDao.update(fs);
|
| | | return fs.getString(CmnConst.UUID);
|
| | | }
|
| | | }
|
| | |
|
| | | /**
|
| | | * å é¤åå
¬å®¤ç¨åéè´å
|
| | | * |
| | | * @param fs
|
| | | * @return
|
| | | */
|
| | | @Override
|
| | | @Transactional
|
| | | public boolean deleteOfficePurchase(FieldSetEntity fs) {
|
| | | String uuid = fs.getUUID();
|
| | | String[] uuids = uuid.split(",");
|
| | | return baseDao.delete(CmnConst.BGYPLYB, BaseUtil.buildQuestionMarkFilter(CmnConst.UUID, uuids.length, true), uuids);
|
| | | }
|
| | | }
|
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.home.xining.service;
|
| | |
|
| | | import java.text.SimpleDateFormat;
|
| | | import java.util.Date;
|
| | |
|
| | | import org.springframework.beans.factory.annotation.Autowired;
|
| | | import org.springframework.stereotype.Component;
|
| | |
|
| | | import com.home.xining.config.CmnConst;
|
| | | import com.product.common.lang.StringUtils;
|
| | | import com.product.core.dao.BaseDao;
|
| | | import com.product.core.entity.DataTableEntity;
|
| | | import com.product.core.entity.FieldSetEntity;
|
| | | import com.product.core.permission.PermissionService;
|
| | | import com.product.core.service.support.AbstractBaseService;
|
| | | import com.product.core.service.support.QueryFilterService;
|
| | | import com.product.util.BaseUtil;
|
| | |
|
| | | /**
|
| | | * @ClassName: PleaseLeaveService
|
| | | * @Author: ææ´ªæ³¢
|
| | | * @Date: 2022/2/10 09:49
|
| | | * @Description: 请ä¼å审æ¹
|
| | | */
|
| | | @Component
|
| | | public class PleaseLeaveService extends AbstractBaseService {
|
| | |
|
| | | @Autowired
|
| | | BaseDao baseDao;
|
| | | @Autowired
|
| | | PermissionService permissionService;
|
| | | @Autowired
|
| | | QueryFilterService queryFilterService;
|
| | |
|
| | | /**
|
| | | * 请ä¼å审æ¹å表
|
| | | * @param fse
|
| | | * @return
|
| | | */
|
| | | public DataTableEntity listOfficePurchase(FieldSetEntity fse) {
|
| | |
|
| | | //è·åæµç¨è¿æ»¤æ¡ä»¶
|
| | | String filter=fse.getString("filter");
|
| | | //è·åæéè¿æ»¤æ¡ä»¶
|
| | | String dataFilter = permissionService.getDataFilter(fse.getTableName(),CmnConst.PL01);
|
| | | if(!StringUtils.isEmpty(dataFilter)){
|
| | | if(filter==null){
|
| | | filter = dataFilter;
|
| | | }else{
|
| | | filter += " and "+dataFilter;
|
| | | }
|
| | | }
|
| | | //è·åæ¥è¯¢åè¡¨æ°æ®
|
| | | DataTableEntity dt = baseDao.listTable(CmnConst.PLEASELEAVE,filter,null,null,null,fse.getInteger(CmnConst.PAGESIZE),fse.getInteger(CmnConst.CPAGE));
|
| | | baseDao.loadPromptData(dt);
|
| | | return dt;
|
| | | }
|
| | | |
| | | /**
|
| | | * 请ä¼å详æ
|
| | | * @param uuid
|
| | | * @return
|
| | | */
|
| | | public FieldSetEntity findPleaseLeave(String uuid) {
|
| | | return baseDao.getFieldSet(CmnConst.PLEASELEAVE, uuid, false);
|
| | | }
|
| | | |
| | | /**
|
| | | * 请ä¼åä¿å
|
| | | * @param fse
|
| | | * @return
|
| | | */
|
| | | public String savePleaseLeave(FieldSetEntity fse) {
|
| | | String uuid=fse.getUUID();
|
| | | if (StringUtils.isEmpty(uuid)) { //æ°å¢
|
| | | //è·åå工信æ¯
|
| | | FieldSetEntity fseStaff=baseDao.getFieldSetEntityByFilter(CmnConst.PRODUCT_SYS_STAFFS, "user_id=?", new Object[] {fse.getString(CmnConst.PL01)}, false);
|
| | | fse.setValue("pl02", fseStaff.getString("enter_work")); //åå 工使¥æ
|
| | | fse.setValue("status", "0");
|
| | | // fse.setValue("", "");
|
| | | |
| | | }
|
| | | baseDao.saveFieldSetEntity(fse);
|
| | | return uuid;
|
| | | }
|
| | | |
| | | /**
|
| | | * 请ä¼åå é¤
|
| | | * @param uuid
|
| | | * @return
|
| | | */
|
| | | public boolean deletePleaseLeave(String uuid) {
|
| | | String[] uuids = uuid.split(",");
|
| | | return baseDao.delete(CmnConst.BGYPLYB, BaseUtil.buildQuestionMarkFilter(CmnConst.UUID, uuids.length, true), uuids);
|
| | | }
|
| | | |
| | | /**
|
| | | * 计ç®å·¥ä½æ¥
|
| | | * @param start
|
| | | * @param end
|
| | | * @return
|
| | | */
|
| | | public int pareWorkDate(String s,String e, String user_id){
|
| | | SimpleDateFormat format1 = new SimpleDateFormat("yyyy-MM-dd");
|
| | | try{
|
| | | Date start=format1.parse(s);
|
| | | Date end=format1.parse(e);
|
| | | int workn=0;
|
| | | if(start!=null&&end!=null){
|
| | | for(long l=start.getTime();l<=end.getTime();l+=86400000){
|
| | | Date d=new Date();
|
| | | d.setTime(l);
|
| | | String time=format1.format(d);
|
| | | }
|
| | | }
|
| | | return workn;
|
| | | }catch(Exception fe){
|
| | | fe.printStackTrace();
|
| | | return 0;
|
| | | }
|
| | | }
|
| | | |
| | | }
|
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.home.xining.service;
|
| | |
|
| | | import com.home.xining.config.CmnConst;
|
| | | import com.home.xining.service.idel.IReceiptDocumentService;
|
| | | import com.product.common.lang.StringUtils;
|
| | | import com.product.core.dao.BaseDao;
|
| | | import com.product.core.entity.DataTableEntity;
|
| | | import com.product.core.entity.FieldSetEntity;
|
| | | import com.product.core.exception.BaseException;
|
| | | import com.product.core.permission.PermissionService;
|
| | | import com.product.core.service.support.AbstractBaseService;
|
| | | import com.product.core.service.support.QueryFilterService;
|
| | | import com.product.core.transfer.Transactional;
|
| | | import com.product.util.BaseUtil;
|
| | | import org.springframework.beans.factory.annotation.Autowired;
|
| | | import org.springframework.stereotype.Component;
|
| | |
|
| | | /**
|
| | | * @ClassName: ReceiptDocumentService
|
| | | * @Author: ZhouJie
|
| | | * @Date: 2022/2/21 13:48
|
| | | * @Description: æ¶æç®¡ç
|
| | | */
|
| | | @Component
|
| | | public class ReceiptDocumentService extends AbstractBaseService implements IReceiptDocumentService {
|
| | |
|
| | | @Autowired
|
| | | public BaseDao baseDao;
|
| | | @Autowired
|
| | | PermissionService permissionService;
|
| | | @Autowired
|
| | | QueryFilterService queryFilterService;
|
| | |
|
| | | public DataTableEntity getReciptDocList(FieldSetEntity fs) throws BaseException {
|
| | | String filter=fs.getString("filter");
|
| | | //åå»ºäººåæ®µ
|
| | | String dataFilter = "" ;
|
| | | String created_by_field = fs.getString(CmnConst.CREATED_BY_FIELD);
|
| | | if(!BaseUtil.strIsNull(created_by_field)){
|
| | | dataFilter = permissionService.getDataFilter(fs.getTableName(),created_by_field);
|
| | | }
|
| | | // String dataFilter = permissionService.getDataFilter(fs.getTableName(), CmnConst.SF33);
|
| | | if(!StringUtils.isEmpty(dataFilter)){
|
| | | if(!StringUtils.isEmpty(filter)){
|
| | | filter += " and "+dataFilter;
|
| | | }else {
|
| | | filter = dataFilter;
|
| | | }
|
| | | }
|
| | | if(!BaseUtil.dataTableIsEmpty(fs.getSubDataTable("systemSeniorQueryString"))){
|
| | | filter = filter + " and " + queryFilterService.getQueryFilter(fs);
|
| | | }
|
| | | DataTableEntity dt = baseDao.listTable(CmnConst.SFGL,filter,null,null,"sf26 desc",fs.getInteger(CmnConst.PAGESIZE),fs.getInteger(CmnConst.CPAGE));
|
| | | baseDao.loadPromptData(dt);
|
| | | return dt;
|
| | | }
|
| | |
|
| | | /**
|
| | | * æ¶æç®¡ç ç¶ææ¹ä¸ºå·²æå°
|
| | | * @param fse
|
| | | * @return
|
| | | */
|
| | | @Override
|
| | | @Transactional
|
| | | public Boolean isPrint(FieldSetEntity fse) {
|
| | | return baseDao.update(fse);
|
| | | }
|
| | | }
|
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.home.xining.service;
|
| | |
|
| | | import com.home.xining.config.CmnConst;
|
| | | import com.home.xining.service.idel.ISendDocumentService;
|
| | | import com.product.common.lang.StringUtils;
|
| | | import com.product.core.dao.BaseDao;
|
| | | import com.product.core.entity.DataTableEntity;
|
| | | import com.product.core.entity.FieldSetEntity;
|
| | | import com.product.core.exception.BaseException;
|
| | | import com.product.core.permission.PermissionService;
|
| | | import com.product.core.service.support.AbstractBaseService;
|
| | | import com.product.core.service.support.QueryFilterService;
|
| | | import com.product.core.transfer.Transactional;
|
| | | import com.product.util.BaseUtil;
|
| | | import org.springframework.beans.factory.annotation.Autowired;
|
| | | import org.springframework.stereotype.Component;
|
| | |
|
| | | /**
|
| | | * @ClassName: SendDocumentService
|
| | | * @Author: ZhouJie
|
| | | * @Date: 2022/2/21 13:45
|
| | | * @Description: åæç¨¿çº¸ï¼åæç®¡çï¼
|
| | | */
|
| | | @Component
|
| | | public class SendDocumentService extends AbstractBaseService implements ISendDocumentService {
|
| | |
|
| | | @Autowired
|
| | | public BaseDao baseDao;
|
| | | @Autowired
|
| | | PermissionService permissionService;
|
| | | @Autowired
|
| | | QueryFilterService queryFilterService;
|
| | |
|
| | | public DataTableEntity getSendDocList(FieldSetEntity fs) throws BaseException {
|
| | | String filter=fs.getString("filter");
|
| | | String dataFilter = "" ;
|
| | | //åå»ºäººåæ®µ
|
| | | String created_by_field = fs.getString(CmnConst.CREATED_BY_FIELD);
|
| | | if(!BaseUtil.strIsNull(created_by_field)){
|
| | | dataFilter = permissionService.getDataFilter(fs.getTableName(),created_by_field);
|
| | | }
|
| | | if(!StringUtils.isEmpty(dataFilter)){
|
| | | if(!StringUtils.isEmpty(filter)){
|
| | | filter += " and "+dataFilter;
|
| | | }else {
|
| | | filter = dataFilter;
|
| | | }
|
| | | }
|
| | | if(!BaseUtil.dataTableIsEmpty(fs.getSubDataTable("systemSeniorQueryString"))){
|
| | | filter = filter + " and " + queryFilterService.getQueryFilter(fs);
|
| | | }
|
| | | DataTableEntity dt = baseDao.listTable(CmnConst.FWGZ,filter,null,null,"fw13 desc",fs.getInteger(CmnConst.PAGESIZE),fs.getInteger(CmnConst.CPAGE));
|
| | | baseDao.loadPromptData(dt);
|
| | | return dt;
|
| | | }
|
| | |
|
| | | /**
|
| | | * æ¹é彿¡£
|
| | | * @param fs
|
| | | * @throws BaseException
|
| | | */
|
| | | @Override
|
| | | @Transactional
|
| | | public boolean batchFile(FieldSetEntity fs)throws BaseException{
|
| | | String uuids = fs.getString("uuid");
|
| | | String[] uuid = uuids.split(",");
|
| | | for (int i = 0; i < uuid.length; i++) {
|
| | | FieldSetEntity fieldSetEntity = new FieldSetEntity();
|
| | | fieldSetEntity.setTableName(fs.getTableName());
|
| | | fieldSetEntity.setValue("uuid", uuid[i]);
|
| | | fieldSetEntity.setValue("pigeonhole",1);
|
| | | baseDao.update(fieldSetEntity);
|
| | | }
|
| | | return true;
|
| | | }
|
| | |
|
| | | /**
|
| | | * 人åé«çº§åç
§è§£æå¹¶ä¿å
|
| | | * @param fse
|
| | | * @throws BaseException
|
| | | */
|
| | | @Transactional
|
| | | @Override
|
| | | public String saveFieldSetEntity(FieldSetEntity fse) throws BaseException {
|
| | | String fw09 = fse.getString("fw09");
|
| | | String[] fw09s = fw09.split(",");
|
| | | DataTableEntity dataTableEntity = baseDao.listTable("product_sys_users", BaseUtil.buildQuestionMarkFilter("user_id",fw09s,true), new String[]{});
|
| | | String fw09_value = "";
|
| | | for (int i = 0; i < dataTableEntity.getRows(); i++) {
|
| | | String user_name = dataTableEntity.getString(i,"user_name");
|
| | | fw09_value = fw09_value + user_name + ",";
|
| | | }
|
| | | fw09_value = fw09_value.substring(0, fw09_value.length() - 1);
|
| | | fse.setValue("fw09_value", fw09_value);
|
| | | BaseUtil.createCreatorAndCreationTime(fse);
|
| | | baseDao.saveFieldSetEntity(fse);
|
| | | return fse.getUUID();
|
| | | }
|
| | |
|
| | | }
|
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.home.xining.service;
|
| | |
|
| | | import com.home.xining.config.CmnConst;
|
| | | import com.home.xining.service.idel.ITravelTrainingService;
|
| | | import com.product.common.lang.StringUtils;
|
| | | import com.product.core.dao.BaseDao;
|
| | | import com.product.core.entity.DataTableEntity;
|
| | | import com.product.core.entity.FieldSetEntity;
|
| | | import com.product.core.exception.BaseException;
|
| | | import com.product.core.permission.PermissionService;
|
| | | import com.product.core.service.support.QueryFilterService;
|
| | | import com.product.core.transfer.Transactional;
|
| | | import com.product.util.BaseUtil;
|
| | | import org.springframework.beans.factory.annotation.Autowired;
|
| | | import org.springframework.stereotype.Component;
|
| | |
|
| | |
|
| | | /**
|
| | | * @ClassName: TravelTrainingService
|
| | | * @Author: ZhouJie
|
| | | * @Date: 2022/1/18 9:49
|
| | | * @Description: å·¥ä½äººååºå·®ï¼å¹è®ï¼å®¡æ¹
|
| | | */
|
| | | @Component
|
| | | public class TravelTrainingService extends AdvanceNoticeService implements ITravelTrainingService {
|
| | |
|
| | | @Autowired
|
| | | public BaseDao baseDao;
|
| | | @Autowired
|
| | | PermissionService permissionService;
|
| | | @Autowired
|
| | | QueryFilterService queryFilterService;
|
| | |
|
| | | /**
|
| | | * ä¿åå·¥ä½äººååºå·®ï¼å¹è®ï¼å®¡æ¹
|
| | | * @param fs
|
| | | * @return
|
| | | */
|
| | | @Transactional
|
| | | public String saveTravelTrain(FieldSetEntity fs) {
|
| | | if(StringUtils.isEmpty(fs.getString(CmnConst.UUID))){
|
| | | return baseDao.add(fs);
|
| | | } else {
|
| | | baseDao.update(fs);
|
| | | return fs.getString(CmnConst.UUID);
|
| | | }
|
| | | }
|
| | |
|
| | | /**
|
| | | * å é¤å·¥ä½äººååºå·®ï¼å¹è®ï¼å®¡æ¹
|
| | | * @param fs
|
| | | * @return
|
| | | */
|
| | | @Transactional
|
| | | public boolean deleteTravelTrain(FieldSetEntity fs) {
|
| | | String uuid = fs.getUUID();
|
| | | String[] uuids = uuid.split(",");
|
| | | return baseDao.delete(CmnConst.APP_GZRYCCSPB, BaseUtil.buildQuestionMarkFilter(CmnConst.UUID, uuids.length, true), uuids);
|
| | | }
|
| | |
|
| | | /**
|
| | | * è·åå·¥ä½äººååºå·®ï¼å¹è®ï¼å®¡æ¹å表
|
| | | * @param fs
|
| | | * @return
|
| | | * @throws BaseException
|
| | | */
|
| | | public DataTableEntity getTravelTrainList(FieldSetEntity fs) throws BaseException {
|
| | | String filter=fs.getString("filter");
|
| | | // String dataFilter = permissionService.getDataFilter(fs.getTableName(), "");
|
| | | // if(!StringUtils.isEmpty(dataFilter)){
|
| | | // if(filter==null){
|
| | | // filter = dataFilter;
|
| | | // }else{
|
| | | // filter += " and "+dataFilter;
|
| | | // }
|
| | | // }
|
| | | DataTableEntity dt = baseDao.listTable(CmnConst.APP_GZRYCCSPB,filter,null,null,null,fs.getInteger(CmnConst.PAGESIZE),fs.getInteger(CmnConst.CPAGE));
|
| | | baseDao.loadPromptData(dt);
|
| | | return dt;
|
| | | }
|
| | |
|
| | | /**
|
| | | * è·åå·¥ä½äººååºå·®ï¼å¹è®ï¼å®¡æ¹è¯¦æ
|
| | | * @param fs
|
| | | * @return
|
| | | * @throws BaseException
|
| | | */
|
| | | public FieldSetEntity getTravelTrainInfo(FieldSetEntity fs) throws BaseException {
|
| | | return baseDao.listInternationDataTable(baseDao.getFieldSetEntity(CmnConst.APP_GZRYCCSPB, fs.getString(CmnConst.UUID), true),null);
|
| | | }
|
| | |
|
| | | /**
|
| | | * å·¥ä½äººååºå·®ï¼å¹è®ï¼å®¡æ¹éå
|
| | | * @param uuid
|
| | | * @return
|
| | | */
|
| | | @Transactional
|
| | | public boolean sendTravelTrain(String uuid) {
|
| | | return false;
|
| | | }
|
| | | }
|
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.home.xining.service.idel;
|
| | |
|
| | | import com.product.core.entity.DataTableEntity;
|
| | | import com.product.core.entity.FieldSetEntity;
|
| | | import com.product.core.exception.BaseException;
|
| | |
|
| | | import java.text.ParseException;
|
| | |
|
| | | /**
|
| | | * @ClassName: IAdvanceNoticeService
|
| | | * @Author: luoxin
|
| | | * @Date: 2022/1/11 12:16
|
| | | * @Description: è¡æ¿å¤ç½äºå
åç¥ä¹¦æ¥å£
|
| | | */
|
| | | public interface IAdvanceNoticeService {
|
| | |
|
| | | DataTableEntity listAdvanceNoticeg(FieldSetEntity fs);
|
| | |
|
| | | FieldSetEntity getAdvanceNotice(FieldSetEntity fs);
|
| | |
|
| | | String saveAdvanceNotice(FieldSetEntity fs) throws BaseException;
|
| | |
|
| | | String deleteAdvanceNotice(FieldSetEntity fs) throws BaseException;
|
| | |
|
| | | void addTypeSize(FieldSetEntity fs) throws BaseException;
|
| | |
|
| | | }
|
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.home.xining.service.idel;
|
| | |
|
| | | import com.product.core.entity.FieldSetEntity;
|
| | |
|
| | | /**
|
| | | * @ClassName: ICivilServantReceptionService
|
| | | * @Author: ZhouJie
|
| | | * @Date: 2022/1/19 10:43
|
| | | * @Description: å
¬å¡æ¥å¾
审æ¹
|
| | | */
|
| | | public interface ICivilServantReceptionService {
|
| | |
|
| | | String saveCivilServantReception(FieldSetEntity fs);
|
| | |
|
| | | boolean deleteCivilServantReception(FieldSetEntity fs);
|
| | |
|
| | | boolean sendCivilServantReception(String uuid);
|
| | |
|
| | |
|
| | | }
|
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.home.xining.service.idel;
|
| | |
|
| | | import com.product.core.entity.FieldSetEntity;
|
| | | import com.product.core.exception.BaseException;
|
| | |
|
| | | /**
|
| | | * @ClassName: IHousingArchivesService
|
| | | * @Author: luoxin
|
| | | * @Date: 2022/6/1 10:43
|
| | | * @Description: 䏿¿ä¸æ¡£è°æ¥è¡¨
|
| | | */
|
| | | public interface IHousingArchivesService {
|
| | | /**
|
| | | * è·åç¼å·
|
| | | * @return
|
| | | */
|
| | | String getSerialNumber()throws BaseException;
|
| | | /**
|
| | | *ä¿åæ¿å±æ¡£æ¡
|
| | | */
|
| | | String saveIHousingArchives(FieldSetEntity fse)throws BaseException;
|
| | | }
|
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.home.xining.service.idel;
|
| | |
|
| | | import com.product.core.entity.DataTableEntity;
|
| | | import com.product.core.entity.FieldSetEntity;
|
| | |
|
| | | import java.text.ParseException;
|
| | |
|
| | | /**
|
| | | * @ClassName: IAdvanceNoticeService
|
| | | * @Author: luoxin
|
| | | * @Date: 2022/1/11 12:16
|
| | | * @Description: è¡æ¿å¤ç½äºå
åç¥ä¹¦æ¥å£
|
| | | */
|
| | | public interface ILawEnforcementService {
|
| | |
|
| | | DataTableEntity listLawEnforcement(FieldSetEntity fs);
|
| | |
|
| | | FieldSetEntity getLawEnforcement(FieldSetEntity fs);
|
| | |
|
| | | String saveLawEnforcement(FieldSetEntity fs) throws ParseException;
|
| | |
|
| | | String deleteLawEnforcement(FieldSetEntity fs) throws ParseException;
|
| | |
|
| | | }
|
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.home.xining.service.idel;
|
| | |
|
| | | import com.product.core.entity.FieldSetEntity;
|
| | |
|
| | |
|
| | | /**
|
| | | * @ClassName: IOfficeExpensesService
|
| | | * @Author: ZhouJie
|
| | | * @Date: 2022/1/11 17:16
|
| | | * @Description: åå
¬ç¨åç»è´¹(é¢ç¨)审æ¹ç®¡ç
|
| | | */
|
| | | public interface IOfficeExpensesService {
|
| | |
|
| | | String saveOfficeExpenses(FieldSetEntity fs);
|
| | |
|
| | | boolean deleteOfficeExpenses(FieldSetEntity fs);
|
| | |
|
| | | boolean sendOfficeExpenses(String uuid);
|
| | |
|
| | | }
|
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.home.xining.service.idel;
|
| | |
|
| | | import com.product.core.entity.FieldSetEntity;
|
| | |
|
| | | /**
|
| | | * @ClassName: IOfficePurchaseService
|
| | | * @Author: ZhouJie
|
| | | * @Date: 2022/1/24 09:49
|
| | | * @Description: åå
¬å®¤ç¨åéè´å
|
| | | */
|
| | | public interface IOfficePurchaseService {
|
| | |
|
| | | String saveOfficePurchase(FieldSetEntity fs);
|
| | |
|
| | | boolean deleteOfficePurchase(FieldSetEntity fs);
|
| | |
|
| | | }
|
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.home.xining.service.idel;
|
| | |
|
| | | import com.product.core.entity.FieldSetEntity;
|
| | |
|
| | | public interface IOfficeSuppliesCollectionService {
|
| | |
|
| | | /**
|
| | | * åå
¬ç¨åé¢åç³è¯·ä¿å
|
| | | * @param fs
|
| | | * @return
|
| | | */
|
| | | String saveOfficePurchase(FieldSetEntity fs);
|
| | |
|
| | | /**
|
| | | * åå
¬ç¨åé¢åç³è¯·å é¤
|
| | | * @param fs
|
| | | * @return
|
| | | */
|
| | | boolean deleteOfficePurchase(FieldSetEntity fs);
|
| | | }
|
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.home.xining.service.idel;
|
| | |
|
| | | import com.product.core.entity.FieldSetEntity;
|
| | |
|
| | | /**
|
| | | * @ClassName: IReceiptDocumentService
|
| | | * @Author: luoxin
|
| | | * @Date: 2022/4/21 12:16
|
| | | * @Description: æ¶æç®¡ç
|
| | | */
|
| | | public interface IReceiptDocumentService {
|
| | | Boolean isPrint(FieldSetEntity fse);
|
| | | }
|
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.home.xining.service.idel;
|
| | |
|
| | | import com.product.core.entity.FieldSetEntity;
|
| | | import com.product.core.exception.BaseException;
|
| | |
|
| | | /**
|
| | | * @ClassName: ISendDocumentService
|
| | | * @Author: ZhouJie
|
| | | * @Date: 2022/2/21 13:46
|
| | | * @Description: åæç¨¿çº¸ï¼åæç®¡çï¼
|
| | | */
|
| | | public interface ISendDocumentService {
|
| | | /**
|
| | | * æ¹é彿¡£
|
| | | * @param fieldSetEntity
|
| | | */
|
| | | boolean batchFile(FieldSetEntity fieldSetEntity);
|
| | |
|
| | | /**
|
| | | * ä¿ååæç¨¿çº¸
|
| | | * @return
|
| | | */
|
| | | String saveFieldSetEntity(FieldSetEntity fse)throws BaseException;
|
| | | }
|
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.home.xining.service.idel;
|
| | |
|
| | | import com.product.core.entity.FieldSetEntity;
|
| | |
|
| | |
|
| | | /**
|
| | | * @ClassName: ITravelTrainingService
|
| | | * @Author: ZhouJie
|
| | | * @Date: 2022/1/18 9:50
|
| | | * @Description: å·¥ä½äººååºå·®ï¼å¹è®ï¼å®¡æ¹
|
| | | */
|
| | | public interface ITravelTrainingService {
|
| | |
|
| | | String saveTravelTrain(FieldSetEntity fs);
|
| | |
|
| | | boolean deleteTravelTrain(FieldSetEntity fs);
|
| | |
|
| | | boolean sendTravelTrain(String uuid);
|
| | |
|
| | | }
|
¶Ô±ÈÐÂÎļþ |
| | |
| | | Manifest-Version: 1.0
|
| | | Built-By: longxin
|
| | | Build-Jdk: 18.0.1
|
| | | Implementation-Title: product-server-xining
|
| | | Implementation-Version: 1.2.0-SNAPSHOT
|
| | | Implementation-Vendor-Id: com.lx
|
| | | Implementation-URL: https://projects.spring.io/spring-boot/#/spring-boot
|
| | | -starter-parent/product-server/product-server-xining
|
| | | Main-Class: com.product.Application
|
| | | Created-By: Maven Integration for Eclipse
|
| | |
|
¶Ô±ÈÐÂÎļþ |
| | |
| | | #Generated by Maven Integration for Eclipse
|
| | | #Mon Aug 29 10:48:37 GMT+08:00 2022
|
| | | artifactId=product-server-xining
|
| | | groupId=com.lx
|
| | | m2e.projectLocation=D\:\\product\\XiNingWorkspace\\product-server-new-xn\\home-server-admin
|
| | | m2e.projectName=product-server-xining
|
| | | version=1.2.0-SNAPSHOT
|
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <project xmlns="http://maven.apache.org/POM/4.0.0" |
| | | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| | | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| | | <parent> |
| | | <artifactId>product-server</artifactId> |
| | | <groupId>com.lx</groupId> |
| | | <version>1.2.0-SNAPSHOT</version> |
| | | </parent> |
| | | <modelVersion>4.0.0</modelVersion> |
| | | <artifactId>product-server-xining</artifactId> |
| | | <packaging>jar</packaging> |
| | | <name>product-server-xining</name> |
| | | <description>product-server-xining</description> |
| | | |
| | | <properties> |
| | | <maven.compiler.source>8</maven.compiler.source> |
| | | <maven.compiler.target>8</maven.compiler.target> |
| | | </properties> |
| | | <dependencies> |
| | | <dependency> |
| | | <groupId>com.lx</groupId> |
| | | <artifactId>product-server-common</artifactId> |
| | | <version>1.2.0-SNAPSHOT</version> |
| | | </dependency> |
| | | <dependency> |
| | | <groupId>com.lx</groupId> |
| | | <artifactId>product-server-util</artifactId> |
| | | <version>1.2.0-SNAPSHOT</version> |
| | | </dependency> |
| | | <dependency> |
| | | <groupId>com.lx</groupId> |
| | | <artifactId>product-server-admin</artifactId> |
| | | <version>1.2.0-SNAPSHOT</version> |
| | | <scope>compile</scope> |
| | | </dependency> |
| | | </dependencies> |
| | | </project> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | #Created by Apache Maven 3.6.1
|
| | | version=1.2.0-SNAPSHOT
|
| | | groupId=com.lx
|
| | | artifactId=product-server-xining
|
¶Ô±ÈÐÂÎļþ |
| | |
| | | com\home\xining\service\AdvanceNoticeService.class |
| | | com\home\xining\service\idel\IAdvanceNoticeService.class |
| | | com\home\xining\controller\SendDocumentController.class |
| | | com\home\xining\service\idel\ISendDocumentService.class |
| | | com\home\xining\controller\HousingArchivesController.class |
| | | com\home\xining\service\OfficePurchaseService.class |
| | | com\home\xining\controller\XiNingPublicController.class |
| | | com\home\xining\service\idel\IOfficeExpensesService.class |
| | | com\home\xining\service\PleaseLeaveService.class |
| | | com\home\xining\service\idel\IHousingArchivesService.class |
| | | com\home\xining\service\LawEnforcementService.class |
| | | com\home\xining\controller\CivilServantReceptionController.class |
| | | com\home\xining\controller\OfficeExpensesController.class |
| | | com\home\xining\service\ReceiptDocumentService.class |
| | | com\home\xining\service\idel\IOfficeSuppliesCollectionService.class |
| | | com\home\xining\service\OfficeSuppliesCollectionService.class |
| | | com\home\xining\controller\OfficeSuppliesCollectionController.class |
| | | com\home\xining\service\idel\IReceiptDocumentService.class |
| | | com\home\xining\controller\ReceiptDocumentController.class |
| | | com\home\xining\service\CivilServantReceptionService.class |
| | | com\home\xining\service\idel\ILawEnforcementService.class |
| | | com\home\xining\service\SendDocumentService.class |
| | | com\home\xining\controller\LawEnforcementController.class |
| | | com\home\xining\controller\PleaseLeaveController.class |
| | | com\home\xining\controller\TravelTrainingController.class |
| | | com\home\xining\service\idel\ICivilServantReceptionService.class |
| | | com\home\xining\config\SystemCode.class |
| | | com\home\xining\service\OfficeExpensesService.class |
| | | com\home\xining\config\CmnConst.class |
| | | com\home\xining\service\HousingArchivesService.class |
| | | com\home\xining\controller\OfficePurchaseController.class |
| | | com\home\xining\controller\AdvanceNoticeController.class |
| | | com\home\xining\service\idel\ITravelTrainingService.class |
| | | com\home\xining\service\idel\IOfficePurchaseService.class |
| | | com\home\xining\service\TravelTrainingService.class |
¶Ô±ÈÐÂÎļþ |
| | |
| | | D:\product\XiNingWorkspace\product-server-new-xn\home-server-admin\src\main\java\com\home\xining\service\OfficeExpensesService.java |
| | | D:\product\XiNingWorkspace\product-server-new-xn\home-server-admin\src\main\java\com\home\xining\service\ReceiptDocumentService.java |
| | | D:\product\XiNingWorkspace\product-server-new-xn\home-server-admin\src\main\java\com\home\xining\controller\ReceiptDocumentController.java |
| | | D:\product\XiNingWorkspace\product-server-new-xn\home-server-admin\src\main\java\com\home\xining\service\CivilServantReceptionService.java |
| | | D:\product\XiNingWorkspace\product-server-new-xn\home-server-admin\src\main\java\com\home\xining\service\idel\ISendDocumentService.java |
| | | D:\product\XiNingWorkspace\product-server-new-xn\home-server-admin\src\main\java\com\home\xining\service\OfficePurchaseService.java |
| | | D:\product\XiNingWorkspace\product-server-new-xn\home-server-admin\src\main\java\com\home\xining\service\idel\IOfficePurchaseService.java |
| | | D:\product\XiNingWorkspace\product-server-new-xn\home-server-admin\src\main\java\com\home\xining\service\OfficeSuppliesCollectionService.java |
| | | D:\product\XiNingWorkspace\product-server-new-xn\home-server-admin\src\main\java\com\home\xining\config\SystemCode.java |
| | | D:\product\XiNingWorkspace\product-server-new-xn\home-server-admin\src\main\java\com\home\xining\service\idel\IOfficeExpensesService.java |
| | | D:\product\XiNingWorkspace\product-server-new-xn\home-server-admin\src\main\java\com\home\xining\controller\XiNingPublicController.java |
| | | D:\product\XiNingWorkspace\product-server-new-xn\home-server-admin\src\main\java\com\home\xining\service\SendDocumentService.java |
| | | D:\product\XiNingWorkspace\product-server-new-xn\home-server-admin\src\main\java\com\home\xining\service\TravelTrainingService.java |
| | | D:\product\XiNingWorkspace\product-server-new-xn\home-server-admin\src\main\java\com\home\xining\service\idel\IReceiptDocumentService.java |
| | | D:\product\XiNingWorkspace\product-server-new-xn\home-server-admin\src\main\java\com\home\xining\controller\PleaseLeaveController.java |
| | | D:\product\XiNingWorkspace\product-server-new-xn\home-server-admin\src\main\java\com\home\xining\service\idel\IOfficeSuppliesCollectionService.java |
| | | D:\product\XiNingWorkspace\product-server-new-xn\home-server-admin\src\main\java\com\home\xining\controller\LawEnforcementController.java |
| | | D:\product\XiNingWorkspace\product-server-new-xn\home-server-admin\src\main\java\com\home\xining\controller\HousingArchivesController.java |
| | | D:\product\XiNingWorkspace\product-server-new-xn\home-server-admin\src\main\java\com\home\xining\controller\TravelTrainingController.java |
| | | D:\product\XiNingWorkspace\product-server-new-xn\home-server-admin\src\main\java\com\home\xining\controller\OfficeExpensesController.java |
| | | D:\product\XiNingWorkspace\product-server-new-xn\home-server-admin\src\main\java\com\home\xining\service\idel\ILawEnforcementService.java |
| | | D:\product\XiNingWorkspace\product-server-new-xn\home-server-admin\src\main\java\com\home\xining\service\idel\ITravelTrainingService.java |
| | | D:\product\XiNingWorkspace\product-server-new-xn\home-server-admin\src\main\java\com\home\xining\controller\CivilServantReceptionController.java |
| | | D:\product\XiNingWorkspace\product-server-new-xn\home-server-admin\src\main\java\com\home\xining\service\AdvanceNoticeService.java |
| | | D:\product\XiNingWorkspace\product-server-new-xn\home-server-admin\src\main\java\com\home\xining\service\idel\IHousingArchivesService.java |
| | | D:\product\XiNingWorkspace\product-server-new-xn\home-server-admin\src\main\java\com\home\xining\service\PleaseLeaveService.java |
| | | D:\product\XiNingWorkspace\product-server-new-xn\home-server-admin\src\main\java\com\home\xining\service\HousingArchivesService.java |
| | | D:\product\XiNingWorkspace\product-server-new-xn\home-server-admin\src\main\java\com\home\xining\controller\AdvanceNoticeController.java |
| | | D:\product\XiNingWorkspace\product-server-new-xn\home-server-admin\src\main\java\com\home\xining\service\idel\ICivilServantReceptionService.java |
| | | D:\product\XiNingWorkspace\product-server-new-xn\home-server-admin\src\main\java\com\home\xining\controller\OfficePurchaseController.java |
| | | D:\product\XiNingWorkspace\product-server-new-xn\home-server-admin\src\main\java\com\home\xining\service\LawEnforcementService.java |
| | | D:\product\XiNingWorkspace\product-server-new-xn\home-server-admin\src\main\java\com\home\xining\config\CmnConst.java |
| | | D:\product\XiNingWorkspace\product-server-new-xn\home-server-admin\src\main\java\com\home\xining\controller\OfficeSuppliesCollectionController.java |
| | | D:\product\XiNingWorkspace\product-server-new-xn\home-server-admin\src\main\java\com\home\xining\service\idel\IAdvanceNoticeService.java |
| | | D:\product\XiNingWorkspace\product-server-new-xn\home-server-admin\src\main\java\com\home\xining\controller\SendDocumentController.java |