生产过程检验v3

highway
zhaoxiaolin 1 year ago
parent e25f223632
commit 94010d9146

@ -11,9 +11,19 @@ public class SapWorkCenter {
private String arbpl;//工作中心 private String arbpl;//工作中心
private String ktext;//工作中心描述 private String ktext;//工作中心描述
private String parentId; private String parentId;
private String fType;
@JsonFormat(pattern = "yyyy-MM-dd") @JsonFormat(pattern = "yyyy-MM-dd")
private Date aedat_grnd;//更新日期 private Date aedat_grnd;//更新日期
public String getfType() {
return fType;
}
public void setfType(String fType) {
this.fType = fType;
}
public String getWeeks() { public String getWeeks() {
return weeks; return weeks;
} }

@ -1,7 +1,6 @@
# Tomcat # Tomcat
server: server:
port: 9300 port: 9300
# Spring # Spring
spring: spring:
application: application:
@ -29,3 +28,7 @@ spring:
# 共享配置 # 共享配置
shared-configs: shared-configs:
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension} - application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
servlet:
multipart:
max-file-size: 50MB
max-request-size: 50MB

@ -61,10 +61,10 @@ public class QcCheckTaskIncomeController extends BaseController {
qcCheckTaskIncome.setIncomeTimeEnd(dateEndStr);//end qcCheckTaskIncome.setIncomeTimeEnd(dateEndStr);//end
} }
if(StringUtils.isEmpty(qcCheckTaskIncome.getCheckTimeStart())){ // if(StringUtils.isEmpty(qcCheckTaskIncome.getCheckTimeStart())){
qcCheckTaskIncome.setCheckTimeStart(qcCheckTaskIncome.getIncomeTimeStart());//start // qcCheckTaskIncome.setCheckTimeStart(qcCheckTaskIncome.getIncomeTimeStart());//start
qcCheckTaskIncome.setCheckTimeEnd(qcCheckTaskIncome.getIncomeTimeStart());//end // qcCheckTaskIncome.setCheckTimeEnd(qcCheckTaskIncome.getIncomeTimeStart());//end
} // }
startPage(); startPage();
List<QcCheckTaskIncome> list = qcCheckTaskIncomeService.selectQcCheckTaskIncomeList(qcCheckTaskIncome); List<QcCheckTaskIncome> list = qcCheckTaskIncomeService.selectQcCheckTaskIncomeList(qcCheckTaskIncome);

@ -6,6 +6,7 @@ import java.util.List;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
import com.op.common.core.utils.DateUtils; import com.op.common.core.utils.DateUtils;
import com.op.quality.domain.QcCheckType;
import com.op.quality.domain.QcSupplier; import com.op.quality.domain.QcSupplier;
import org.apache.commons.lang.StringUtils; import org.apache.commons.lang.StringUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
@ -56,10 +57,10 @@ public class QcCheckTaskProduceController extends BaseController {
qcCheckTaskProduce.setProduceDateEnd(dateEndStr);//end qcCheckTaskProduce.setProduceDateEnd(dateEndStr);//end
} }
if(StringUtils.isEmpty(qcCheckTaskProduce.getCheckTimeStart())){ // if(StringUtils.isEmpty(qcCheckTaskProduce.getCheckTimeStart())){
qcCheckTaskProduce.setCheckTimeStart(qcCheckTaskProduce.getProduceDateStart());//start // qcCheckTaskProduce.setCheckTimeStart(qcCheckTaskProduce.getProduceDateStart());//start
qcCheckTaskProduce.setCheckTimeEnd(qcCheckTaskProduce.getProduceDateEnd());//end // qcCheckTaskProduce.setCheckTimeEnd(qcCheckTaskProduce.getProduceDateEnd());//end
} // }
startPage(); startPage();
List<QcCheckTaskProduce> list = qcCheckTaskProduceService.selectQcCheckTaskProduceList(qcCheckTaskProduce); List<QcCheckTaskProduce> list = qcCheckTaskProduceService.selectQcCheckTaskProduceList(qcCheckTaskProduce);
@ -110,7 +111,11 @@ public class QcCheckTaskProduceController extends BaseController {
@Log(title = "生产过程检验任务", businessType = BusinessType.INSERT) @Log(title = "生产过程检验任务", businessType = BusinessType.INSERT)
@PostMapping @PostMapping
public AjaxResult add(@RequestBody QcCheckTaskProduce qcCheckTaskProduce) { public AjaxResult add(@RequestBody QcCheckTaskProduce qcCheckTaskProduce) {
return toAjax(qcCheckTaskProduceService.insertQcCheckTaskProduce(qcCheckTaskProduce)); int r = qcCheckTaskProduceService.insertQcCheckTaskProduce(qcCheckTaskProduce);
if(r>0){
return toAjax(r);
}
return error("添加失败:请检查物料的关联检测项");
} }
/** /**
@ -142,4 +147,9 @@ public class QcCheckTaskProduceController extends BaseController {
List<QcCheckTaskProduce> list = qcCheckTaskProduceService.getQcListWorkCenter(qcCheckTaskProduce); List<QcCheckTaskProduce> list = qcCheckTaskProduceService.getQcListWorkCenter(qcCheckTaskProduce);
return getDataTable(list); return getDataTable(list);
} }
@GetMapping("/getCheckTypes")
public List<QcCheckType> getCheckTypes(QcCheckType qcCheckType) {
return qcCheckTaskProduceService.getCheckTypes(qcCheckType);
}
} }

@ -57,8 +57,8 @@ public class QcCheckTaskProduce extends BaseEntity {
private String carName; private String carName;
/** 生产时间 */ /** 生产时间 */
@JsonFormat(pattern = "yyyy-MM-dd") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@Excel(name = "生产时间", width = 30, dateFormat = "yyyy-MM-dd") @Excel(name = "生产时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
private Date produceDate; private Date produceDate;
/** 检测地点 */ /** 检测地点 */
@ -118,6 +118,16 @@ public class QcCheckTaskProduce extends BaseEntity {
private String checkTimeStart; private String checkTimeStart;
private String checkTimeEnd; private String checkTimeEnd;
private String checkType;
public String getCheckType() {
return checkType;
}
public void setCheckType(String checkType) {
this.checkType = checkType;
}
public String getProduceDateStart() { public String getProduceDateStart() {
return produceDateStart; return produceDateStart;
} }

@ -3,6 +3,8 @@ package com.op.quality.mapper;
import java.util.List; import java.util.List;
import com.op.quality.domain.QcCheckTaskProduce; import com.op.quality.domain.QcCheckTaskProduce;
import com.op.quality.domain.QcCheckType;
import org.apache.ibatis.annotations.Mapper;
/** /**
* Mapper * Mapper
@ -10,6 +12,7 @@ import com.op.quality.domain.QcCheckTaskProduce;
* @author Open Platform * @author Open Platform
* @date 2023-10-19 * @date 2023-10-19
*/ */
@Mapper
public interface QcCheckTaskProduceMapper { public interface QcCheckTaskProduceMapper {
/** /**
* *
@ -58,4 +61,10 @@ public interface QcCheckTaskProduceMapper {
* @return * @return
*/ */
public int deleteQcCheckTaskProduceByRecordIds(String[] recordIds); public int deleteQcCheckTaskProduceByRecordIds(String[] recordIds);
public List<QcCheckTaskProduce> getQcListWorkCenter(QcCheckTaskProduce qcCheckTaskProduce);
int getTodayMaxNum(QcCheckTaskProduce qcCheckTaskProduce);
List<QcCheckType> getCheckTypes(QcCheckType qcCheckType);
} }

@ -2,6 +2,7 @@ package com.op.quality.service;
import java.util.List; import java.util.List;
import com.op.quality.domain.QcCheckTaskProduce; import com.op.quality.domain.QcCheckTaskProduce;
import com.op.quality.domain.QcCheckType;
/** /**
* Service * Service
@ -59,4 +60,6 @@ public interface IQcCheckTaskProduceService {
public int deleteQcCheckTaskProduceByRecordId(String recordId); public int deleteQcCheckTaskProduceByRecordId(String recordId);
List<QcCheckTaskProduce> getQcListWorkCenter(QcCheckTaskProduce qcCheckTaskProduce); List<QcCheckTaskProduce> getQcListWorkCenter(QcCheckTaskProduce qcCheckTaskProduce);
List<QcCheckType> getCheckTypes(QcCheckType qcCheckType);
} }

@ -65,6 +65,7 @@ public class QcCheckTaskIncomeServiceImpl implements IQcCheckTaskIncomeService {
@Override @Override
@DS("#header.poolName") @DS("#header.poolName")
public List<QcCheckTaskIncome> selectQcCheckTaskIncomeList(QcCheckTaskIncome qcCheckTaskIncome) { public List<QcCheckTaskIncome> selectQcCheckTaskIncomeList(QcCheckTaskIncome qcCheckTaskIncome) {
qcCheckTaskIncome.setDelFlag("0");
return qcCheckTaskIncomeMapper.selectQcCheckTaskIncomeList(qcCheckTaskIncome); return qcCheckTaskIncomeMapper.selectQcCheckTaskIncomeList(qcCheckTaskIncome);
} }

@ -1,14 +1,25 @@
package com.op.quality.service.impl; package com.op.quality.service.impl;
import java.util.Date;
import java.util.List; import java.util.List;
import com.baomidou.dynamic.datasource.annotation.DS; import com.baomidou.dynamic.datasource.annotation.DS;
import com.op.common.core.utils.DateUtils; import com.op.common.core.utils.DateUtils;
import com.op.common.core.utils.uuid.IdUtils;
import com.op.common.security.utils.SecurityUtils;
import com.op.quality.domain.*;
import com.op.quality.mapper.QcCheckTaskDetailMapper;
import com.op.quality.mapper.QcCheckTypeProjectMapper;
import com.op.quality.mapper.QcMaterialGroupDetailMapper;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import com.op.quality.mapper.QcCheckTaskProduceMapper; import com.op.quality.mapper.QcCheckTaskProduceMapper;
import com.op.quality.domain.QcCheckTaskProduce;
import com.op.quality.service.IQcCheckTaskProduceService; import com.op.quality.service.IQcCheckTaskProduceService;
import org.springframework.util.CollectionUtils;
import org.springframework.web.context.request.RequestContextHolder;
import org.springframework.web.context.request.ServletRequestAttributes;
import javax.servlet.http.HttpServletRequest;
/** /**
* Service * Service
@ -21,6 +32,15 @@ public class QcCheckTaskProduceServiceImpl implements IQcCheckTaskProduceService
@Autowired @Autowired
private QcCheckTaskProduceMapper qcCheckTaskProduceMapper; private QcCheckTaskProduceMapper qcCheckTaskProduceMapper;
@Autowired
private QcCheckTypeProjectMapper qcCheckTypeProjectMapper;
@Autowired
private QcMaterialGroupDetailMapper qcMaterialGroupDetailMapper;
@Autowired
private QcCheckTaskDetailMapper qcCheckTaskDetailMapper;
/** /**
* *
* *
@ -42,6 +62,7 @@ public class QcCheckTaskProduceServiceImpl implements IQcCheckTaskProduceService
@Override @Override
@DS("#header.poolName") @DS("#header.poolName")
public List<QcCheckTaskProduce> selectQcCheckTaskProduceList(QcCheckTaskProduce qcCheckTaskProduce) { public List<QcCheckTaskProduce> selectQcCheckTaskProduceList(QcCheckTaskProduce qcCheckTaskProduce) {
qcCheckTaskProduce.setDelFlag("0");
return qcCheckTaskProduceMapper.selectQcCheckTaskProduceList(qcCheckTaskProduce); return qcCheckTaskProduceMapper.selectQcCheckTaskProduceList(qcCheckTaskProduce);
} }
@ -55,7 +76,58 @@ public class QcCheckTaskProduceServiceImpl implements IQcCheckTaskProduceService
@DS("#header.poolName") @DS("#header.poolName")
public int insertQcCheckTaskProduce(QcCheckTaskProduce qcCheckTaskProduce) { public int insertQcCheckTaskProduce(QcCheckTaskProduce qcCheckTaskProduce) {
qcCheckTaskProduce.setCreateTime(DateUtils.getNowDate()); qcCheckTaskProduce.setCreateTime(DateUtils.getNowDate());
return qcCheckTaskProduceMapper.insertQcCheckTaskProduce(qcCheckTaskProduce);
String bpDD = DateUtils.parseDateToStr(DateUtils.YYYYMMDD, DateUtils.getNowDate());
int liushuiNum = qcCheckTaskProduceMapper.getTodayMaxNum(qcCheckTaskProduce);
String liushuiStr = String.format("%04d", liushuiNum);
String createBy = SecurityUtils.getUsername();
Date nowDate= DateUtils.getNowDate();
//获取当前所选工厂
HttpServletRequest request = ((ServletRequestAttributes) RequestContextHolder.getRequestAttributes()).getRequest();
String key = "#header.poolName";
String factoryCode = request.getHeader(key.substring(8)).replace("ds_","");
qcCheckTaskProduce.setCheckNo(bpDD+liushuiStr);
/**qc_check_task_income**/
String beLongId = IdUtils.fastSimpleUUID();
qcCheckTaskProduce.setRecordId(beLongId);
qcCheckTaskProduce.setFactoryCode(factoryCode);
qcCheckTaskProduce.setCreateTime(nowDate);
qcCheckTaskProduceMapper.insertQcCheckTaskProduce(qcCheckTaskProduce);
/**取检测项**/
QcCheckTypeProject qctp= new QcCheckTypeProject();
qctp.setTypeId(qcCheckTaskProduce.getCheckType());//来料检验
qctp.setMaterialCode(qcCheckTaskProduce.getMaterialCode());//特性
/**qc_check_type_project**/
List<QcCheckTaskDetail> items = qcCheckTypeProjectMapper.getTPByTypeMaterial(qctp);
if(CollectionUtils.isEmpty(items)){
/**qc_material_group_detail**/
QcMaterialGroupDetail group = qcMaterialGroupDetailMapper.getGroupByMaterial(qcCheckTaskProduce.getMaterialCode());
if(group == null){
return 0;//没有找到检测项目
}
qctp.setGroupId(group.getGroupId());//共性
items = qcCheckTypeProjectMapper.getTPByTypeGroup(qctp);
}
/**qc_check_task_detail**/
if(CollectionUtils.isEmpty(items)){
return 0;//没有找到检测项目
}
for(QcCheckTaskDetail item:items){
item.setRecordId(IdUtils.fastSimpleUUID());
item.setBelongTo(beLongId);
item.setCreateTime(nowDate);
item.setCreateBy(createBy);
item.setFactoryCode(factoryCode);
item.setStatus("Y");
}
return qcCheckTaskDetailMapper.addBatch(items);
} }
/** /**
@ -96,8 +168,16 @@ public class QcCheckTaskProduceServiceImpl implements IQcCheckTaskProduceService
} }
@Override @Override
@DS("#header.poolName")
public List<QcCheckTaskProduce> getQcListWorkCenter(QcCheckTaskProduce qcCheckTaskProduce) { public List<QcCheckTaskProduce> getQcListWorkCenter(QcCheckTaskProduce qcCheckTaskProduce) {
return null; return qcCheckTaskProduceMapper.getQcListWorkCenter(qcCheckTaskProduce);
}
@Override
@DS("#header.poolName")
public List<QcCheckType> getCheckTypes(QcCheckType qcCheckType) {
qcCheckType.setTypeCode("produce");
return qcCheckTaskProduceMapper.getCheckTypes(qcCheckType);
} }

@ -59,6 +59,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="checkTime != null "> and check_time = #{checkTime}</if> <if test="checkTime != null "> and check_time = #{checkTime}</if>
<if test="checkResult != null and checkResult != ''"> and check_result = #{checkResult}</if> <if test="checkResult != null and checkResult != ''"> and check_result = #{checkResult}</if>
<if test="status != null and status != ''"> and status = #{status}</if> <if test="status != null and status != ''"> and status = #{status}</if>
<if test="delFlag != null and delFlag != ''"> and del_flag = #{delFlag}</if>
<if test="attr1 != null and attr1 != ''"> and attr1 = #{attr1}</if> <if test="attr1 != null and attr1 != ''"> and attr1 = #{attr1}</if>
<if test="attr2 != null and attr2 != ''"> and attr2 = #{attr2}</if> <if test="attr2 != null and attr2 != ''"> and attr2 = #{attr2}</if>
<if test="attr3 != null and attr3 != ''"> and attr3 = #{attr3}</if> <if test="attr3 != null and attr3 != ''"> and attr3 = #{attr3}</if>

@ -36,7 +36,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</resultMap> </resultMap>
<sql id="selectQcCheckTaskProduceVo"> <sql id="selectQcCheckTaskProduceVo">
select record_id, check_no, batch_no, order_no, material_code, material_name, quality, unit, car_code, car_name, produce_date, check_loc, check_status, check_man_code, check_man_name, check_time, check_result, status, attr1, attr2, attr3, attr4, create_by, create_time, update_by, update_time, factory_code, del_flag from qc_check_task_produce select record_id, check_no, batch_no, order_no, material_code, material_name,
quality, unit, car_code, car_name, produce_date, check_loc, check_status,
check_man_code, check_man_name, check_time, check_result, status, attr1,
attr2, attr3, attr4, create_by, create_time, update_by, update_time,
factory_code, del_flag from qc_check_task_produce
</sql> </sql>
<select id="selectQcCheckTaskProduceList" parameterType="QcCheckTaskProduce" resultMap="QcCheckTaskProduceResult"> <select id="selectQcCheckTaskProduceList" parameterType="QcCheckTaskProduce" resultMap="QcCheckTaskProduceResult">
@ -58,6 +62,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="checkManName != null and checkManName != ''"> and check_man_name like concat('%', #{checkManName}, '%')</if> <if test="checkManName != null and checkManName != ''"> and check_man_name like concat('%', #{checkManName}, '%')</if>
<if test="checkTime != null "> and check_time = #{checkTime}</if> <if test="checkTime != null "> and check_time = #{checkTime}</if>
<if test="checkResult != null and checkResult != ''"> and check_result = #{checkResult}</if> <if test="checkResult != null and checkResult != ''"> and check_result = #{checkResult}</if>
<if test="delFlag != null and delFlag != ''"> and del_flag = #{delFlag}</if>
<if test="status != null and status != ''"> and status = #{status}</if> <if test="status != null and status != ''"> and status = #{status}</if>
<if test="attr1 != null and attr1 != ''"> and attr1 = #{attr1}</if> <if test="attr1 != null and attr1 != ''"> and attr1 = #{attr1}</if>
<if test="attr2 != null and attr2 != ''"> and attr2 = #{attr2}</if> <if test="attr2 != null and attr2 != ''"> and attr2 = #{attr2}</if>
@ -76,6 +81,24 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
where record_id = #{recordId} where record_id = #{recordId}
</select> </select>
<select id="getQcListWorkCenter" resultType="com.op.quality.domain.QcCheckTaskProduce">
select factory_code carCode,
factory_name carName
from sys_factory
where f_type = 'c' and status = '1' and del_flag = '0'
</select>
<select id="getTodayMaxNum" resultType="java.lang.Integer">
select count(0)+1
from qc_check_task_produce
where CONVERT(varchar(10),create_time, 120) = CONVERT(varchar(10),GETDATE(), 120)
</select>
<select id="getCheckTypes" resultType="com.op.quality.domain.QcCheckType">
select
id,check_name checkName
from qc_check_type
where type_code = #{typeCode} and del_flag='0'
</select>
<insert id="insertQcCheckTaskProduce" parameterType="QcCheckTaskProduce"> <insert id="insertQcCheckTaskProduce" parameterType="QcCheckTaskProduce">
insert into qc_check_task_produce insert into qc_check_task_produce
<trim prefix="(" suffix=")" suffixOverrides=","> <trim prefix="(" suffix=")" suffixOverrides=",">

@ -287,6 +287,7 @@ public class SapWorkCenterServiceImpl implements SapWorkCenterService {
String parentId = sapBomMapper.getParentId(adds.get(0).getWeeks()); String parentId = sapBomMapper.getParentId(adds.get(0).getWeeks());
adds.stream().forEach(e->{ adds.stream().forEach(e->{
e.setParentId(parentId); e.setParentId(parentId);
e.setfType("c");
}); });
int n = sapBomMapper.addFactoryBatchs(adds); int n = sapBomMapper.addFactoryBatchs(adds);
System.out.println("工作中心新增成功条数:"+ n); System.out.println("工作中心新增成功条数:"+ n);

@ -243,13 +243,17 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
(parent_id,factory_name,factory_code, (parent_id,factory_name,factory_code,
create_by, create_by,
create_time, create_time,
update_time) update_time,
f_type
)
VALUES VALUES
<foreach collection="list" index="index" item="item" separator=","> <foreach collection="list" index="index" item="item" separator=",">
(#{item.parentId},#{item.ktext},#{item.arbpl}, (#{item.parentId},#{item.ktext},#{item.arbpl},
'job', 'job',
#{item.aedat_grnd}, #{item.aedat_grnd},
#{item.aedat_grnd}) #{item.aedat_grnd},
#{item.fType}
)
</foreach> </foreach>
</insert> </insert>
<delete id="deleteBaseBomByFactoryCode" parameterType="String"> <delete id="deleteBaseBomByFactoryCode" parameterType="String">

@ -45,6 +45,16 @@ public class BaseApkFile extends BaseEntity {
@Excel(name = "备用4") @Excel(name = "备用4")
private String attr4; private String attr4;
private String fileList;
public String getFileList() {
return fileList;
}
public void setFileList(String fileList) {
this.fileList = fileList;
}
public void setId(String id) { public void setId(String id) {
this.id = id; this.id = id;
} }

@ -1,8 +1,14 @@
package com.op.system.service.impl; package com.op.system.service.impl;
import java.util.ArrayList;
import java.util.Date;
import java.util.List; import java.util.List;
import com.op.common.core.domain.BaseFileData;
import com.op.common.core.utils.DateUtils; import com.op.common.core.utils.DateUtils;
import com.op.common.core.utils.StringUtils;
import com.op.common.core.utils.uuid.IdUtils; import com.op.common.core.utils.uuid.IdUtils;
import com.op.common.security.utils.SecurityUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import com.op.system.mapper.BaseApkFileMapper; import com.op.system.mapper.BaseApkFileMapper;
@ -52,6 +58,14 @@ public class BaseApkFileServiceImpl implements IBaseApkFileService {
public int insertBaseApkFile(BaseApkFile baseApkFile) { public int insertBaseApkFile(BaseApkFile baseApkFile) {
baseApkFile.setId(IdUtils.fastSimpleUUID()); baseApkFile.setId(IdUtils.fastSimpleUUID());
baseApkFile.setCreateTime(DateUtils.getNowDate()); baseApkFile.setCreateTime(DateUtils.getNowDate());
//上传附件
if (StringUtils.isNotEmpty(baseApkFile.getFileList())) {
String id = baseApkFile.getFileList().split(",")[0];
baseApkFile.setFileName(id.split("&fileName=")[1]);
baseApkFile.setFileAddress(id);
}
return baseApkFileMapper.insertBaseApkFile(baseApkFile); return baseApkFileMapper.insertBaseApkFile(baseApkFile);
} }
@ -64,6 +78,12 @@ public class BaseApkFileServiceImpl implements IBaseApkFileService {
@Override @Override
public int updateBaseApkFile(BaseApkFile baseApkFile) { public int updateBaseApkFile(BaseApkFile baseApkFile) {
baseApkFile.setUpdateTime(DateUtils.getNowDate()); baseApkFile.setUpdateTime(DateUtils.getNowDate());
//上传附件
if (StringUtils.isNotEmpty(baseApkFile.getFileList())) {
String id = baseApkFile.getFileList().split(",")[0];
baseApkFile.setFileName(id.split("&fileName=")[1]);
baseApkFile.setFileAddress(id);
}
return baseApkFileMapper.updateBaseApkFile(baseApkFile); return baseApkFileMapper.updateBaseApkFile(baseApkFile);
} }

@ -48,7 +48,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
select top 1 id, file_name, file_address, version, attr1, attr2, attr3, attr4, select top 1 id, file_name, file_address, version, attr1, attr2, attr3, attr4,
create_by, create_time, update_by, update_time, remark create_by, create_time, update_by, update_time, remark
from base_apk_file from base_apk_file
order by create_by create_by desc order by create_by desc
</select> </select>
<insert id="insertBaseApkFile" parameterType="BaseApkFile" useGeneratedKeys="true" keyProperty="id"> <insert id="insertBaseApkFile" parameterType="BaseApkFile" useGeneratedKeys="true" keyProperty="id">

Loading…
Cancel
Save