| | |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private LocalDateTime updateTime; |
| | | |
| | | @ValueTableShow(3) |
| | | @ApiModelProperty(value = "是否产品标准") |
| | | private Integer isProduct; |
| | | } |
| | |
| | | |
| | | @Override |
| | | public int addItemParameter(StructureItemParameter itemParameter) { |
| | | if (itemParameter.getBsm().equals("")||itemParameter.getBsm()==null){ |
| | | itemParameter.setBsm("0"); |
| | | } |
| | | return structureItemParameterMapper.insert(itemParameter); |
| | | } |
| | | |
| | |
| | | <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, |
| | |
| | | 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 |
| | |
| | | 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; |
| | |
| | | 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"))); |
| | |
| | | return Result.success(); |
| | | } |
| | | |
| | | @ApiOperation(value = "提交编制内容") |
| | | @PostMapping("/upReportWriteState") |
| | | public Result<?> upReportWriteState(Integer id){ |
| | | return null; |
| | | } |
| | | |
| | | } |
| | |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private LocalDateTime updateTime; |
| | | |
| | | @ApiModelProperty("编制人") |
| | | private Integer writeUser; |
| | | |
| | | @ApiModelProperty("编制状态") |
| | | private Integer writeState; |
| | | } |
| | |
| | | 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); |
| | | } |
| | |
| | | isa.sample, |
| | | isa.model, |
| | | c.price, |
| | | ip.inspection_item, |
| | | c.inspection_item, |
| | | u.company, |
| | | u.`name`, |
| | | i.create_user, |
| | |
| | | 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} |
| | |
| | | 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> |
| | |
| | | logging: |
| | | config: classpath:logback-spring.xml |
| | | # 日志存储路径+++++++++++++++++++++++++++运维需要配置+++++++++++++++++++++++++++ |
| | | file-location: /javaWork/center-lims/img |
| | | file-location: /javaWork/center-lims/log |
| | | |
| | | # 数据库备份路径 |
| | | backup: |
| | |
| | | # 照片路径+++++++++++++++++++++++++++运维需要配置+++++++++++++++++++++++++++ |
| | | 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: |