瀏覽代碼

总后台导出 替换店铺ID

wangxy 1 周之前
父節點
當前提交
18fced9397

+ 14 - 4
fs-admin/src/main/java/com/fs/hisStore/controller/FsStoreProductScrmController.java

@@ -10,10 +10,7 @@ import com.fs.common.core.page.TableDataInfo;
 import com.fs.common.enums.BusinessType;
 import com.fs.common.utils.poi.ExcelUtil;
 import com.fs.hisStore.facade.FsStore580FacadeService;
-import com.fs.hisStore.vo.FsStoreProductAttrValueVO;
-import com.fs.hisStore.vo.FsStoreProductExportVO;
-import com.fs.hisStore.vo.FsStoreProductListVO;
-import com.fs.hisStore.vo.FsStoreTuiProductAttrValueVO;
+import com.fs.hisStore.vo.*;
 import com.fs.hospital580.service.Hospital580ScrmService;
 import com.fs.statis.dto.ModifyMoreDTO;
 import com.fs.hisStore.domain.FsStoreProductScrm;
@@ -118,6 +115,19 @@ public class FsStoreProductScrmController extends BaseController {
         return util.exportExcel(list, "storeProduct");
     }
 
+    /**
+     * 导出
+     * @param fsStoreProduct
+     * @return
+     */
+    @Log(title = "药品首营品种登记表管理", businessType = BusinessType.EXPORT, isStoreLog = true, logParam = {"药品首营品种", "导出药品首营品种登记表"})
+    @GetMapping("/exportProduct")
+    public  AjaxResult exportProduct(FsStoreProductScrm fsStoreProduct) {
+        List<FsDrugExportVO> fsDrugExportVOS = fsStoreProductService.selectFsDrugExportList(fsStoreProduct);
+        ExcelUtil<FsDrugExportVO> util = new ExcelUtil<FsDrugExportVO>(FsDrugExportVO.class);
+        return util.exportExcel(fsDrugExportVOS, "药品首营品种登记表");
+    }
+
 
     @Log(title = "商品管理", businessType = BusinessType.IMPORT, isStoreLog = true, logParam = {"商品", "商品导入"})
     @PreAuthorize("@ss.hasPermi('store:storeProduct:import')")

+ 12 - 0
fs-admin/src/main/java/com/fs/hisStore/controller/FsStoreScrmController.java

@@ -1,5 +1,6 @@
 package com.fs.hisStore.controller;
 
+import com.fs.common.BeanCopyUtils;
 import com.fs.common.annotation.Log;
 import com.fs.common.core.controller.BaseController;
 import com.fs.common.core.domain.AjaxResult;
@@ -14,6 +15,7 @@ import com.fs.hisStore.domain.FsStoreScrm;
 import com.fs.his.param.FsStoreAuditParam;
 import com.fs.hisStore.service.IFsStoreScrmService;
 import com.fs.hisStore.utils.StoreAuditLogUtil;
+import com.fs.hisStore.vo.FsStoreScrmExcelVO;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.security.access.prepost.PreAuthorize;
 import org.springframework.web.bind.annotation.*;
@@ -79,6 +81,16 @@ public class FsStoreScrmController extends BaseController
         return util.exportExcel(list, "店铺管理数据");
     }
 
+    @Log(title = "商家申请等级表", businessType = BusinessType.EXPORT,logParam = {"商家申请等级表","导出商家申请等级表"},isStoreLog = true)
+    @GetMapping("/exportFsStream")
+    public  AjaxResult  exportFsStream(FsStoreScrm fsStore)
+    {
+        List<FsStoreScrm> list = fsStoreService.selectFsStoreList(fsStore);
+        List<FsStoreScrmExcelVO> excelVOList = BeanCopyUtils.copyList(list, FsStoreScrmExcelVO.class);
+        ExcelUtil<FsStoreScrmExcelVO> util = new ExcelUtil<FsStoreScrmExcelVO>(FsStoreScrmExcelVO.class);
+        return util.exportExcel(excelVOList, "商家申请登记表");
+    }
+
     /**
      * 获取店铺管理详细信息
      */

+ 2 - 0
fs-service/src/main/java/com/fs/hisStore/mapper/FsStoreProductScrmMapper.java

@@ -484,6 +484,8 @@ public interface FsStoreProductScrmMapper
     List<FsStoreProductExportVO> selectFsStoreProductExportList(@Param("maps") FsStoreProductScrm fsStoreProduct);
 
 
+    List<FsDrugExportVO> getDrugExportList(@Param("maps") FsStoreProductScrm fsStoreProduct);
+
     void batchModify(ModifyMoreDTO modifyMoreDTO);
 
     @Select({"<script> " +

+ 1 - 0
fs-service/src/main/java/com/fs/hisStore/service/IFsStoreProductScrmService.java

@@ -115,6 +115,7 @@ public interface IFsStoreProductScrmService
 
     List<FsStoreProductExportVO> selectFsStoreProductExportList(FsStoreProductScrm fsStoreProduct);
 
+    List<FsDrugExportVO> selectFsDrugExportList(FsStoreProductScrm fsStoreProduct);
     String importStoreProduct(List<FsStoreProductExportVO> list, boolean updateSupport);
 
     void batchModify(ModifyMoreDTO modifyMoreDTO);

+ 5 - 0
fs-service/src/main/java/com/fs/hisStore/service/impl/FsStoreProductScrmServiceImpl.java

@@ -969,6 +969,11 @@ public class FsStoreProductScrmServiceImpl implements IFsStoreProductScrmService
         return fsStoreProductMapper.selectFsStoreProductExportList(fsStoreProduct);
     }
 
+    @Override
+    public List<FsDrugExportVO> selectFsDrugExportList(FsStoreProductScrm fsStoreProduct) {
+        return fsStoreProductMapper.getDrugExportList(fsStoreProduct);
+    }
+
     @Override
     public String importStoreProduct(List<FsStoreProductExportVO> list, boolean updateSupport) {
         storeAuditLogUtil.generateOperId();

+ 70 - 0
fs-service/src/main/java/com/fs/hisStore/vo/FsDrugExportVO.java

@@ -0,0 +1,70 @@
+package com.fs.hisStore.vo;
+
+import com.fs.common.annotation.Excel;
+import lombok.Data;
+
+@Data
+public class FsDrugExportVO {
+
+
+    @Excel(name = "商家名称")
+    private String fullName;
+
+    @Excel(name = "商家编号")
+    private String merchantId;
+
+    @Excel(name = "药品名称")
+    private String productName;
+
+    @Excel(name = "生产企业")
+    private String prescribeFactory;
+
+    @Excel(name = "批准文号")
+    private String approvalNumber;
+
+    @Excel(name = "药品注册证有效期")
+    private String approvalDate;
+
+    @Excel(name = "规格")
+    private String prescribeSpec;
+
+    @Excel(name = "剂型")
+    private String dosageForm;
+
+    @Excel(name = "储藏要求")
+    private String storageRequirements;
+
+    /**
+     * 功能主治
+     */
+    @Excel(name = "适应症/功能主治")
+    private String indications;
+
+    @Excel(name = "资质清单")
+    private String qualificationList;
+
+    @Excel(name = "运营部审核意见")
+    private String auditOpinion;
+
+    @Excel(name = "审核人")
+    private String auditPerson;
+
+    @Excel(name = "审核日期")
+    private String auditDate;
+
+    @Excel(name = "质量安全管理部审核意见")
+    private String qualityAuditOpinion;
+    @Excel(name = "审核人")
+
+    private String qualityAuditPerson;
+    @Excel(name = "审核日期")
+    private String qualityAuditDate;
+    @Excel(name = "平台主要负责人审核意见")
+    private String platformAuditOpinion;
+    @Excel(name = "审核人")
+    private String platformAuditPerson;
+    @Excel(name = "审核日期")
+    private String platformAuditDate;
+
+
+}

+ 139 - 0
fs-service/src/main/java/com/fs/hisStore/vo/FsStoreScrmExcelVO.java

@@ -0,0 +1,139 @@
+package com.fs.hisStore.vo;
+
+import com.fs.common.annotation.Excel;
+import lombok.Data;
+
+import java.time.LocalDate;
+
+@Data
+public class FsStoreScrmExcelVO {
+
+
+    @Excel(name = "入驻商企业名称")
+    private String fullName;
+
+    @Excel(name = "商家编号")
+    private String merchantId;
+
+    @Excel(name = "统一社会信用代码")
+    private String unifiedSocialCreditCode;
+
+    @Excel(name = "经营方式")
+    private String businessType;
+
+
+    @Excel(name = "经营范围")
+    private String businessScope;
+
+    @Excel(name = "法定代表人姓名")
+    private String legalPersonName;
+
+    @Excel(name = "身份证号码")
+    private String legalNum;
+
+    @Excel(name = "联系电话")
+    private String legalPhone;
+
+    @Excel(name = "企业负责人姓名")
+    private String enterPrise;
+
+    @Excel(name = "身份证号码")
+    private String enterPriseNum;
+
+    @Excel(name = "联系电话")
+    private String enterPrisePhone;
+
+    @Excel(name = "质量安全负责人姓名")
+    private String qualityPerson;
+
+    @Excel(name = "身份证号码")
+    private String qualityNum;
+
+    @Excel(name = "联系电话")
+    private String qualityPhone;
+
+    @Excel(name = "注册地址")
+    private String enterpriseAddress;
+
+    @Excel(name = "经营地址")
+    private String businessAddress;
+
+    @Excel(name = "仓库地址")
+    private String warehouseAddress;
+
+    @Excel(name = "店铺名称")
+    private String storeName;
+
+    @Excel(name = "店铺链接")
+    private String logoUrl;
+
+    @Excel(name = "营业执照编号")
+    private String businessCode;
+
+    @Excel(name = "有效期")
+    private LocalDate businessLicenseExpireEnd;
+
+    @Excel(name = "许可证编号")
+    private String drugCode;
+
+    @Excel(name = "有效期")
+    private LocalDate drugLicenseExpiryEnd;
+
+    @Excel(name = "经营行为、范围与证照一致")
+    private String isBusinessLicensePermanent;
+
+    @Excel(name = "质量历史(有无重大质量事故)")
+    private String isQualityHistory;
+
+    @Excel(name = "营业执照编号")
+    private String medicalDevice1Code;
+
+    @Excel(name = "有效期")
+    private LocalDate medicalDevice1ExpiryEnd;
+
+    @Excel(name = "许可证编号")
+    private String medicalDevice3Code;
+
+    @Excel(name = "有效期")
+    private LocalDate medicalDevice3ExpiryEnd;
+
+    @Excel(name = "生产行为、范围与证照一致")
+    private String isMedicalDevice1Permanent;
+
+    @Excel(name = "质量历史(有无重大质量事故)")
+    private String isMedicalDevice3History;
+
+    @Excel(name = "质量管理机构硬件设备是否配备")
+    private String isQualityHardware;
+
+    @Excel(name = "质量管理机构人员配置是否符合管理要求")
+    private String isQualityPerson;
+
+    @Excel(name = "质量管理制度、操作规程、职责是否齐全")
+    private String isQualitySystem;
+
+    @Excel(name = "库房面积是否与经营规模相适应")
+    private String isWarehouse;
+
+    @Excel(name = "库房分库、分区布局是否符合要求")
+    private String isWarehouseLayout;
+
+    @Excel(name = "库房是否安装有温湿度自动监测设备")
+    private String isWarehouseTemperature;
+
+    @Excel(name = "库房空调、除湿机、排气扇等是否能正常运转")
+    private String isWarehouseAirConditioner;
+
+    @Excel(name = "审核结论", readConverterExp = "同意入驻=1,不通过=0,驳回=-1")
+    private Integer isAudit;
+
+    @Excel(name = "审核人")
+    private String auditPerson;
+
+    @Excel(name = "日期")
+    private LocalDate auditDate;
+
+    @Excel(name = "违规违法行为登记(附详情记录)")
+    private String illegalBehavior;
+
+}

+ 15 - 0
fs-service/src/main/resources/mapper/hisStore/FsStoreProductScrmMapper.xml

@@ -753,5 +753,20 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
           AND gmp_auth_end &lt;= DATE_ADD(CURDATE(), INTERVAL 15 DAY)
         <if test="storeId != null">AND store_id = #{storeId}</if>
     </select>
+    <select id="getDrugExportList" resultType="com.fs.hisStore.vo.FsDrugExportVO">
+        SELECT
+            fss.full_name fullName,
+            fss.merchant_id merchantId,
+            p.product_name productName,
+            p.prescribe_factory prescribeFactory,
+            p.prescribe_spec prescribeSpec,
+            p.dosage_form dosageForm,
+            p.indications
+        FROM
+            fs_store_product_scrm p
+                LEFT JOIN fs_store_scrm fss ON p.store_id = fss.store_id
+        WHERE p.cate_id=224
+        <if test="maps.productId != null">AND p.product_id = #{maps.productId}</if>
+    </select>
 
 </mapper>

+ 3 - 2
fs-service/src/main/resources/mapper/hisStore/FsStoreRecommendScrmMapper.xml

@@ -23,7 +23,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
     </resultMap>
 
     <sql id="selectFsStoreRecommendScrmVo">
-        select id, store_id, store_name, sort_order, begin_time, end_time, recommend_type, status, weight, recommend_reason, create_by, create_time, update_by, update_time, remark from fs_store_recommend_scrm
+        select srs.id, srs.store_id, srs.store_name, srs.sort_order, srs.begin_time, srs.end_time, srs.recommend_type, srs.status, srs.weight, srs.recommend_reason, srs.create_by, srs.create_time, srs.update_by, srs.update_time, srs.remark,ss.store_seq from fs_store_recommend_scrm srs
     </sql>
 
     <select id="selectFsStoreRecommendScrmList" resultType="com.fs.hisStore.vo.FsStoreRecommendScrmVo">
@@ -110,7 +110,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
 
     <select id="selectFsStoreRecommendScrmById" parameterType="Long" resultMap="FsStoreRecommendScrmResult">
         <include refid="selectFsStoreRecommendScrmVo"/>
-        where id = #{id}
+        left join fs_store_scrm ss on srs.store_id = ss.store_id
+        where srs.id = #{id}
     </select>
 
 </mapper>

+ 2 - 0
fs-service/src/main/resources/mapper/hisStore/FsStoreScrmMapper.xml

@@ -101,6 +101,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="isAudit != null "> and is_audit = #{isAudit}</if>
             <if test="account != null  and account != ''"> and account like concat('%', #{account}, '%')</if>
             <if test="queryStoreId != null "> or store_id = #{queryStoreId}</if>
+            <if test="storeSeq != null  and storeSeq != ''"> and store_seq like concat('%', #{storeSeq}, '%')</if>
+            <if test="merchantId != null  and merchantId != ''"> and merchant_id like concat('%', #{merchantId}, '%')</if>
         </where>
         order by store_id desc
     </select>