value
2024-04-16 01af9cb1c94e459184ad4d9836662094f14bac7e
增加标准对于产品标准的区分,修复若干其她bug
已修改10个文件
51 ■■■■ 文件已修改
cnas-server/src/main/java/com/yuanchu/mom/pojo/StandardMethod.java 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
cnas-server/src/main/java/com/yuanchu/mom/service/impl/CapacityScopeServiceImpl.java 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
cnas-server/src/main/resources/mapper/StandardMethodMapper.xml 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
framework/src/main/java/com/yuanchu/mom/utils/QueryWrappers.java 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
inspect-server/src/main/java/com/yuanchu/mom/controller/InsReportController.java 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
inspect-server/src/main/java/com/yuanchu/mom/pojo/InsReport.java 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
inspect-server/src/main/java/com/yuanchu/mom/service/impl/InsOrderPlanServiceImpl.java 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
inspect-server/src/main/resources/mapper/InsOrderMapper.xml 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
inspect-server/src/main/resources/mapper/StandardTreeMapper.xml 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
system-run/src/main/resources/application-prod.yml 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
cnas-server/src/main/java/com/yuanchu/mom/pojo/StandardMethod.java
@@ -79,4 +79,8 @@
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;
    @ValueTableShow(3)
    @ApiModelProperty(value = "是否产品标准")
    private Integer isProduct;
}
cnas-server/src/main/java/com/yuanchu/mom/service/impl/CapacityScopeServiceImpl.java
@@ -48,6 +48,9 @@
    @Override
    public int addItemParameter(StructureItemParameter itemParameter) {
        if (itemParameter.getBsm().equals("")||itemParameter.getBsm()==null){
            itemParameter.setBsm("0");
        }
        return structureItemParameterMapper.insert(itemParameter);
    }
cnas-server/src/main/resources/mapper/StandardMethodMapper.xml
@@ -15,11 +15,6 @@
        <result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
    </resultMap>
    <sql id="Base_Column_List">
        id,code,name,
        remark,create_user,create_time,
        update_user,update_time
    </sql>
    <select id="selectStandardMethodList" resultType="com.yuanchu.mom.pojo.StandardMethod">
        select * from (
        select sm.id,
@@ -31,7 +26,8 @@
        u1.name create_user_name,
        sm.create_time,
        u2.name update_user_name,
        sm.update_time
        sm.update_time,
        sm.is_product
        from standard_method sm
        left join user u1 on sm.create_user = u1.id
        left join user u2 on sm.update_user = u2.id
framework/src/main/java/com/yuanchu/mom/utils/QueryWrappers.java
@@ -3,6 +3,7 @@
import cn.hutool.core.util.ObjectUtil;
import cn.hutool.core.util.StrUtil;
import cn.hutool.json.JSONUtil;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
@@ -48,6 +49,10 @@
            if(value == null || value.equals("")){
                continue;
            }
            /*boolean bool = field.isAnnotationPresent(TableField.class);
            if (bool){
                if(field.getAnnotation(TableField.class).exist()==false)continue;
            }*/
            if (!field.getName().equals("orderBy")) {
                if(value.getClass()== LocalDateTime.class){
                    wrapper.like(StrUtil.toUnderlineCase(field.getName()), ((LocalDateTime) value).format(DateTimeFormatter.ofPattern("yyyy-MM-dd")));
inspect-server/src/main/java/com/yuanchu/mom/controller/InsReportController.java
@@ -82,4 +82,10 @@
        return Result.success();
    }
    @ApiOperation(value = "提交编制内容")
    @PostMapping("/upReportWriteState")
    public Result<?> upReportWriteState(Integer id){
        return null;
    }
}
inspect-server/src/main/java/com/yuanchu/mom/pojo/InsReport.java
@@ -88,4 +88,10 @@
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;
    @ApiModelProperty("编制人")
    private Integer writeUser;
    @ApiModelProperty("编制状态")
    private Integer writeState;
}
inspect-server/src/main/java/com/yuanchu/mom/service/impl/InsOrderPlanServiceImpl.java
@@ -456,6 +456,8 @@
                template.writeAndClose(Files.newOutputStream(Paths.get(wordUrl + "/" + name)));
                insReport.setUrl("/word/" + name);
                insReportMapper.insert(insReport);
                insOrder.setState(4);
                insOrderMapper.updateById(insOrder);
            } catch (IOException e) {
                throw new RuntimeException(e);
            }
inspect-server/src/main/resources/mapper/InsOrderMapper.xml
@@ -125,7 +125,7 @@
        isa.sample,
        isa.model,
        c.price,
        ip.inspection_item,
        c.inspection_item,
        u.company,
        u.`name`,
        i.create_user,
@@ -133,10 +133,10 @@
        FROM
        ins_order i
        LEFT JOIN ins_sample isa ON isa.ins_order_id = i.id
        LEFT JOIN ins_product ip ON ip.ins_sample_id = isa.id
        LEFT JOIN `user` u ON u.id = i.user_id
        LEFT JOIN (select SUM(b.price) price,b.ins_sample_id from (select * from ins_product where state = 1 GROUP BY ins_sample_id,man_hour_group) b GROUP BY b.ins_sample_id) c ON c.ins_sample_id = isa.id
        where ip.state = 1
        LEFT JOIN (select SUM(b.price) price,b.ins_sample_id,GROUP_CONCAT(b.inspection_item SEPARATOR ',')
        inspection_item from (select * from ins_product where state = 1 GROUP BY ins_sample_id,man_hour_group) b GROUP
        BY b.ins_sample_id) c ON c.ins_sample_id = isa.id
        ) a
        <if test="ew.customSqlSegment != null and ew.customSqlSegment != ''">
            ${ew.customSqlSegment}
inspect-server/src/main/resources/mapper/StandardTreeMapper.xml
@@ -102,5 +102,6 @@
        select sm.code,sm.name,sm.remark from standard_method sm
        left join structure_test_object sto on sm.structure_test_object_id = sto.id
        where sto.specimen_name = #{sampleType}
        and is_product = 1
    </select>
</mapper>
system-run/src/main/resources/application-prod.yml
@@ -5,7 +5,7 @@
logging:
  config: classpath:logback-spring.xml
  # 日志存储路径+++++++++++++++++++++++++++运维需要配置+++++++++++++++++++++++++++
  file-location: /javaWork/center-lims/img
  file-location: /javaWork/center-lims/log
# 数据库备份路径
backup:
@@ -19,10 +19,14 @@
# 照片路径+++++++++++++++++++++++++++运维需要配置+++++++++++++++++++++++++++
file:
  path: /javaWork/center-lims/img
  allowed: png,jpg,jpeg,gif
wordUrl: /javaWork/center-lims/word
twoCode: /javaWork/center-lims/two_code
mybatis-plus:
  configuration:
    log-impl: org.apache.ibatis.logging.nologging.NoLoggingImpl # 关闭mybatis-plus日志
    log-impl: #org.apache.ibatis.logging.nologging.NoLoggingImpl # 关闭mybatis-plus日志
# 数据源配置
spring: