New file |
| | |
| | | package com.zt.life.modules.itemCirculatOrder.controller; |
| | | |
| | | |
| | | import com.zt.common.annotation.LogOperation; |
| | | import com.zt.common.constant.Constant; |
| | | import com.zt.common.annotation.QueryParam; |
| | | import com.zt.common.db.query.QueryFilter; |
| | | import com.zt.common.servlet.Result; |
| | | import com.zt.common.servlet.PageResult; |
| | | import com.zt.common.validator.AssertUtils; |
| | | import com.zt.common.validator.ValidatorUtils; |
| | | import com.zt.common.validator.group.AddGroup; |
| | | import com.zt.common.validator.group.DefaultGroup; |
| | | import com.zt.common.validator.group.UpdateGroup; |
| | | import com.zt.life.modules.itemCirculatOrder.model.ItemCirculatOrder; |
| | | import com.zt.life.modules.itemCirculatOrder.service.ItemCirculatOrderService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiImplicitParam; |
| | | import io.swagger.annotations.ApiImplicitParams; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import springfox.documentation.annotations.ApiIgnore; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.util.List; |
| | | |
| | | |
| | | /** |
| | | * item_circulat_order |
| | | * |
| | | * @author zt generator |
| | | * @since 1.0.0 2023-11-22 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/itemCirculatOrder/ItemCirculatOrder/") |
| | | @Api(tags="item_circulat_order") |
| | | public class ItemCirculatOrderController { |
| | | @Autowired |
| | | private ItemCirculatOrderService itemCirculatOrderService; |
| | | |
| | | @GetMapping("page") |
| | | @ApiOperation("分页") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = Constant.Q.PAGE, value = Constant.QV.PAGE, required = true, dataType = Constant.QT.INT), |
| | | @ApiImplicitParam(name = Constant.Q.LIMIT, value = Constant.QV.LIMIT, required = true, dataType = Constant.QT.INT), |
| | | @ApiImplicitParam(name = Constant.Q.ORDER_FIELD, value = Constant.QV.ORDER_FIELD, dataType = Constant.QT.STRING), |
| | | @ApiImplicitParam(name = Constant.Q.ORDER, value = Constant.QV.ORDER, dataType = Constant.QT.STRING), |
| | | @ApiImplicitParam(name = "code", value = "物品流转单编号", dataType = Constant.QT.STRING, format = "code^LK") }) |
| | | public PageResult<ItemCirculatOrder> page(@ApiIgnore @QueryParam QueryFilter queryFilter){ |
| | | |
| | | return PageResult.ok(itemCirculatOrderService.page(queryFilter)); |
| | | } |
| | | |
| | | @GetMapping("{id}") |
| | | @ApiOperation("信息") |
| | | public Result<ItemCirculatOrder> get(@PathVariable("id") Long id){ |
| | | ItemCirculatOrder data = itemCirculatOrderService.get(id); |
| | | |
| | | return Result.ok(data); |
| | | } |
| | | |
| | | @PostMapping |
| | | @ApiOperation("新增") |
| | | @LogOperation("新增") |
| | | public Result insert(@RequestBody ItemCirculatOrder itemCirculatOrder){ |
| | | //效验数据 |
| | | ValidatorUtils.validateEntity(itemCirculatOrder, AddGroup.class, DefaultGroup.class); |
| | | itemCirculatOrderService.insert(itemCirculatOrder); |
| | | |
| | | return Result.ok(); |
| | | } |
| | | |
| | | @PutMapping |
| | | @ApiOperation("修改") |
| | | @LogOperation("修改") |
| | | public Result update(@RequestBody ItemCirculatOrder itemCirculatOrder){ |
| | | //效验数据 |
| | | ValidatorUtils.validateEntity(itemCirculatOrder, UpdateGroup.class, DefaultGroup.class); |
| | | itemCirculatOrderService.update(itemCirculatOrder); |
| | | |
| | | return Result.ok(); |
| | | } |
| | | |
| | | @DeleteMapping |
| | | @ApiOperation("删除") |
| | | @LogOperation("删除") |
| | | public Result delete(@RequestBody Long[] ids){ |
| | | //效验数据 |
| | | AssertUtils.isArrayEmpty(ids, "id"); |
| | | itemCirculatOrderService.delete(ids); |
| | | |
| | | return Result.ok(); |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.zt.life.modules.itemCirculatOrder.dao; |
| | | |
| | | import com.zt.common.dao.BaseDao; |
| | | import com.zt.life.modules.itemCirculatOrder.model.ItemCirculatOrder; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | |
| | | /** |
| | | * item_circulat_order |
| | | * |
| | | * @author zt generator |
| | | * @since 1.0.0 2023-11-22 |
| | | */ |
| | | @Mapper |
| | | public interface ItemCirculatOrderDao extends BaseDao<ItemCirculatOrder> { |
| | | |
| | | List<ItemCirculatOrder> getList(Map<String, Object> params); |
| | | |
| | | } |
New file |
| | |
| | | package com.zt.life.modules.itemCirculatOrder.model; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import com.zt.common.entity.BusiEntity; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * item_circulat_order |
| | | * |
| | | * @author zt generator |
| | | * @since 1.0.0 2023-11-22 |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper=false) |
| | | @TableName("item_circulat_order") |
| | | public class ItemCirculatOrder extends BusiEntity { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @ApiModelProperty(value = "项目ID") |
| | | private Long projectId; |
| | | |
| | | @ApiModelProperty(value = "物品流转单编号") |
| | | private String code; |
| | | |
| | | @ApiModelProperty(value = "物品其他要求") |
| | | private String itemRequire; |
| | | |
| | | @ApiModelProperty(value = "物品其他要求的其他") |
| | | private String itemOther; |
| | | |
| | | @ApiModelProperty(value = "物品接收人") |
| | | private String itemAccept; |
| | | |
| | | @ApiModelProperty(value = "物品接收时间") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | private Date acceptDate; |
| | | |
| | | @ApiModelProperty(value = "物品接收情况说明") |
| | | private String acceptSituation; |
| | | |
| | | @ApiModelProperty(value = "校准检测人") |
| | | private String calibratDetect; |
| | | |
| | | @ApiModelProperty(value = "校准检测时间") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | private Date detectDate; |
| | | |
| | | @ApiModelProperty(value = "校准检测情况说明") |
| | | private String detectSituation; |
| | | |
| | | @ApiModelProperty(value = "物品入库人") |
| | | private String warehouse; |
| | | |
| | | @ApiModelProperty(value = "物品入库时间") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | private Date warehouseDate; |
| | | |
| | | @ApiModelProperty(value = "物品入库情况") |
| | | private String warehouseSituation; |
| | | |
| | | @ApiModelProperty(value = "物品发放人") |
| | | private String itemIssue; |
| | | |
| | | @ApiModelProperty(value = "物品发放时间") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | private Date issueDate; |
| | | |
| | | @ApiModelProperty(value = "物品发放情况说明") |
| | | private String issueSituation; |
| | | |
| | | @ApiModelProperty(value = "备注") |
| | | private String remark; |
| | | |
| | | @ApiModelProperty(value = "年份") |
| | | private String year; |
| | | |
| | | } |
New file |
| | |
| | | package com.zt.life.modules.itemCirculatOrder.service; |
| | | |
| | | import com.zt.common.service.BaseService; |
| | | import com.zt.life.modules.itemCirculatOrder.dao.ItemCirculatOrderDao; |
| | | import com.zt.life.modules.itemCirculatOrder.model.ItemCirculatOrder; |
| | | import org.springframework.stereotype.Service; |
| | | import com.zt.common.db.query.QueryFilter; |
| | | import javax.annotation.Resource; |
| | | import java.util.List; |
| | | |
| | | |
| | | /** |
| | | * item_circulat_order |
| | | * |
| | | * @author zt generator |
| | | * @since 1.0.0 2023-11-22 |
| | | */ |
| | | @Service |
| | | public class ItemCirculatOrderService extends BaseService<ItemCirculatOrderDao, ItemCirculatOrder> { |
| | | |
| | | /** |
| | | * 分页查询 |
| | | * |
| | | * @param queryFilter |
| | | * @return |
| | | */ |
| | | public List<ItemCirculatOrder> page(QueryFilter queryFilter) { |
| | | return baseDao.getList(queryFilter.getQueryParams()); |
| | | } |
| | | |
| | | /** |
| | | * 删除 |
| | | * |
| | | * @param ids |
| | | */ |
| | | public void delete(Long[] ids) { |
| | | super.deleteLogic(ids); |
| | | } |
| | | |
| | | } |
| | |
| | | import com.zt.life.sys.dto.OssDto; |
| | | import com.zt.life.sys.service.SysOssConfigService; |
| | | import com.zt.modules.coderule.service.SysCodeRuleService; |
| | | import com.zt.modules.oss.model.SysOss; |
| | | import com.zt.modules.oss.service.SysOssService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiImplicitParam; |
| | | import io.swagger.annotations.ApiImplicitParams; |
| | |
| | | import springfox.documentation.annotations.ApiIgnore; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import javax.swing.*; |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.Date; |
| | | import java.util.HashMap; |
| | |
| | | @Autowired |
| | | private SysCodeRuleService sysCodeRuleService; |
| | | |
| | | @Autowired |
| | | private SysOssService sysOssService; |
| | | |
| | | |
| | | @GetMapping("page") |
| | | @ApiOperation("分页") |
| | |
| | | EnvironDto data = environService.getDto(environId, projectId); |
| | | if (environId != null) { |
| | | OssDto ossDto = sysOssConfigService.getOssByBusiType(environId, "test_environt_diagram"); |
| | | List<SysOss> sysOss1 =sysOssService.getSysOssByBusiIdAnd(environId,"test_environt_diagram"); |
| | | String Url = ""; |
| | | for (SysOss sysOss: sysOss1){ |
| | | Url=sysOss.getUrl(); |
| | | } |
| | | if (ossDto != null) { |
| | | data.setFiles(ossDto); |
| | | data.setUrl(Url); |
| | | } |
| | | } |
| | | return Result.ok(data); |
| | |
| | | public interface SoftwareTestOrderDao extends BaseDao<SoftwareTestOrder> { |
| | | |
| | | List<SoftwareTestOrder> getList(Map<String, Object> params); |
| | | List<DictIstance> dictList(String dictType, String projectCode,String softName); |
| | | List<DictIstance> dictList(String dictType, String projectCode,String softIdentity); |
| | | } |
| | |
| | | import com.zt.life.modules.project.model.*; |
| | | import com.zt.life.modules.sysBaseInfo.model.TestAgencyInfo; |
| | | import com.zt.life.sys.dto.OssDto; |
| | | import com.zt.modules.oss.model.SysOss; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | |
| | | private TestAgencyInfo TestAgencyInfo; |
| | | @ApiModelProperty(value = "附件") |
| | | private OssDto files; |
| | | @ApiModelProperty(value = "图片URL" ) |
| | | private String Url; |
| | | |
| | | |
| | | @ApiModelProperty(value = "软件资源") |
| | | private List<EnvironSoftwareResources> softwareResourcesList = new ArrayList<>(); |
| | |
| | | import com.zt.life.modules.sysBaseInfo.service.TestAgencyInfoService; |
| | | import com.zt.life.sys.service.SysOssConfigService; |
| | | import com.zt.modules.coderule.service.SysCodeRuleService; |
| | | import com.zt.modules.oss.service.SysOssService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import com.zt.common.db.query.QueryFilter; |
| | |
| | | @Autowired |
| | | private TestAgencyInfoService testAgencyInfoService; |
| | | |
| | | @Autowired |
| | | private SysOssService sysOssService; |
| | | |
| | | |
| | | public EnvironDto getDto(Long environId, Long projectId) { |
| | | EnvironDto data = new EnvironDto(); |
| | |
| | | } else { |
| | | Project project = projectService.get(projectId); |
| | | String projectCode = project.getCode(); |
| | | String softName =project.getSoftwareName(); |
| | | List<?> testItemResult = baseDao.dictList("testItem_type", projectCode,softName); |
| | | String softIdentity =project.getSoftwareIdentity(); |
| | | List<?> testItemResult = baseDao.dictList("testItem_type", projectCode,softIdentity); |
| | | List<?> measuredList = testItemResult; |
| | | data.setMeasuredList((List<SoftwareTestOrderMeasured>) measuredList); |
| | | |
New file |
| | |
| | | <?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"> |
| | | |
| | | <mapper namespace="com.zt.life.modules.itemCirculatOrder.dao.ItemCirculatOrderDao"> |
| | | |
| | | <select id="getList" resultType="com.zt.life.modules.itemCirculatOrder.model.ItemCirculatOrder"> |
| | | select a.* |
| | | from item_circulat_order a |
| | | <where> |
| | | a.is_delete = 0 |
| | | <if test="whereSql!=null"> |
| | | and ${whereSql} |
| | | </if> |
| | | </where> |
| | | <if test="orderBySql!=null"> |
| | | ORDER BY ${orderBySql} |
| | | </if> |
| | | </select> |
| | | |
| | | </mapper> |
| | |
| | | |
| | | <select id="dictList" resultType="com.zt.core.sys.dto.DictIstance"> |
| | | SET @row_number = 0; |
| | | SELECT concat('${softName}', dd.dict_label) AS name, |
| | | SELECT concat('${softIdentity}', dd.dict_label) AS name, |
| | | (@row_number := @row_number + 1) AS no, |
| | | case when '${dictType}'='product_library_file' then concat(dd.REMARK,'-${projectCode}') else |
| | | '1.0.0' end as identify |
New file |
| | |
| | | <template> |
| | | <zt-dialog ref="dialog" column="2" @confirm="formSubmit"> |
| | | <el-form :model="dataForm" ref="dataForm" :disabled="dataForm.disabled" label-width="120px"> |
| | | <zt-form-item label="项目ID" prop="projectId" rules="required"> |
| | | <el-input v-model="dataForm.projectId"></el-input> |
| | | </zt-form-item> |
| | | <zt-form-item label="物品流转单编号" prop="code" rules="required"> |
| | | <el-input v-model="dataForm.code"></el-input> |
| | | </zt-form-item> |
| | | <zt-form-item label="物品其他要求" prop="itemRequire" rules="required"> |
| | | <el-input v-model="dataForm.itemRequire"></el-input> |
| | | </zt-form-item> |
| | | <zt-form-item label="物品其他要求的其他" prop="itemOther" rules="required"> |
| | | <el-input v-model="dataForm.itemOther"></el-input> |
| | | </zt-form-item> |
| | | <zt-form-item label="物品接收人" prop="itemAccept" rules="required"> |
| | | <el-input v-model="dataForm.itemAccept"></el-input> |
| | | </zt-form-item> |
| | | <zt-form-item label="物品接收时间" prop="acceptDate" rules="required"> |
| | | <el-input v-model="dataForm.acceptDate"></el-input> |
| | | </zt-form-item> |
| | | <zt-form-item label="物品接收情况说明" prop="acceptSituation" rules="required"> |
| | | <el-input v-model="dataForm.acceptSituation"></el-input> |
| | | </zt-form-item> |
| | | <zt-form-item label="校准检测人" prop="calibratDetect" rules="required"> |
| | | <el-input v-model="dataForm.calibratDetect"></el-input> |
| | | </zt-form-item> |
| | | <zt-form-item label="校准检测时间" prop="detectDate" rules="required"> |
| | | <el-input v-model="dataForm.detectDate"></el-input> |
| | | </zt-form-item> |
| | | <zt-form-item label="校准检测情况说明" prop="detectSituation" rules="required"> |
| | | <el-input v-model="dataForm.detectSituation"></el-input> |
| | | </zt-form-item> |
| | | <zt-form-item label="物品入库人" prop="warehouse" rules="required"> |
| | | <el-input v-model="dataForm.warehouse"></el-input> |
| | | </zt-form-item> |
| | | <zt-form-item label="物品入库时间" prop="warehouseDate" rules="required"> |
| | | <el-input v-model="dataForm.warehouseDate"></el-input> |
| | | </zt-form-item> |
| | | <zt-form-item label="物品入库情况" prop="warehouseSituation" rules="required"> |
| | | <el-input v-model="dataForm.warehouseSituation"></el-input> |
| | | </zt-form-item> |
| | | <zt-form-item label="物品发放人" prop="itemIssue" rules="required"> |
| | | <el-input v-model="dataForm.itemIssue"></el-input> |
| | | </zt-form-item> |
| | | <zt-form-item label="物品发放时间" prop="issueDate" rules="required"> |
| | | <el-input v-model="dataForm.issueDate"></el-input> |
| | | </zt-form-item> |
| | | <zt-form-item label="物品发放情况说明" prop="issueSituation" rules="required"> |
| | | <el-input v-model="dataForm.issueSituation"></el-input> |
| | | </zt-form-item> |
| | | <zt-form-item label="备注" prop="remark" rules="required"> |
| | | <el-input v-model="dataForm.remark"></el-input> |
| | | </zt-form-item> |
| | | <zt-form-item label="年份" prop="year" rules="required"> |
| | | <el-input v-model="dataForm.year"></el-input> |
| | | </zt-form-item> |
| | | </el-form> |
| | | </zt-dialog> |
| | | </template> |
| | | |
| | | <script> |
| | | export default { |
| | | data() { |
| | | return { |
| | | dataForm: { |
| | | id: '', |
| | | projectId: '', |
| | | code: '', |
| | | itemRequire: '', |
| | | itemOther: '', |
| | | itemAccept: '', |
| | | acceptDate: '', |
| | | acceptSituation: '', |
| | | calibratDetect: '', |
| | | detectDate: '', |
| | | detectSituation: '', |
| | | warehouse: '', |
| | | warehouseDate: '', |
| | | warehouseSituation: '', |
| | | itemIssue: '', |
| | | issueDate: '', |
| | | issueSituation: '', |
| | | remark: '', |
| | | year: '' |
| | | } |
| | | } |
| | | }, |
| | | methods: { |
| | | // 获取信息 |
| | | async getInfo() { |
| | | let res = await this.$http.get(`/itemCirculatOrder/ItemCirculatOrder/${this.dataForm.id}`) |
| | | this.dataForm = { |
| | | ...this.dataForm, |
| | | ...res.data |
| | | } |
| | | }, |
| | | // 表单提交 |
| | | async formSubmit() { |
| | | let res = await this.$http[!this.dataForm.id ? 'post' : 'put']('/itemCirculatOrder/ItemCirculatOrder/', this.dataForm) |
| | | if (res.success) { |
| | | await this.$tip.success() |
| | | this.$refs.dialog.close() |
| | | this.$emit('refreshDataList') |
| | | } |
| | | } |
| | | } |
| | | } |
| | | </script> |
New file |
| | |
| | | <template> |
| | | <el-card shadow="never" class="aui-card--fill"> |
| | | <div class="mod-itemCirculatOrder-itemCirculatOrder}"> |
| | | <zt-table-wraper query-url="/itemCirculatOrder/ItemCirculatOrder/page" delete-url="/itemCirculatOrder/ItemCirculatOrder" v-slot="{ table }"> |
| | | <el-form :inline="true" :model="dataForm" @keyup.enter.native="table.query()"> |
| | | <el-form-item> |
| | | <el-input v-model="dataForm.code" placeholder="请输入物品流转单编号" clearable></el-input> |
| | | |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <zt-button type="query" @click="table.query()"/> |
| | | <zt-button type="add" perm="itemCirculatOrder:add" @click="table.editHandle()"/> |
| | | <zt-button type="delete" perm="itemCirculatOrder:delete" @click="table.deleteHandle()"/> |
| | | </el-form-item> |
| | | </el-form> |
| | | <el-table v-loading="table.dataLoading" :data="table.dataList" height="100px" v-adaptive="{bottomOffset:70}" border @selection-change="table.selectionChangeHandle"> |
| | | <el-table-column type="selection" width="40"/> |
| | | <el-table-column prop="code" label="物品流转单编号"/> |
| | | <zt-table-column-handle :table="table" edit-perm="itemCirculatOrder:update" delete-perm="itemCirculatOrder::delete"/> |
| | | </el-table> |
| | | <!-- 弹窗, 新增 / 修改 --> |
| | | <add-or-update @refreshDataList="table.query"/> |
| | | </zt-table-wraper> |
| | | </div> |
| | | </el-card> |
| | | </template> |
| | | |
| | | <script> |
| | | import AddOrUpdate from './ItemCirculatOrder-AddOrUpdate' |
| | | export default { |
| | | data() { |
| | | return { |
| | | dataForm: { |
| | | code: '', |
| | | } |
| | | } |
| | | }, |
| | | components: { |
| | | AddOrUpdate |
| | | } |
| | | } |
| | | </script> |
| | |
| | | <config-uploader busi-type="test_environt_diagram" model-name="dataForm" :dataForm="dataForm" |
| | | @getImageUrl="getImageUrl" |
| | | v-model="dataForm.files"/> |
| | | <div v-if="image.url"> |
| | | <el-image :src="image.url"></el-image> |
| | | <div v-if="dataForm.url"> |
| | | <el-image :src="dataForm.url"></el-image> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | export default { |
| | | data() { |
| | | return { |
| | | image: { |
| | | url:'', |
| | | width:'', |
| | | height:1, |
| | | }, |
| | | dataForm: { |
| | | id: '', |
| | | url:'', |
| | | environ:{ |
| | | code: '1', |
| | | hardSoftwareRes: '', |