Merge branch 'master' of http://47.115.223.229:8888/yangjun/hldy_java_monomer
This commit is contained in:
commit
20c9431e22
|
@ -4,11 +4,10 @@
|
||||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||||
<parent>
|
<parent>
|
||||||
<groupId>com.nursingunit.boot</groupId>
|
<groupId>com.nursingunit.boot</groupId>
|
||||||
<artifactId>nu-config-api</artifactId>
|
<artifactId>nu-admin-api</artifactId>
|
||||||
<version>2.0.0</version>
|
<version>2.0.0</version>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
<artifactId>nu-admin-local-api</artifactId>
|
||||||
<artifactId>nu-config-local-api</artifactId>
|
|
||||||
|
|
||||||
</project>
|
</project>
|
|
@ -4,16 +4,15 @@
|
||||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||||
<parent>
|
<parent>
|
||||||
<groupId>com.nursingunit.boot</groupId>
|
<groupId>com.nursingunit.boot</groupId>
|
||||||
<artifactId>nursing-unit-config</artifactId>
|
<artifactId>nursing-unit-admin</artifactId>
|
||||||
<version>2.0.0</version>
|
<version>2.0.0</version>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
<artifactId>nu-admin-api</artifactId>
|
||||||
<artifactId>nu-config-api</artifactId>
|
|
||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
|
|
||||||
<modules>
|
<modules>
|
||||||
<module>nu-config-local-api</module>
|
<module>nu-admin-local-api</module>
|
||||||
</modules>
|
</modules>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
|
@ -0,0 +1,35 @@
|
||||||
|
<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>
|
||||||
|
<groupId>com.nursingunit.boot</groupId>
|
||||||
|
<artifactId>nursing-unit-admin</artifactId>
|
||||||
|
<version>2.0.0</version>
|
||||||
|
</parent>
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
<artifactId>nu-admin-biz</artifactId>
|
||||||
|
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.nursingunit.boot</groupId>
|
||||||
|
<artifactId>nu-admin-local-api</artifactId>
|
||||||
|
<version>${nursingunit.version}</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.hibernate</groupId>
|
||||||
|
<artifactId>hibernate-core</artifactId>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.jeecgframework.boot</groupId>
|
||||||
|
<artifactId>hibernate-re</artifactId>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
<!-- 企业微信/钉钉 api -->
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.jeecgframework</groupId>
|
||||||
|
<artifactId>weixin4j</artifactId>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
</dependencies>
|
||||||
|
|
||||||
|
</project>
|
|
@ -23,10 +23,10 @@ import java.util.Date;
|
||||||
* @Version: V1.0
|
* @Version: V1.0
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
@TableName("dict_type")
|
@TableName("nu_dict_type")
|
||||||
@Accessors(chain = true)
|
@Accessors(chain = true)
|
||||||
@EqualsAndHashCode(callSuper = false)
|
@EqualsAndHashCode(callSuper = false)
|
||||||
@ApiModel(value="dict_type对象", description="业务字典主表")
|
@ApiModel(value="nu_dict_type对象", description="业务字典主表")
|
||||||
public class DictType implements Serializable {
|
public class DictType implements Serializable {
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
|
@ -1,24 +1,20 @@
|
||||||
package com.nu.modules.dictType.entity;
|
package com.nu.modules.dictType.entity;
|
||||||
|
|
||||||
import java.io.Serializable;
|
|
||||||
import java.io.UnsupportedEncodingException;
|
|
||||||
import java.util.Date;
|
|
||||||
import java.math.BigDecimal;
|
|
||||||
import com.baomidou.mybatisplus.annotation.IdType;
|
import com.baomidou.mybatisplus.annotation.IdType;
|
||||||
import com.baomidou.mybatisplus.annotation.TableId;
|
import com.baomidou.mybatisplus.annotation.TableId;
|
||||||
import com.baomidou.mybatisplus.annotation.TableName;
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
import com.baomidou.mybatisplus.annotation.TableLogic;
|
|
||||||
import org.jeecg.common.constant.ProvinceCityArea;
|
|
||||||
import org.jeecg.common.util.SpringContextUtils;
|
|
||||||
import lombok.Data;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
import org.springframework.format.annotation.DateTimeFormat;
|
|
||||||
import org.jeecgframework.poi.excel.annotation.Excel;
|
|
||||||
import org.jeecg.common.aspect.annotation.Dict;
|
|
||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Data;
|
||||||
import lombok.EqualsAndHashCode;
|
import lombok.EqualsAndHashCode;
|
||||||
import lombok.experimental.Accessors;
|
import lombok.experimental.Accessors;
|
||||||
|
import org.jeecg.common.aspect.annotation.Dict;
|
||||||
|
import org.jeecgframework.poi.excel.annotation.Excel;
|
||||||
|
import org.springframework.format.annotation.DateTimeFormat;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @Description: dict_type_item
|
* @Description: dict_type_item
|
||||||
|
@ -27,10 +23,10 @@ import lombok.experimental.Accessors;
|
||||||
* @Version: V1.0
|
* @Version: V1.0
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
@TableName("dict_type_item")
|
@TableName("nu_dict_type_item")
|
||||||
@Accessors(chain = true)
|
@Accessors(chain = true)
|
||||||
@EqualsAndHashCode(callSuper = false)
|
@EqualsAndHashCode(callSuper = false)
|
||||||
@ApiModel(value="dict_type_item对象", description="dict_type_item")
|
@ApiModel(value="nu_dict_type_item对象", description="dict_type_item")
|
||||||
public class DictTypeItem implements Serializable {
|
public class DictTypeItem implements Serializable {
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
<mapper namespace="com.nu.modules.demo.dictType.mapper.DictTypeItemMapper">
|
<mapper namespace="com.nu.modules.dictType.mapper.DictTypeItemMapper">
|
||||||
|
|
||||||
</mapper>
|
</mapper>
|
|
@ -1,5 +1,5 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
<mapper namespace="com.nu.modules.demo.dictType.mapper.DictTypeMapper">
|
<mapper namespace="com.nu.modules.dictType.mapper.DictTypeMapper">
|
||||||
|
|
||||||
</mapper>
|
</mapper>
|
|
@ -7,14 +7,14 @@
|
||||||
<artifactId>nursing-unit-parent</artifactId>
|
<artifactId>nursing-unit-parent</artifactId>
|
||||||
<version>2.0.0</version>
|
<version>2.0.0</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
<description>nu基础管理模块</description>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
<artifactId>nursing-unit-admin</artifactId>
|
||||||
<artifactId>nursing-unit-config</artifactId>
|
|
||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
|
|
||||||
<modules>
|
<modules>
|
||||||
<module>nu-config-api</module>
|
<module>nu-admin-api</module>
|
||||||
<module>nu-config-biz</module>
|
<module>nu-admin-biz</module>
|
||||||
</modules>
|
</modules>
|
||||||
|
|
||||||
</project>
|
</project>
|
|
@ -6,9 +6,9 @@
|
||||||
<artifactId>nursing-unit-parent</artifactId>
|
<artifactId>nursing-unit-parent</artifactId>
|
||||||
<version>2.0.0</version>
|
<version>2.0.0</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
<description>框架基础模块</description>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<artifactId>nursing-unit-base-core</artifactId>
|
<artifactId>nursing-unit-base-core</artifactId>
|
||||||
|
|
||||||
<repositories>
|
<repositories>
|
||||||
<repository>
|
<repository>
|
||||||
<id>aliyun</id>
|
<id>aliyun</id>
|
||||||
|
|
|
@ -7,8 +7,8 @@
|
||||||
<artifactId>nursing-unit-parent</artifactId>
|
<artifactId>nursing-unit-parent</artifactId>
|
||||||
<version>2.0.0</version>
|
<version>2.0.0</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
<description>框架demo模块</description>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
<artifactId>nursing-unit-demo</artifactId>
|
<artifactId>nursing-unit-demo</artifactId>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
|
|
|
@ -0,0 +1,14 @@
|
||||||
|
<?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>
|
||||||
|
<groupId>com.nursingunit.boot</groupId>
|
||||||
|
<artifactId>nu-invoicing-api</artifactId>
|
||||||
|
<version>2.0.0</version>
|
||||||
|
</parent>
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
|
<artifactId>nu-invoicing-local-api</artifactId>
|
||||||
|
|
||||||
|
</project>
|
|
@ -0,0 +1,25 @@
|
||||||
|
<?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>
|
||||||
|
<groupId>com.nursingunit.boot</groupId>
|
||||||
|
<artifactId>nursing-unit-invoicing</artifactId>
|
||||||
|
<version>2.0.0</version>
|
||||||
|
</parent>
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
|
<artifactId>nu-invoicing-api</artifactId>
|
||||||
|
<packaging>pom</packaging>
|
||||||
|
|
||||||
|
<modules>
|
||||||
|
<module>nu-invoicing-local-api</module>
|
||||||
|
</modules>
|
||||||
|
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.nursingunit.boot</groupId>
|
||||||
|
<artifactId>nursing-unit-base-core</artifactId>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
|
</project>
|
|
@ -3,17 +3,17 @@
|
||||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||||
<parent>
|
<parent>
|
||||||
<groupId>com.nursingunit.boot</groupId>
|
<groupId>com.nursingunit.boot</groupId>
|
||||||
<artifactId>nursing-unit-config</artifactId>
|
<artifactId>nursing-unit-invoicing</artifactId>
|
||||||
<version>2.0.0</version>
|
<version>2.0.0</version>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
<artifactId>nu-config-biz</artifactId>
|
<artifactId>nu-invoicing-biz</artifactId>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.nursingunit.boot</groupId>
|
<groupId>com.nursingunit.boot</groupId>
|
||||||
<artifactId>nu-config-local-api</artifactId>
|
<artifactId>nu-invoicing-local-api</artifactId>
|
||||||
<version>${nursingunit.version}</version>
|
<version>${nursingunit.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
|
@ -25,7 +25,7 @@ import lombok.experimental.Accessors;
|
||||||
* @Version: V1.0
|
* @Version: V1.0
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
@TableName("config_material_category")
|
@TableName("nu_config_material_category")
|
||||||
@Accessors(chain = true)
|
@Accessors(chain = true)
|
||||||
@EqualsAndHashCode(callSuper = false)
|
@EqualsAndHashCode(callSuper = false)
|
||||||
@ApiModel(value="config_material_category对象", description="物料类别")
|
@ApiModel(value="config_material_category对象", description="物料类别")
|
|
@ -25,7 +25,7 @@ import lombok.experimental.Accessors;
|
||||||
* @Version: V1.0
|
* @Version: V1.0
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
@TableName("config_material_info")
|
@TableName("nu_config_material_info")
|
||||||
@Accessors(chain = true)
|
@Accessors(chain = true)
|
||||||
@EqualsAndHashCode(callSuper = false)
|
@EqualsAndHashCode(callSuper = false)
|
||||||
@ApiModel(value="config_material_info对象", description="物料信息")
|
@ApiModel(value="config_material_info对象", description="物料信息")
|
||||||
|
@ -37,18 +37,18 @@ public class ConfigMaterialInfo implements Serializable {
|
||||||
@ApiModelProperty(value = "id")
|
@ApiModelProperty(value = "id")
|
||||||
private java.lang.String id;
|
private java.lang.String id;
|
||||||
/**物料类别*/
|
/**物料类别*/
|
||||||
@Excel(name = "物料类别", width = 15, dictTable = "config_material_category", dicText = "category_name", dicCode = "id")
|
@Excel(name = "物料类别", width = 15, dictTable = "nu_config_material_category", dicText = "category_name", dicCode = "id")
|
||||||
@Dict(dictTable = "config_material_category", dicText = "category_name", dicCode = "id")
|
@Dict(dictTable = "nu_config_material_category", dicText = "category_name", dicCode = "id")
|
||||||
@ApiModelProperty(value = "物料类别")
|
@ApiModelProperty(value = "物料类别")
|
||||||
private java.lang.String categoryId;
|
private java.lang.String categoryId;
|
||||||
/**物料类型*/
|
/**物料类型*/
|
||||||
@Excel(name = "物料类型", width = 15, dictTable = "config_material_type", dicText = "type_name", dicCode = "id")
|
@Excel(name = "物料类型", width = 15, dictTable = "nu_config_material_type", dicText = "type_name", dicCode = "id")
|
||||||
@Dict(dictTable = "config_material_type", dicText = "type_name", dicCode = "id")
|
@Dict(dictTable = "nu_config_material_type", dicText = "type_name", dicCode = "id")
|
||||||
@ApiModelProperty(value = "物料类型")
|
@ApiModelProperty(value = "物料类型")
|
||||||
private java.lang.String typeId;
|
private java.lang.String typeId;
|
||||||
/**用药类型*/
|
/**用药类型*/
|
||||||
@Excel(name = "用药类型", width = 15, dictTable = "config_material_medication", dicText = "medication_name", dicCode = "id")
|
@Excel(name = "用药类型", width = 15, dictTable = "nu_config_material_medication", dicText = "medication_name", dicCode = "id")
|
||||||
@Dict(dictTable = "config_material_medication", dicText = "medication_name", dicCode = "id")
|
@Dict(dictTable = "nu_config_material_medication", dicText = "medication_name", dicCode = "id")
|
||||||
@ApiModelProperty(value = "用药类型")
|
@ApiModelProperty(value = "用药类型")
|
||||||
private java.lang.String medicationId;
|
private java.lang.String medicationId;
|
||||||
/**货品名称*/
|
/**货品名称*/
|
||||||
|
@ -108,9 +108,9 @@ public class ConfigMaterialInfo implements Serializable {
|
||||||
@ApiModelProperty(value = "多单位采购默认使用 0子集 1父级 2爷级")
|
@ApiModelProperty(value = "多单位采购默认使用 0子集 1父级 2爷级")
|
||||||
private java.lang.String multiUnitType;
|
private java.lang.String multiUnitType;
|
||||||
/**供应商*/
|
/**供应商*/
|
||||||
@Excel(name = "供应商", width = 15,dictTable = "config_suppliers_info" , dicCode = "id" , dicText = "suppliers_name")
|
@Excel(name = "供应商", width = 15,dictTable = "nu_config_suppliers_info" , dicCode = "id" , dicText = "suppliers_name")
|
||||||
@ApiModelProperty(value = "供应商")
|
@ApiModelProperty(value = "供应商")
|
||||||
@Dict(dictTable = "config_suppliers_info" , dicCode = "id" , dicText = "suppliers_name")
|
@Dict(dictTable = "nu_config_suppliers_info" , dicCode = "id" , dicText = "suppliers_name")
|
||||||
private java.lang.String suppliers;
|
private java.lang.String suppliers;
|
||||||
/**物料图片*/
|
/**物料图片*/
|
||||||
@ApiModelProperty(value = "物料图片")
|
@ApiModelProperty(value = "物料图片")
|
|
@ -27,7 +27,7 @@ import lombok.experimental.Accessors;
|
||||||
* @Version: V1.0
|
* @Version: V1.0
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
@TableName("config_material_medication")
|
@TableName("nu_config_material_medication")
|
||||||
@Accessors(chain = true)
|
@Accessors(chain = true)
|
||||||
@EqualsAndHashCode(callSuper = false)
|
@EqualsAndHashCode(callSuper = false)
|
||||||
@ApiModel(value="config_material_medication对象", description="物料用药类型")
|
@ApiModel(value="config_material_medication对象", description="物料用药类型")
|
||||||
|
@ -39,13 +39,13 @@ public class ConfigMaterialMedication implements Serializable {
|
||||||
@ApiModelProperty(value = "id")
|
@ApiModelProperty(value = "id")
|
||||||
private java.lang.String id;
|
private java.lang.String id;
|
||||||
/**物料类别*/
|
/**物料类别*/
|
||||||
@Excel(name = "物料类别", width = 15, dictTable = "config_material_category", dicText = "category_name", dicCode = "id")
|
@Excel(name = "物料类别", width = 15, dictTable = "nu_config_material_category", dicText = "category_name", dicCode = "id")
|
||||||
@Dict(dictTable = "config_material_category", dicText = "category_name", dicCode = "id")
|
@Dict(dictTable = "nu_config_material_category", dicText = "category_name", dicCode = "id")
|
||||||
@ApiModelProperty(value = "物料类别")
|
@ApiModelProperty(value = "物料类别")
|
||||||
private java.lang.String categoryId;
|
private java.lang.String categoryId;
|
||||||
/**物料类型*/
|
/**物料类型*/
|
||||||
@Excel(name = "物料类型", width = 15, dictTable = "config_material_type", dicText = "type_name", dicCode = "id")
|
@Excel(name = "物料类型", width = 15, dictTable = "nu_config_material_type", dicText = "type_name", dicCode = "id")
|
||||||
@Dict(dictTable = "config_material_type", dicText = "type_name", dicCode = "id")
|
@Dict(dictTable = "nu_config_material_type", dicText = "type_name", dicCode = "id")
|
||||||
@ApiModelProperty(value = "物料类型")
|
@ApiModelProperty(value = "物料类型")
|
||||||
private java.lang.String typeId;
|
private java.lang.String typeId;
|
||||||
/**名称*/
|
/**名称*/
|
|
@ -27,7 +27,7 @@ import lombok.experimental.Accessors;
|
||||||
* @Version: V1.0
|
* @Version: V1.0
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
@TableName("config_material_type")
|
@TableName("nu_config_material_type")
|
||||||
@Accessors(chain = true)
|
@Accessors(chain = true)
|
||||||
@EqualsAndHashCode(callSuper = false)
|
@EqualsAndHashCode(callSuper = false)
|
||||||
@ApiModel(value="config_material_type对象", description="物料类型")
|
@ApiModel(value="config_material_type对象", description="物料类型")
|
||||||
|
@ -39,9 +39,9 @@ public class ConfigMaterialType implements Serializable {
|
||||||
@ApiModelProperty(value = "id")
|
@ApiModelProperty(value = "id")
|
||||||
private java.lang.String id;
|
private java.lang.String id;
|
||||||
/**物料类别*/
|
/**物料类别*/
|
||||||
@Excel(name = "物料类别", width = 15,dictTable = "config_material_category" , dicText = "category_name" , dicCode = "id")
|
@Excel(name = "物料类别", width = 15,dictTable = "nu_config_material_category" , dicText = "category_name" , dicCode = "id")
|
||||||
@ApiModelProperty(value = "物料类别")
|
@ApiModelProperty(value = "物料类别")
|
||||||
@Dict(dictTable = "config_material_category" , dicText = "category_name" , dicCode = "id")
|
@Dict(dictTable = "nu_config_material_category" , dicText = "category_name" , dicCode = "id")
|
||||||
private java.lang.String categoryId;
|
private java.lang.String categoryId;
|
||||||
/**物料类型*/
|
/**物料类型*/
|
||||||
@Excel(name = "物料类型", width = 15)
|
@Excel(name = "物料类型", width = 15)
|
|
@ -13,9 +13,9 @@
|
||||||
a.id as category_id,
|
a.id as category_id,
|
||||||
b.id as type_id,
|
b.id as type_id,
|
||||||
c.id as medication_id
|
c.id as medication_id
|
||||||
from config_material_category a
|
from nu_config_material_category a
|
||||||
LEFT JOIN config_material_type b on a.id = b.category_id and b.iz_enabled = 0 and b.del_flag = 0
|
LEFT JOIN nu_config_material_type b on a.id = b.category_id and b.iz_enabled = 0 and b.del_flag = 0
|
||||||
LEFT JOIN config_material_medication c on b.id = c.type_id and c.iz_enabled = 0 and c.del_flag = 0
|
LEFT JOIN nu_config_material_medication c on b.id = c.type_id and c.iz_enabled = 0 and c.del_flag = 0
|
||||||
where a.iz_enabled = 0 and a.del_flag = 0
|
where a.iz_enabled = 0 and a.del_flag = 0
|
||||||
order by a.sort asc,b.id asc,c.id asc ) a
|
order by a.sort asc,b.id asc,c.id asc ) a
|
||||||
${ew.customSqlSegment}
|
${ew.customSqlSegment}
|
|
@ -10,7 +10,6 @@ import com.nu.modules.ConfigMaterial.mapper.ConfigMaterialCategoryMapper;
|
||||||
import com.nu.modules.ConfigMaterial.mapper.ConfigMaterialMedicationMapper;
|
import com.nu.modules.ConfigMaterial.mapper.ConfigMaterialMedicationMapper;
|
||||||
import com.nu.modules.ConfigMaterial.mapper.ConfigMaterialTypeMapper;
|
import com.nu.modules.ConfigMaterial.mapper.ConfigMaterialTypeMapper;
|
||||||
import com.nu.modules.ConfigMaterial.service.IConfigMaterialCategoryService;
|
import com.nu.modules.ConfigMaterial.service.IConfigMaterialCategoryService;
|
||||||
import com.nu.modules.serviceDirective.entity.ConfigServiceDirective;
|
|
||||||
import org.apache.commons.lang3.StringUtils;
|
import org.apache.commons.lang3.StringUtils;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
|
@ -27,10 +27,10 @@ import lombok.experimental.Accessors;
|
||||||
* @Version: V1.0
|
* @Version: V1.0
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
@TableName("config_suppliers_info")
|
@TableName("nu_config_suppliers_info")
|
||||||
@Accessors(chain = true)
|
@Accessors(chain = true)
|
||||||
@EqualsAndHashCode(callSuper = false)
|
@EqualsAndHashCode(callSuper = false)
|
||||||
@ApiModel(value="config_suppliers_info对象", description="供应商")
|
@ApiModel(value="nu_config_suppliers_info对象", description="供应商")
|
||||||
public class ConfigSuppliersInfo implements Serializable {
|
public class ConfigSuppliersInfo implements Serializable {
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
|
@ -0,0 +1,20 @@
|
||||||
|
<?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>
|
||||||
|
<groupId>com.nursingunit.boot</groupId>
|
||||||
|
<artifactId>nursing-unit-parent</artifactId>
|
||||||
|
<version>2.0.0</version>
|
||||||
|
</parent>
|
||||||
|
<description>进销存</description>
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
<artifactId>nursing-unit-invoicing</artifactId>
|
||||||
|
<packaging>pom</packaging>
|
||||||
|
|
||||||
|
<modules>
|
||||||
|
<module>nu-invoicing-api</module>
|
||||||
|
<module>nu-invoicing-biz</module>
|
||||||
|
</modules>
|
||||||
|
|
||||||
|
</project>
|
|
@ -26,12 +26,12 @@ import io.swagger.annotations.ApiOperation;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @Description: 护理单元-物联管理-TPLINK机构信息
|
* @Description: 护理单元-物联管理-TPLINK项目信息
|
||||||
* @Author: jeecg-boot
|
* @Author: jeecg-boot
|
||||||
* @Date: 2025-01-22
|
* @Date: 2025-01-22
|
||||||
* @Version: V1.0
|
* @Version: V1.0
|
||||||
*/
|
*/
|
||||||
@Api(tags="护理单元-物联管理-TPLINK机构信息")
|
@Api(tags="护理单元-物联管理-TPLINK项目信息")
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/iot/projectInfo")
|
@RequestMapping("/iot/projectInfo")
|
||||||
@Slf4j
|
@Slf4j
|
||||||
|
@ -48,8 +48,8 @@ public class ProjectInfoController extends JeecgController<ProjectInfo, IProject
|
||||||
* @param req
|
* @param req
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
//@AutoLog(value = "护理单元-物联管理-TPLINK机构信息-分页列表查询")
|
//@AutoLog(value = "护理单元-物联管理-TPLINK项目信息-分页列表查询")
|
||||||
@ApiOperation(value="护理单元-物联管理-TPLINK机构信息-分页列表查询", notes="护理单元-物联管理-TPLINK机构信息-分页列表查询")
|
@ApiOperation(value="护理单元-物联管理-TPLINK项目信息-分页列表查询", notes="护理单元-物联管理-TPLINK项目信息-分页列表查询")
|
||||||
@GetMapping(value = "/list")
|
@GetMapping(value = "/list")
|
||||||
public Result<IPage<ProjectInfo>> queryPageList(ProjectInfo projectInfo,
|
public Result<IPage<ProjectInfo>> queryPageList(ProjectInfo projectInfo,
|
||||||
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
|
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
|
||||||
|
@ -61,7 +61,7 @@ public class ProjectInfoController extends JeecgController<ProjectInfo, IProject
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 同步机构信息
|
* 同步项目信息
|
||||||
*
|
*
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
|
@ -71,7 +71,7 @@ public class ProjectInfoController extends JeecgController<ProjectInfo, IProject
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 异步查询机构list
|
* 异步查询项目list
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
@RequestMapping(value = "/queryRegionTreeSync", method = RequestMethod.GET)
|
@RequestMapping(value = "/queryRegionTreeSync", method = RequestMethod.GET)
|
||||||
|
@ -95,8 +95,8 @@ public class ProjectInfoController extends JeecgController<ProjectInfo, IProject
|
||||||
* @param projectInfo
|
* @param projectInfo
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
// @AutoLog(value = "护理单元-物联管理-TPLINK机构信息-添加")
|
// @AutoLog(value = "护理单元-物联管理-TPLINK项目信息-添加")
|
||||||
@ApiOperation(value="护理单元-物联管理-TPLINK机构信息-添加", notes="护理单元-物联管理-TPLINK机构信息-添加")
|
@ApiOperation(value="护理单元-物联管理-TPLINK项目信息-添加", notes="护理单元-物联管理-TPLINK项目信息-添加")
|
||||||
@PostMapping(value = "/add")
|
@PostMapping(value = "/add")
|
||||||
public Result<String> add(@RequestBody ProjectInfo projectInfo) {
|
public Result<String> add(@RequestBody ProjectInfo projectInfo) {
|
||||||
return service.addProject(projectInfo);
|
return service.addProject(projectInfo);
|
||||||
|
@ -108,8 +108,8 @@ public class ProjectInfoController extends JeecgController<ProjectInfo, IProject
|
||||||
* @param projectInfo
|
* @param projectInfo
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
// @AutoLog(value = "护理单元-物联管理-TPLINK机构信息-编辑")
|
// @AutoLog(value = "护理单元-物联管理-TPLINK项目信息-编辑")
|
||||||
@ApiOperation(value="护理单元-物联管理-TPLINK机构信息-编辑", notes="护理单元-物联管理-TPLINK机构信息-编辑")
|
@ApiOperation(value="护理单元-物联管理-TPLINK项目信息-编辑", notes="护理单元-物联管理-TPLINK项目信息-编辑")
|
||||||
@PostMapping(value = "/edit")
|
@PostMapping(value = "/edit")
|
||||||
public Result<String> edit(@RequestBody ProjectInfo projectInfo) {
|
public Result<String> edit(@RequestBody ProjectInfo projectInfo) {
|
||||||
return service.editProject(projectInfo);
|
return service.editProject(projectInfo);
|
||||||
|
@ -121,8 +121,8 @@ public class ProjectInfoController extends JeecgController<ProjectInfo, IProject
|
||||||
* @param projectInfo
|
* @param projectInfo
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
// @AutoLog(value = "护理单元-物联管理-TPLINK机构信息-编辑")
|
// @AutoLog(value = "护理单元-物联管理-TPLINK项目信息-编辑")
|
||||||
@ApiOperation(value="护理单元-物联管理-TPLINK机构信息-通过id删除", notes="护理单元-物联管理-TPLINK机构信息-通过id删除")
|
@ApiOperation(value="护理单元-物联管理-TPLINK项目信息-通过id删除", notes="护理单元-物联管理-TPLINK项目信息-通过id删除")
|
||||||
@PostMapping(value = "/delete")
|
@PostMapping(value = "/delete")
|
||||||
public Result<String> deleteProject(@RequestBody ProjectInfo projectInfo) {
|
public Result<String> deleteProject(@RequestBody ProjectInfo projectInfo) {
|
||||||
return service.deleteProject(projectInfo);
|
return service.deleteProject(projectInfo);
|
||||||
|
@ -134,8 +134,8 @@ public class ProjectInfoController extends JeecgController<ProjectInfo, IProject
|
||||||
* @param id
|
* @param id
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
//@AutoLog(value = "护理单元-物联管理-TPLINK机构信息-通过id查询")
|
//@AutoLog(value = "护理单元-物联管理-TPLINK项目信息-通过id查询")
|
||||||
@ApiOperation(value="护理单元-物联管理-TPLINK机构信息-通过id查询", notes="护理单元-物联管理-TPLINK机构信息-通过id查询")
|
@ApiOperation(value="护理单元-物联管理-TPLINK项目信息-通过id查询", notes="护理单元-物联管理-TPLINK项目信息-通过id查询")
|
||||||
@GetMapping(value = "/queryById")
|
@GetMapping(value = "/queryById")
|
||||||
public Result<ProjectInfo> queryById(@RequestParam(name="id",required=true) String id) {
|
public Result<ProjectInfo> queryById(@RequestParam(name="id",required=true) String id) {
|
||||||
ProjectInfo projectInfo = service.getById(id);
|
ProjectInfo projectInfo = service.getById(id);
|
||||||
|
|
|
@ -21,6 +21,7 @@ public interface ProjectInfoMapper extends BaseMapper<ProjectInfo> {
|
||||||
IPage<ProjectInfo> findPage(Page<ProjectInfo> page, @Param("params") ProjectInfo projectInfo);
|
IPage<ProjectInfo> findPage(Page<ProjectInfo> page, @Param("params") ProjectInfo projectInfo);
|
||||||
int add(Map<String, String> map);
|
int add(Map<String, String> map);
|
||||||
int updateById(Map<String, String> map);
|
int updateById(Map<String, String> map);
|
||||||
|
int updateByProjectId(ProjectInfo projectInfo);
|
||||||
int deleteByProjectId(String projectId);
|
int deleteByProjectId(String projectId);
|
||||||
int updateLeafByPId(Map<String, String> map);
|
int updateLeafByPId(Map<String, String> map);
|
||||||
List<ProjectInfo> queryTreeList();
|
List<ProjectInfo> queryTreeList();
|
||||||
|
|
|
@ -124,6 +124,58 @@
|
||||||
</insert>
|
</insert>
|
||||||
|
|
||||||
<update id="updateById">
|
<update id="updateById">
|
||||||
|
update nu_iot_tplink_project
|
||||||
|
set
|
||||||
|
<if test="projectName != null and projectName != ''">
|
||||||
|
project_name = #{projectName},
|
||||||
|
</if>
|
||||||
|
<if test="institutionalId != null and institutionalId != ''">
|
||||||
|
institutional_id = #{institutionalId},
|
||||||
|
</if>
|
||||||
|
<if test="createTime != null and createTime != ''">
|
||||||
|
create_time = #{createTime},
|
||||||
|
</if>
|
||||||
|
<if test="deviceNum != null">
|
||||||
|
device_num = #{deviceNum},
|
||||||
|
</if>
|
||||||
|
<if test="sort != null">
|
||||||
|
sort = #{sort},
|
||||||
|
</if>
|
||||||
|
<if test="offlineNum != null">
|
||||||
|
offline_num = #{offlineNum},
|
||||||
|
</if>
|
||||||
|
<if test="abnormalNum != null">
|
||||||
|
abnormal_num = #{abnormalNum},
|
||||||
|
</if>
|
||||||
|
<if test="unreadMessageNum != null">
|
||||||
|
unread_message_num = #{unreadMessageNum},
|
||||||
|
</if>
|
||||||
|
<if test="totalNmsDevNum != null">
|
||||||
|
total_nms_dev_num = #{totalNmsDevNum},
|
||||||
|
</if>
|
||||||
|
<if test="totalVmsDevNum != null">
|
||||||
|
total_vms_dev_num = #{totalVmsDevNum},
|
||||||
|
</if>
|
||||||
|
<if test="totalNbsDevNum != null">
|
||||||
|
total_nbs_dev_num = #{totalNbsDevNum},
|
||||||
|
</if>
|
||||||
|
<if test="offlineNmsDevNum != null">
|
||||||
|
offline_nms_dev_num = #{offlineNmsDevNum},
|
||||||
|
</if>
|
||||||
|
<if test="offlineVmsDevNum != null">
|
||||||
|
offline_vms_dev_num = #{offlineVmsDevNum},
|
||||||
|
</if>
|
||||||
|
<if test="offlineNbsDevNum != null">
|
||||||
|
offline_nbs_dev_num = #{offlineNbsDevNum},
|
||||||
|
</if>
|
||||||
|
<if test="runningTime != null">
|
||||||
|
running_time = #{runningTime},
|
||||||
|
</if>
|
||||||
|
project_id = #{projectId}
|
||||||
|
where id = #{id}
|
||||||
|
</update>
|
||||||
|
|
||||||
|
<update id="updateByProjectId">
|
||||||
update nu_iot_tplink_project
|
update nu_iot_tplink_project
|
||||||
set project_id = #{projectId},
|
set project_id = #{projectId},
|
||||||
project_name = #{projectName},
|
project_name = #{projectName},
|
||||||
|
@ -142,7 +194,7 @@
|
||||||
offline_vms_dev_num = #{offlineVmsDevNum},
|
offline_vms_dev_num = #{offlineVmsDevNum},
|
||||||
offline_nbs_dev_num = #{offlineNbsDevNum},
|
offline_nbs_dev_num = #{offlineNbsDevNum},
|
||||||
running_time = #{runningTime}
|
running_time = #{runningTime}
|
||||||
where id = #{id}
|
where project_id = #{projectId}
|
||||||
</update>
|
</update>
|
||||||
|
|
||||||
<update id="deleteByProjectId">
|
<update id="deleteByProjectId">
|
||||||
|
|
|
@ -143,6 +143,10 @@ public class ProjectInfoServiceImpl extends ServiceImpl<ProjectInfoMapper, Proje
|
||||||
JSONObject jsonObject = new JSONObject(jsonResponse);
|
JSONObject jsonObject = new JSONObject(jsonResponse);
|
||||||
String errorCode = jsonObject.getStr("error_code");
|
String errorCode = jsonObject.getStr("error_code");
|
||||||
if(errorCode.equals("0")){
|
if(errorCode.equals("0")){
|
||||||
|
JSONObject result = (JSONObject)jsonObject.get("result");
|
||||||
|
String projectId = result.getStr("projectId");
|
||||||
|
projectInfo.setProjectId(projectId);
|
||||||
|
this.save(projectInfo);
|
||||||
sync();
|
sync();
|
||||||
return Result.OK("项目添加成功!");
|
return Result.OK("项目添加成功!");
|
||||||
}else{
|
}else{
|
||||||
|
@ -165,6 +169,7 @@ public class ProjectInfoServiceImpl extends ServiceImpl<ProjectInfoMapper, Proje
|
||||||
JSONObject jsonObject = new JSONObject(jsonResponse);
|
JSONObject jsonObject = new JSONObject(jsonResponse);
|
||||||
String errorCode = jsonObject.getStr("error_code");
|
String errorCode = jsonObject.getStr("error_code");
|
||||||
if(errorCode.equals("0")){
|
if(errorCode.equals("0")){
|
||||||
|
baseMapper.updateByProjectId(projectInfo);
|
||||||
sync();
|
sync();
|
||||||
return Result.OK("项目编辑成功!");
|
return Result.OK("项目编辑成功!");
|
||||||
}else{
|
}else{
|
||||||
|
|
|
@ -22,12 +22,12 @@ import javax.servlet.http.HttpServletRequest;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @Description: 护理单元-物联管理-TPLINK区域信息
|
* @Description: 护理单元-物联管理-TPLINK分组信息
|
||||||
* @Author: jeecg-boot
|
* @Author: jeecg-boot
|
||||||
* @Date: 2025-02-20
|
* @Date: 2025-02-20
|
||||||
* @Version: V1.0
|
* @Version: V1.0
|
||||||
*/
|
*/
|
||||||
@Api(tags="护理单元-物联管理-TPLINK区域信息")
|
@Api(tags="护理单元-物联管理-TPLINK分组信息")
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/iot/regionInfo")
|
@RequestMapping("/iot/regionInfo")
|
||||||
@Slf4j
|
@Slf4j
|
||||||
|
@ -44,8 +44,8 @@ public class RegionInfoController extends JeecgController<RegionInfo, IRegionInf
|
||||||
* @param req
|
* @param req
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
//@AutoLog(value = "护理单元-物联管理-TPLINK区域信息-分页列表查询")
|
//@AutoLog(value = "护理单元-物联管理-TPLINK分组信息-分页列表查询")
|
||||||
@ApiOperation(value="护理单元-物联管理-TPLINK区域信息-分页列表查询", notes="护理单元-物联管理-TPLINK区域信息-分页列表查询")
|
@ApiOperation(value="护理单元-物联管理-TPLINK分组信息-分页列表查询", notes="护理单元-物联管理-TPLINK分组信息-分页列表查询")
|
||||||
@GetMapping(value = "/list")
|
@GetMapping(value = "/list")
|
||||||
public Result<IPage<RegionInfo>> queryPageList(RegionInfo regionInfo,
|
public Result<IPage<RegionInfo>> queryPageList(RegionInfo regionInfo,
|
||||||
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
|
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
|
||||||
|
@ -57,7 +57,7 @@ public class RegionInfoController extends JeecgController<RegionInfo, IRegionInf
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 同步区域信息
|
* 同步分组信息
|
||||||
*
|
*
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
|
@ -67,7 +67,7 @@ public class RegionInfoController extends JeecgController<RegionInfo, IRegionInf
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 同步子区域信息
|
* 同步子分组信息
|
||||||
*
|
*
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
|
@ -77,7 +77,7 @@ public class RegionInfoController extends JeecgController<RegionInfo, IRegionInf
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 异步查询区域list
|
* 异步查询分组list
|
||||||
* @param parentId 父节点 异步加载时传递
|
* @param parentId 父节点 异步加载时传递
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
|
@ -102,8 +102,8 @@ public class RegionInfoController extends JeecgController<RegionInfo, IRegionInf
|
||||||
* @param regionInfo
|
* @param regionInfo
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
// @AutoLog(value = "护理单元-物联管理-TPLINK区域信息-添加")
|
// @AutoLog(value = "护理单元-物联管理-TPLINK分组信息-添加")
|
||||||
@ApiOperation(value="护理单元-物联管理-TPLINK区域信息-添加", notes="护理单元-物联管理-TPLINK区域信息-添加")
|
@ApiOperation(value="护理单元-物联管理-TPLINK分组信息-添加", notes="护理单元-物联管理-TPLINK分组信息-添加")
|
||||||
@PostMapping(value = "/add")
|
@PostMapping(value = "/add")
|
||||||
public Result<String> add(@RequestBody RegionInfo regionInfo) {
|
public Result<String> add(@RequestBody RegionInfo regionInfo) {
|
||||||
return service.addRegion(regionInfo);
|
return service.addRegion(regionInfo);
|
||||||
|
@ -115,8 +115,8 @@ public class RegionInfoController extends JeecgController<RegionInfo, IRegionInf
|
||||||
* @param regionInfo
|
* @param regionInfo
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
// @AutoLog(value = "护理单元-物联管理-TPLINK区域信息-编辑")
|
// @AutoLog(value = "护理单元-物联管理-TPLINK分组信息-编辑")
|
||||||
@ApiOperation(value="护理单元-物联管理-TPLINK区域信息-编辑", notes="护理单元-物联管理-TPLINK区域信息-编辑")
|
@ApiOperation(value="护理单元-物联管理-TPLINK分组信息-编辑", notes="护理单元-物联管理-TPLINK分组信息-编辑")
|
||||||
@PostMapping(value = "/edit")
|
@PostMapping(value = "/edit")
|
||||||
public Result<String> edit(@RequestBody RegionInfo regionInfo) {
|
public Result<String> edit(@RequestBody RegionInfo regionInfo) {
|
||||||
return service.editRegion(regionInfo);
|
return service.editRegion(regionInfo);
|
||||||
|
@ -128,8 +128,8 @@ public class RegionInfoController extends JeecgController<RegionInfo, IRegionInf
|
||||||
* @param regionInfo
|
* @param regionInfo
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
// @AutoLog(value = "护理单元-物联管理-TPLINK区域信息-编辑")
|
// @AutoLog(value = "护理单元-物联管理-TPLINK分组信息-编辑")
|
||||||
@ApiOperation(value="护理单元-物联管理-TPLINK区域信息-通过id删除", notes="护理单元-物联管理-TPLINK区域信息-通过id删除")
|
@ApiOperation(value="护理单元-物联管理-TPLINK分组信息-通过id删除", notes="护理单元-物联管理-TPLINK分组信息-通过id删除")
|
||||||
@PostMapping(value = "/delete")
|
@PostMapping(value = "/delete")
|
||||||
public Result<String> deleteRegion(@RequestBody RegionInfo regionInfo) {
|
public Result<String> deleteRegion(@RequestBody RegionInfo regionInfo) {
|
||||||
return service.deleteRegion(regionInfo);
|
return service.deleteRegion(regionInfo);
|
||||||
|
@ -141,8 +141,8 @@ public class RegionInfoController extends JeecgController<RegionInfo, IRegionInf
|
||||||
* @param id
|
* @param id
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
//@AutoLog(value = "护理单元-物联管理-TPLINK区域信息-通过id查询")
|
//@AutoLog(value = "护理单元-物联管理-TPLINK分组信息-通过id查询")
|
||||||
@ApiOperation(value="护理单元-物联管理-TPLINK区域信息-通过id查询", notes="护理单元-物联管理-TPLINK区域信息-通过id查询")
|
@ApiOperation(value="护理单元-物联管理-TPLINK分组信息-通过id查询", notes="护理单元-物联管理-TPLINK分组信息-通过id查询")
|
||||||
@GetMapping(value = "/queryById")
|
@GetMapping(value = "/queryById")
|
||||||
public Result<RegionInfo> queryById(@RequestParam(name="id",required=true) String id) {
|
public Result<RegionInfo> queryById(@RequestParam(name="id",required=true) String id) {
|
||||||
RegionInfo regionInfo = service.getById(id);
|
RegionInfo regionInfo = service.getById(id);
|
||||||
|
|
|
@ -15,7 +15,7 @@ import org.jeecgframework.poi.excel.annotation.Excel;
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @Description: 护理单元-物联管理-TPLINK区域信息
|
* @Description: 护理单元-物联管理-TPLINK分组信息
|
||||||
* @Author: jeecg-boot
|
* @Author: jeecg-boot
|
||||||
* @Date: 2025-02-20
|
* @Date: 2025-02-20
|
||||||
* @Version: V1.0
|
* @Version: V1.0
|
||||||
|
@ -24,7 +24,7 @@ import java.io.Serializable;
|
||||||
@TableName("nu_iot_tplink_region")
|
@TableName("nu_iot_tplink_region")
|
||||||
@Accessors(chain = true)
|
@Accessors(chain = true)
|
||||||
@EqualsAndHashCode(callSuper = false)
|
@EqualsAndHashCode(callSuper = false)
|
||||||
@ApiModel(value="nu_iot_tplink_region对象", description="护理单元-物联管理-TPLINK区域信息")
|
@ApiModel(value="nu_iot_tplink_region对象", description="护理单元-物联管理-TPLINK分组信息")
|
||||||
public class RegionInfo implements Serializable {
|
public class RegionInfo implements Serializable {
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
@ -32,19 +32,19 @@ public class RegionInfo implements Serializable {
|
||||||
@TableId(type = IdType.AUTO)
|
@TableId(type = IdType.AUTO)
|
||||||
@ApiModelProperty(value = "ID")
|
@ApiModelProperty(value = "ID")
|
||||||
private Integer id;
|
private Integer id;
|
||||||
/**区域ID*/
|
/**分组ID*/
|
||||||
@Excel(name = "区域ID", width = 15)
|
@Excel(name = "分组ID", width = 15)
|
||||||
@ApiModelProperty(value = "区域ID")
|
@ApiModelProperty(value = "分组ID")
|
||||||
private String regionId;
|
private String regionId;
|
||||||
/**区域名称*/
|
/**分组名称*/
|
||||||
@Excel(name = "区域名称", width = 15)
|
@Excel(name = "分组名称", width = 15)
|
||||||
@ApiModelProperty(value = "区域名称")
|
@ApiModelProperty(value = "分组名称")
|
||||||
private String regionName;
|
private String regionName;
|
||||||
/**区域层级*/
|
/**分组层级*/
|
||||||
@Excel(name = "区域层级", width = 15)
|
@Excel(name = "分组层级", width = 15)
|
||||||
@ApiModelProperty(value = "区域层级")
|
@ApiModelProperty(value = "分组层级")
|
||||||
private String regionLevel;
|
private String regionLevel;
|
||||||
/**区域次序,接口对应字段,在数据库中是关键字,数据库中用sort代替order*/
|
/**分组次序,接口对应字段,在数据库中是关键字,数据库中用sort代替order*/
|
||||||
@ApiModelProperty(value = "项目次序")
|
@ApiModelProperty(value = "项目次序")
|
||||||
@TableField(exist = false)
|
@TableField(exist = false)
|
||||||
private String order;
|
private String order;
|
||||||
|
@ -52,13 +52,13 @@ public class RegionInfo implements Serializable {
|
||||||
@Excel(name = "项目次序", width = 15)
|
@Excel(name = "项目次序", width = 15)
|
||||||
@ApiModelProperty(value = "项目次序")
|
@ApiModelProperty(value = "项目次序")
|
||||||
private Integer sort;
|
private Integer sort;
|
||||||
/**父区域ID*/
|
/**父分组ID*/
|
||||||
@Excel(name = "父区域ID", width = 15)
|
@Excel(name = "父分组ID", width = 15)
|
||||||
@ApiModelProperty(value = "父区域ID")
|
@ApiModelProperty(value = "父分组ID")
|
||||||
private String parentId;
|
private String parentId;
|
||||||
/**父区域ID*/
|
/**父分组ID*/
|
||||||
@Excel(name = "父区域", width = 15)
|
@Excel(name = "父分组", width = 15)
|
||||||
@ApiModelProperty(value = "父区域")
|
@ApiModelProperty(value = "父分组")
|
||||||
@TableField(exist = false)
|
@TableField(exist = false)
|
||||||
private String parentName;
|
private String parentName;
|
||||||
/**项目ID*/
|
/**项目ID*/
|
||||||
|
@ -78,13 +78,13 @@ public class RegionInfo implements Serializable {
|
||||||
@Excel(name = "流道", width = 15)
|
@Excel(name = "流道", width = 15)
|
||||||
@ApiModelProperty(value = "流道")
|
@ApiModelProperty(value = "流道")
|
||||||
private String streamWay;
|
private String streamWay;
|
||||||
/**是否有子区域*/
|
/**是否有子分组*/
|
||||||
@Excel(name = "是否有子区域", width = 15)
|
@Excel(name = "是否有子分组", width = 15)
|
||||||
@ApiModelProperty(value = "是否有子区域 0无 1有")
|
@ApiModelProperty(value = "是否有子分组 0无 1有")
|
||||||
private String hasChildren;
|
private String hasChildren;
|
||||||
/**区域类型*/
|
/**分组类型*/
|
||||||
@Excel(name = "区域类型", width = 15)
|
@Excel(name = "分组类型", width = 15)
|
||||||
@ApiModelProperty(value = "区域类型")
|
@ApiModelProperty(value = "分组类型")
|
||||||
private String regionType;
|
private String regionType;
|
||||||
/**更新时间*/
|
/**更新时间*/
|
||||||
@Excel(name = "更新时间", width = 15)
|
@Excel(name = "更新时间", width = 15)
|
||||||
|
|
|
@ -15,7 +15,7 @@ import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 区域信息同步
|
* 分组信息同步
|
||||||
*/
|
*/
|
||||||
@Slf4j
|
@Slf4j
|
||||||
public class RegionSyncJob implements Job {
|
public class RegionSyncJob implements Job {
|
||||||
|
|
|
@ -9,7 +9,7 @@ import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @Description: 护理单元-物联管理-TPLINK区域信息
|
* @Description: 护理单元-物联管理-TPLINK分组信息
|
||||||
* @Author: jeecg-boot
|
* @Author: jeecg-boot
|
||||||
* @Date: 2025-02-20
|
* @Date: 2025-02-20
|
||||||
* @Version: V1.0
|
* @Version: V1.0
|
||||||
|
|
|
@ -8,7 +8,7 @@ import java.util.Objects;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <p>
|
* <p>
|
||||||
* 区域表 存储区域结构数据的实体类
|
* 分组表 存储分组结构数据的实体类
|
||||||
* <p>
|
* <p>
|
||||||
*
|
*
|
||||||
* @Author 曹磊
|
* @Author 曹磊
|
||||||
|
|
|
@ -10,7 +10,7 @@ import com.nu.modules.tplink.region.model.RegionTreeModel;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @Description: 护理单元-物联管理-TPLINK区域信息
|
* @Description: 护理单元-物联管理-TPLINK分组信息
|
||||||
* @Author: jeecg-boot
|
* @Author: jeecg-boot
|
||||||
* @Date: 2025-01-22
|
* @Date: 2025-01-22
|
||||||
* @Version: V1.0
|
* @Version: V1.0
|
||||||
|
|
|
@ -22,7 +22,7 @@ import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @Description: 护理单元-物联管理-TPLINK区域信息
|
* @Description: 护理单元-物联管理-TPLINK分组信息
|
||||||
* @Author: jeecg-boot
|
* @Author: jeecg-boot
|
||||||
* @Date: 2025-02-20
|
* @Date: 2025-02-20
|
||||||
* @Version: V1.0
|
* @Version: V1.0
|
||||||
|
@ -37,7 +37,7 @@ public class RegionInfoServiceImpl extends ServiceImpl<RegionInfoMapper, RegionI
|
||||||
private ProjectInfoMapper projectInfoMapper;
|
private ProjectInfoMapper projectInfoMapper;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 同步区域信息
|
* 同步分组信息
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
|
@ -52,7 +52,7 @@ public class RegionInfoServiceImpl extends ServiceImpl<RegionInfoMapper, RegionI
|
||||||
String errorCode = jsonObject.getStr("error_code");
|
String errorCode = jsonObject.getStr("error_code");
|
||||||
if(errorCode.equals("0")){
|
if(errorCode.equals("0")){
|
||||||
sync(jsonResponse);
|
sync(jsonResponse);
|
||||||
return Result.OK("同步区域成功!");
|
return Result.OK("同步分组成功!");
|
||||||
}else{
|
}else{
|
||||||
return Result.error(jsonObject.getStr("msg"));
|
return Result.error(jsonObject.getStr("msg"));
|
||||||
}
|
}
|
||||||
|
@ -108,7 +108,7 @@ public class RegionInfoServiceImpl extends ServiceImpl<RegionInfoMapper, RegionI
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 接口返回数据同步子区域入库
|
* 接口返回数据同步子分组入库
|
||||||
* @param regionInfo
|
* @param regionInfo
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
|
@ -150,7 +150,7 @@ public class RegionInfoServiceImpl extends ServiceImpl<RegionInfoMapper, RegionI
|
||||||
syncChildren(entity);
|
syncChildren(entity);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return Result.OK("同步子区域成功!");
|
return Result.OK("同步子分组成功!");
|
||||||
}else{
|
}else{
|
||||||
return Result.error(jsonObject.getStr("msg"));
|
return Result.error(jsonObject.getStr("msg"));
|
||||||
}
|
}
|
||||||
|
@ -180,7 +180,7 @@ public class RegionInfoServiceImpl extends ServiceImpl<RegionInfoMapper, RegionI
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询区域treeList
|
* 查询分组treeList
|
||||||
*
|
*
|
||||||
* @param parentId
|
* @param parentId
|
||||||
* @return
|
* @return
|
||||||
|
@ -206,6 +206,9 @@ public class RegionInfoServiceImpl extends ServiceImpl<RegionInfoMapper, RegionI
|
||||||
StringBuffer sb = new StringBuffer();
|
StringBuffer sb = new StringBuffer();
|
||||||
sb.append("{");
|
sb.append("{");
|
||||||
sb.append("\"projectId\"").append(":").append("\"").append(regionInfo.getProjectId()).append("\",");
|
sb.append("\"projectId\"").append(":").append("\"").append(regionInfo.getProjectId()).append("\",");
|
||||||
|
if(regionInfo.getParentId()==null){
|
||||||
|
regionInfo.setParentId("0");
|
||||||
|
}
|
||||||
sb.append("\"parentId\"").append(":").append("\"").append(regionInfo.getParentId()).append("\",");
|
sb.append("\"parentId\"").append(":").append("\"").append(regionInfo.getParentId()).append("\",");
|
||||||
sb.append("\"regionName\"").append(":").append("\"").append(regionInfo.getRegionName()).append("\",");
|
sb.append("\"regionName\"").append(":").append("\"").append(regionInfo.getRegionName()).append("\",");
|
||||||
sb.append("\"sysType\"").append(":").append("3");
|
sb.append("\"sysType\"").append(":").append("3");
|
||||||
|
@ -215,7 +218,7 @@ public class RegionInfoServiceImpl extends ServiceImpl<RegionInfoMapper, RegionI
|
||||||
String errorCode = jsonObject.getStr("error_code");
|
String errorCode = jsonObject.getStr("error_code");
|
||||||
if(errorCode.equals("0")){
|
if(errorCode.equals("0")){
|
||||||
sync(regionInfo);
|
sync(regionInfo);
|
||||||
return Result.OK("区域添加成功!");
|
return Result.OK("分组添加成功!");
|
||||||
}else{
|
}else{
|
||||||
return Result.error(jsonObject.getStr("msg"));
|
return Result.error(jsonObject.getStr("msg"));
|
||||||
}
|
}
|
||||||
|
@ -237,7 +240,7 @@ public class RegionInfoServiceImpl extends ServiceImpl<RegionInfoMapper, RegionI
|
||||||
String errorCode = jsonObject.getStr("error_code");
|
String errorCode = jsonObject.getStr("error_code");
|
||||||
if(errorCode.equals("0")){
|
if(errorCode.equals("0")){
|
||||||
sync(regionInfo);
|
sync(regionInfo);
|
||||||
return Result.OK("区域编辑成功!");
|
return Result.OK("分组编辑成功!");
|
||||||
}else{
|
}else{
|
||||||
return Result.error(jsonObject.getStr("msg"));
|
return Result.error(jsonObject.getStr("msg"));
|
||||||
}
|
}
|
||||||
|
@ -258,7 +261,7 @@ public class RegionInfoServiceImpl extends ServiceImpl<RegionInfoMapper, RegionI
|
||||||
String errorCode = jsonObject.getStr("error_code");
|
String errorCode = jsonObject.getStr("error_code");
|
||||||
if(errorCode.equals("0")||errorCode.equals("-82401")){
|
if(errorCode.equals("0")||errorCode.equals("-82401")){
|
||||||
baseMapper.deleteByRegionId(regionInfo.getRegionId());
|
baseMapper.deleteByRegionId(regionInfo.getRegionId());
|
||||||
return Result.OK("区域删除成功!");
|
return Result.OK("分组删除成功!");
|
||||||
}else{
|
}else{
|
||||||
return Result.error(jsonObject.getStr("msg"));
|
return Result.error(jsonObject.getStr("msg"));
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,6 +7,7 @@
|
||||||
<artifactId>nursing-unit-parent</artifactId>
|
<artifactId>nursing-unit-parent</artifactId>
|
||||||
<version>2.0.0</version>
|
<version>2.0.0</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
<description>摄像头</description>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<artifactId>nursing-unit-iot</artifactId>
|
<artifactId>nursing-unit-iot</artifactId>
|
||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
|
|
|
@ -0,0 +1,14 @@
|
||||||
|
<?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>
|
||||||
|
<groupId>com.nursingunit.boot</groupId>
|
||||||
|
<artifactId>nu-service-directive-api</artifactId>
|
||||||
|
<version>2.0.0</version>
|
||||||
|
</parent>
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
|
<artifactId>nu-service-directive-local-api</artifactId>
|
||||||
|
|
||||||
|
</project>
|
|
@ -0,0 +1,25 @@
|
||||||
|
<?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>
|
||||||
|
<groupId>com.nursingunit.boot</groupId>
|
||||||
|
<artifactId>nursing-unit-service-directive</artifactId>
|
||||||
|
<version>2.0.0</version>
|
||||||
|
</parent>
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
|
<artifactId>nu-service-directive-api</artifactId>
|
||||||
|
<packaging>pom</packaging>
|
||||||
|
|
||||||
|
<modules>
|
||||||
|
<module>nu-service-directive-local-api</module>
|
||||||
|
</modules>
|
||||||
|
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.nursingunit.boot</groupId>
|
||||||
|
<artifactId>nursing-unit-base-core</artifactId>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
|
</project>
|
|
@ -0,0 +1,42 @@
|
||||||
|
<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>
|
||||||
|
<groupId>com.nursingunit.boot</groupId>
|
||||||
|
<artifactId>nursing-unit-service-directive</artifactId>
|
||||||
|
<version>2.0.0</version>
|
||||||
|
</parent>
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
|
<artifactId>nu-service-directive-biz</artifactId>
|
||||||
|
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.nursingunit.boot</groupId>
|
||||||
|
<artifactId>nu-service-directive-local-api</artifactId>
|
||||||
|
<version>${nursingunit.version}</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.hibernate</groupId>
|
||||||
|
<artifactId>hibernate-core</artifactId>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.jeecgframework.boot</groupId>
|
||||||
|
<artifactId>hibernate-re</artifactId>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
<!-- 企业微信/钉钉 api -->
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.jeecgframework</groupId>
|
||||||
|
<artifactId>weixin4j</artifactId>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
<!-- 添加汉字转拼音依赖-->
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.belerweb</groupId>
|
||||||
|
<artifactId>pinyin4j</artifactId>
|
||||||
|
<version>2.5.0</version>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
|
|
||||||
|
</project>
|
|
@ -27,10 +27,10 @@ import lombok.experimental.Accessors;
|
||||||
* @Version: V1.0
|
* @Version: V1.0
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
@TableName("config_service_type")
|
@TableName("nu_config_service_type")
|
||||||
@Accessors(chain = true)
|
@Accessors(chain = true)
|
||||||
@EqualsAndHashCode(callSuper = false)
|
@EqualsAndHashCode(callSuper = false)
|
||||||
@ApiModel(value="config_service_type对象", description="服务类型")
|
@ApiModel(value="nu_config_service_type对象", description="服务类型")
|
||||||
public class ConfigServiceType implements Serializable {
|
public class ConfigServiceType implements Serializable {
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
@ -41,7 +41,7 @@ public class ConfigServiceType implements Serializable {
|
||||||
/**服务类别id*/
|
/**服务类别id*/
|
||||||
@Excel(name = "服务类别", width = 15)
|
@Excel(name = "服务类别", width = 15)
|
||||||
@ApiModelProperty(value = "服务类别")
|
@ApiModelProperty(value = "服务类别")
|
||||||
@Dict(dicCode = "id" , dictTable = "config_service_category" , dicText = "category_name")
|
@Dict(dicCode = "id" , dictTable = "nu_config_service_category" , dicText = "category_name")
|
||||||
private java.lang.String categoryId;
|
private java.lang.String categoryId;
|
||||||
/**服务类型名称*/
|
/**服务类型名称*/
|
||||||
@Excel(name = "服务类型名称", width = 15)
|
@Excel(name = "服务类型名称", width = 15)
|
|
@ -27,10 +27,10 @@ import lombok.experimental.Accessors;
|
||||||
* @Version: V1.0
|
* @Version: V1.0
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
@TableName("config_directive_tag")
|
@TableName("nu_config_directive_tag")
|
||||||
@Accessors(chain = true)
|
@Accessors(chain = true)
|
||||||
@EqualsAndHashCode(callSuper = false)
|
@EqualsAndHashCode(callSuper = false)
|
||||||
@ApiModel(value="config_directive_tag对象", description="指令标签")
|
@ApiModel(value="nu_config_directive_tag对象", description="指令标签")
|
||||||
public class DirectiveTag implements Serializable {
|
public class DirectiveTag implements Serializable {
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
|
@ -27,10 +27,10 @@ import lombok.experimental.Accessors;
|
||||||
* @Version: V1.0
|
* @Version: V1.0
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
@TableName("config_service_category")
|
@TableName("nu_config_service_category")
|
||||||
@Accessors(chain = true)
|
@Accessors(chain = true)
|
||||||
@EqualsAndHashCode(callSuper = false)
|
@EqualsAndHashCode(callSuper = false)
|
||||||
@ApiModel(value="config_service_category对象", description="服务类别")
|
@ApiModel(value="nu_config_service_category对象", description="服务类别")
|
||||||
public class ConfigServiceCategory implements Serializable {
|
public class ConfigServiceCategory implements Serializable {
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
|
@ -26,6 +26,7 @@ import java.util.Arrays;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @Description: 服务指令
|
* @Description: 服务指令
|
||||||
|
@ -69,6 +70,14 @@ public class ConfigServiceDirectiveController extends JeecgController<ConfigServ
|
||||||
customeRuleMap.put("izEnabled", QueryRuleEnum.LIKE_WITH_OR);
|
customeRuleMap.put("izEnabled", QueryRuleEnum.LIKE_WITH_OR);
|
||||||
QueryWrapper<ConfigServiceDirective> queryWrapper = QueryGenerator.initQueryWrapper(configServiceDirective, req.getParameterMap(), customeRuleMap);
|
QueryWrapper<ConfigServiceDirective> queryWrapper = QueryGenerator.initQueryWrapper(configServiceDirective, req.getParameterMap(), customeRuleMap);
|
||||||
queryWrapper.select("id");
|
queryWrapper.select("id");
|
||||||
|
//如果有服务指令需要提前查询下对应的服务指令id
|
||||||
|
List<ConfigServiceDirective> directiveIds = null;
|
||||||
|
if (StringUtils.isNotBlank(configServiceDirective.getTags())) {
|
||||||
|
directiveIds = configServiceDirectiveService.queryDirectiveIdByTagIds(configServiceDirective.getTags());
|
||||||
|
if(directiveIds != null && !directiveIds.isEmpty()){
|
||||||
|
queryWrapper.in("id", directiveIds.stream().map(ConfigServiceDirective::getId).collect(Collectors.toList()));
|
||||||
|
}
|
||||||
|
}
|
||||||
Page<ConfigServiceDirective> page = new Page<ConfigServiceDirective>(pageNo, pageSize);
|
Page<ConfigServiceDirective> page = new Page<ConfigServiceDirective>(pageNo, pageSize);
|
||||||
IPage<ConfigServiceDirective> list = configServiceDirectiveService.page(page, queryWrapper);
|
IPage<ConfigServiceDirective> list = configServiceDirectiveService.page(page, queryWrapper);
|
||||||
List<ConfigServiceDirective> pageList = service.pageList(configServiceDirective, list);
|
List<ConfigServiceDirective> pageList = service.pageList(configServiceDirective, list);
|
|
@ -22,10 +22,10 @@ import java.util.List;
|
||||||
* @Version: V1.0
|
* @Version: V1.0
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
@TableName("config_service_directive")
|
@TableName("nu_config_service_directive")
|
||||||
@Accessors(chain = true)
|
@Accessors(chain = true)
|
||||||
@EqualsAndHashCode(callSuper = false)
|
@EqualsAndHashCode(callSuper = false)
|
||||||
@ApiModel(value="config_service_directive对象", description="服务指令")
|
@ApiModel(value="nu_config_service_directive对象", description="服务指令")
|
||||||
public class ConfigServiceDirective implements Serializable {
|
public class ConfigServiceDirective implements Serializable {
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
@ -36,12 +36,12 @@ public class ConfigServiceDirective implements Serializable {
|
||||||
/**服务类别id*/
|
/**服务类别id*/
|
||||||
@Excel(name = "服务类别", width = 15)
|
@Excel(name = "服务类别", width = 15)
|
||||||
@ApiModelProperty(value = "服务类别")
|
@ApiModelProperty(value = "服务类别")
|
||||||
@Dict(dicCode = "id" , dictTable = "config_service_category" , dicText = "category_name")
|
@Dict(dicCode = "id" , dictTable = "nu_config_service_category" , dicText = "category_name")
|
||||||
private java.lang.String categoryId;
|
private java.lang.String categoryId;
|
||||||
/**服务类型id*/
|
/**服务类型id*/
|
||||||
@Excel(name = "服务类型", width = 15)
|
@Excel(name = "服务类型", width = 15)
|
||||||
@ApiModelProperty(value = "服务类型")
|
@ApiModelProperty(value = "服务类型")
|
||||||
@Dict(dicCode = "id" , dictTable = "config_service_type" , dicText = "type_name")
|
@Dict(dicCode = "id" , dictTable = "nu_config_service_type" , dicText = "type_name")
|
||||||
private java.lang.String typeId;
|
private java.lang.String typeId;
|
||||||
/**分类标签*/
|
/**分类标签*/
|
||||||
@Excel(name = "分类标签", width = 15)
|
@Excel(name = "分类标签", width = 15)
|
|
@ -35,6 +35,12 @@ public interface ConfigServiceDirectiveMapper extends BaseMapper<ConfigServiceDi
|
||||||
|
|
||||||
int saveTags(@Param("directive") ConfigServiceDirective configServiceDirective);
|
int saveTags(@Param("directive") ConfigServiceDirective configServiceDirective);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据指令标签查询对应的服务指令id
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
List<ConfigServiceDirective> queryDirectiveIdByTagIds(@Param("tagIds") String tagIds);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询指令标签是否被使用
|
* 查询指令标签是否被使用
|
||||||
* @return
|
* @return
|
|
@ -64,9 +64,9 @@
|
||||||
c.mp4_file,
|
c.mp4_file,
|
||||||
tag.id as tagId,
|
tag.id as tagId,
|
||||||
tag.tag_name as tagName
|
tag.tag_name as tagName
|
||||||
FROM config_service_directive c
|
FROM nu_config_service_directive c
|
||||||
LEFT JOIN directive_tag d ON c.id = d.directive_id
|
LEFT JOIN nu_directive_tag d ON c.id = d.directive_id
|
||||||
LEFT JOIN config_directive_tag tag ON d.tag_id = tag.id
|
LEFT JOIN nu_config_directive_tag tag ON d.tag_id = tag.id
|
||||||
<where>
|
<where>
|
||||||
c.id IN
|
c.id IN
|
||||||
<foreach collection="ids" item="item" open="(" separator="," close=")">
|
<foreach collection="ids" item="item" open="(" separator="," close=")">
|
||||||
|
@ -76,8 +76,15 @@
|
||||||
ORDER BY c.category_id ASC, c.type_id ASC, c.instruction_tag_id ASC,c.create_time desc
|
ORDER BY c.category_id ASC, c.type_id ASC, c.instruction_tag_id ASC,c.create_time desc
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
<select id="queryDirectiveIdByTagIds" resultType="com.nu.modules.serviceDirective.entity.ConfigServiceDirective">
|
||||||
|
SELECT distinct directive_id as id FROM nu_directive_tag WHERE tag_id IN
|
||||||
|
<foreach collection="tagIds.split(',')" item="tagId" open="(" separator="," close=")">
|
||||||
|
#{tagId}
|
||||||
|
</foreach>
|
||||||
|
</select>
|
||||||
|
|
||||||
<select id="queryCountByTagIds" resultType="java.lang.Integer">
|
<select id="queryCountByTagIds" resultType="java.lang.Integer">
|
||||||
SELECT COUNT(*) FROM directive_tag WHERE tag_id IN
|
SELECT COUNT(*) FROM nu_directive_tag WHERE tag_id IN
|
||||||
<foreach collection="tagIds" item="item" open="(" separator="," close=")">
|
<foreach collection="tagIds" item="item" open="(" separator="," close=")">
|
||||||
#{item}
|
#{item}
|
||||||
</foreach>
|
</foreach>
|
||||||
|
@ -85,12 +92,12 @@
|
||||||
|
|
||||||
<delete id="deleteTags">
|
<delete id="deleteTags">
|
||||||
delete
|
delete
|
||||||
from directive_tag
|
from nu_directive_tag
|
||||||
where directive_id = #{directive.id}
|
where directive_id = #{directive.id}
|
||||||
</delete>
|
</delete>
|
||||||
|
|
||||||
<insert id="saveTags">
|
<insert id="saveTags">
|
||||||
insert into directive_tag (directive_id,tag_id) values
|
insert into nu_directive_tag (directive_id,tag_id) values
|
||||||
<foreach collection="directive.tags.split(',')" item="tagId" separator=",">
|
<foreach collection="directive.tags.split(',')" item="tagId" separator=",">
|
||||||
(#{directive.id}, #{tagId})
|
(#{directive.id}, #{tagId})
|
||||||
</foreach>
|
</foreach>
|
|
@ -32,4 +32,6 @@ public interface IConfigServiceDirectiveService extends IService<ConfigServiceDi
|
||||||
* @param configServiceDirective
|
* @param configServiceDirective
|
||||||
*/
|
*/
|
||||||
void removeTags(ConfigServiceDirective configServiceDirective);
|
void removeTags(ConfigServiceDirective configServiceDirective);
|
||||||
|
|
||||||
|
List<ConfigServiceDirective> queryDirectiveIdByTagIds(String tags);
|
||||||
}
|
}
|
|
@ -179,4 +179,9 @@ public class ConfigServiceDirectiveServiceImpl extends ServiceImpl<ConfigService
|
||||||
public void removeTags(ConfigServiceDirective configServiceDirective) {
|
public void removeTags(ConfigServiceDirective configServiceDirective) {
|
||||||
baseMapper.deleteTags(configServiceDirective);
|
baseMapper.deleteTags(configServiceDirective);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<ConfigServiceDirective> queryDirectiveIdByTagIds(String tags) {
|
||||||
|
return baseMapper.queryDirectiveIdByTagIds(tags);
|
||||||
|
}
|
||||||
}
|
}
|
|
@ -0,0 +1,20 @@
|
||||||
|
<?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>
|
||||||
|
<groupId>com.nursingunit.boot</groupId>
|
||||||
|
<artifactId>nursing-unit-parent</artifactId>
|
||||||
|
<version>2.0.0</version>
|
||||||
|
</parent>
|
||||||
|
<description>服务指令</description>
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
<artifactId>nursing-unit-service-directive</artifactId>
|
||||||
|
<packaging>pom</packaging>
|
||||||
|
|
||||||
|
<modules>
|
||||||
|
<module>nu-service-directive-api</module>
|
||||||
|
<module>nu-service-directive-biz</module>
|
||||||
|
</modules>
|
||||||
|
|
||||||
|
</project>
|
|
@ -24,10 +24,10 @@
|
||||||
<artifactId>nursing-unit-demo</artifactId>
|
<artifactId>nursing-unit-demo</artifactId>
|
||||||
<version>${nursingunit.version}</version>
|
<version>${nursingunit.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<!-- CONFIG 模块 -->
|
<!-- 进销存 模块 -->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.nursingunit.boot</groupId>
|
<groupId>com.nursingunit.boot</groupId>
|
||||||
<artifactId>nu-config-biz</artifactId>
|
<artifactId>nu-invoicing-biz</artifactId>
|
||||||
<version>${nursingunit.version}</version>
|
<version>${nursingunit.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<!-- IOT 摄像头 模块 -->
|
<!-- IOT 摄像头 模块 -->
|
||||||
|
@ -36,7 +36,18 @@
|
||||||
<artifactId>nu-iot-biz</artifactId>
|
<artifactId>nu-iot-biz</artifactId>
|
||||||
<version>${nursingunit.version}</version>
|
<version>${nursingunit.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<!-- nu 基础模块 -->
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.nursingunit.boot</groupId>
|
||||||
|
<artifactId>nu-admin-biz</artifactId>
|
||||||
|
<version>${nursingunit.version}</version>
|
||||||
|
</dependency>
|
||||||
|
<!-- 服务指令 模块 -->
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.nursingunit.boot</groupId>
|
||||||
|
<artifactId>nu-service-directive-biz</artifactId>
|
||||||
|
<version>${nursingunit.version}</version>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
<!-- flyway 数据库自动升级 -->
|
<!-- flyway 数据库自动升级 -->
|
||||||
<dependency>
|
<dependency>
|
||||||
|
|
|
@ -7,8 +7,8 @@
|
||||||
<artifactId>nursing-unit-parent</artifactId>
|
<artifactId>nursing-unit-parent</artifactId>
|
||||||
<version>2.0.0</version>
|
<version>2.0.0</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
<description>框架系统模块</description>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
<artifactId>nursing-unit-system</artifactId>
|
<artifactId>nursing-unit-system</artifactId>
|
||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
|
|
||||||
|
|
|
@ -7,6 +7,8 @@
|
||||||
<artifactId>nursing-unit-parent</artifactId>
|
<artifactId>nursing-unit-parent</artifactId>
|
||||||
<version>2.0.0</version>
|
<version>2.0.0</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
<!--新建模块需要修改 yourModuleName替换为模块功能-->
|
||||||
|
<description>XXX功能模块</description>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<!--新建模块需要修改 yourModuleName替换为模块名称-->
|
<!--新建模块需要修改 yourModuleName替换为模块名称-->
|
||||||
<artifactId>nursing-unit-yourModuleName</artifactId>
|
<artifactId>nursing-unit-yourModuleName</artifactId>
|
||||||
|
@ -15,6 +17,7 @@
|
||||||
<modules>
|
<modules>
|
||||||
<!--新建模块需要修改 yourModuleName 替换为模块名称-->
|
<!--新建模块需要修改 yourModuleName 替换为模块名称-->
|
||||||
<module>nu-yourModuleName-api</module>
|
<module>nu-yourModuleName-api</module>
|
||||||
|
<!--新建模块需要修改 yourModuleName 替换为模块名称-->
|
||||||
<module>nu-yourModuleName-biz</module>
|
<module>nu-yourModuleName-biz</module>
|
||||||
</modules>
|
</modules>
|
||||||
|
|
||||||
|
|
11
pom.xml
11
pom.xml
|
@ -68,10 +68,19 @@
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
<modules>
|
<modules>
|
||||||
|
<!-- 框架基础包模块 -->
|
||||||
<module>nursing-unit-base-core</module>
|
<module>nursing-unit-base-core</module>
|
||||||
|
<!-- 框架demo功能模块 -->
|
||||||
<module>nursing-unit-demo</module>
|
<module>nursing-unit-demo</module>
|
||||||
<module>nursing-unit-config</module>
|
<!-- 进销存 -->
|
||||||
|
<module>nursing-unit-invoicing</module>
|
||||||
|
<!-- 摄像头 -->
|
||||||
<module>nursing-unit-iot</module>
|
<module>nursing-unit-iot</module>
|
||||||
|
<!-- nu基础模块 -->
|
||||||
|
<module>nursing-unit-admin</module>
|
||||||
|
<!-- 服务指令模块 -->
|
||||||
|
<module>nursing-unit-service-directive</module>
|
||||||
|
<!-- 系统模块 -->
|
||||||
<module>nursing-unit-system</module>
|
<module>nursing-unit-system</module>
|
||||||
</modules>
|
</modules>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue